/* ============================================================
   cookie-banner.css — Estilos do banner de cookies
   Localização: public/build/css/cookie-banner.css
   ============================================================ */

/* ===== BANNER PRINCIPAL ===== */
.cookie-banner {
    position: fixed !important;
    bottom: 32px !important;
    left: 32px !important;
    z-index: 9998 !important;
    max-width: 420px !important;
    width: calc(100% - 64px) !important;
    background: #1a1010 !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
    transition: transform 0.4s ease, opacity 0.4s ease !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.cookie-banner.hidden {
    transform: translateY(140%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.cookie-content {
    display: flex;
    align-items: center;
    padding: 24px;
    gap: 0;
}

.cookie-text {
    flex: 1;
    padding-right: 12px;
}

.cookie-text h4 {
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

.cookie-text p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin: 0 0 16px;
}

.cookie-actions {
    display: flex;
    gap: 8px;
}

.cookie-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Nunito', sans-serif;
    border: 2px solid transparent;
}

.cookie-btn--rejeitar {
    background: transparent;
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
}

.cookie-btn--rejeitar:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.cookie-btn--aceitar {
    background: #f5a623;
    border-color: #f5a623;
    color: #1a1a1a;
}

.cookie-btn--aceitar:hover {
    background: #e09010;
    transform: translateY(-1px);
}

/* Ilustração */
.cookie-ilustracao {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-ilustracao img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    mix-blend-mode: screen;
    transition: transform 0.4s ease;
}

.cookie-banner:hover .cookie-ilustracao img {
    transform: rotate(-8deg) scale(1.08);
}

/* ===== ÍCONE FLUTUANTE ===== */
.cookie-icone {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 9997;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1a1010;
    border: 2px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s, box-shadow 0.2s;
    pointer-events: none;
}

.cookie-icone.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.cookie-icone:hover {
    border-color: #f5a623;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    transform: scale(1.1) rotate(-8deg);
}

.cookie-icone img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    mix-blend-mode: screen;
}

/* ===== POPUP DE CONFIRMAÇÃO ===== */
/* Variante padrão: fundo escuro (usada quando o ícone está sobre
   uma zona clara da página, para garantir contraste) */
.cookie-confirm {
    position: fixed;
    bottom: 100px;
    left: 32px;
    z-index: 9999;
    max-width: 320px;
    background: #1a1010;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    padding: 20px 24px;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.cookie-confirm.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.cookie-confirm p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin: 0 0 16px;
}

.cookie-confirm p strong {
    color: #fff;
    font-weight: 800;
}

.cookie-confirm-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.cookie-confirm-btn {
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.cookie-confirm-btn--nao {
    background: transparent;
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
}

.cookie-confirm-btn--nao:hover {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

.cookie-confirm-btn--sim {
    background: #f5a623;
    border-color: #f5a623;
    color: #1a1a1a;
}

.cookie-confirm-btn--sim:hover {
    background: #e09010;
}

/* ===== VARIANTE CLARA ===== */
/* Aplicada via JS (classe .cookie-confirm--claro) quando se deteta
   que o fundo da página, no ponto onde o ícone está, é escuro —
   nesse caso o popup fica em tom claro para manter boa legibilidade. */
.cookie-confirm--claro {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.cookie-confirm--claro p {
    color: rgba(0,0,0,0.65);
}

.cookie-confirm--claro p strong {
    color: #1a1a1a;
}

.cookie-confirm--claro .cookie-confirm-btn--nao {
    border-color: rgba(0,0,0,0.15);
    color: rgba(0,0,0,0.5);
}

.cookie-confirm--claro .cookie-confirm-btn--nao:hover {
    border-color: rgba(0,0,0,0.35);
    color: #1a1a1a;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767.98px) {
    .cookie-banner {
        bottom: 16px;
        left: 16px;
        width: calc(100% - 32px);
        max-width: 100%;
    }

    .cookie-icone {
        bottom: 16px;
        left: 16px;
    }

    .cookie-confirm {
        bottom: 84px;
        left: 16px;
        right: 16px;
        max-width: calc(100% - 32px);
    }
}