/* Premiação — UI de votação (shell = site.css) */
:root {
    --cor-primaria: #0f2236;
    --cor-primaria-hover: #1a334d;
    --cor-sucesso: #e8b21c;
    --cor-sucesso-hover: #f3c43d;
    --cor-fundo: #f5f7f9;
    --cor-fundo-branco: #ffffff;
    --cor-fundo-claro: #f0f3f6;
    --cor-fundo-escuro: #0f2236;
    --cor-fundo-ticker: #0f2236;
    --cor-texto-principal: #0f2236;
    --cor-texto-secundario: rgba(15, 34, 54, 0.72);
    --cor-texto-branco: #ffffff;
    --cor-texto-footer: rgba(255, 255, 255, 0.7);
    --cor-sombra: rgba(15, 34, 54, 0.12);
    --cor-sombra-leve: rgba(15, 34, 54, 0.08);
    --cor-sombra-sucesso: rgba(232, 178, 28, 0.35);
}

body.page-premiacao {
    background-color: var(--cor-fundo);
}

.container {
    width: 90%;
    max-width: 1160px;
    margin: 0 auto;
}

/* --- FAIXA DE NOTÍCIAS (TICKER) --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden; 
    background-color: var(--cor-fundo-ticker);
    color: var(--cor-texto-branco);
    padding: 10px 20px;
    white-space: nowrap; 
    position: relative;
    z-index: 40; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    text-align: center;
}

.ticker {
    transition: opacity 0.4s ease-in-out;
    opacity: 1;
    width: 100%;
}

@media (max-width: 768px) {
    .ticker-wrap {
        font-size: 0.85rem;
    }
}


/* --- CONTEÚDO PRINCIPAL (INDEX) --- */
.main-content {
    padding: 40px 0;
}

/* --- ESTILOS ESPECÍFICOS DA PÁGINA DE CIDADE --- */
#votacao-cidade.main-content {
    background-color: var(--cor-fundo-branco);
}

.main-content h1 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--cor-fundo-escuro);
    margin-bottom: 15px;
    text-transform: uppercase;
}
 
#votacao-cidade.main-content h1 {
     margin-bottom: 30px;
}
 
.main-content h2 {
    text-align: center;
    font-size: 1.3rem;
    color: var(--cor-texto-secundario);
    margin-bottom: 30px;
    font-weight: 400;
}

.grid-candidatos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

/* --- Card da Cidade --- */
.caixa-candidato {
    background-color: var(--cor-fundo-branco);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--cor-sombra-leve);
    padding: 0; 
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

.caixa-candidato:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px var(--cor-sombra);
}

.caixa-candidato .foto {
    width: 100%;
    height: 120px; 
    background-color: #e9ecef;
    margin: 0; 
    border: 0; 
    box-shadow: none; 
    object-fit: cover;
    border-radius: 0; 
    transition: transform 0.3s ease;
}

.caixa-candidato:hover .foto {
    transform: scale(1.05);
}

.caixa-candidato-conteudo {
    padding: 15px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px; 
    flex-grow: 1; 
}

.caixa-candidato .nome {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cor-texto-principal);
    min-height: 40px;    
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Botão "Confirma" (Home) --- */
.btn-escolher {
    background-color: var(--cor-sucesso);
    color: var(--cor-texto-branco);
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
 
.btn-escolher:hover {
    background-color: var(--cor-sucesso-hover);
}

.btn-escolher .btn-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.btn-escolher .btn-braille {
    color: #0f2236;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
}
.btn-escolher {
    color: #0f2236;
}
.btn-escolher .btn-text {
    color: #0f2236;
}
 
/* --- Centraliza o conteúdo da seção Regulamento --- */
#regulamento .container {
    text-align: center;
}

/* --- Botão de Regulamento --- */
.btn-regulamento {
    display: inline-block; 
    background-color: var(--cor-primaria);
    color: var(--cor-texto-branco);
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 20px; 
}
 
.btn-regulamento:hover {
    background-color: var(--cor-primaria-hover);
}


/* --- Wrapper Responsivo para Vídeo (Usado na Index e Cidades) --- */
.video-responsive-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* Proporção 16:9 */
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--cor-sombra);
    margin-top: 20px; 
    background-color: #eee;
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
 
/* --- Wrapper do Botão de Votação (Página Cidade) --- */
.vote-button-wrapper {
    text-align: center;
    padding: 40px 0;
}
 
/* --- Botão Principal "Vote Agora" (Página Cidade) --- */
.btn-vote-external {
    display: inline-flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 4px; 

    background-color: var(--cor-sucesso); 
    color: var(--cor-texto-branco);
    padding: 18px 50px; 
    text-decoration: none;
    border: none;
    border-radius: 8px; 
    text-transform: uppercase;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 5px 15px var(--cor-sombra-sucesso);
    cursor: pointer;
}
 
.btn-vote-external:hover {
    background-color: var(--cor-sucesso-hover); 
    transform: translateY(-3px); 
}

.btn-vote-external .btn-text {
    font-size: 1.5rem; 
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
}

.btn-vote-external .btn-braille {
    color: #0f2236;
    font-size: 1.1rem; 
    font-weight: bold;
    line-height: 1;
}
.btn-vote-external .btn-text {
    color: #0f2236;
}

/* --- ESTILOS DAS SEÇÕES DE CONTEÚDO (INDEX) --- */
.content-section {
    padding: 50px 5%;
}

.content-section.bg-white {
    background-color: var(--cor-fundo-branco);
}
 
.content-section.bg-light {
    background-color: var(--cor-fundo-claro);
}

.content-section.bg-dark {
    background-color: var(--cor-fundo-escuro);
    color: var(--cor-texto-branco); 
}

.content-section.bg-dark h2,
.content-section.bg-dark h2.section-title,
.content-section.bg-dark p {
    color: var(--cor-texto-branco);
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}
 
.content-section h2.section-title {
     font-size: 2rem;
     color: var(--cor-fundo-escuro); 
     margin-bottom: 30px;
     text-transform: uppercase;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-align: center;
}

/* --- Seção Patrocinadores (INDEX) --- */
.sponsor-category {
    margin-bottom: 30px; 
}
 
.sponsor-category h4 {
    font-size: 1.2rem;
    color: #444;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
 
.sponsor-grid {
    display: grid;
    gap: 20px;
    align-items: center;
}
 
/* --- [MODIFICADO] Grids de Embaixador e Auditoria --- */
.grid-embaixadores { 
    grid-template-columns: repeat(2, 1fr); /* <-- VOLTOU PARA 2 COLUNAS */
    /* Removido max-width e margin para centralizar */
}
.grid-auditoria {
    grid-template-columns: 1fr; /* Apenas 1 coluna */
    max-width: 50%; /* Limita a largura */
    margin: 0 auto; /* Centraliza */
}

/* Grids que estão escondidos (serão usados no futuro) */
.grid-ouro { grid-template-columns: repeat(4, 1fr); }
.grid-midia { grid-template-columns: repeat(6, 1fr); }
.grid-apoio { grid-template-columns: repeat(4, 1fr); }
 
/* --- Logo do Parceiro (Padrão - escondido por enquanto) --- */
.sponsor-logo {
    background-color: var(--cor-fundo-branco);
    border: 1px solid #eee;
    border-radius: 8px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: box-shadow 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
 
.sponsor-logo:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: var(--cor-fundo-branco);
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

/* --- Estilo Especial (Embaixador E Auditoria) --- */
.grid-embaixadores .sponsor-logo,
.grid-auditoria .sponsor-logo {
    height: 200px;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
 
.grid-embaixadores .sponsor-logo:hover,
.grid-auditoria .sponsor-logo:hover {
    background-color: transparent;
    box-shadow: none;
}

.grid-embaixadores .sponsor-logo img,
.grid-auditoria .sponsor-logo img {
    transition: opacity 0.2s ease;
    opacity: 0.9;
}

.grid-embaixadores .sponsor-logo:hover img,
.grid-auditoria .sponsor-logo:hover img {
    opacity: 1;
}
 
@media (max-width: 1024px) {
    .grid-midia {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content h1 {
        font-size: 1.8rem;
    }
    .main-content h2 {
        font-size: 1.1rem;
    }
    .caixa-candidato .nome {
        font-size: 0.9rem;
        min-height: 36px;
    }
    .grid-embaixadores,
    .grid-ouro,
    .grid-midia,
    .grid-apoio {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
    .grid-auditoria {
        grid-template-columns: 1fr;
        max-width: 80%;
        margin: 0 auto;
    }
    .btn-vote-external {
        padding: 15px 30px;
    }
    .btn-vote-external .btn-text {
        font-size: 1.2rem;
    }
    .btn-vote-external .btn-braille {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .grid-embaixadores,
    .grid-auditoria {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .grid-embaixadores .sponsor-logo,
    .grid-auditoria .sponsor-logo {
        height: 150px;
    }
}

.page-premiacao .audit-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--cor-texto-secundario);
    padding: 24px 0 8px;
}