/* ═══════════════════════════════════════════════════════════════════
   consent.css — Cookie Consent Banner Styles
   Glassmorphic banner matching the Electronics Architect design system.
   Supports both dark (default) and light themes via data-theme attribute.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Banner Container ─────────────────────────────────────────────
   Fixed to viewport bottom. Uses backdrop-filter for the signature
   EA glassmorphic look. Slides up on appear, slides down on dismiss. */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    padding: 16px 24px;
    background: rgba(14, 17, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 183, 123, 0.15);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide-up animation when banner becomes visible */
.cookie-consent-banner.visible {
    transform: translateY(0);
}

/* ── Inner layout: message on left, buttons on right ────────────── */
.cookie-consent-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ── Message text ─────────────────────────────────────────────── */
.cookie-consent-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.6;
    color: #C6C6CB;
}

.cookie-consent-text a {
    color: #FFB77B;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent-text a:hover {
    color: #e5a068;
}

/* ── Button group ─────────────────────────────────────────────── */
.cookie-consent-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Accept button — primary brand CTA */
.cookie-consent-accept {
    padding: 9px 22px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #FFB77B, #e5a068);
    color: #4D2700;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-consent-accept:hover {
    background: linear-gradient(135deg, #e5a068, #d08a50);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 183, 123, 0.3);
}

/* Reject button — subtle outline style, equally accessible */
.cookie-consent-reject {
    padding: 9px 22px;
    border-radius: 8px;
    border: 1px solid rgba(198, 198, 203, 0.3);
    background: transparent;
    color: #C6C6CB;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-consent-reject:hover {
    border-color: rgba(198, 198, 203, 0.5);
    background: rgba(198, 198, 203, 0.08);
}

/* ── Light Theme Overrides ────────────────────────────────────── */
[data-theme="light"] .cookie-consent-banner {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(59, 111, 217, 0.15);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cookie-consent-text {
    color: #4a4a52;
}

[data-theme="light"] .cookie-consent-text a {
    color: #3B6FD9;
}

[data-theme="light"] .cookie-consent-accept {
    background: linear-gradient(135deg, #3B6FD9, #2a5bc0);
    color: #fff;
}

[data-theme="light"] .cookie-consent-accept:hover {
    background: linear-gradient(135deg, #2a5bc0, #1e4faa);
    box-shadow: 0 4px 16px rgba(59, 111, 217, 0.3);
}

[data-theme="light"] .cookie-consent-reject {
    border-color: rgba(74, 74, 82, 0.3);
    color: #4a4a52;
}

[data-theme="light"] .cookie-consent-reject:hover {
    background: rgba(74, 74, 82, 0.06);
}

/* ── Responsive: stack buttons below text on narrow screens ──── */
@media (max-width: 640px) {
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-consent-accept,
    .cookie-consent-reject {
        flex: 1;
        min-width: 100px;
    }
}
