/**
 * Simple WP Download Manager - Front-End Styles
 */

/* Standard Text Button */
.swp-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: #007cba; /* A crisp, modern blue */
    color: #ffffff !important; /* Force white text over theme defaults */
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1;
    border: none;
    position: relative;
    z-index: 10;
}

.swp-download-link:hover,
.swp-download-link:focus {
    background-color: #005a87;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    outline: none;
}

.swp-download-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modifier class for Image Buttons */
.swp-download-link.swp-has-image {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.swp-download-link.swp-has-image:hover,
.swp-download-link.swp-has-image:focus {
    background: transparent;
    transform: scale(1.02); /* Slight zoom on image hover */
    box-shadow: none;
}

/* Ensure the image scales neatly */
.swp-download-link .swp-button-img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
    border-radius: 4px; /* Optional: gives custom images soft corners */
}