/* Estilo Independente para a Página de Enquetes */
:root {
    --primary: #004a99;
    --accent: #f39c12;
    --bg: #f4f7f9;
    --text: #333;
    --success: #27ae60;
    --danger: #c0392b;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header padrão */
.download-hero {
    background: var(--primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.btn-back {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 15px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-back:hover { background: rgba(255,255,255,0.1); }
.hero-text h1 { margin-top: 20px; font-size: 2.5rem; }

/* Seções */
.active-poll-section, .past-polls-section { margin: 50px 0; }
.section-label { margin-bottom: 20px; color: var(--primary); border-bottom: 2px solid #ddd; padding-bottom: 10px; }

/* Card Enquete em Destaque */
.poll-card-featured {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-top: 6px solid var(--accent);
}

.poll-status {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--success);
    background: #e8f8f0;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.status-closed {
    color: var(--danger);
    background: #fdeaea;
}

/* Container Responsivo para iFrames */
.iframe-container {
    position: relative;
    width: 100%;
    min-height: 450px; /* Altura ideal padrão para enquetes de multipla escolha */
    margin-bottom: 20px;
    border: none;
}

.iframe-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 8px;
}

.poll-disclaimer {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    margin: 0;
    text-align: center;
}

/* Grid de Enquetes Passadas */
.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.poll-card-past {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    border-left: 4px solid #ccc;
}

.poll-card-past h3 { margin: 10px 0 5px 0; font-size: 1.1rem; color: var(--primary); }
.poll-desc { margin: 0 0 15px 0; font-size: 0.85rem; color: #666; }

/* Resumo de resultados antigos */
.result-summary {
    background: var(--bg);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
}

.result-winner {
    font-weight: bold;
    color: #333;
}

/* Rodapé */
.main-footer { text-align: center; padding: 40px; color: #888; font-size: 0.9rem; }

/* Regras de Animação (Padrão mantido) */
.animate-hidden { opacity: 0; transform: translateY(20px); transition: 0.6s; }
.animate-active { opacity: 1; transform: translateY(0); }

/* Otimização Mobile */
@media screen and (max-width: 600px) {
    .poll-card-featured { padding: 15px; }
    .iframe-container, .iframe-container iframe { min-height: 500px; height: 500px; } /* Dá mais espaço vertical no mobile */
}