/* --- GERAL E TIPOGRAFIA --- */
body { font-family: 'Lora', serif; font-family: 'Rubik', sans-serif;line-height: 1.7; font-size: 18px; background-color: #f8f9fa; color: #212529; margin: 0; padding: 20px; }
.container { max-width: 800px; margin: 0 auto; }
.page-header { background-color: #fff; padding: 2.5rem; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); margin-bottom: 2rem; text-align: center; }
h2, button, .analysis-tag { font-family: 'Source Sans 3', sans-serif; }
.page-header p { color: #6c757d; margin-bottom: 0; }
h2 { color: #343a40; border-bottom: 1px solid #dee2e6; padding-bottom: 0.5rem; margin-top: 2.5rem; }
.hidden { display: none !important; }
.view-all { text-align: center;}

/* --- LOGO --- */
.logo { font-family: 'Roboto', sans-serif; font-family: 'Rubik', sans-serif; font-weight: 900; font-size: 5.2em; line-height: 1; margin-bottom: 1rem; }
.logo-critiq { color: #333; }
.logo-dot, .logo-it { color: #ff6b35; }

/* --- FORM, LOADING, ERROR --- */
#url-form { display: flex; gap: 10px; }
#url-input { flex-grow: 1; padding: 14px; border: 1px solid #ced4da; border-radius: 10px; font-size: 16px; }
button { background-color: #ff6b35; color: white; border: none; padding: 14px 24px; font-size: 16px; font-weight: 500; border-radius: 30px; cursor: pointer; transition: background-color 0.3s; }
button:hover { background-color: #ff6b35; }
#loading { margin-top: 2rem; display:flex; align-items:center; justify-content:center; gap: 10px; font-family: 'Source Sans 3', sans-serif; color: #6c757d; }
.spinner { width: 24px; height: 24px; border: 3px solid rgba(0,0,0,0.1); border-top-color: #007bff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#error { margin-top: 2rem; font-family: 'Source Sans 3', sans-serif; background-color: #f8d7da; color: #721c24; padding: 1rem; border-radius: 8px; border: 1px solid #f5c6cb; }

/* --- GRID DE MÉTRICAS E SEÇÕES --- */
.metadata-grid-section, section { background-color: #fff; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); margin-top: 2rem; }
.metadata-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; font-family: 'Source Sans 3', sans-serif; }
.metric-box { background-color: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 1rem; display: flex; align-items: center; gap: 12px; }
.metric-box .icon { width: 24px; height: 24px; flex-shrink: 0; color: #6c757d; }
.metric-box .text strong { display: block; font-size: 0.8em; color: #6c757d; text-transform: uppercase; font-weight: 600; }
.metric-box .text span, .metric-box .text a { font-size: 1em; color: #212529; font-weight: 500; text-decoration: none; word-break: break-word; }
.metric-box .text a:hover { text-decoration: underline; }

/* --- COMPARTILHAMENTO E ADS --- */
.share-section { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem; font-family: 'Source Sans 3', sans-serif; }
.share-section span { font-weight: 500; color: #495057; }
.share-buttons { display: flex; gap: 0.5rem; }

.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; color: white; transition: transform 0.2s; border: none; cursor: pointer; }
.share-btn:hover { transform: scale(1.3); }
.share-btn-whatsapp { background-color: #25D366; }
.share-btn-twitter { background-color: #000000; }
.share-btn-threads { background-color: #000000; }
.share-btn-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.share-btn-copy { background-color: #6c757d; }
.share-btn-copy:hover { background-color: hsl(208, 7%, 16%); }
.share-btn svg { width: 25px; height: 25px; }
button.share-btn { padding: 0px; }

/* --- ANÚNCIOS E PUBLICIDADE --- */
.adsense-placeholder { text-align: center; font-family: 'Source Sans 3', sans-serif; color: #adb5bd; border: 2px dashed #e9ecef; padding: 2rem; font-size: 0.9em; background-color: #fdfadc;}

/* --- TAGS UNIFICADAS --- */
.tag-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.analysis-tag { background-color: #e9ecef; color: #495057; display: inline-block; padding: 5px 12px; border-radius: 8px; font-size: 0.8em; font-weight: 500; text-transform: capitalize; margin-bottom: 0.5em; margin-right: 0.5em  ; }

/* --- BARRA DE SENTIMENTO --- */
.sentiment-row {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-top: 1em;
    flex-wrap: wrap;
}

.sentiment-label {
    font-weight: bold;
    white-space: nowrap;
    min-width: 150px
}
.sentiment-label img {
  height: 1.2rem;
  margin-bottom: -0.2rem;
}

/* CSS extra para este caso específico */
.sentiment-bar.flex-grow {
  flex-grow: 1 !important;
  width: auto !important;
}

.sentiment-bar-container { margin-top: 1rem; font-family: 'Source Sans 3', sans-serif; font-size: 0.9em; }
.sentiment-bar { position: relative; width: 100%; height: 12px; background: linear-gradient(to right, #e74c3c, #f1c40f 50%, #3cdb34); border-radius: 8px; }
.sentiment-indicator { position: absolute; top: -3px; width: 15px; height: 15px; background-color: #ffff; border: 2px solid #212529; border-radius: 50%; transform: translateX(-50%); box-shadow: 0 2px 4px rgba(0,0,0,0.2); }

/* --- CARD DOS TIMES --- */
#teams-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem; }
.team-card { background-color: #f8f9fa; border: 1px solid #e9ecef; border-radius: 12px; padding: 1.5rem; }
.team-header { display: flex; align-items: center; gap: 15px; margin-bottom: 1rem; }
.team-logo { width: 40px; height: 40px; object-fit: contain; }
.team-header h3 { margin: 0; color: #212529; font-size: 1.3em; font-weight: 600; flex-grow: 1; font-family: 'Source Sans 3', sans-serif; }
.principal-badge { background-color: #cce5ff; color: #004085; padding: 4px 10px; border-radius: 12px; font-size: 0.8em; font-weight: 500; white-space: nowrap; }
.team-card p { font-family: 'Source Sans 3', sans-serif; font-size: 0.9em; margin: 0 0 1rem 0; color: #495057; }
.team-card strong { color: #212529; font-weight: 600; }
#article-content p { margin: 0 0 1.5em 0; padding: 0;}
#article-content p:last-child { margin-bottom: 0; }

/* --- ESTILOS PARA A PÁGINA DE LISTAGEM (/insights) --- */
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.insight-card-link {
    text-decoration: none;
    color: inherit;
}

.insight-card {
    background-color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.insight-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4em;
    color: #343a40;
}

.insight-meta {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9em;
    color: #6c757d;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.insight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.logo-link {
    text-decoration: none;
}




.tagline {
    text-align: center;
}

.page-header {
  text-align: center;
  padding: 2rem 1rem;
}

.slogan {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  color: #333;
}

.sub-slogan {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.url-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  max-width: 700px;
  margin: 1.5rem;
}

.url-form input[type="url"] {
  flex: 1;
  padding: 0.75rem;
  border-radius: 2px;
  border: 1px solid #ccc;
}

.url-form button {
  padding: 0.75rem 1.25rem;
  background-color: #ff6b35;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.url-form button:hover {
    background-color: rgb(254, 145, 77);
    scale: 1.1;
}

.cta-link {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  font-weight: bold;
  color: #ff6b35;
  transition: all 0.3s ease;
}

.cta-link:hover {
  color: #ff6b35;
  text-decoration: underline;
  font-weight: bold;
  transform: scale(1.8);
}
/* Se quiser apenas a cor, sem background */
.news-text { color: #2563eb; }
.opinion-text { color: #7c3aed; }
.editorial-text { color: #059669; }
.report-text { color: #ff6b35; }
.interview-text { color: #dc2626; }
.chronicle-text { color: #92400e; }
.review-text { color: #e11d48; }


.badge-news {
    background: #ff6b35;
    color: white;
    padding: 0px 12px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.badge-opinion {
    background: #7c3aed;
    color: white;
    padding: 0px 12px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.badge-editorial {
    background: #059669;
    color: white;
    padding: 0px 12px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.badge-report {
    background: #2563eb;
    color: white;
    padding: 0px 12px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.badge-interview {
    background: #dc2626;
    color: white;
    padding: 0px 12px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.badge-chronicle {
    background: #92400e;
    color: white;
    padding: 0px 12px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.badge-review {
    background: #e11d48;
    color: white;
    padding: 0px 12px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}


/* Anchor no Stule */
a.nostyle:link {
    text-decoration: inherit;    
    color: inherit;
    cursor: pointer;

}

a.nostyle:visited {
    text-decoration: inherit;
    color: inherit;
    cursor: pointer;
}
a.nostyle:hover {
  text-decoration: underline;
}

/* Escurecer os elementos ao passar o mouse sobre o link */
.badge-news:hover, 
.badge-opinion:hover, 
.badge-editorial:hover, 
.badge-report:hover, 
.badge-interview:hover, 
.badge-chronicle:hover, 
.badge-review:hover, 
.analysis-tag:hover, 
.team-header:hover {
    filter: brightness(0.8); /* escurece a cor de fundo */
       scale: 1.2;
}
.team-header:hover {
  background-color: #f5f2f5;
  filter: brightness(0.8); /* escurece a cor de fundo */
  border-radius: 10px;
  margin: 0px -10px;
  margin-bottom: 1rem; 
  padding: 0px 10px;
  /* background-color: #f8f9fa; */ 
}

/* ===== GRÁFICOS DE ANÁLISE ===== */

.charts-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-top: 2rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.chart-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
}

.chart-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.5rem;
}

.chart-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85em;
    color: #6c757d;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.stat-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.stat-value {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: #ff6b35;
}

.stat-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-card canvas {
        max-height: 250px !important;
    }
}



/* css/barra_times.css */

/* Barra de Times */
.teams-bar {
    background: linear-gradient(to bottom, #fff 0%, #fafbfc 100%);
    border-bottom: 2px solid #e9ecef;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.teams-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.teams-label {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.75em;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.25rem;
}

.team-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #343a40;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.team-link:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.25);
}

.team-logo-small {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Dropdown Mais Times */
.more-teams-dropdown {
    position: relative;
    display: inline-block;
}

.more-teams-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

.more-teams-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.4);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    z-index: 1;
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.more-teams-dropdown.active .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #343a40;
    padding: 10px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s;
    margin: 0 0.5rem;
    border-radius: 6px;
}

.dropdown-content a:hover {
    background: linear-gradient(to right, #fff5f2 0%, #ffe8df 100%);
    color: #ff6b35;
    transform: translateX(3px);
}

/* Responsivo */
@media (max-width: 768px) {
    .teams-label { 
        display: none; 
    }
    
    .team-link { 
        font-size: 0.8em; 
        padding: 6px 12px; 
    }
    
    .more-teams-btn { 
        font-size: 0.8em; 
        padding: 6px 14px; 
    }
}


 /* CSS para tabs (adicione ao seu CSS global se preferir)  */
.tabs { display: flex; border-bottom: 2px solid #ccc; }
.tab-link { padding: 10px 20px; cursor: pointer; position: relative; }

.tab-link.active { color: #ff6b35; } /* Laranja para tab ativa */
.tab-link.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: #ff6b35; } /* Linha laranja */
.tab-link:hover, .tab-link.active:hover {background-color: #ff6b35; color:#fff;}

.tab-content { display: none; padding: 20px; }
.tab-content.active { display: block; }
.tabs { background-color: #fff; padding: 1rem; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); margin-top: 2rem; }
