/* ─────────────────────────────────────────────────────────────────────
   Cookie consent banner — accept-only (no reject), persistent.
   Theme-aware (dark / light), locale-agnostic, fully responsive.
   Lazy-shown by JS only when no consent cookie is present.
   ───────────────────────────────────────────────────────────────────── */

.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: none;
    pointer-events: auto;
}

.cookie-consent.is-visible {
    display: block;
    animation: cookieConsentIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes cookieConsentIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cookie-consent.is-leaving {
    animation: cookieConsentOut 0.35s ease forwards;
}

@keyframes cookieConsentOut {
    to { opacity: 0; transform: translateY(20px); }
}

.cookie-consent__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.05rem 1.3rem;
    background:
        linear-gradient(135deg, rgba(232, 197, 71, 0.06), rgba(229, 9, 20, 0.04)),
        var(--black-card, rgba(18, 18, 18, 0.92));
    color: var(--white-90, #f0f0f0);
    border: 1px solid var(--black-border, rgba(255, 255, 255, 0.08));
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(232, 197, 71, 0.08);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.cookie-consent__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(232, 197, 71, 0.12);
    color: var(--gold, #e8c547);
    border: 1px solid rgba(232, 197, 71, 0.25);
}

.cookie-consent__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-consent__title {
    margin: 0 0 0.2rem;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--white-90, #f5f5f5);
}

.cookie-consent__msg {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--white-60, rgba(255, 255, 255, 0.65));
}

.cookie-consent__msg a {
    color: var(--gold, #e8c547);
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 197, 71, 0.35);
    padding-bottom: 1px;
}

.cookie-consent__msg a:hover {
    border-bottom-color: var(--gold, #e8c547);
}

.cookie-consent__note {
    display: block;
    margin-top: 4px;
    font-size: 0.74rem;
    color: var(--white-50, rgba(255, 255, 255, 0.5));
    font-style: italic;
}

.cookie-consent__actions {
    flex-shrink: 0;
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.cookie-consent__btn {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    cursor: pointer;
    padding: 0.7rem 1.4rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0a0a0a;
    background: linear-gradient(135deg, var(--gold, #e8c547), #d4a93a);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(232, 197, 71, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
}

.cookie-consent__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(232, 197, 71, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    filter: brightness(1.05);
}

.cookie-consent__btn:active {
    transform: translateY(0);
}

.cookie-consent__btn:focus-visible {
    outline: 2px solid var(--gold, #e8c547);
    outline-offset: 3px;
}

/* ── Light theme overrides ──────────────────────────────────────────── */
html[data-theme="light"] .cookie-consent__inner {
    background:
        linear-gradient(135deg, rgba(229, 9, 20, 0.04), rgba(232, 197, 71, 0.06)),
        rgba(255, 255, 255, 0.96);
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(229, 9, 20, 0.05);
}

html[data-theme="light"] .cookie-consent__title {
    color: #111;
}

html[data-theme="light"] .cookie-consent__msg {
    color: rgba(0, 0, 0, 0.65);
}

html[data-theme="light"] .cookie-consent__note {
    color: rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] .cookie-consent__msg a {
    color: var(--red-neon, #c1121f);
    border-bottom-color: rgba(193, 18, 31, 0.35);
}

html[data-theme="light"] .cookie-consent__icon {
    background: rgba(229, 9, 20, 0.08);
    color: var(--red-neon, #c1121f);
    border-color: rgba(229, 9, 20, 0.2);
}

html[data-theme="light"] .cookie-consent__btn {
    color: #fff;
    background: linear-gradient(135deg, var(--red-neon, #e50914), #b80e16);
    box-shadow: 0 8px 22px rgba(229, 9, 20, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

html[data-theme="light"] .cookie-consent__btn:hover {
    box-shadow: 0 12px 28px rgba(229, 9, 20, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        gap: 0.85rem;
        padding: 0.95rem 1rem;
        border-radius: 12px;
    }
    .cookie-consent__icon {
        display: none;
    }
    .cookie-consent__actions {
        width: 100%;
    }
    .cookie-consent__btn {
        width: 100%;
        padding: 0.85rem 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent.is-visible,
    .cookie-consent.is-leaving {
        animation: none;
    }
}
