/* ==========================================================================
   Página de um evento (single-evento.php)
   Usa o mesmo cabeçalho azul dos posts (.post-hero, em style.css); aqui ficam
   a etiqueta de situação, o cartão de informações e a coluna de texto.
   Carregado só na página do evento (crea_evento_estilos em functions.php).
   ========================================================================== */

/* ----- Etiqueta de situação, acima do título ----------------------------- */
.evento-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 14px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 201, 36, .45);
    border-radius: 999px;
    background: rgba(255, 201, 36, .12);
    color: #ffc924;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.evento-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.evento-status-hoje {
    border-color: rgba(61, 220, 132, .5);
    background: rgba(61, 220, 132, .12);
    color: #3ddc84;
}

.evento-status-hoje::before {
    animation: evento-pulso 1.6s ease-in-out infinite;
}

.evento-status-encerrado {
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .7);
}

@keyframes evento-pulso {
    50% { opacity: .25; }
}

/* ----- Corpo: texto + cartão lateral, subindo sobre o azul ---------------- */
.evento-secao {
    padding-bottom: 72px;
}

.evento-corpo {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
    max-width: 1180px;
    margin: -58px auto 0;
    padding: 0 60px;
}

/* No HTML o cartão vem antes do texto (no celular aparece primeiro); no desktop vai para a direita */
.evento-info {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 24px;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(6, 30, 60, .16);
}

.evento-texto {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding: 40px 48px 36px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(6, 30, 60, .10);
    color: #2b3a4f;
    font-size: 16.5px;
    line-height: 1.75;
}

/* ----- Topo do cartão: data grande e contagem ----------------------------- */
.evento-info-topo {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: linear-gradient(150deg, #0C6AD0 0%, #06366A 100%);
    color: #fff;
}

.evento-info-data {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 92px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    font-family: Poppins, sans-serif;
    line-height: 1;
}

.evento-info-dia {
    font-size: 36px;
    font-weight: 800;
}

.evento-info-mes {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.evento-info-ano {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
}

.evento-contagem {
    margin: 0;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    line-height: 1.35;
    color: rgba(255, 255, 255, .85);
}

.evento-contagem strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #ffc924;
}

.evento-contagem-hoje strong {
    color: #3ddc84;
}

.evento-contagem-encerrado {
    font-size: 14px;
}

/* ----- Detalhes (data, horário, local, contato) --------------------------- */
.evento-detalhes {
    margin: 0;
    padding: 8px 24px;
}

.evento-detalhe {
    padding: 14px 0;
    border-bottom: 1px solid #edf1f6;
}

.evento-detalhe:last-child {
    border-bottom: 0;
}

.evento-detalhe dt {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    color: #6b7a90;
    font-family: Poppins, sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.evento-detalhe dt i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e8f1fc;
    color: #0C6AD0;
    font-size: 12px;
}

.evento-detalhe dd {
    margin: 0 0 0 36px;
    color: #10305c;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.evento-detalhe dd::first-letter {
    text-transform: uppercase;
}

.evento-detalhe dd a {
    color: #0C6AD0;
}

/* ----- Botões ------------------------------------------------------------- */
.evento-acoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 6px 24px 24px;
}

.evento-botao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 16px;
    border: 1.5px solid #0C6AD0;
    border-radius: 8px;
    background: #fff;
    color: #0C6AD0;
    font-family: Poppins, sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.evento-botao:hover,
.evento-botao:focus-visible {
    background: #0C6AD0;
    color: #fff;
    text-decoration: none;
}

.evento-botao-principal {
    border-color: #ffc924;
    background: #ffc924;
    color: #10305c;
    box-shadow: 0 8px 20px rgba(255, 201, 36, .35);
}

.evento-botao-principal:hover,
.evento-botao-principal:focus-visible {
    border-color: #ffb800;
    background: #ffb800;
    color: #10305c;
    transform: translateY(-1px);
}

.evento-botao-discreto {
    border-color: #dfe6ef;
    color: #3b4b61;
}

.evento-botao-discreto i {
    color: #25d366;
}

.evento-botao-discreto:hover,
.evento-botao-discreto:focus-visible {
    border-color: #25d366;
    background: #f1fcf5;
    color: #10305c;
}

/* ----- Texto do evento ---------------------------------------------------- */
.evento-texto-titulo {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 12px;
    color: #10305c;
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.evento-texto-titulo::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: #ffc924;
}

.evento-texto p {
    margin: 0 0 1.1em;
}

.evento-texto a {
    color: #0C6AD0;
    overflow-wrap: anywhere;
}

.evento-texto img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.evento-figura {
    margin: 0 0 28px;
}

.evento-figura img {
    width: 100%;
}

/* ----- Próximos eventos --------------------------------------------------- */
.evento-proximos {
    max-width: 1180px;
    margin: 48px auto 0;
    padding: 0 60px;
}

.evento-proximos-topo {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.evento-proximos-topo h2 {
    margin: 0;
    color: #10305c;
    font-family: Poppins, sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.evento-proximos-topo a {
    color: #0C6AD0;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.evento-proximos-lista {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* ----- Tablet e celular: uma coluna, cartão antes do texto ---------------- */
@media (max-width: 991.98px) {
    .evento-corpo {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin-top: -48px;
        padding: 0 16px;
    }

    .evento-info,
    .evento-texto {
        grid-column: 1;
        grid-row: auto;
    }

    .evento-info {
        position: static;
    }

    .evento-texto {
        padding: 28px 22px 24px;
        font-size: 16px;
    }

    .evento-proximos {
        padding: 0 16px;
    }

    .evento-proximos-lista {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .evento-status-hoje::before {
        animation: none;
    }

    .evento-botao {
        transition: none;
    }
}
