/* ==========================================================================
   FBZ Cookie Consent Banner — css/fbz-cookies.css
   Matches Ferbeatz DJ theme: dark navy · yellow accent · Nohemi typeface
   SWUP-safe: positioned fixed, outside all SWUP containers.
   ========================================================================== */

/* ── Reset within banner scope ──────────────────────────────────────────── */
#fbz-cookie-banner *,
#fbz-cookie-banner *::before,
#fbz-cookie-banner *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Z-index layers ─────────────────────────────────────────────────────── */
/* Bar sits above header (z 9999), modal overlay above bar (z 10000) */
#fbz-cookie-banner { z-index: 9998; }
.fbz-cb-bar         { z-index: 9999; }
.fbz-cb-modal-overlay { z-index: 10001; }

/* ==========================================================================
   BOTTOM BAR
   ========================================================================== */

.fbz-cb-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark, #191d31);
    border-top: 1px solid rgba(253, 235, 25, 0.18);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.55);
    padding: 16px 24px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Visible state (JS adds .fbz-cb--visible to #fbz-cookie-banner) */
#fbz-cookie-banner.fbz-cb--visible .fbz-cb-bar {
    transform: translateY(0);
}
#fbz-cookie-banner.fbz-cb--hiding .fbz-cb-bar {
    transform: translateY(100%);
}

.fbz-cb-bar-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.fbz-cb-bar-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 260px;
}

.fbz-cb-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.fbz-cb-headline {
    display: block;
    font-family: var(--font-head, 'Nohemi', 'Montserrat', sans-serif);
    font-weight: 900;
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: 0.01em;
    margin-bottom: 4px;
}

.fbz-cb-body {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.5;
    font-family: 'Open Sans', sans-serif;
}

.fbz-cb-bar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.fbz-cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    font-family: var(--font-head, 'Nohemi', 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}
.fbz-cb-btn:hover { transform: translateY(-1px); }
.fbz-cb-btn:active { transform: translateY(0); }

/* Primary — yellow CTA */
.fbz-cb-btn--primary {
    background: linear-gradient(135deg, #fdeb19 0%, #dccb02 100%);
    color: #191d31;
    box-shadow: 0 6px 20px rgba(253, 235, 25, 0.25);
}
.fbz-cb-btn--primary:hover {
    box-shadow: 0 10px 28px rgba(253, 235, 25, 0.35);
}

/* Outline — yellow border, transparent fill */
.fbz-cb-btn--outline {
    background: transparent;
    color: rgba(253, 235, 25, 0.85);
    border: 1px solid rgba(253, 235, 25, 0.4);
}
.fbz-cb-btn--outline:hover {
    background: rgba(253, 235, 25, 0.08);
    border-color: rgba(253, 235, 25, 0.65);
    color: #fdeb19;
}

/* Ghost — low-key text link style */
.fbz-cb-btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.fbz-cb-btn--ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   MODAL OVERLAY
   ========================================================================== */

.fbz-cb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.fbz-cb-modal-overlay.fbz-cb-modal--visible {
    opacity: 1;
}

/* ==========================================================================
   MODAL
   ========================================================================== */

.fbz-cb-modal {
    background: var(--bg-dark, #191d31);
    border: 1px solid rgba(253, 235, 25, 0.14);
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 660px;
    max-height: 88vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Custom scrollbar to match theme */
    scrollbar-width: thin;
    scrollbar-color: rgba(253, 235, 25, 0.3) transparent;
}
.fbz-cb-modal::-webkit-scrollbar { width: 4px; }
.fbz-cb-modal::-webkit-scrollbar-thumb { background: rgba(253, 235, 25, 0.3); border-radius: 2px; }

.fbz-cb-modal-overlay.fbz-cb-modal--visible .fbz-cb-modal {
    transform: translateY(0);
}

/* ── Modal header ────────────────────────────────────────────────────────── */
.fbz-cb-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
    flex-shrink: 0;
}

.fbz-cb-brand-logo {
    font-family: var(--font-head, 'Nohemi', 'Montserrat', sans-serif);
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: -0.01em;
}
.fbz-cb-brand-logo span {
    color: var(--accent, #fdeb19);
}

.fbz-cb-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.fbz-cb-modal-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.fbz-cb-tabs {
    display: flex;
    gap: 0;
    padding: 16px 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.fbz-cb-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    font-family: var(--font-head, 'Nohemi', 'Montserrat', sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 18px 12px;
    transition: color 0.2s, border-color 0.2s;
    position: relative;
    bottom: -1px;
}
.fbz-cb-tab:hover { color: rgba(255, 255, 255, 0.75); }
.fbz-cb-tab.active {
    color: var(--accent, #fdeb19);
    border-bottom-color: var(--accent, #fdeb19);
}

/* ── Tab panels ──────────────────────────────────────────────────────────── */
.fbz-cb-tab-panel {
    display: none;
    padding: 24px 24px 20px;
    flex: 1;
}
.fbz-cb-tab-panel.active { display: block; }

.fbz-cb-modal-intro {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
}

/* ── Category cards ─────────────────────────────────────────────────────── */
.fbz-cb-categories {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 24px;
}

.fbz-cb-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 16px;
    transition: background 0.2s;
}
.fbz-cb-category:hover { background: rgba(255, 255, 255, 0.05); }

.fbz-cb-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.fbz-cb-cat-name {
    font-family: var(--font-head, 'Nohemi', 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 0.82rem;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fbz-cb-cat-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.5;
    font-family: 'Open Sans', sans-serif;
}

.fbz-cb-always-on {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent, #fdeb19);
    opacity: 0.85;
    letter-spacing: 0.04em;
    white-space: nowrap;
    font-family: 'Open Sans', sans-serif;
}

/* ── Toggle switch ───────────────────────────────────────────────────────── */
.fbz-cb-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}
.fbz-cb-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.fbz-cb-toggle-slider {
    width: 42px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    position: relative;
    transition: background 0.25s ease, border-color 0.25s ease;
    flex-shrink: 0;
}
.fbz-cb-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease;
}
.fbz-cb-toggle input:checked + .fbz-cb-toggle-slider {
    background: var(--accent, #fdeb19);
    border-color: var(--accent, #fdeb19);
}
.fbz-cb-toggle input:checked + .fbz-cb-toggle-slider::after {
    transform: translateX(18px);
    background: #191d31;
}
.fbz-cb-toggle input:focus-visible + .fbz-cb-toggle-slider {
    outline: 2px solid var(--accent, #fdeb19);
    outline-offset: 2px;
}

/* Small toggle variant (used in details tab) */
.fbz-cb-toggle--sm .fbz-cb-toggle-slider {
    width: 34px;
    height: 20px;
}
.fbz-cb-toggle--sm .fbz-cb-toggle-slider::after {
    width: 14px;
    height: 14px;
}
.fbz-cb-toggle--sm input:checked + .fbz-cb-toggle-slider::after {
    transform: translateX(14px);
}

/* ── Modal action buttons row ────────────────────────────────────────────── */
.fbz-cb-modal-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.fbz-cb-modal-actions .fbz-cb-btn { flex: 1; min-width: 100px; }

.fbz-cb-privacy-link {
    text-align: center;
    padding-bottom: 4px;
}
.fbz-cb-privacy-link a,
.fbz-cb-privacy-link-inline {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
    font-family: 'Open Sans', sans-serif;
}
.fbz-cb-privacy-link a:hover,
.fbz-cb-privacy-link-inline:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   DETAILS TAB
   ========================================================================== */

.fbz-cb-details-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.fbz-cb-detail-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
}

.fbz-cb-detail-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.2s;
}
.fbz-cb-detail-group summary:hover { background: rgba(255,255,255,0.04); }
.fbz-cb-detail-group summary::-webkit-details-marker { display: none; }

/* Chevron indicator */
.fbz-cb-detail-group summary::before {
    content: '›';
    font-size: 1rem;
    color: rgba(255,255,255,0.3);
    margin-right: 4px;
    transition: transform 0.2s;
    flex-shrink: 0;
    order: -1;
}
.fbz-cb-detail-group[open] summary::before {
    transform: rotate(90deg);
}

.fbz-cb-det-name {
    font-family: var(--font-head, 'Nohemi', 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex: 1;
}

.fbz-cb-det-body {
    padding: 4px 16px 14px 30px;
}
.fbz-cb-det-body p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.48);
    line-height: 1.5;
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
}

/* Cookie table */
.fbz-cb-cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    font-family: 'Open Sans', sans-serif;
}
.fbz-cb-cookie-table th {
    text-align: left;
    font-weight: 700;
    color: rgba(253, 235, 25, 0.7);
    padding: 6px 8px 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.fbz-cb-cookie-table td {
    color: rgba(255,255,255,0.5);
    padding: 6px 8px 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: top;
}
.fbz-cb-cookie-table tr:last-child td { border-bottom: none; }
.fbz-cb-cookie-table td:first-child { color: rgba(255,255,255,0.75); font-weight: 600; }

/* ==========================================================================
   ABOUT TAB
   ========================================================================== */

.fbz-cb-about-title {
    font-family: var(--font-head, 'Nohemi', 'Montserrat', sans-serif);
    font-weight: 900;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 12px;
}

.fbz-cb-tab-panel[data-panel="about"] p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.58);
    line-height: 1.6;
    margin-bottom: 14px;
    font-family: 'Open Sans', sans-serif;
}

.fbz-cb-about-contact a {
    color: var(--accent, #fdeb19);
    text-decoration: none;
}
.fbz-cb-about-contact a:hover { text-decoration: underline; }

.fbz-cb-compliance-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.fbz-cb-badge {
    background: rgba(253, 235, 25, 0.1);
    border: 1px solid rgba(253, 235, 25, 0.25);
    border-radius: 999px;
    color: rgba(253, 235, 25, 0.85);
    font-family: var(--font-head, 'Nohemi', 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    padding: 4px 12px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 767px) {
    .fbz-cb-bar { padding: 14px 16px 20px; }

    .fbz-cb-bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .fbz-cb-bar-text { align-items: flex-start; }

    .fbz-cb-bar-actions {
        flex-direction: column;
        gap: 8px;
    }
    .fbz-cb-bar-actions .fbz-cb-btn { width: 100%; justify-content: center; }

    .fbz-cb-modal-overlay { padding: 12px; align-items: flex-end; }

    .fbz-cb-modal {
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
    }

    .fbz-cb-tabs { padding: 12px 16px 0; }
    .fbz-cb-tab { padding: 6px 12px 10px; font-size: 0.72rem; }

    .fbz-cb-tab-panel { padding: 18px 16px 16px; }

    .fbz-cb-modal-actions { flex-direction: column; }
    .fbz-cb-modal-actions .fbz-cb-btn { min-width: unset; }
}

@media (max-width: 420px) {
    .fbz-cb-btn { height: 44px; font-size: 0.7rem; }
}