/* ===================================================================
   Evento — pagina publica de apresentacoes (/eventos/<slug>/apresentacoes)
   Cada inscricao e um "slide" no mesmo desenho do PPT da sessao de pitches.
   Fontes (Fraunces / IBM Plex) vem do @import de evento.css.
   =================================================================== */

.evento-apresentacoes {
    --ink: #0a0d14;
    --surface: #131826;
    --surface-2: #1a2030;
    --border: #262c3c;
    --text: #f0eee5;
    --text-soft: #b3b5bf;
    --text-muted: #7a7e8b;
    --gold: #d4a456;
    --gold-soft: #e6c285;
    --paper: #f0eee5;
    --eixo: var(--gold);

    font-family: 'IBM Plex Sans', sans-serif;
    background: var(--ink);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body:has(.evento-apresentacoes) { background: #0a0d14 !important; margin: 0; }
/* CSS global justifica h2/p no mobile; aqui o texto e corrido */
.evento-apresentacoes h1,
.evento-apresentacoes h2,
.evento-apresentacoes p,
.evento-apresentacoes dd { text-align: left; }
body:has(.evento-apresentacoes) .site-navigation,
body:has(.evento-apresentacoes) .menu-overlay,
body:has(.evento-apresentacoes) .mobile-menu-toggle { display: none !important; }

/* Paleta por eixo: indice na lista ordenada de eixos (nunca cor crua do banco) */
.evento-apresentacoes .eixo-0 { --eixo: #d4a456; }
.evento-apresentacoes .eixo-1 { --eixo: #4fb3e8; }
.evento-apresentacoes .eixo-2 { --eixo: #6fc89a; }
.evento-apresentacoes .eixo-3 { --eixo: #e9829f; }
.evento-apresentacoes .eixo-4 { --eixo: #a68cf0; }
.evento-apresentacoes .eixo-5 { --eixo: #ef8a5b; }

.apres-shell { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }

/* ---------- cabecalho ---------- */
.apres-hero {
    position: relative;
    padding: 2.5rem 0 3rem;
    background:
        radial-gradient(ellipse 70% 60% at 15% 0%, rgba(212, 164, 86, 0.16) 0%, transparent 60%),
        linear-gradient(180deg, #061829 0%, var(--ink) 100%);
    border-bottom: 1px solid var(--border);
}
.apres-voltar {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--text-soft); text-decoration: none !important;
}
.apres-voltar:hover { color: var(--gold-soft); }
.apres-eyebrow {
    display: flex; align-items: center; gap: 0.7rem;
    margin: 2.5rem 0 0.75rem;
    font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold-soft);
}
.apres-eyebrow .eyebrow-rule { width: 28px; height: 1px; background: var(--gold-soft); display: inline-block; }
.apres-hero h1 {
    font-family: 'Fraunces', Georgia, serif; font-weight: 600;
    font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02;
    letter-spacing: -0.02em; margin: 0 0 1rem; color: var(--text); text-align: left;
}
.apres-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 0; color: var(--text-soft); font-size: 0.95rem; }
.apres-meta span + span::before { content: '·'; margin-right: 1.5rem; color: var(--text-muted); }

.apres-filtros { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.apres-filtro {
    font: 500 0.8rem 'IBM Plex Sans', sans-serif;
    padding: 0.45rem 0.95rem; border-radius: 999px; cursor: pointer;
    background: transparent; color: var(--text-soft);
    border: 1px solid var(--border); transition: all 0.2s ease;
}
.apres-filtro:hover { color: var(--text); border-color: var(--eixo); }
.apres-filtro.is-active { background: var(--eixo); border-color: var(--eixo); color: var(--ink); }

/* ---------- slides ---------- */
.apres-lista { padding-top: 3rem; padding-bottom: 4rem; display: grid; gap: 2.5rem; }
.apres-vazio { color: var(--text-soft); text-align: center; padding: 4rem 0; }

.apres-slide {
    display: grid;
    grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
    gap: 2.5rem;
    min-height: min(680px, calc((100vw - 4rem) * 0.5625));
    padding: 2.25rem 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--eixo);
    border-radius: 14px;
    scroll-margin-top: 1.5rem;
}
.apres-slide[hidden] { display: none !important; }

.apres-col-media { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.apres-media {
    aspect-ratio: 4 / 3.3; max-width: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2); border-radius: 10px; overflow: hidden; padding: 0.9rem;
}
.apres-media img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.apres-media img.apres-avatar-grande { width: 68%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.apres-sigla {
    font-family: 'Fraunces', Georgia, serif; font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 3.2rem); color: var(--eixo);
    text-align: center; overflow-wrap: anywhere;
}

.apres-pessoa { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.apres-avatar {
    flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
}
.apres-iniciais {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--eixo); color: var(--ink); font-weight: 700; font-size: 1.5rem;
}
.apres-nome { margin: 0; font-size: 1.2rem; font-weight: 600; color: var(--text); line-height: 1.25; }
.apres-org { margin: 0.3rem 0 0; font-size: 0.9rem; color: var(--eixo); line-height: 1.35; overflow-wrap: anywhere; }

.apres-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: auto 0 0; }
.apres-links a {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.5rem 0.9rem; border-radius: 8px;
    font-size: 0.85rem; font-weight: 500; color: var(--text) !important;
    border: 1px solid var(--border); text-decoration: none !important;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.apres-links a:hover { border-color: var(--eixo); color: var(--eixo) !important; }

.apres-col-texto { min-width: 0; display: flex; flex-direction: column; }
.apres-topo {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem;
}
.apres-num {
    font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-muted);
}
.apres-pill {
    font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-soft);
    padding: 0.35rem 0.85rem; border: 1px solid var(--eixo); border-radius: 8px;
}
.apres-pill strong { color: var(--eixo); font-weight: 600; }
.apres-pill-sep { color: var(--text-muted); margin: 0 0.25rem; }

.apres-titulo {
    font-family: 'IBM Plex Sans', sans-serif; font-weight: 700;
    font-size: clamp(1.35rem, 2.3vw, 1.95rem); line-height: 1.2;
    margin: 0; color: var(--text); overflow-wrap: anywhere;
}
.apres-subtitulo { margin: 0.6rem 0 0; font-style: italic; color: var(--gold-soft); font-size: 1.02rem; line-height: 1.4; }
.apres-barra { display: block; width: 64px; height: 3px; background: var(--eixo); margin: 1.1rem 0 1.25rem; border-radius: 2px; }
.apres-descricao {
    margin: 0 0 0.9rem; font-size: 1.02rem; line-height: 1.62; color: var(--text);
    white-space: pre-line; overflow-wrap: anywhere;
}
.apres-descricao strong { color: var(--eixo); font-weight: 600; }

.apres-detalhes { margin: auto 0 0; padding-top: 1rem; display: grid; gap: 0.8rem; }
.apres-detalhes dt {
    font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.14em; color: var(--eixo); margin-bottom: 0.2rem;
}
.apres-detalhes dd { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--text-soft); overflow-wrap: anywhere; }

.evento-apresentacoes .evento-footer { border-top: 1px solid var(--border); }
.evento-apresentacoes .footer-mono { text-decoration: none; }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
    .apres-shell { padding: 0 1rem; }
    .apres-slide { grid-template-columns: 1fr; gap: 1.5rem; min-height: 0; padding: 1.5rem 1.25rem; }
    .apres-media { aspect-ratio: 16 / 10; }
    .apres-detalhes { margin-top: 0.5rem; }
    .apres-links { margin-top: 0; }
}
