/* ========================================================================= */
/* ESTILO EDITORIAL CLEAN & JORNALISMO DE DADOS - PORTAL ABSTENÇÃO */
/* Inspirado na velocidade e clareza de Poder360, G1, Metrópoles e Axios */
/* ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --accent: #10b981;
  --danger: #dc2626;
  --warning: #d97706;
  --page-bg: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-sub: #475569;
}

html {
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--page-bg);
  color: var(--text-main);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  line-height: 1.6;
  padding-bottom: 60px;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Painéis Editoriais Clean */
.glass-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
}

.glass-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  border-radius: 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  box-shadow: 0 12px 24px -4px rgba(2, 132, 199, 0.12);
}

/* Hero Poll Interactive Green Cards (Chamativo com Escrita Branca) */
.poll-option-card {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border: 2px solid #10b981;
  color: #ffffff;
  border-radius: 1.125rem;
  padding: 1.25rem 1.25rem;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px -2px rgba(5, 150, 105, 0.25);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.poll-option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.poll-option-card:hover::before {
  left: 100%;
}

.poll-option-card:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #6ee7b7;
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 14px 28px -4px rgba(16, 185, 129, 0.4);
}

.poll-option-card.selected {
  background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
  border-color: #a7f3d0;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.5), 0 12px 30px rgba(4, 120, 87, 0.45);
  transform: translateY(-2px) scale(1.02);
}

.poll-option-card.selected .opt-radio-circle {
  border-color: #ffffff;
  background-color: #ffffff;
}

.poll-option-card.selected .opt-radio-dot {
  display: block;
}

/* Share Button Suite */
.share-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  transition: all 0.18s ease;
  text-decoration: none;
  cursor: pointer;
}

.share-btn-wa {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}
.share-btn-wa:hover {
  background: #20ba59;
  transform: translateY(-1px);
}

.share-btn-x {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}
.share-btn-x:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.share-btn-in {
  background: #0077b5;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 119, 181, 0.3);
}
.share-btn-in:hover {
  background: #006396;
  transform: translateY(-1px);
}

.share-btn-fb {
  background: #1877f2;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}
.share-btn-fb:hover {
  background: #166fe5;
  transform: translateY(-1px);
}

.share-btn-ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 39, 67, 0.3);
}
.share-btn-ig:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Ticker Bar */
.ticker-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  background: #0f172a;
  color: #f8fafc;
  border-bottom: 1px solid #1e293b;
  overflow: hidden;
}

.ticker-marquee {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ticker-marquee::-webkit-scrollbar {
  display: none;
}

.ticker-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: #1e293b;
  border: 1px solid #334155;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #f1f5f9;
}

/* Ad Placement Containers */
.ad-slot-banner {
  min-height: 90px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.ad-label {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 700;
}

/* Status Badges TSE */
.badge-deferido {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.badge-recurso {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.badge-indeferido {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Termômetro de Abstenção */
.meter-bar {
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  overflow: hidden;
  position: relative;
}

.meter-fill-abstencao {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  transition: width 0.6s ease;
}

.meter-fill-presenca {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #10b981);
  transition: width 0.6s ease;
}

/* Rewarded Video Ad Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.video-player-mock {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.progress-bar-rewarded {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}

.progress-fill-rewarded {
  height: 100%;
  background: #10b981;
  width: 0%;
  transition: width 1s linear;
}

/* Floating Outstream Video Player (Canto Inferior Direito) */
.floating-video-widget {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 320px;
  z-index: 80;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.floating-video-header {
  padding: 6px 12px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Sticky Bottom Ad Bar */
.sticky-bottom-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #0f172a;
  color: #ffffff;
  border-top: 1px solid #1e293b;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.ad-label {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 700;
}

/* Status Badges TSE */
.badge-deferido {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-recurso {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-indeferido {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Termômetro de Abstenção */
.meter-bar {
  height: 8px;
  border-radius: 4px;
  background: #334155;
  overflow: hidden;
  position: relative;
}

.meter-fill-abstencao {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  transition: width 0.6s ease;
}

.meter-fill-presenca {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  transition: width 0.6s ease;
}

/* Rewarded Video Ad Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.video-player-mock {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.progress-bar-rewarded {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}

.progress-fill-rewarded {
  height: 100%;
  background: #10b981;
  width: 0%;
  transition: width 1s linear;
}

/* Floating Outstream Video Player (Canto Inferior Direito) */
.floating-video-widget {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 320px;
  z-index: 80;
  background: #0f172a;
  border: 1px solid rgba(2, 132, 199, 0.5);
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: all 0.3s ease;
}

.floating-video-header {
  padding: 6px 12px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sticky Bottom Ad Bar */
.sticky-bottom-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #090d16;
  border-top: 1px solid #1e293b;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #070a12;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
