/* * FEATURE: Download Button Styles
 * File: viralgrid/assets/css/feature-download.css
 */

/* Wrapper - Handles positioning below the image */
.download-wrapper {
    display: flex;          /* Makes the span behave like a block container */
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 35px;
    width: 100%;
}

/* --- Button Styles (Vibrant Gradient) --- */
.download-btn,
.download-btn:visited,
.download-btn:hover,
.download-btn:active,
.download-btn:focus {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
    /* VIBRANT GRADIENT */
    background: linear-gradient(135deg, #ff9a5e 0%, #ff5252 100%);
    color: #ffffff;
    
    /* Typography */
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    
    /* NO UNDERLINE FIX */
    text-decoration: none !important;
    border-bottom: none !important;
    
    /* Shape */
    padding: 0; 
    min-height: 50px;
    min-width: 220px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    
    /* Glowing Shadow */
    box-shadow: 0 10px 20px rgba(255, 82, 82, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    outline: none; /* Remove blue focus outline */
}

/* Inner Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    width: 100%;
    justify-content: center;
}

/* Icon */
.icon-box svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
    display: block;
}

/* --- Hover Effects --- */
.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 82, 82, 0.4);
    color: #fff;
    text-decoration: none !important;
}

.download-btn:hover .icon-box svg {
    transform: translateY(3px); /* Bounce effect */
}

/* Active/Click */
.download-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(255, 82, 82, 0.4);
    text-decoration: none !important;
}

/* Progress Bar (Background Fill) */
.progress-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0%;
    background-color: rgba(0, 0, 0, 0.15);
    z-index: 0;
    transition: width 0.1s linear;
}

/* --- STATES --- */
.download-btn.loading {
    cursor: wait;
    text-decoration: none !important;
}
.download-btn.success {
    background: #22c55e; /* Green Success */
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
    pointer-events: none;
    text-decoration: none !important;
}
.download-btn.success .progress-fill {
    display: none;
}

/* --- Dark Mode --- */
body.dark-mode .download-btn {
    box-shadow: 0 10px 20px rgba(255, 82, 82, 0.15);
}

/* --- Mobile Styles --- */
@media (max-width: 600px) {
    .download-wrapper {
        margin-top: 10px;
        margin-bottom: 30px;
    }
    
    .download-btn {
        width: 90%; /* Wide button for easy tapping */
        max-width: 300px;
        min-height: 45px;
        font-size: 0.95rem;
    }
    
    .content-wrapper {
        padding: 12px 20px;
    }
}