/**
 * BLACKOUT [REC] - Cookie Consent Banner
 *
 * Glassmorphism design matching the nav bar and player aesthetic.
 * Fixed to the bottom of the viewport, full-width.
 * Slide-up/down animations for show/hide transitions.
 *
 * CSS variables used: --bg, --fg, --accent, --glow, --border,
 *                     --glass-strong, --blur
 *
 * @package Blackout
 */

/* === Slide animations === */

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

@keyframes slideDown {
    from { transform: translateY(0); }
    to   { transform: translateY(100%); }
}

/* === Banner wrapper === */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--glass-strong);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
}

.cookie-consent.is-visible {
    animation: slideUp 0.4s ease forwards;
}

.cookie-consent.is-hidden {
    animation: slideDown 0.3s ease forwards;
}

/* === Inner layout === */

.cookie-consent__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* === Text === */

.cookie-consent__text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--fg);
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
}

/* === Actions === */

.cookie-consent__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* === Shared button styles === */

.cookie-consent__btn {
    padding: 0.7rem 1.5rem;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: none;
    transition: all 0.3s;
    white-space: nowrap;
}

/* === Accept button (neon green CTA) === */

.cookie-consent__btn--accept {
    background: var(--accent);
    color: var(--bg);
    border: none;
}

.cookie-consent__btn--accept:hover {
    opacity: 0.85;
    box-shadow: 0 0 20px var(--glow);
}

/* === Decline button (ghost) === */

.cookie-consent__btn--decline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--fg);
}

.cookie-consent__btn--decline:hover {
    border-color: var(--fg);
    color: var(--fg);
}

/* === Mobile responsive === */

@media (max-width: 600px) {
    .cookie-consent {
        padding: 1.25rem 1.25rem;
    }

    .cookie-consent__inner {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .cookie-consent__actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .cookie-consent__btn {
        width: 100%;
        text-align: center;
    }
}
