/* ════════════════════════════════════════
   CyberScanner – Cookie Consent
   Fonts: Urbanist (títulos) + Poppins (corpo)
   Cores: #000 + #B3974E
════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@600;700;800&family=Poppins:wght@300;400;500&display=swap');

:root {
    --cc-gold:        #B3974E;
    --cc-gold-light:  #d4b96a;
    --cc-gold-dim:    rgba(179,151,78,0.12);
    --cc-gold-border: rgba(179,151,78,0.28);
    --cc-black:       #0a0a0a;
    --cc-surface:     #141414;
    --cc-surface2:    #1c1c1c;
    --cc-border:      rgba(179,151,78,0.14);
    --cc-text:        #e0d8c8;
    --cc-muted:       #7a7060;
    --cc-radius:      18px;
}

/* ── Overlay ── */
.cc-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 99998;
}
.cc-overlay.active { display: block; }

/* ── Banner ── */
.cc-banner {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(130%);
    width: min(680px, calc(100vw - 32px));
    background: var(--cc-surface);
    border: 1px solid var(--cc-gold-border);
    border-radius: var(--cc-radius);
    padding: 28px 32px 24px;
    z-index: 99999;
    box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(179,151,78,0.05);
    transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1);
    font-family: 'Poppins', sans-serif;
}
.cc-banner.visible {
    transform: translateX(-50%) translateY(0);
}
.cc-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cc-gold-border), transparent);
    border-radius: var(--cc-radius) var(--cc-radius) 0 0;
}

/* ── Topo ── */
.cc-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.cc-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 46px; height: 46px;
    background: var(--cc-gold-dim);
    border: 1px solid var(--cc-gold-border);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.cc-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    margin: 0 0 3px;
    letter-spacing: -0.02em;
}
.cc-sub {
    font-size: 0.72rem;
    color: var(--cc-muted);
    margin: 0;
    font-weight: 300;
}
.cc-sub strong { color: var(--cc-gold); font-weight: 500; }

/* ── Corpo ── */
.cc-body {
    font-size: 0.82rem;
    color: var(--cc-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 300;
}
.cc-body a {
    color: var(--cc-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(179,151,78,0.3);
    transition: color 0.2s, border-color 0.2s;
}
.cc-body a:hover { color: var(--cc-gold-light); border-color: var(--cc-gold-light); }

/* ── Categorias ── */
.cc-categories {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}
.cc-categories.open {
    max-height: 420px;
    opacity: 1;
    margin-bottom: 20px;
}
.cc-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--cc-border);
}
.cc-cat:last-child { border-bottom: none; }
.cc-cat-info { flex: 1; }
.cc-cat-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--cc-text);
    margin-bottom: 2px;
}
.cc-cat-desc {
    display: block;
    font-size: 0.72rem;
    color: var(--cc-muted);
    line-height: 1.5;
    font-weight: 300;
}
.cc-always {
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--cc-gold);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Toggle */
.cc-switch {
    position: relative;
    display: inline-block;
    width: 44px; height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}
.cc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cc-slider {
    position: absolute; inset: 0;
    background: var(--cc-surface2);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 24px;
    transition: background 0.25s, border-color 0.25s;
}
.cc-slider::before {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    left: 3px; top: 3px;
    background: #555;
    border-radius: 50%;
    transition: transform 0.25s, background 0.25s;
}
.cc-switch input:checked + .cc-slider {
    background: var(--cc-gold-dim);
    border-color: var(--cc-gold-border);
}
.cc-switch input:checked + .cc-slider::before {
    transform: translateX(20px);
    background: var(--cc-gold);
}
.cc-switch:focus-within .cc-slider {
    outline: 2px solid var(--cc-gold);
    outline-offset: 2px;
}

/* ── Ações ── */
.cc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}
.cc-btn {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1;
}
.cc-btn--ghost {
    background: transparent;
    color: var(--cc-muted);
    border: 1px solid rgba(255,255,255,0.08);
    margin-right: auto;
}
.cc-btn--ghost:hover { border-color: var(--cc-gold-border); color: var(--cc-gold); }
.cc-btn--outline {
    background: transparent;
    color: var(--cc-text);
    border: 1px solid rgba(255,255,255,0.1);
}
.cc-btn--outline:hover { border-color: var(--cc-gold-border); color: var(--cc-gold); }
.cc-btn--primary {
    background: var(--cc-gold);
    color: #000;
    box-shadow: 0 4px 16px rgba(179,151,78,0.22);
}
.cc-btn--primary:hover { background: var(--cc-gold-light); transform: translateY(-1px); }
.cc-btn--primary:active { transform: scale(0.98); }

/* ── Botão flutuante reabrir ── */
.csck-reopen-wrap {
    position: fixed;
    bottom: 18px;
    left: 18px;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 0;
    font-family: 'Poppins', sans-serif;
    transition: opacity 0.3s, transform 0.3s;
}
.csck-reopen-wrap.cc-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

/* Ícone circular */
.csck-reopen-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cc-surface);
    border: 1px solid var(--cc-gold-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.45);
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.csck-reopen-toggle:hover {
    transform: scale(1.06);
    border-color: var(--cc-gold);
    background: var(--cc-surface2);
}
.csck-reopen-icon {
    width: 22px;
    height: 22px;
    color: var(--cc-gold);
    display: block;
    transition: color 0.2s;
}
.csck-reopen-toggle:hover .csck-reopen-icon {
    color: var(--cc-gold-light);
}

/* Painel expansível */
.csck-reopen-panel {
    display: flex !important;
    align-items: center;
    gap: 12px;
    background: var(--cc-surface);
    border: 1px solid var(--cc-gold-border);
    border-left: none;
    border-radius: 0 30px 30px 0;
    padding: 0 !important;
    margin-left: -24px;
    max-width: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transition: max-width 0.4s cubic-bezier(0.34,1.4,0.64,1), opacity 0.3s ease, padding 0.3s ease;
    white-space: nowrap;
    height: 48px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.45);
    visibility: hidden;
}
.csck-reopen-wrap.open .csck-reopen-panel {
    max-width: 600px !important;
    opacity: 1 !important;
    padding: 0 14px 0 32px !important;
    visibility: visible;
}
.csck-reopen-wrap.open .csck-reopen-toggle {
    border-color: var(--cc-gold);
}

.csck-reopen-link {
    font-size: 0.74rem;
    color: var(--cc-muted);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}
.csck-reopen-link:hover { color: var(--cc-gold); }

.csck-sep {
    color: var(--cc-muted);
    opacity: 0.35;
    font-size: 0.74rem;
}

/* Botão Gerenciar Cookies — estilo outline 100% borda */
.csck-reopen-btn {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--cc-gold);
    background: transparent;
    border: 1px solid var(--cc-gold-border);
    border-radius: 30px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1;
}
.csck-reopen-btn:hover {
    border-color: var(--cc-gold);
    color: var(--cc-gold-light);
    background: var(--cc-gold-dim);
}

/* Mobile */
@media (max-width: 520px) {
    .csck-reopen-wrap.open .csck-reopen-panel {
        max-width: calc(100vw - 90px);
        padding: 0 10px 0 28px;
        gap: 8px;
    }
    .csck-reopen-link { font-size: 0.68rem; }
    .csck-reopen-btn { font-size: 0.62rem; padding: 7px 12px; }
}

/* ── Responsivo ── */
@media (max-width: 520px) {
    .cc-banner { padding: 20px 18px 18px; bottom: 12px; }
    .cc-actions { justify-content: stretch; }
    .cc-btn { flex: 1; text-align: center; }
    .cc-btn--ghost { flex: 0 0 100%; margin-right: 0; }
}
