/* ═══════════════════════════════════════════════════════════════════════════
   ANE – Aviso de Conteúdo Adulto | CSS Frontend
   Autor: Ane Tecnologia | https://anetecnologia.com.br/
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Overlay principal ────────────────────────────────────────────────────── */
.ane-aviso-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647; /* Maior z-index possível */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    /* Animação de entrada */
    animation: aneFadeIn .4s ease both;
}

/* Oculto após aceitação */
.ane-aviso-overlay.ane-saindo {
    animation: aneFadeOut .45s ease both;
    pointer-events: none;
}

/* ── Blur no conteúdo de fundo ────────────────────────────────────────────── */
.ane-overlay-blur-bg {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(var(--ane-blur));
    -webkit-backdrop-filter: blur(var(--ane-blur));
    z-index: -2;
}

/* ── Camada dim escura ────────────────────────────────────────────────────── */
.ane-overlay-dim {
    position: fixed;
    inset: 0;
    background: var(--ane-overlay-bg);
    opacity: var(--ane-overlay-opacity);
    z-index: -1;
}

/* ── Modal ────────────────────────────────────────────────────────────────── */
.ane-modal {
    position: relative;
    background: var(--ane-modal-bg);
    border: 1px solid var(--ane-modal-border);
    border-radius: var(--ane-modal-radius);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    box-shadow:
        0 0  0  1px rgba(255,255,255,.04),
        0 24px 64px rgba(0,0,0,.6),
        0  8px 24px rgba(0,0,0,.4);
    animation: aneSlideUp .5s cubic-bezier(.22,.68,0,1.2) both;
    animation-delay: .08s;
}

/* ── Imagem de fundo do modal ─────────────────────────────────────────────── */
.ane-modal-imagem-fundo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: var(--ane-modal-img-opacity);
    z-index: 0;
    pointer-events: none;
}

/* ── Conteúdo do modal ────────────────────────────────────────────────────── */
.ane-modal-conteudo {
    position: relative;
    z-index: 1;
    padding: 40px 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    font-family: var(--ane-fonte);
}

/* ── Ícone padrão ─────────────────────────────────────────────────────────── */
.ane-modal-icone {
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    color: var(--ane-subtitulo-cor);
    animation: anePulse 2.5s ease-in-out infinite;
}
.ane-modal-icone svg { width: 100%; height: 100%; }

/* ── Logo personalizado ───────────────────────────────────────────────────── */
.ane-modal-logo {
    max-width: 200px;
    margin-bottom: 22px;
}
.ane-modal-logo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ── Textos ───────────────────────────────────────────────────────────────── */
.ane-modal-textos {
    width: 100%;
}

.ane-modal-subtitulo {
    margin: 0 0 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ane-subtitulo-cor);
    font-family: var(--ane-fonte);
}

.ane-modal-titulo {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ane-titulo-cor);
    font-family: var(--ane-fonte);
    letter-spacing: -.3px;
}

.ane-modal-separador {
    width: 40px;
    height: 1px;
    background: var(--ane-subtitulo-cor);
    margin: 0 auto 18px;
    opacity: .5;
}

.ane-modal-descricao {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--ane-texto-cor);
    font-family: var(--ane-fonte);
}

/* ── Botões ───────────────────────────────────────────────────────────────── */
.ane-modal-botoes {
    width: 100%;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ane-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--ane-fonte);
    transition: background .2s, transform .12s, opacity .2s;
    letter-spacing: .2px;
    -webkit-tap-highlight-color: transparent;
}
.ane-btn:focus-visible {
    outline: 2px solid var(--ane-subtitulo-cor);
    outline-offset: 3px;
}
.ane-btn:active {
    transform: scale(.97);
}

/* Botão aceitar */
.ane-btn-aceitar {
    background: var(--ane-btn-aceitar-bg);
    color: var(--ane-btn-aceitar-txt);
    position: relative;
    overflow: hidden;
}
.ane-btn-aceitar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background .2s;
}
.ane-btn-aceitar:hover {
    background: var(--ane-btn-aceitar-hover);
}
.ane-btn-icone {
    font-size: 16px;
    font-style: normal;
}

/* Botão recusar */
.ane-btn-recusar {
    background: var(--ane-btn-recusar-bg);
    color: var(--ane-btn-recusar-txt);
    border: 1px solid var(--ane-btn-recusar-borda);
    font-weight: 500;
    font-size: 13.5px;
    height: 42px;
}
.ane-btn-recusar:hover {
    opacity: .75;
}

/* ── Rodapé ───────────────────────────────────────────────────────────────── */
.ane-modal-rodape {
    margin-top: 20px;
    font-size: 12px;
    color: var(--ane-texto-cor);
    opacity: .55;
    line-height: 1.6;
    font-family: var(--ane-fonte);
}
.ane-modal-rodape a {
    color: inherit;
    text-decoration: underline;
    opacity: .8;
}
.ane-modal-rodape a:hover {
    opacity: 1;
}

/* ── Animações ────────────────────────────────────────────────────────────── */
@keyframes aneFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes aneFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes aneSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes anePulse {
    0%, 100% { opacity: 1;    transform: scale(1); }
    50%       { opacity: .65; transform: scale(.94); }
}

/* ── Previne scroll no body enquanto o overlay está ativo ─────────────────── */
body.ane-aviso-ativo {
    overflow: hidden;
}

/* ── Responsivo ───────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
    .ane-aviso-overlay { padding: 16px; align-items: flex-end; }
    .ane-modal { max-width: 100%; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
    .ane-modal-conteudo { padding: 28px 22px 24px; }
    .ane-modal-titulo { font-size: 21px; }
    .ane-modal-descricao { font-size: 13.5px; }
    .ane-btn { height: 48px; }
}
