/* =========================================================
   CONGRESSO — estilos complementares
   Usa a mesma paleta do style.css principal:
   teal #2c7a7b | verde #4CAF50 | teal claro #e0f2f1 | cinza #f9f9f9
   Anexe este arquivo DEPOIS do style.css.
========================================================= */

/* ---------- HERO ---------- */
.cong-hero {
    position: relative;
    padding: 150px 0 90px;
    background: linear-gradient(120deg, #2c7a7b, #4CAF50);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.cong-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 150, 170, 0.35),
        rgba(0, 180, 160, 0.15)
    );
}

.cong-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cong-hero .tag-date {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 30px;
    font-size: .85rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.cong-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    max-width: 760px;
    text-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.cong-hero-sub {
    font-size: 1.05rem;
    max-width: 640px;
    opacity: .95;
    line-height: 1.6;
}

.cong-hero + .wave {
    margin-top: -60px;
}

.cong-hero + .wave .wave-path {
    fill: #fff;
}

/* ---------- LISTA / ABAS ---------- */
.cong-lista {
    padding: 30px 0 90px;
    background: #fff;
    position: relative;
    z-index: 2;
    scroll-margin-top: 90px;
}

.cong-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.cong-tab {
    background: #f9f9f9;
    border: 2px solid transparent;
    color: #444;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cong-tab span {
    font-size: .75rem;
    font-weight: 400;
    color: #888;
    background: #eee;
    padding: 2px 8px;
    border-radius: 12px;
}

.cong-tab:hover {
    border-color: #e0f2f1;
}

.cong-tab.active {
    background: #2c7a7b;
    color: #fff;
    border-color: #2c7a7b;
}

.cong-tab.active span {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ---------- PAINÉIS ---------- */
.cong-painel {
    display: none;
    animation: fadeIn .4s ease;
}

.cong-painel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cong-capa {
    max-width: 700px;
    margin: 0 auto 50px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.cong-capa img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.cong-subtitulo {
    font-size: 1.3rem;
    color: #2c7a7b;
    margin: 45px 0 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0f2f1;
}

/* ---------- PALESTRANTES ---------- */
.cong-palestrantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.cong-palestrante {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform .3s ease;
}

.cong-palestrante:hover {
    transform: translateY(-5px) scale(1.03);
}

.cong-palestrante img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- SOBRE O CONGRESSO (galeria clicável) ---------- */
.cong-sobre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.cong-sobre-grid a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.cong-sobre-grid img {
    width: 100%;
    display: block;
    transition: transform .4s ease;
}

.cong-sobre-grid a:hover img {
    transform: scale(1.06);
}

/* ---------- VÍDEOS DO CONGRESSO ---------- */
.cong-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.cong-video {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #f9f9f9;
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    color: #222;
    transition: 0.3s;
}

.cong-video:hover {
    background: #e0f2f1;
    transform: translateY(-4px);
}

.cong-video-play {
    width: 42px;
    height: 42px;
    background: #2c7a7b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
}

.cong-video p {
    font-size: .88rem;
    line-height: 1.5;
    font-weight: 600;
}

/* ---------- MINI VÍDEOS (sobre os palestrantes) ---------- */
.cong-mini-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.cong-mini-videos-grid .cong-video {
    padding: 10px;
    gap: 8px;
}

.cong-mini-videos-grid .cong-video-thumb .cong-video-play {
    width: 34px;
    height: 34px;
    font-size: .7rem;
}

.cong-mini-videos-grid .cong-video p {
    font-size: .78rem;
    text-align: center;
}

/* ---------- ENTREVISTAS ---------- */
.cong-entrevistas-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cong-entrevista {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f9f9f9;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #222;
    transition: 0.3s;
}

.cong-entrevista i {
    color: #4CAF50;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cong-entrevista:hover {
    background: #e0f2f1;
}

/* ---------- DIAS / GRAVAÇÕES ---------- */
.cong-dias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.cong-dia-card {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 26px;
    text-align: center;
}

.cong-dia-card i {
    font-size: 1.8rem;
    color: #2c7a7b;
    margin-bottom: 10px;
}

.cong-dia-card h3 {
    color: #222;
    margin-bottom: 6px;
    font-size: 1rem;
}

.cong-dia-card p {
    font-size: .85rem;
    color: #666;
}

/* Cards de gravação que agora são links (III Congresso) */
a.cong-dia-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: 0.3s;
}

a.cong-dia-card:hover {
    background: #e0f2f1;
    transform: translateY(-4px);
}

/* ---------- TEMAS ABORDADOS (placeholder) ---------- */
.cong-temas-placeholder {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f9f9f9;
    border: 2px dashed #e0f2f1;
    border-radius: 12px;
    padding: 20px 22px;
    color: #666;
    font-size: .92rem;
    margin-bottom: 10px;
}

.cong-temas-placeholder i {
    font-size: 1.3rem;
    color: #2c7a7b;
    flex-shrink: 0;
}

/* Quando os temas forem inseridos, um formato simples de "chips":
   <div class="cong-temas-lista">
       <span class="cong-tema-chip">Nome do tema</span>
   </div> */
.cong-temas-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cong-tema-chip {
    display: inline-flex;
    align-items: center;
    background: #e0f2f1;
    color: #2c7a7b;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
}

/* ---------- FOTOS DO EVENTO (placeholders) ---------- */
.cong-fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.cong-foto-placeholder {
    aspect-ratio: 4 / 3;
    border: 2px dashed #e0f2f1;
    border-radius: 12px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 14px;
    color: #666;
    transition: 0.3s;
}

.cong-foto-placeholder:hover {
    border-color: #2c7a7b;
    color: #2c7a7b;
}

.cong-foto-placeholder i {
    font-size: 1.7rem;
    color: #4CAF50;
}

.cong-foto-placeholder span {
    font-size: .82rem;
    line-height: 1.4;
}

.cong-foto-item {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform .3s ease;
}

.cong-foto-item:hover {
    transform: translateY(-4px);
}

.cong-foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 768px) {

    .cong-hero {
        padding: 120px 0 70px;
    }

    .cong-hero h1 {
        font-size: 1.5rem;
    }

    .cong-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .cong-tab {
        justify-content: center;
    }

    .cong-palestrantes-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
    }

    .cong-subtitulo {
        font-size: 1.1rem;
        margin: 32px 0 16px;
    }
}

/* =========================================================
   FOTOS CLICÁVEIS (lightbox) e VÍDEOS EMBUTIDOS (modal)
   ========================================================= */

/* Palestrantes agora abrem um lightbox em vez de não fazer nada */
.cong-palestrante-clicavel {
    cursor: zoom-in;
}

/* Botões de vídeo/dia precisam resetar a aparência padrão de <button> */
button.cong-video,
button.cong-mini-video,
button.cong-dia-card {
    border: none;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

/* Miniatura real do YouTube nos vídeos do Congresso (antes só tinha o círculo de play) */
.cong-video-thumb {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #ddd;
}

.cong-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mesmo comportamento visual do <img>, mas pro <video> dos mini-vídeos locais
   (mostra o primeiro frame do próprio arquivo como miniatura real) */
.cong-video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* o clique é tratado pelo <button> pai */
}

.cong-video-thumb .cong-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

/* Cards de "Gravações Completas" ainda sem vídeo cadastrado (data-yt="") */
button.cong-dia-card[data-yt=""] {
    cursor: default;
    opacity: .65;
}

button.cong-dia-card[data-yt=""]:hover {
    background: #f9f9f9;
    transform: none;
}

/* ---------- LIGHTBOX DE FOTOS ---------- */
.cong-lightbox,
.cong-video-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 20, .92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cong-lightbox[hidden],
.cong-video-modal[hidden] {
    display: none;
}

.cong-lightbox-img {
    max-width: 88vw;
    max-height: 82vh;
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(0,0,0,.5);
}

.cong-lightbox-close,
.cong-video-modal-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2c7a7b;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.4);
    font-size: 1.15rem;
    cursor: pointer;
    transition: 0.3s;
}

.cong-lightbox-close:hover,
.cong-video-modal-close:hover {
    background: #4CAF50;
    transform: scale(1.08);
}

.cong-lightbox-prev,
.cong-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #2c7a7b;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.4);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.cong-lightbox-prev { left: 18px; }
.cong-lightbox-next { right: 18px; }

.cong-lightbox-prev:hover,
.cong-lightbox-next:hover {
    background: #4CAF50;
    transform: translateY(-50%) scale(1.08);
}

.cong-lightbox-count {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: .82rem;
    background: rgba(255,255,255,.12);
    padding: 5px 16px;
    border-radius: 20px;
}

/* ---------- MODAL DE VÍDEO ---------- */
.cong-video-modal-body {
    width: min(900px, 92vw);
    aspect-ratio: 16 / 9;
}

.cong-video-modal-body iframe,
.cong-video-modal-body video {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: #000;
}

@media (max-width: 640px) {
    .cong-lightbox-prev,
    .cong-lightbox-next {
        width: 46px;
        height: 46px;
        font-size: 1.05rem;
    }

    .cong-lightbox-close,
    .cong-video-modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
}

/* =========================================================
   AJUSTES: espaço reservado (vídeo/foto) + descrição abaixo
   ========================================================= */

/* Miniatura ainda sem imagem real (ícone no lugar da miniatura do YouTube) */
.cong-video-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border: 2px dashed #e0f2f1;
}

.cong-video-thumb-placeholder i {
    font-size: 1.8rem;
    color: #2c7a7b;
    position: static;
    transform: none;
}

/* Cards de "Gravações Completas" e das novas entrevistas em vídeo ainda
   sem data-yt cadastrado ficam com aparência de "aguardando conteúdo" */
button.cong-video[data-yt=""] {
    cursor: default;
}

button.cong-video[data-yt=""]:hover {
    background: #f9f9f9;
    transform: none;
}

/* Card de foto: espaço reservado em cima + legenda separada embaixo */
.cong-foto-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cong-foto-card .cong-foto-placeholder {
    margin: 0;
}

.cong-foto-legenda {
    margin: 0;
    font-size: .85rem;
    color: #666;
    text-align: center;
}

/* =========================================================
   BOTÕES DE ACESSO NO FINAL DA PÁGINA
========================================================= */
.cong-tabs-rodape {
    margin-top: 60px;
    margin-bottom: 0;
}
