/* =========================================================
   Palestras do Evento — frontend
   ========================================================= */

.pe-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2c3e50;
    margin: 1.5em 0;
}

.pe-edicao-header {
    border-bottom: 2px solid #1d3557;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
}

.pe-edicao-title {
    margin: 0;
    color: #1d3557;
    font-size: 1.6em;
    font-weight: 700;
}

/* ---------- Tabs ---------- */
.pe-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 0;
}

.pe-tab {
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    padding: 10px 22px;
    font-size: 1em;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.pe-tab:hover {
    background: #e9eef5;
    color: #1d3557;
}

.pe-tab.is-active {
    background: #1d3557;
    color: #fff;
    border-color: #1d3557;
}

/* ---------- Panels ---------- */
.pe-panels {
    border: 1px solid #e0e0e0;
    border-top: none;
    background: #fff;
    padding: 20px;
    border-radius: 0 0 6px 6px;
}

.pe-panel {
    display: none;
}

.pe-panel.is-active {
    display: block;
    animation: peFade 0.25s ease-in;
}

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

/* ---------- Atividade (accordion) ---------- */
.pe-atividade {
    border: 1px solid #e8ebf0;
    border-radius: 6px;
    margin-bottom: 14px;
    background: #fafbfc;
    overflow: hidden;
}

.pe-atividade-title {
    cursor: pointer;
    padding: 12px 18px;
    font-size: 1.05em;
    font-weight: 600;
    color: #1d3557;
    background: #eef2f7;
    list-style: none;
    user-select: none;
    transition: background 0.15s;
}

.pe-atividade-title::-webkit-details-marker { display: none; }
.pe-atividade-title::before {
    content: "▸";
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.2s;
    color: #457b9d;
}

.pe-atividade[open] > .pe-atividade-title::before {
    transform: rotate(90deg);
}

.pe-atividade-title:hover {
    background: #e2e8f0;
}

.pe-count {
    font-weight: 400;
    color: #888;
    font-size: 0.9em;
    margin-left: 6px;
}

/* ---------- Palestras (lista) ---------- */
.pe-palestras {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.pe-palestra {
    margin: 0;
    padding: 0;
}

.pe-palestrante {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #2c3e50;
    border-bottom: 1px solid #f0f3f6;
    transition: background 0.15s, padding-left 0.15s;
}

.pe-palestra:last-child .pe-palestrante {
    border-bottom: none;
}

.pe-palestrante:hover {
    background: #e7f0fa;
    padding-left: 26px;
    color: #1d3557;
}

.pe-palestrante-nome {
    font-weight: 600;
    color: #1d3557;
    min-width: 200px;
    flex-shrink: 0;
}

.pe-palestra-titulo {
    flex: 1;
    color: #4a5568;
    font-style: italic;
}

.pe-pdf-icon {
    display: inline-block;
    background: #e63946;
    color: #fff;
    padding: 3px 10px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 3px;
    flex-shrink: 0;
}

.pe-no-pdf {
    opacity: 0.55;
    cursor: not-allowed;
}

.pe-no-pdf-icon {
    background: #999;
}

.pe-empty {
    padding: 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    border-radius: 4px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 640px) {
    .pe-palestrante {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .pe-palestrante-nome {
        min-width: 0;
        font-size: 1em;
    }
    .pe-palestra-titulo {
        font-size: 0.9em;
    }
    .pe-tab {
        padding: 8px 14px;
        font-size: 0.95em;
    }
    .pe-panels {
        padding: 12px;
    }
}
