/*
Theme Name: Bastidores News 2026
Theme URI: https://bastidoresdoestado.com
Author: Antigravity AI
Description: Portal político premium com design impressionante. Foco em política do Maranhão.
Version: 1.0.0
Text Domain: bastidores
*/

:root {
  --primary: #C41E2A;
  --primary-dark: #9B1520;
  --primary-light: #E8323E;
  --primary-glow: rgba(196, 30, 42, 0.1);
  --primary-glow-strong: rgba(196, 30, 42, 0.25);

  --accent: #111118;
  --accent-light: #1C1C28;

  --bg: #F4F4F6;
  --bg-alt: #EAEAEE;
  --surface: #FFFFFF;
  --surface-hover: #FAFAFA;

  --text: #0D0D0D;
  --text-secondary: #4A4A5A;
  --text-muted: #8888A0;

  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.12);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-red: 0 8px 32px rgba(196, 30, 42, 0.2);

  --transition-fast: 0.15s ease;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --header-height: 72px;
  --ticker-height: 44px;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --bg: #0A0A0F;
  --bg-alt: #131318;
  --surface: #1A1A24;
  --surface-hover: #20202D;
  --text: #F0F0F5;
  --text-secondary: #A0A0B8;
  --text-muted: #606078;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.45);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.5);
  --primary-glow: rgba(196, 30, 42, 0.15);
  --primary-glow-strong: rgba(196, 30, 42, 0.35);
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--ticker-height) + 20px);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
  50% { box-shadow: 0 0 40px var(--primary-glow-strong); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BREAKING TICKER ===== */
.breaking-ticker {
  background: var(--accent);
  height: var(--ticker-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1001;
}

.ticker-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 0 20px;
  height: 100%;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.ticker-badge::after {
  content: '';
  position: absolute;
  right: -14px;
  top: 0;
  width: 28px;
  height: 100%;
  background: var(--primary);
  transform: skewX(-14deg);
  z-index: -1;
}

.ticker-dot {
  width: 7px;
  height: 7px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 60px, black calc(100% - 60px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 60px, black calc(100% - 60px), transparent);
}

.ticker-content {
  display: flex;
  gap: 48px;
  animation: tickerScroll 35s linear infinite;
  white-space: nowrap;
  padding-left: 32px;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ticker-item::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--primary-light);
  border-radius: 50%;
  flex-shrink: 0;
}

.ticker-item a { color: rgba(255,255,255,0.8); }
.ticker-item a:hover { color: white; }

/* ===== HEADER ===== */
.site-header {
  background: var(--surface);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .site-header {
  background: rgba(26, 26, 36, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.site-logo img {
  height: 48px;
  width: auto;
  transition: var(--transition);
}

.site-logo:hover img {
  transform: scale(1.03);
}

/* Logo swap is handled via .logo-light / .logo-dark classes */

/* Menu removido - header só tem logo + ações */

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

.btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 18px;
}

.btn-icon:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-subscribe:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-red);
  transform: translateY(-1px);
}

/* Mobile */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 1001;
  padding: 100px 24px 40px;
  overflow-y: auto;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover { color: var(--primary); }

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .btn-subscribe { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* ===== BANNER SIDEBAR WIDGET ===== */
.sidebar-banner-widget {
  background: var(--surface);
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  overflow: hidden;
  transition: var(--transition);
}

.sidebar-banner-widget:hover {
  box-shadow: var(--shadow-md);
}

.sidebar-banner-widget .widget {
  line-height: 0;
}

.sidebar-banner-widget img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: block;
}

.sidebar-banner-widget img:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.sidebar-banner-widget a {
  display: block;
  line-height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.banner-placeholder {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  padding: 30px 12px;
  background: var(--surface);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

/* ===== MAIN LAYOUT ===== */
.site-main {
  padding: 48px 0;
}

.portal-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

@media (max-width: 1100px) {
  .portal-layout { grid-template-columns: 1fr; }
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-header h2::before {
  content: '';
  width: 4px;
  height: 26px;
  background: var(--primary);
  border-radius: 2px;
}

.section-header .see-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-header .see-all:hover { gap: 8px; }

/* ===== SUPER MANCHETE (HERO) — dentro do container, acima do grid ===== */
.super-manchete {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 40px;
  height: 540px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-slow);
  animation: fadeInUp 0.7s ease;
}

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

.super-manchete > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 6s ease;
}

.super-manchete:hover > img {
  transform: scale(1.04);
}

.super-manchete .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 15, 0.95) 0%,
    rgba(10, 10, 15, 0.55) 40%,
    rgba(10, 10, 15, 0.05) 75%,
    transparent 100%
  );
  z-index: 2;
}

.super-manchete-content {
  position: relative;
  z-index: 3;
  padding: 48px;
  width: 100%;
}

.badge-manchete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.super-manchete-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
  max-width: 780px;
}

.super-manchete-title a {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.super-manchete-excerpt {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  max-width: 600px;
  line-height: 1.65;
}

.super-manchete-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .super-manchete { height: 380px; border-radius: var(--radius-lg); }
  .super-manchete-content { padding: 24px; }
  .super-manchete-title { font-size: 26px; }
}

/* ===== NEWS CARDS ===== */
.secondary-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .secondary-news-grid { grid-template-columns: 1fr; }
}

.news-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.news-card-thumb {
  position: relative;
  height: 195px;
  overflow: hidden;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-thumb img {
  transform: scale(1.06);
}

.news-card-thumb .card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.news-card-content {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}

.news-card-title a { color: var(--text); }
.news-card-title a:hover { color: var(--primary); }

.news-card-meta {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ===== SIDEBAR ===== */
.sidebar-news {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.sidebar-widget:hover {
  box-shadow: var(--shadow-md);
}

.widget-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.widget-title .widget-icon {
  width: 30px;
  height: 30px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

/* Giro Rápido */
.breaking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.breaking-list li {
  padding: 12px 14px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.breaking-list li:hover {
  background: var(--primary-glow);
  border-left-color: var(--primary);
  transform: translateX(4px);
}

.breaking-list-time {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.breaking-list a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: block;
}

.breaking-list a:hover { color: var(--primary); }

/* ===== TÁBUA DE MARÉS ===== */
.mare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mare-item {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  transition: var(--transition);
}

.mare-item:hover { background: var(--primary-glow); }

.mare-item .mare-type {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.mare-item .mare-type.high { color: #0EA5E9; }
.mare-item .mare-type.low { color: #F59E0B; }

.mare-item .mare-time {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.mare-item .mare-height {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 600;
}

.mare-source {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.mare-source a { color: var(--primary); font-weight: 600; }

/* ===== FERRY BOAT ===== */
.ferry-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}

.route-city {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.route-arrow {
  color: var(--primary);
  font-size: 18px;
}

.ferry-schedule {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ferry-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: var(--radius-xs);
  transition: var(--transition);
}

.ferry-time:hover { background: var(--primary-glow); }

.time-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.time-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.time-status.available { background: rgba(16,185,129,0.12); color: #059669; }
.time-status.departed { background: var(--bg-alt); color: var(--text-muted); }

.ferry-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* ===== EMPRESAS DO MARANHÃO ===== */
.empresas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.empresa-card {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: default;
}

.empresa-card:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.empresa-card .empresa-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .empresa-card .empresa-icon {
  background: var(--accent-light);
}

.empresa-card .empresa-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.empresa-card .empresa-sector {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== ENQUETE ===== */
.poll-question {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.4;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poll-option {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
}

.poll-option:hover { border-color: var(--primary); }

.poll-option-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--primary-glow);
  border-radius: var(--radius-xs);
  transition: width 1s ease;
}

.poll-option-text {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
}

.poll-option-pct { font-weight: 800; color: var(--primary); }

.poll-total {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
}

/* ===== COLUNISTAS ===== */
.opiniao-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.opiniao-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.opiniao-item:hover { background: var(--bg-alt); }

.opiniao-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.opiniao-avatar img { width: 100%; height: 100%; object-fit: cover; }

.opiniao-info h4 {
  font-size: 11px;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.opiniao-info a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.opiniao-info a:hover { color: var(--primary); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}

.pagination a:hover {
  background: var(--bg-alt);
  border-color: var(--border-strong);
}

.pagination span.current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-red);
}

/* ===== SINGLE POST ===== */
.single-post {
  background: var(--surface);
  padding: 48px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.6s ease;
}

@media (max-width: 768px) {
  .single-post { padding: 24px; border-radius: var(--radius-lg); }
}

.single-header { margin-bottom: 32px; }

.single-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.12;
  color: var(--text);
  margin: 18px 0;
  letter-spacing: -0.3px;
}

@media (max-width: 768px) { .single-title { font-size: 28px; } }

.single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.author-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-initial {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.single-thumbnail { margin-bottom: 36px; }

.single-thumbnail img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.single-content {
  font-size: 18px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.single-content p { margin-bottom: 24px; }

.single-content h2, .single-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text);
  margin: 28px 0 14px;
}

.single-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 18px 24px;
  margin: 24px 0;
  background: var(--primary-glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text);
}

.single-content img {
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

.single-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.single-share span {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
  transition: var(--transition);
  background: none;
  cursor: pointer;
}

.share-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.1);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--accent);
  color: rgba(255,255,255,0.65);
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--primary-light), var(--primary));
}

/* Footer simplificado */
.footer-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 30px;
  width: auto;
}

.footer-text {
  text-align: center;
  flex: 1;
}

.footer-text p {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.footer-search-btn {
  color: rgba(255,255,255,0.5) !important;
  background: rgba(255,255,255,0.08) !important;
}

.footer-search-btn:hover {
  color: white !important;
  background: var(--primary) !important;
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 24px 0;
}

@media (max-width: 600px) {
  .footer-simple { flex-direction: column; text-align: center; }
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
}

.search-overlay.open { display: flex; }

.search-box {
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
}

.search-box input {
  width: 100%;
  padding: 18px 24px;
  font-size: 22px;
  font-weight: 600;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  color: var(--text);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-red);
}

.search-box input::placeholder { color: var(--text-muted); }

.search-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-close:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

::selection { background: var(--primary); color: white; }

/* ===== DUAL LOGOS (Light/Dark) ===== */
.logo-dark { display: none; }
.logo-light { display: block; }

[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

[data-theme="dark"] .site-logo img {
  filter: none;
}

/* ===== STOCK MARKET WIDGET ===== */
.stock-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.stock-item:hover {
  background: var(--primary-glow);
}

.stock-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stock-ticker {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.5px;
}

.stock-name {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.stock-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.stock-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.stock-change {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.stock-change.positive {
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
}

.stock-change.negative {
  color: #DC2626;
  background: rgba(220, 38, 38, 0.1);
}

.stock-source {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.stock-source a {
  color: var(--primary);
  font-weight: 600;
}

/* Banner sidebar via widget area */
.sidebar-banner-widget .widget img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}
