* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0;
    line-height: 1.4;
    background: var(--background);
    color: var(--text);
    overflow-x: hidden;
}

:root {
    --primary: #58c0AA;
    --secondary-1: #91C998;
    --secondary-2: #A8FFDA;
    --secondary-3: #315050;

    --neutral-white: #ffffff;
    --neutral-gray: #545454;
    --neutral-black: #0D0D0D;
    --neutral-cream: #FBF3C4;

    --background: #000000;

    --text: #ffffff;
    --highlight: #a8ffda;
    --border: #a8ffda;

    --gradient-green: linear-gradient(135deg, #73BEAA, #384F51);
    --gradient-gold: linear-gradient(135deg, #CD9D3A, #E9D398, #FBF3C4, #DAB55A, #CD9D3A);
    --gradient-silver: linear-gradient(135deg, #ffffff, #D9D9D9);
    --gradient-dark: linear-gradient(180deg, #393939, #000000);

    --card: #111111;
    --soft: #1b1b1b;
}

.app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(88, 192, 170, 0.18), transparent 30%),
        var(--background);
}

.hero {
    padding: 110px 20px 48px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.9)), url('../assets/renderPalcoPrincipal.jpeg');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(168, 255, 218, 0.1);
    position: relative;
    text-align: center;
}

.hero .hero-logo {
    max-width: 200px;
    margin: 0 auto 16px;
    display: block;
}

.hero h1 {
    margin-top: 10px;
    font-size: 38px;
    line-height: 1.1;
    font-weight: 800;
}

.hero p {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
    font-size: 14px;
}

.search {
    margin-top: 22px;
    background: rgba(168, 255, 218, 0.06);
    border: 1px solid rgba(168, 255, 218, 0.22);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(12px);
}

.search input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    width: 100%;
    font-size: 15px;
}

.section {
    margin-top: 30px;
}

.map-container {
    padding: 0 20px;
}

.map-container img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(168, 255, 218, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.section-header a {
    color: var(--highlight);
    text-decoration: none;
    font-size: 14px;
}

/* Switch Toggle Styles */
.switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid rgba(168, 255, 218, 0.2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--highlight);
    border-color: var(--highlight);
}

input:checked+.slider:before {
    transform: translateX(20px);
    background-color: #000;
}

/* Hide content when collapsed */
.section.collapsed>*:not(.section-header) {
    display: none !important;
}

.carousel {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 0 20px;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.teacher-card {
    min-width: 210px;
    background: var(--gradient-dark);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(168, 255, 218, 0.22);
    position: relative;
}

.teacher-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.teacher-info {
    padding: 16px;
}

.teacher-info h3 {
    font-size: 18px;
    font-weight: 700;
}

.teacher-info p {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.teacher-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--highlight);
}

.categories {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 0 16px;
}

.category {
    background: var(--gradient-green);
    border-radius: 20px;
    padding: 16px 12px;
    border: 1px solid rgba(168, 255, 218, 0.22);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category h3 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.category span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
}

.day-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px 18px;
}

.filter-group {
    padding: 0 20px 10px;
}

.filter-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.stage-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px 18px;
}

.filter-chip {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(168, 255, 218, 0.1);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
}

.filter-chip.active {
    background: var(--highlight);
    color: #000;
    border-color: var(--highlight);
}

.period-chip {
    min-width: 80px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(168, 255, 218, 0.15);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: 0.2s ease;
    cursor: pointer;
}

.period-chip.active {
    background: rgba(168, 255, 218, 0.15);
    border-color: var(--highlight);
}

.period-chip strong {
    font-size: 14px;
    color: white;
}

.period-chip span {
    font-size: 10px;
    color: var(--highlight);
    font-weight: 700;
    text-transform: uppercase;
}

.timeline {
    padding: 0 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 255, 218, 0.22);
    border-radius: 22px;
    padding: 18px;
}

.time {
    min-width: 60px;
    font-size: 20px;
    font-weight: 800;
    color: var(--highlight);
}

.timeline-content h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.5;
}

.timeline-chip {
    display: inline-flex;
    margin-top: 12px;
    background: rgba(168, 255, 218, 0.12);
    color: var(--highlight);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.grid-professors {
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.grid-card {
    background: var(--card);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(168, 255, 218, 0.22);
}

.grid-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.grid-card .content {
    padding: 14px;
}

.grid-card h4 {
    font-size: 15px;
    line-height: 1.3;
}

.grid-card p {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.track-info {
    color: var(--highlight) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px !important;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.session-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px !important;
    font-size: 11px !important;
    font-weight: 600;
    color: white !important;
}

.stage-info {
    background: rgba(168, 255, 218, 0.12);
    color: var(--highlight) !important;
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px !important;
    font-weight: 700;
}

.theme-info {
    margin-top: 12px !important;
    line-height: 1.4;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.card-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 10 / 16;
    overflow: hidden;
}

.grid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.professor-name {
    font-size: 16px !important;
    font-weight: 800;
    margin-bottom: 4px;
}

.stage-info-top {
    font-size: 11px;
    color: var(--highlight);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.session-entry {
    background: rgba(255, 255, 255, 0.04);
    padding: 10px;
    border-radius: 12px;
    border-left: 3px solid var(--highlight);
}

.session-time-row {
    display: flex;
    gap: 10px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.session-title {
    font-size: 12px;
    line-height: 1.4;
    color: white;
    font-weight: 600;
}

.track-info-footer {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
}

.footer {
    background: #000;
    padding: 60px 20px 40px;
    text-align: center;
    border-top: 1px solid rgba(168, 255, 218, 0.1);
    margin-top: 40px;
}

.footer-logo {
    max-width: 140px;
    margin-bottom: 24px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 8px;
}

.footer a {
    color: var(--highlight);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.footer a:hover {
    opacity: 0.8;
}

.floating-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(168, 255, 218, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.floating-header span {
    font-size: 13px;
    font-weight: 700;
    color: var(--highlight);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exhibitor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 20px 30px;
}

.exhibitor-card {
    background: #ffffff;
    border-radius: 15px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.exhibitor-card img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

a.exhibitor-card {
    text-decoration: none;
}

.exhibitor-card.has-link {
    border: 4px solid var(--primary);
    box-shadow: 0 0 12px rgba(88, 192, 170, 0.25);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.exhibitor-card.has-link:active {
    border-color: var(--highlight);
    box-shadow: 0 0 18px rgba(168, 255, 218, 0.35);
}

/* ── Painéis Científicos ── */

.painel-group {
    padding: 0 20px;
    margin-bottom: 28px;
}

.painel-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.painel-category-chip {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid;
}

.painel-category-chip.cat-ensino {
    background: rgba(88, 192, 170, 0.15);
    color: #58c0AA;
    border-color: rgba(88, 192, 170, 0.4);
}

.painel-category-chip.cat-pesquisa {
    background: rgba(145, 201, 152, 0.15);
    color: #91C998;
    border-color: rgba(145, 201, 152, 0.4);
}

.painel-category-chip.cat-revisao {
    background: rgba(168, 255, 218, 0.12);
    color: #A8FFDA;
    border-color: rgba(168, 255, 218, 0.35);
}

.painel-category-chip.cat-relato {
    background: rgba(251, 243, 196, 0.1);
    color: #FBF3C4;
    border-color: rgba(251, 243, 196, 0.3);
}

.painel-category-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
}

.painel-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 255, 218, 0.1);
    border-radius: 16px;
    padding: 14px 14px 14px 18px;
    margin-bottom: 10px;
    border-left-width: 3px;
}

.painel-card.cat-ensino      { border-left-color: #58c0AA; }
.painel-card.cat-pesquisa    { border-left-color: #91C998; }
.painel-card.cat-revisao     { border-left-color: #A8FFDA; }
.painel-card.cat-relato      { border-left-color: #FBF3C4; }

.painel-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.painel-horario {
    font-size: 13px;
    font-weight: 800;
    color: var(--highlight);
}

.painel-sala {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 6px;
}

.painel-nome {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.painel-titulo {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}
