/* ==========================================================================
   DIÁRIO FLUMINENSE - DESIGN SYSTEM EDITORIAL
   Estilo editorial moderno, rápido, responsivo e otimizado para AdSense
   ========================================================================== */

:root {
  --primary: #0f172a;        /* Azul Escuro Noticioso */
  --primary-light: #1e293b;
  --accent-red: #b91c1c;     /* Vermelho Plantão / Urgente */
  --accent-blue: #0284c7;    /* Azul Rio */
  --accent-amber: #d97706;   /* Dourado / Sol */
  --bg-page: #f8fafc;        /* Off-white */
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   TOP UTILITY BAR & LIVE DATA
   ========================================================================== */
.top-utility-bar {
  background-color: var(--primary);
  color: #e2e8f0;
  font-size: 0.8125rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.utility-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.utility-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.date-badge {
  font-weight: 500;
  color: #94a3b8;
}

.traffic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.25);
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-weight: 600;
  color: #38bdf8;
}

.traffic-pill.normal { border-color: #22c55e; color: #4ade80; background: rgba(34, 197, 94, 0.15); }
.traffic-pill.moderado { border-color: #f59e0b; color: #fbbf24; background: rgba(245, 158, 11, 0.15); }
.traffic-pill.intenso { border-color: #ef4444; color: #f87171; background: rgba(239, 68, 68, 0.2); }

.weather-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.radio-live-btn {
  background: var(--accent-red);
  color: #fff;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.radio-live-btn:hover {
  opacity: 0.9;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #fff;
  border-radius: 50%;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* ==========================================================================
   MAIN HEADER & BRAND
   ========================================================================== */
.main-header {
  background-color: #ffffff;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand-logo-wrap {
  width: 420px;
  max-width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
}

.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.875rem;
  width: 160px;
  color: var(--text-main);
}

.header-search button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.btn-whatsapp-pauta {
  background-color: #25d366;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(37, 211, 102, 0.25);
  transition: transform 0.15s ease, background 0.2s;
}

.btn-whatsapp-pauta:hover {
  background-color: #1eb855;
  transform: translateY(-1px);
}

/* ==========================================================================
   STICKY NAVIGATION
   ========================================================================== */
.nav-bar {
  background-color: var(--primary);
  border-bottom: 3px solid var(--accent-red);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-links {
  display: flex;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links li a {
  display: inline-block;
  padding: 12px 16px;
  color: #f1f5f9;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s, background 0.2s;
}

.nav-links li a:hover,
.nav-links li.active a {
  background-color: var(--primary-light);
  color: #ffffff;
}

.nav-links li.destaque-transito a {
  color: #38bdf8;
}

.nav-links li.destaque-tempo a {
  color: #fbbf24;
}

/* ==========================================================================
   BREAKING NEWS TICKER (PLANTÃO URGENTE)
   ========================================================================== */
.breaking-ticker {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.breaking-label {
  background: var(--accent-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.breaking-marquee {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.breaking-marquee a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-right: 28px;
}

.breaking-marquee a:hover {
  text-decoration: underline;
  color: var(--accent-red);
}

/* ==========================================================================
   ADSENSE SLOTS (CONFORME POLÍTICA DO GOOGLE)
   ========================================================================== */
.ad-slot-container {
  margin: 20px auto;
  text-align: center;
  max-width: 100%;
}

.ad-disclaimer {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.ad-banner-mock {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: #64748b;
  font-size: 0.8125rem;
}

.ad-banner-mock.leaderboard {
  min-height: 90px;
  width: 728px;
  max-width: 100%;
  margin: 0 auto;
}

.ad-banner-mock.in-article {
  min-height: 120px;
  width: 100%;
  margin: 20px 0;
}

.ad-banner-mock.sidebar-sticky {
  min-height: 300px;
  width: 100%;
}

/* ==========================================================================
   HERO EDITORIAL GRID (ESTILO CNN / DIÁRIO DO RIO)
   ========================================================================== */
.hero-editorial-section {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.super-manchete-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.super-manchete-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.manchete-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.manchete-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.super-manchete-card:hover .manchete-image-wrap img {
  transform: scale(1.03);
}

.category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--accent-red);
  color: #ffffff;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.manchete-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chapeu-cidade {
  color: var(--accent-blue);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.manchete-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 12px;
}

.manchete-title a:hover {
  color: var(--accent-red);
}

.manchete-subtitle {
  color: #475569;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.manchete-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Secondary Cards Column */
.secondary-news-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.secondary-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.15s, box-shadow 0.15s;
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 14px;
}

.secondary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.secondary-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary);
  margin-bottom: 6px;
}

.secondary-title a:hover {
  color: var(--accent-red);
}

.secondary-img-wrap {
  width: 100px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #cbd5e1;
}

.secondary-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   LIVE DASHBOARDS ROW (TRÂNSITO & CLIMA)
   ========================================================================== */
.dashboards-row {
  margin: 30px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dash-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 10px;
}

.dash-title {
  font-size: 1.125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.traffic-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.traffic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.traffic-item-info {
  display: flex;
  flex-direction: column;
}

.route-name {
  font-weight: 700;
  color: var(--primary);
}

.route-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.weather-grid-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.weather-city-card {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  border: 1px solid #edf2f7;
}

.city-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.city-temp {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-amber);
}

.city-cond {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   REGIONAL & CATEGORY NEWS BLOCKS
   ========================================================================== */
.section-heading-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 36px 0 16px 0;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.articles-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-standard {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-standard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-thumb-wrap {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: #cbd5e1;
}

.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary);
  margin: 8px 0;
}

.card-title a:hover {
  color: var(--accent-red);
}

.card-excerpt {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* ==========================================================================
   ARTICLE DETAIL PAGE
   ========================================================================== */
.article-page-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.article-main-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.breadcrumb-nav {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb-nav a {
  color: var(--accent-blue);
  font-weight: 500;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--primary);
  margin: 8px 0 14px 0;
}

.article-deck {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 20px;
}

.article-author-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.author-names .name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--primary);
}

.author-names .role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-dates {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: right;
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
}

.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.twitter { background: #0f172a; }
.share-btn.copy { background: #64748b; cursor: pointer; }

.article-hero-media {
  margin-bottom: 28px;
}

.article-hero-media img {
  border-radius: var(--radius-md);
  width: 100%;
}

.media-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

/* Article Typography Body */
.article-rich-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #1e293b;
}

.article-rich-text p {
  margin-bottom: 20px;
}

.article-rich-text h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 32px 0 14px 0;
}

.article-rich-text ul, .article-rich-text ol {
  margin: 0 0 20px 24px;
}

.article-rich-text li {
  margin-bottom: 8px;
}

.article-lead {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
}

.source-credit {
  background: #f1f5f9;
  padding: 12px 16px;
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
  margin: 24px 0;
}

/* Instagram Embed Card */
.instagram-embed-card {
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 24px 0;
}

.embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.profile-badge {
  font-weight: 700;
  color: #db2777;
}

.verified-icon {
  background: #0284c7;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 9999px;
  font-weight: 700;
}

.embed-text {
  font-style: italic;
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.btn-instagram {
  display: inline-block;
  background: #e1306c;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* Weather Table in Article */
.weather-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.875rem;
}

.weather-table th, .weather-table td {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.weather-table th {
  background-color: var(--primary);
  color: #fff;
}

.weather-table tr:nth-child(even) {
  background-color: #f8fafc;
}

/* ==========================================================================
   SIDEBAR & WIDGETS
   ========================================================================== */
.sidebar-sticky-wrap {
  position: sticky;
  top: 70px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.widget-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
  border-left: 3px solid var(--accent-red);
  padding-left: 8px;
}

.most-read-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.most-read-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rank-number {
  font-size: 1.25rem;
  font-weight: 900;
  color: #cbd5e1;
  width: 24px;
  flex-shrink: 0;
}

.most-read-item:hover .rank-number {
  color: var(--accent-red);
}

.most-read-headline {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.most-read-headline a:hover {
  color: var(--accent-red);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: var(--primary);
  color: #94a3b8;
  margin-top: 60px;
  padding: 48px 0 24px 0;
  border-top: 4px solid var(--accent-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.8125rem;
  color: #cbd5e1;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .hero-editorial-section {
    grid-template-columns: 1fr;
  }
  .article-page-layout {
    grid-template-columns: 1fr;
  }
  .dashboards-row {
    grid-template-columns: 1fr;
  }
  .articles-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .utility-right {
    display: none;
  }
  .articles-grid-3 {
    grid-template-columns: 1fr;
  }
  .weather-grid-mini {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .manchete-title {
    font-size: 1.45rem;
  }
  .article-header h1 {
    font-size: 1.65rem;
  }
  .header-actions {
    display: none;
  }
}
