/* --- SKELETON LOADING ANIMATION --- */
@keyframes pulse {
    0% { background-color: #E2E2E2; }
    50% { background-color: #F0F0F0; }
    100% { background-color: #E2E2E2; }
}

.loading .skeleton {
    animation: pulse 1.5s infinite ease-in-out;
    border-radius: 4px;
}

.loading .skeleton-text {
    height: 1.2rem;
    margin-bottom: 0.5rem;
    width: 100%;
    display: inline-block;
}

.loading .skeleton-title { height: 2.5rem; width: 80%; }
.loading .skeleton-img { width: 100%; height: 100%; border-radius: 1.5rem; min-height: 500px; }
.loading .skeleton-btn { background-color: #E2E2E2 !important; border: none; color: transparent; pointer-events: none; }

/* Oculta os valores reais enquanto carrega */
.loading .meta-value, .loading h1, .loading .evento-descricao { color: transparent; }

/* --- BASE LAYOUT --- */
.evento-single-page {
    background-color: #F8F8FA;
    padding-bottom: 4rem;
    min-height: 80vh;
}

.top-bar {
    padding: 2rem 0 1rem;
}

.btn-voltar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid #CCC;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: var(--fw-bold);
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-voltar:hover { background-color: #EAE7E5; }

/* --- GRID DO EVENTO --- */
.evento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

/* Coluna Esquerda: Imagem */
.evento-imagem-col {
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.evento-imagem-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Coluna Direita: Cards */
.evento-info-col {
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.evento-header-card {
    background-color: var(--primary-color);
    padding: 2.5rem;
    color: var(--white-color);
}

.evento-header-card h1 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: var(--fw-bold);
    margin-bottom: 2rem;
    line-height: 1.1;
    text-align: center;
}

.evento-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    padding-left: 2rem;
}

.meta-label {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
    font-weight: var(--fw-bold);
}

.meta-value {
    font-size: 1rem;
    font-weight: var(--fw-regular);
}

.evento-body-card {
    background-color: var(--white-color);
    padding: 2.5rem;
    flex: 1; /* Preenche o resto do espaço */
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 1rem;
    font-weight: var(--fw-bold);
    text-align: center;
}

.evento-descricao {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    text-align: center;
}

/* Estilo para as tags que vierem do WYSIWYG do WP */
.evento-descricao p { margin-bottom: 1rem; }

.tag-title {
    text-align: center;
    position: relative;
    margin-bottom: 1.5rem;
}

.tag-title span {
    border: 1px solid #CCC;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 1.25rem;
    background: var(--white-color);
    position: relative;
    z-index: 1;
    color: #555;
}

.palestrantes-list {
    list-style: none;
    margin-bottom: 3rem;
}

.palestrantes-list li {
    color: #555;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-align: center;
    font-weight: var(--fw-regular);
    letter-spacing: 0.1rem;
}

.btn-comprar {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 1rem;
    border-radius: 999px;
    font-weight: var(--fw-bold);
    font-size: 1.25rem;
    margin-top: auto; /* Empurra pro final do card */
    transition: background-color 0.3s;
}

.btn-comprar:hover { background-color: #8C8AC0; }

#evento-erro h2 {
    color: #555;
    font-size: 2.5rem;
}

#evento-erro p {
    color: #555;
    font-size: 1.5rem;
    line-height: 2.6;
}

#evento-erro a {
    color: #555;
    font-size: 1.25rem;
    text-decoration: underline;
}

/* --- RESPONSIVO --- */
@media (max-width: 900px) {
    .evento-grid {
        grid-template-columns: 1fr; /* Passa para 1 coluna */
    }
    
    .evento-imagem-col img {
        max-height: 500px; /* Evita que a imagem fique gigante no mobile */
    }

    .meta-item {
        padding-left: 0;
    }
}