/* css/style.css - Estrutura Base e Desktop */

:root {
    --bg-body: #F0F2F5;
    --bg-card: #FFFFFF;
    --imposto-green: #00BF37; 
    --imposto-dark: #00BF37;
    --accent-red: #D32F2F;
    --accent-gold: #F59E0B;
    --text-main: #1F2937;
    --text-white: #FFFFFF;
    --text-muted: #6B7280;
    --border-light: #E5E7EB;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --insta-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

body { font-family: 'Inter', sans-serif; background-color: var(--bg-body); color: var(--text-main); margin: 0; padding: 0; padding-bottom: 20px; }

/* HEADER */
header { background-color: var(--bg-card); border-bottom: 3px solid var(--imposto-green); padding: 15px 0; display: flex; justify-content: center; box-shadow: var(--shadow-md); text-align: center; }
.logo-container { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.logo-img { max-height: 60px; width: auto; object-fit: contain; }
header h1 { color: var(--imposto-green); font-size: 1.8rem; margin: 0; text-transform: uppercase; font-weight: 800; letter-spacing: 1px; line-height: 1; }
.header-subtitle { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

/* NAVBAR */
.navbar { background-color: var(--imposto-green); padding: 15px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 5px 20px; display: flex; gap: 10px; justify-content: center; align-items: center; position: relative; }
.nav-btn { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: white; padding: 10px 24px; border-radius: 25px; cursor: pointer; font-weight: 500; transition: all 0.2s ease; white-space: nowrap; font-size: 0.95rem; }
.nav-btn:hover { background-color: rgba(255,255,255,0.1); transform: translateY(-2px); }
.nav-btn.active { background-color: white; color: var(--imposto-green); border-color: white; font-weight: 800; box-shadow: 0 4px 6px rgba(0,0,0,0.2); transform: none; }
.theme-toggle-btn { background: transparent; border: none; font-size: 1.4rem; cursor: pointer; padding: 5px; position: absolute; right: 20px; border-radius: 50%; transition: transform 0.3s ease; }
.theme-toggle-btn:hover { transform: rotate(20deg) scale(1.1); }

/* BARRA DE PROGRESSO */
.progress-container { max-width: 1200px; margin: 15px auto; padding: 0 20px; display: flex; flex-direction: column; gap: 5px; }
.progress-label { font-size: 0.9rem; font-weight: 600; color: var(--imposto-green); text-align: center; }
.progress-track { width: 100%; height: 12px; background-color: #e5e7eb; border-radius: 6px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #F59E0B, #FFF); transition: width 0.3s ease; }

main { max-width: 1200px; margin: 30px auto; padding: 0 20px; min-height: 80vh; }
.hidden { display: none !important; }

/* CARDS & LAYOUTS */
.card { background-color: var(--bg-card); border-radius: 12px; box-shadow: var(--shadow-md); overflow: hidden; margin-bottom: 24px; border: 1px solid var(--border-light); }
.card-header-green { background-color: var(--imposto-green); color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;}
.center-header { justify-content: center; }
.card-header-green h3, .card-header-green h2 { margin: 0; font-size: 1.2rem; font-weight: 700; }

.home-layout-grid { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.card-impostometro { height: 340px; display: flex; flex-direction: column; position: relative; width: 100%; transition: height 0.3s ease; }
.iframe-wrapper-imposto { position: relative; width: 100%; flex: 1; background-color: #fff; overflow: hidden; }
.iframe-wrapper-imposto iframe { position: absolute; width: 100%; height: 100%; border: none; top: 0; left: 0; }

.card-totais { width: 100%; height: auto; display: flex; flex-direction: column; }
.totais-content { padding: 40px 20px; display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 20px; }
.total-item { text-align: center; flex: 1; min-width: 200px; }
.total-item .label { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 10px; font-weight: 600; }

/* ======== CORREÇÃO CRÍTICA DO NÚMERO CORTANDO ======== */
.total-item .valor { 
    font-size: clamp(1.4rem, 5vw, 2.2rem); /* O número agora "encolhe" dinamicamente no mobile */
    font-weight: 800; 
    color: var(--imposto-green); 
    margin: 0; 
    white-space: nowrap; /* Impede a quebra de linha grosseira (fim do \n 0) */
}
/* ===================================================== */

.divider { width: 1px; height: 80px; background: var(--border-light); }
.last-update { text-align: center; font-size: 0.8rem; color: #999; padding-bottom: 15px; }

.dash-rankings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* LISTA E RANKING */
.ranking-item-bar { display: flex; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background 0.2s; }
.ranking-item-bar:hover { background-color: #f0fdf4; }
.rank-position { width: 50px; min-width: 50px; font-weight: bold; color: var(--text-muted); text-align: center; margin-right: 10px; }
.rank-avatar { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; margin-right: 15px; border: 2px solid var(--imposto-green); background: #eee; }

.rank-info { flex: 1; min-width: 0; overflow: hidden; }
.rank-name { font-weight: 600; color: var(--text-main); font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-party { font-size: 0.8rem; color: var(--text-muted); }
.rank-stats { text-align: right; width: 130px; }
.rank-value { font-weight: 700; color: var(--imposto-green); font-size: 0.9rem; }
.progress-bg { background: #e5e7eb; height: 6px; border-radius: 3px; margin-top: 5px; width: 100%; }
.progress-fill { background: var(--imposto-green); height: 100%; border-radius: 3px; }

.filtros-bar { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; justify-content: flex-end; }
.filtros-bar input, .filtros-bar select { padding: 8px 12px; border-radius: 6px; border: 1px solid #ccc; font-family: 'Inter', sans-serif; flex: 1; min-width: 150px; max-width: 250px;}

.parlamentares-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; padding: 20px; }
.card-parlamentar-simple { border: 1px solid #eee; border-radius: 8px; padding: 15px; text-align: center; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; background: #fff; }
.card-parlamentar-simple:hover { transform: translateY(-5px); border-color: var(--imposto-green); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.card-parlamentar-simple img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 1px solid #ddd; }

/* MODAIS (DADOS E INTRO) */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 3000; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(8px); }
.modal-container { background: #fff; width: 100%; max-width: 900px; max-height: 90vh; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.3); overflow-y: auto; position: relative; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.close-modal-btn { position: absolute; top: 15px; right: 20px; background: rgba(0,0,0,0.05); border: none; font-size: 1.5rem; cursor: pointer; color: #333; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 10; transition: all 0.2s;}
.close-modal-btn:hover { background: var(--accent-red); color: white; }

.profile-header { background: #f9fafb; padding: 30px; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-img-lg { width: 100px; height: 100px; border-radius: 50%; border: 3px solid var(--imposto-green); }
.profile-total-value { font-size: 1.8rem; font-weight: 700; color: var(--accent-red); }
.modal-grid-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; padding: 30px; }
.modal-section-card { border: 1px solid var(--border-light); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.modal-section-title { color: var(--imposto-green); border-bottom: 1px dashed #ccc; padding-bottom: 5px; margin-bottom: 15px; }

/* Estrutura da Tabela do Modal */
.tabela-container { display: flex; flex-direction: column; margin-top: 15px; border: 1px solid var(--border-light); border-radius: 6px; overflow: hidden; background: var(--bg-card); }
.tabela-header-total { padding: 12px 15px; background: rgba(0,102,79,0.05); border-bottom: 1px solid var(--border-light); font-size: 1.05rem; }
.table-responsive-wrapper { max-height: 350px; overflow-y: auto; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
.table-despesas { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table-despesas th { background: var(--imposto-green); color: white; padding: 12px 15px; text-align: left; position: sticky; top: 0; z-index: 5; white-space: nowrap; }
.table-despesas td { padding: 12px 15px; border-bottom: 1px solid var(--border-light); }
.filter-select { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid var(--imposto-green); border-radius: 5px; }

.ranking-split-view { 
    display: flex; 
    gap: 20px; 
    padding: 20px; 
    width: 100%; 
    box-sizing: border-box; 
}
.ranking-col { 
    flex: 1; 
    min-width: 0; 
    background: var(--bg-card); 
    border-radius: 8px; 
    border: 1px solid var(--border-light); 
    padding: 15px; 
}
.col-title { text-align: center; border-bottom: 2px solid var(--border-light); padding-bottom: 10px; margin-bottom: 15px; text-transform: uppercase; font-size: 0.9rem; }
.text-red { color: var(--accent-red); }
.text-green { color: var(--imposto-green); }

/* ESTILOS DO MODAL INTRO */
.intro-modal-container { max-width: 500px; text-align: center; border: 1px solid var(--imposto-green); }
.intro-modal-content { padding: 40px 30px; }
.intro-modal-content h2 { color: var(--imposto-green); margin-bottom: 15px; font-weight: 800; }
.intro-modal-content p { color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; }
.intro-modal-actions { display: flex; flex-direction: column; gap: 12px; }

/* Botões Novos */
.btn-vaquinha { background: var(--accent-gold); color: white; padding: 14px; border-radius: 8px; text-decoration: none; font-weight: 700; transition: opacity 0.2s; }
.btn-vaquinha:hover { opacity: 0.9; }

.btn-instagram { background: var(--insta-gradient); color: white; padding: 14px; border-radius: 8px; text-decoration: none; font-weight: 700; transition: opacity 0.2s; }
.btn-instagram:hover { opacity: 0.9; }

/* Botão de Entrar (Agora como secundário) */
.btn-entrar-outline { background: transparent; color: var(--imposto-green); padding: 14px; border-radius: 8px; border: 2px solid var(--imposto-green); cursor: pointer; font-weight: 700; font-family: inherit; font-size: 1rem; margin-top: 10px; transition: background 0.2s; }
.btn-entrar-outline:hover { background: rgba(0, 102, 79, 0.1); }
/* DARK MODE */
body.dark-theme { --bg-body: #0B0F19; --bg-card: #111827; --text-main: #F3F4F6; --text-muted: #9CA3AF; --border-light: #1F2937; --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5); --imposto-green: #059b30; }
body.dark-theme .progress-bar { background: linear-gradient(90deg, #F59E0B, #00E5FF); }
body.dark-theme .card-header-green { background-color: #0f172a; border-bottom: 2px solid #00E5FF; }
body.dark-theme .ranking-item-bar:hover { background-color: #1F2937; }
body.dark-theme .card-parlamentar-simple, body.dark-theme .modal-container, body.dark-theme .ranking-col, body.dark-theme .profile-header { background: var(--bg-card); color: var(--text-main); border-color: var(--border-light); }
body.dark-theme .card-parlamentar-simple:hover { background: #1F2937; border-color: #00E5FF; box-shadow: 0 0 15px rgba(0, 229, 255, 0.2); }
body.dark-theme .tabela-header-total { background: rgba(0, 229, 255, 0.05); }
body.dark-theme .close-modal-btn { color: #fff; background: rgba(255, 255, 255, 0.1); }
body.dark-theme .close-modal-btn:hover { background: var(--accent-red); }
body.dark-theme .iframe-wrapper-imposto iframe { filter: brightness(0.7) contrast(0.9); }
body.dark-theme .nav-btn.active { background-color: #00E5FF; color: #000; box-shadow: 0 0 15px rgba(0, 229, 255, 0.4); border-color: #00E5FF; }
body.dark-theme .intro-modal-content h2 { color: #00E5FF; }
body.dark-theme .btn-entrar { background: #00E5FF; color: #000; }
body.dark-theme .btn-entrar-outline { color: #00E5FF; border-color: #00E5FF; }
body.dark-theme .btn-entrar-outline:hover { background: rgba(0, 229, 255, 0.1); }

/* =========================================
   FOOTER DA HOME E LINK ADMIN
   ========================================= */
.site-footer { margin-top: 40px; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border-light); padding: 30px; box-shadow: var(--shadow-md); }
.footer-content { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px solid var(--border-light); padding-bottom: 20px; }
.footer-section { flex: 1; min-width: 200px; }
.footer-section h4 { color: var(--imposto-green); margin-bottom: 10px; font-weight: 700; }
.footer-section p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section ul li { margin-bottom: 8px; }
.footer-section ul a { color: var(--text-main); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-section ul a:hover { color: var(--imposto-green); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: var(--text-muted); }
.admin-link { color: #d1d5db; text-decoration: none; font-size: 0.75rem; transition: color 0.2s; }
.admin-link:hover { color: var(--imposto-green); font-weight: bold; }

/* Dark Mode do Footer */
body.dark-theme .site-footer { background: var(--bg-card); border-color: var(--border-light); }
body.dark-theme .footer-section h4 { color: #00E5FF; }
body.dark-theme .footer-section ul a { color: var(--text-main); }
body.dark-theme .footer-section ul a:hover { color: #00E5FF; }
body.dark-theme .admin-link { color: #374151; }
body.dark-theme .admin-link:hover { color: #00E5FF; }

/* =========================================
   PROTEÇÃO DESKTOP E ESTILOS DO BLOG
   ========================================= */
@media (min-width: 769px) {
    .hidden-desktop { display: none !important; }
}

.blog-feed { max-width: 500px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; padding-bottom: 40px; }
.blog-post { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); }
.blog-header { display: flex; align-items: center; gap: 12px; padding: 12px 15px; }
.blog-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--imposto-green); }
.blog-author { display: flex; flex-direction: column; font-size: 0.9rem; }
.blog-author span { font-size: 0.75rem; color: var(--text-muted); }
.blog-img { width: 100%; max-height: 500px; object-fit: cover; display: block; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.blog-actions { padding: 12px 15px; display: flex; gap: 15px; }
.action-btn { background: none; border: none; font-size: 1.1rem; color: var(--text-main); cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 600; padding: 0; transition: transform 0.2s; }
.action-btn:hover { transform: scale(1.05); }
.btn-like.liked { color: var(--accent-red); }
.blog-content { padding: 0 15px 15px; font-size: 0.9rem; line-height: 1.4; }
.blog-caption strong { margin-right: 6px; }
.blog-comments-section { display: flex; padding: 12px 15px; border-top: 1px solid var(--border-light); gap: 10px; align-items: center; }
.blog-comments-section input { flex: 1; border: none; outline: none; font-size: 0.9rem; background: transparent; color: var(--text-main); }
.blog-comments-section button { background: none; border: none; color: var(--imposto-green); font-weight: 700; cursor: pointer; }

/* =========================================
   SISTEMA DO BLOG (CARDS E MODAL)
   ========================================= */
/* Correção do Feed do Blog (Grid de Cards) */
.blog-feed { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px; 
    padding: 20px; 
}
.blog-card { 
    border: 1px solid var(--border-light); 
    border-radius: 12px; 
    overflow: hidden; 
    background: var(--bg-card); 
    cursor: pointer; 
    transition: transform 0.2s; 
}
.blog-card:hover { transform: translateY(-5px); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card-content { padding: 15px; font-size: 0.9rem; }

.blog-card-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Formatação do Modal Específico do Blog */
.modal-blog-img {
    width: 100%;
    max-height: 40vh; /* Ocupa no máximo 40% da altura da tela */
    object-fit: contain; /* Não corta a imagem */
    margin-bottom: 15px;
    border-radius: 8px;
    background: #000; /* Fundo preto pra fotos horizontais não ficarem flutuando */
}

.modal-blog-text-container {
    max-height: 40vh; /* Permite rolar textos gigantes sem bugar o modal */
    overflow-y: auto;
    padding: 0 10px;
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* =========================================
   MARCA D'ÁGUA - OLHAR DO POVO (MODAL)
   ========================================= */
.profile-header {
    position: relative; 
}

.profile-header::before {
    content: "";
    background-image: url('../img/logo.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    
    /* Aumentamos o valor do 'right' para empurrar mais pro meio */
    right: 345px; 
    top: 50%;
    transform: translateY(-50%);
    
    width: 120px; 
    height: 120px;
    
    /* REMOVIDA A TRANSPARÊNCIA (1 = 100% visível) */
    opacity: 1; 
    pointer-events: none; 
    z-index: 1;
}

@media (max-width: 768px) {
    .profile-header::before {
        /* Posiciona no canto superior direito (onde estava o círculo rosa) */
        right: 400px;
        top: 15px;
        transform: translateY(-10%) scaleX(-1);
        
        /* Tamanho reduzido para caber certinho no cantinho do celular */
        width: 65px; 
        height: 65px;
        
        /* 100% visível, sem nenhuma transparência */
        opacity: 1; 
    }
}

.modal-overlay[style*="display: flex"] ~ #btn-float-form {
    display: none !important;
}

/* =========================================
   NOVO HEADER E PATROCINADORES
   ========================================= */
.header-content {
    display: flex;
    justify-content: space-between; /* Empurra um pra cada lado */
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Espaço entre a logo e o texto */
    text-align: left;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-text-wrapper h1 { margin: 0; font-size: 1.6rem; line-height: 1.1; }

.sponsor-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sponsor-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.sponsor-img {
    height: 50px; /* Mesma altura/proporção da sua logo atual */
    width: auto;
    object-fit: contain;
    transition: transform 0.2s; /* Efeito suave no botão */
}

/* Efeito de flutuar quando passa o mouse no patrocinador */
.sponsor-container a:hover .sponsor-img { transform: scale(1.05); }

/* =========================================
   AJUSTES DAS LOGOS NOS CARDS
   ========================================= */
.card-parlamentar-simple {
    position: relative; /* Necessário para ancorar as imagens menores */
    padding-top: 30px; /* Dá um espacinho pra foto do parlamentar descer */
}

.card-logo-povo, .card-logo-patroc {
    position: absolute;
    top: 12px;
    width: 32px; 
    height: 32px;
    object-fit: contain;
    pointer-events: none; /* Bloqueia o clique (como você pediu) */
    opacity: 0.9;
}

.card-logo-povo { left: 12px; }
.card-logo-patroc { right: 12px; }

/* =========================================
   RESPONSIVIDADE (CELULAR)
   ========================================= */
@media (max-width: 768px) {
    .header-content { padding: 0 10px; }
    .logo-container { gap: 10px; }
    
    .logo-img { width: 40px !important; height: 40px !important; }
    .logo-text-wrapper h1 { font-size: 1.1rem; }
    .header-subtitle { font-size: 0.65rem; }
    
    .sponsor-img { height: 35px; }
    .sponsor-label { font-size: 0.6rem; }
    
    .card-logo-povo, .card-logo-patroc {
        width: 26px; /* Logos levemente menores no celular */
        height: 26px;
    }
}

/* =========================================
   1. NOVO HEADER CENTRALIZADO (LOGOS EM CIMA)
   ========================================= */
.header-content {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    box-sizing: border-box;
}

.header-central-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* A largura desse bloco é definida pelo tamanho do título h1 */
}

.header-logos-row {
    display: flex;
    justify-content: space-between; /* Joga as logos para as pontas (nas bolinhas vermelhas) */
    align-items: flex-end; /* Alinha as duas pela base para ficarem retinhas */
    width: 100%; /* Pega exatamente a mesma largura do texto embaixo */
    padding: 0 35px; /* Um respiro para casar bem certinho com as letras "O" e "O" das pontas */
    box-sizing: border-box;
    margin-bottom: 5px; /* Distância entre as logos e o título */
}

.header-logo-left {
    height: 70px; /* Tamanho da logo principal */
    width: auto;
    object-fit: contain;
}

.header-sponsor-right {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza a frase 'com apoio' com a logo AUVP */
}

.sponsor-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.header-logo-sponsor {
    height: 55px; /* Tamanho da logo AUVP */
    width: auto;
    object-fit: contain;
}

.header-titles {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.header-titles h1 {
    margin: 0;
    font-size: 2.1rem; /* Deixei um tiquinho maior pra dar uma base boa pras logos */
    line-height: 1.1;
    letter-spacing: 1px;
}

/* Responsividade do Header no Celular */
@media (max-width: 768px) {
    .header-logos-row { padding: 0; }
    .header-logo-left { height: 45px; }
    .header-logo-sponsor { height: 32px; }
    .header-titles h1 { font-size: 1.5rem; }
    .header-subtitle { font-size: 0.75rem; }
}

/* =========================================
   2. FIX DAS LOGOS COBRINDO AS FOTOS NOS CARDS
   ========================================= */
.card-parlamentar-simple {
    padding-top: 45px !important; /* Empurra a foto do político mais pra baixo */
}
.card-logo-povo, .card-logo-patroc {
    top: 8px !important;
    width: 35px !important; /* Deixa as logos um pouco menores e delicadas */
    height: 35px !important;
}

/* =========================================
   3. REMOVER LOGO GIGANTE DO LADO DO TOTAL ACUMULADO
   ========================================= */
.profile-header::before {
    display: none !important;
}

/* =========================================
   4. PROTEÇÃO DE TELA CHEIA (Esconde barra inferior mobile no modal)
   ========================================= */
body:has(.modal-overlay[style*="display: flex"]) .navbar {
    display: none !important;
}

/* =========================================================
   CORREÇÃO DA LOGO AUVP NO MODO CLARO / ESCURO
   ========================================================= */

/* 1. Modo Claro (Padrão): Deixa a logo AUVP preta */
img[src*="AUVP"] {
    filter: invert(1) brightness(0);
    transition: filter 0.3s ease; /* Dá um efeitinho suave na transição do tema */
}

/* 2. Modo Escuro: Devolve a cor original (Branca) */
body.dark-theme img[src*="AUVP"] {
    filter: none;
}