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

/* Wrapper - Handles positioning below the image */
.download-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 22px;
    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;

    background: linear-gradient(135deg, #ff9a5e 0%, #ff5252 100%);
    color: #ffffff;

    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    text-decoration: none !important;
    border-bottom: none !important;

    padding: 0;
    min-height: 42px;
    min-width: 190px;
    border-radius: 40px;
    border: none;
    cursor: pointer;

    box-shadow: 0 8px 16px rgba(255, 82, 82, 0.28);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    outline: none;
}

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

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

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

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

/* Active/Click */
.download-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 82, 82, 0.3);
    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;
    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: 6px;
        margin-bottom: 18px;
    }

    .download-btn {
        width: 88%;
        max-width: 260px;
        min-height: 36px;
        font-size: 0.85rem;
    }

    .content-wrapper {
        padding: 8px 16px;
    }
}
