/* ============================================================
   vl-cookie-consent.css — Cookie Banner LGPD-Compliant
   Instituto Villa-Lobos
   ============================================================ */

/* ── BANNER (Camada 1) ──────────────────────────────────────── */
.vlcc-banner {
    position: fixed;
    bottom: 18px;
    left: 18px;
    right: 18px;
    z-index: 9999990;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 24px;
    background: rgba(5, 14, 7, 0.97);
    border: 1px solid rgba(212, 193, 21, 0.30);
    border-radius: 20px;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font-family: 'Segoe UI', Arial, sans-serif;
    color: rgba(255, 255, 255, 0.82);
    animation: vlcc-slide-up 0.35s ease;
}

@keyframes vlcc-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.vlcc-banner__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.vlcc-banner__text {
    flex: 1;
    min-width: 240px;
}

.vlcc-banner__text strong {
    display: block;
    color: #d4c115;
    font-size: .95rem;
    margin-bottom: 6px;
}

.vlcc-banner__text p {
    margin: 0 0 6px;
    font-size: .84rem;
    line-height: 1.55;
}

.vlcc-banner__text a {
    color: #d4c115;
    font-size: .82rem;
    text-decoration: none;
}

.vlcc-banner__text a:hover { text-decoration: underline; }

/* Botões — LGPD: sem dark pattern. Todos com igual proeminência. */
.vlcc-banner__btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* ── BOTÕES GLOBAIS ─────────────────────────────────────────── */
.vlcc-btn {
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity .2s, transform .15s;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.vlcc-btn:hover { opacity: .85; transform: translateY(-1px); }
.vlcc-btn:active { transform: translateY(0); }

/* Outline: Somente necessários + Personalizar */
.vlcc-btn--outline {
    background: transparent;
    border: 1px solid rgba(212, 193, 21, 0.45);
    color: rgba(255, 255, 255, 0.80);
}

.vlcc-btn--outline:hover {
    border-color: #d4c115;
    color: #d4c115;
}

/* Primary: Aceitar todos — MESMA altura e padding, apenas cor diferente */
.vlcc-btn--primary {
    background: linear-gradient(135deg, #d4c115, #e8d63a);
    border: 1px solid transparent;
    color: #06240d;
}

/* ── OVERLAY ────────────────────────────────────────────────── */
.vlcc-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999995;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: vlcc-fade-in 0.25s ease;
}

@keyframes vlcc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── MODAL (Camada 2) ───────────────────────────────────────── */
.vlcc-modal {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: #080e08;
    border: 1px solid rgba(212, 193, 21, 0.28);
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.60);
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
    animation: vlcc-modal-in 0.3s ease;
}

@keyframes vlcc-modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.vlcc-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.vlcc-modal__header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.vlcc-modal__close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.60);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}

.vlcc-modal__close:hover {
    background: rgba(212, 193, 21, 0.15);
    color: #d4c115;
}

.vlcc-modal__body {
    overflow-y: auto;
    flex: 1;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vlcc-modal__intro {
    margin: 0 0 8px;
    font-size: .83rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.55;
}

.vlcc-modal__intro a { color: #d4c115; text-decoration: none; }
.vlcc-modal__intro a:hover { text-decoration: underline; }

.vlcc-modal__footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ── CATEGORIAS ─────────────────────────────────────────────── */
.vlcc-cat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.vlcc-cat__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
}

.vlcc-cat__icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.vlcc-cat__info {
    flex: 1;
    min-width: 0;
}

.vlcc-cat__info strong {
    display: block;
    font-size: .88rem;
    color: #fff;
    margin-bottom: 4px;
}

.vlcc-cat__info strong em {
    font-style: normal;
    font-size: .75rem;
    color: rgba(212, 193, 21, 0.70);
    font-weight: 400;
}

.vlcc-cat__info p {
    margin: 0 0 6px;
    font-size: .80rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

.vlcc-cat__list {
    margin: 0;
    padding: 0 0 0 14px;
    list-style: disc;
}

.vlcc-cat__list li {
    font-size: .74rem;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.6;
}

/* ── TOGGLE ─────────────────────────────────────────────────── */
.vlcc-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
    margin-top: 2px;
}

.vlcc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.vlcc-toggle__slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    transition: background .25s;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.vlcc-toggle__slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transition: transform .25s, background .25s;
}

.vlcc-toggle input:checked + .vlcc-toggle__slider {
    background: #d4c115;
    border-color: #d4c115;
}

.vlcc-toggle input:checked + .vlcc-toggle__slider::before {
    transform: translateX(20px);
    background: #06240d;
}

.vlcc-toggle input:disabled + .vlcc-toggle__slider {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── BOTÃO DE REVOGAÇÃO ─────────────────────────────────────── */
.vlcc-revoke {
    position: fixed;
    bottom: 18px;
    left: 18px;
    z-index: 9999989;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(5, 14, 7, 0.85);
    border: 1px solid rgba(212, 193, 21, 0.30);
    color: #d4c115;
    font-size: .95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
    transition: border-color .2s, transform .2s;
    backdrop-filter: blur(8px);
}

.vlcc-revoke:hover {
    border-color: #d4c115;
    transform: scale(1.08);
}

/* ── RESPONSIVO ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .vlcc-banner { bottom: 0; left: 0; right: 0; border-radius: 16px 16px 0 0; }
    .vlcc-banner__inner { flex-direction: column; align-items: stretch; }
    .vlcc-banner__btns { flex-direction: column; }
    .vlcc-btn { width: 100%; justify-content: center; text-align: center; }
    .vlcc-modal { max-height: 95vh; border-radius: 20px 20px 0 0; }
    .vlcc-overlay { align-items: flex-end; padding: 0; }
    .vlcc-modal__footer { flex-direction: column; }
    .vlcc-modal__footer .vlcc-btn { width: 100%; justify-content: center; }
}
