/* ===== SISTEMA DE NOTÍCIAS MODERNO - CSS COMPLETO ===== */

/* ===== IMPORTAÇÃO DE FONTES ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* ===== VARIÁVEIS CSS PARA TEMAS - AZUL PETRÓLEO ===== */
:root {
  /* Cores Principais - Azul Petróleo */
  --primary: #0A3D62;
  --primary-dark: #082e4a;
  --primary-light: #1a4d7a;
  
  /* Cores Secundárias */
  --secondary: #1E90FF;
  --secondary-dark: #1a7fd9;
  --secondary-light: #4da6ff;
  
  /* Cores de Apoio */
  --accent: #FF8C42;
  --accent-dark: #e67a3a;
  --accent-light: #ff9d5c;
  
  /* Neutros */
  --bg: #ffffff;
  --bg2: #f8fafc;
  --bg3: #f1f5f9;
  --text: #1a1a1a;
  --text-light: #4a5568;
  --text-muted: #718096;
  --bg2-rgb: 248, 250, 252;
  --bg2-overlay: rgba(var(--bg2-rgb), 0.95);
  
  /* Cores de Estado */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  
  /* Bordas e Sombras */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-dark: #cbd5e0;
  --shadow: 0 4px 6px -1px rgba(10, 61, 98, 0.1), 0 2px 4px -2px rgba(10, 61, 98, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(10, 61, 98, 0.1), 0 4px 6px -4px rgba(10, 61, 98, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(10, 61, 98, 0.15), 0 8px 10px -6px rgba(10, 61, 98, 0.15);
  
  /* Raio e Transições */
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Tipografia */
  --font-titles: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-numbers: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
}

[data-theme="dark"] {
  --bg: #0a1929;
  --text: #f0f9ff;
  --bg2: #132f4c;
  --bg3: #1e3a5f;
  --text-light: #cbd5e1;
  --text-muted: #94a3b8;
  --primary: #1a5a8a;
  --primary-dark: #0a3d62;
  --primary-light: #2d7ab3;
  --secondary: #3b82f6;
  --secondary-dark: #2563eb;
  --secondary-light: #60a5fa;
  --border: #1e3a5f;
  --border-light: #2d4a73;
  --border-dark: #0f2a47;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --bg2-rgb: 19, 47, 76;
  --bg2-overlay: rgba(var(--bg2-rgb), 0.95);
}

/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: var(--transition);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TIPOGRAFIA MODERNA - AZUL PETRÓLEO ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titles);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5em;
  letter-spacing: -0.025em;
  color: var(--primary);
}

h1 { font-size: 2.5rem; font-weight: 900; }
h2 { font-size: 2rem; font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 800; }
h4 { font-size: 1.25rem; font-weight: 700; }
h5 { font-size: 1.125rem; font-weight: 700; }
h6 { font-size: 1rem; font-weight: 600; }

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== NAVEGAÇÃO MODERNA - AZUL PETRÓLEO ===== */
.navbar-brand {
  font-family: var(--font-titles);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary) !important;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.navbar {
  backdrop-filter: blur(10px);
  background: var(--bg2-overlay) !important;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-link {
  font-family: var(--font-text);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  color: var(--text) !important;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== CARDS MODERNOS - ESTILO JORNALÍSTICO ===== */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: var(--bg);
  overflow: hidden;
  border-top: 4px solid var(--primary);
}

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

.card-img-top {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: var(--transition);
}

.card:hover .card-img-top {
  transform: scale(1.02);
}

.card-title {
  font-family: var(--font-titles);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.card-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== BOTÕES MODERNOS ===== */
.btn {
  border-radius: var(--radius);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ===== FORMULÁRIOS MODERNOS ===== */
.form-control, .form-select {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg);
  color: var(--text);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
  background: var(--bg);
}

.form-label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ===== CARROSSEL MODERNO ===== */
.carousel-item img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.carousel-caption {
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 2rem 1.5rem 1.5rem;
  backdrop-filter: blur(10px);
}

.carousel-control-prev,
.carousel-control-next {
  width: 3rem;
  height: 3rem;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  margin: auto 1rem;
  transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

/* ===== ARTIGO DE NOTÍCIA - ESTILO PROFISSIONAL ===== */
.article-header {
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg2), var(--bg));
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
}

.article-hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.article-paragraph {
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.article-figure {
  text-align: center;
}

.article-figure img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.article-figure img:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.01);
}

.article-quote {
  border-left: 4px solid var(--primary);
  background: var(--bg2);
  padding: 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--primary);
}

.article-quote p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.6;
}

.article-title {
  font-family: var(--font-titles);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  color: var(--primary);
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-numbers);
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--secondary);
  background: var(--bg2);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-content img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin: 2rem 0;
  max-width: 100%;
  height: auto;
}

/* ===== CATEGORIAS E TAGS ===== */
.badge {
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  transition: var(--transition);
}

.badge-primary {
  background: var(--primary);
}

.badge-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.badge-outline:hover {
  background: var(--primary);
  color: white;
}

/* ===== LISTA DE NOTÍCIAS ===== */
.news-list-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  transition: var(--transition);
}

.news-list-item:hover {
  background: var(--bg2);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: var(--radius);
}

.news-list-item:last-child {
  border-bottom: none;
}

/* ===== PAGINAÇÃO MODERNA ===== */
.pagination {
  gap: 0.5rem;
}

.page-link {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  transition: var(--transition);
  min-width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-link:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

/* ===== RODAPÉ MODERNO ===== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer-section h5 {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary);
}

/* ===== BOTÃO DARK MODE ===== */
.dark-mode-toggle {
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.dark-mode-toggle:hover {
  border-color: var(--primary);
  transform: scale(1.1);
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

/* ===== UTILITÁRIOS ===== */
.object-fit-cover {
  object-fit: cover;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.shadow-custom {
  box-shadow: var(--shadow);
}

.shadow-custom-lg {
  box-shadow: var(--shadow-lg);
}

.rounded-custom {
  border-radius: var(--radius-lg);
}

.banner-slot { display: block; width: 100%; overflow: hidden; }
.banner-slot img { max-width: 100%; width: 100%; height: auto; }
.banner-slot iframe { max-width: 100%; width: 100%; }
.banner-slot video { max-width: 100%; width: 100%; height: auto; }
.banner-slot-top { margin-bottom: 1rem; }

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .article-title {
    font-size: 2rem;
  }
  
  .carousel-caption {
    padding: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  .news-grid { grid-template-columns: 1fr; gap: 1rem; }
  header nav.bg-light { display: none !important; }
  .navbar-brand { margin-left: auto; margin-right: auto; display: inline-flex; }
  .ticker-wrapper { height: 4px; padding: 0; background: var(--accent); }
  .ticker-wrapper .ticker-label, .ticker-wrapper .ticker, .ticker-wrapper .ticker-inner { display: none !important; }
}

/* ===== MOBILE (≤576px) ===== */
@media (max-width: 576px) {
  .hero-section { min-height: 260px !important; border-radius: var(--radius-lg); }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .news-grid { grid-template-columns: 1fr; gap: 1rem; }
  .news-grid .side-news { gap: .75rem; }
  .card-title { font-size: 1rem; }
  .card-text { font-size: 0.9rem; }
  .article-header { padding: 1rem; }
  .article-title { font-size: 1.75rem; }
  .article-meta { font-size: 0.85rem; }
  .article-content { font-size: 1rem; line-height: 1.7; }
  .ticker-wrapper { margin-bottom: 1rem; }
  .navbar-brand { font-size: 1.25rem; }
  .hero-content { left: 1rem !important; right: 1rem !important; top: auto !important; bottom: 1rem !important; padding: 1rem !important; }
  .container { padding-left: 1rem; padding-right: 1rem; }
  header .row.align-items-center { text-align: center; }
  header .navbar-brand { margin: 0 auto; display: inline-flex; }
  header .d-md-flex { display: none !important; }
  .ticker-wrapper { padding: 3px 0; }
  .ticker-wrapper .ticker, .ticker-wrapper .ticker-label { display: none; }
  header nav.bg-light { display: none !important; }
}

/* ===== IMPRESSÃO ===== */
@media print {
  .navbar, footer, .btn, .carousel-control-prev, .carousel-control-next {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* ===== CUSTOMIZAÇÕES BOOTSTRAP ===== */
.border {
  border-color: var(--border) !important;
}

.border-light {
  border-color: var(--border-light) !important;
}

.bg-light {
  background: var(--bg2) !important;
}

.bg-body {
  background: var(--bg) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.list-group-item {
  background: var(--bg);
  border-color: var(--border);
  transition: var(--transition);
}

.list-group-item:hover {
  background: var(--bg2);
}

/* ===== OVERLAYS E MODAIS ===== */
.modal-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* ===== HERO SECTION - ESTILO G1 ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-titles);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-family: var(--font-text);
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

/* ===== GRID DE NOTÍCIAS - ESTILO PROFISSIONAL ===== */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.news-grid .main-news {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--primary);
}

.news-grid .side-news {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-grid .side-news .card {
  margin-bottom: 0;
  border-top: 2px solid var(--secondary);
}

.news-grid .main-news .card-title {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.2;
}

/* ===== TICKER - PLANTÃO ===== */
.ticker-wrapper {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  padding: 0.75rem 0;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  position: relative;
}

.ticker-label {
  font-family: var(--font-titles);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  display: inline-block;
  margin-right: 1rem;
}

.ticker {
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0.5rem 0;
}

.ticker-inner {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: tickerMove 30s linear infinite;
}

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

.ticker-item {
  color: white;
  text-decoration: none;
  font-family: var(--font-text);
  font-weight: 500;
  padding: 0.25rem 0;
}

.ticker-item:hover {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
}

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

.modal-header {
  border-bottom: 1px solid var(--border);
}

.modal-footer {
  border-top: 1px solid var(--border);
}

/* ===== NÚMEROS E DATAS - ROBOTO ===== */
.views-count, .reading-time, .date-time, .comment-count {
  font-family: var(--font-numbers);
  font-weight: 500;
}

.post-date {
  font-family: var(--font-numbers);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ===== ALERTAS MODERNOS ===== */
.alert {
  border: none;
  border-radius: var(--radius-lg);
  border-left: 4px solid;
  box-shadow: var(--shadow);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-left-color: var(--success);
  color: var(--success);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: var(--danger);
  color: var(--danger);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: var(--warning);
  color: var(--warning);
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: var(--primary);
  color: var(--primary);
}

/* ===== NOTIFICAÇÕES ===== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 9999;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
}

.notification-success {
  border-left: 4px solid var(--success);
  background: rgba(16, 185, 129, 0.05);
}

.notification-error {
  border-left: 4px solid var(--danger);
  background: rgba(239, 68, 68, 0.05);
}

.notification-info {
  border-left: 4px solid var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

.notification-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.notification-close:hover {
  background: var(--bg2);
  color: var(--text);
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== ANIMAÇÕES ADICIONAIS ===== */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== BUSCA AVANÇADA ===== */
.search-focused {
  transform: scale(1.02);
  transition: var(--transition);
}

.search-focused input {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ===== COMPARTILHAMENTO SOCIAL ===== */
.social-share {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.social-share-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.social-share-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

/* ===== LEITURA RESPONSIVA ===== */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===== LAZY LOADING ===== */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[data-src].loaded {
  opacity: 1;
}

/* ===== MODO ESCURO - ADICIONAL ===== */
[data-theme="dark"] .notification {
  background: var(--bg2);
  border-color: var(--border-dark);
}

[data-theme="dark"] .back-to-top {
  background: var(--accent);
}

[data-theme="dark"] .back-to-top:hover {
  background: var(--accent-dark);
}

[data-theme="dark"] .card {
  background: var(--bg2);
  border-color: var(--border-dark);
}

[data-theme="dark"] .card-text {
  color: var(--text-light);
}

/* ===== MELHORIAS DE ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .ticker-inner {
    animation: none !important;
  }
}

/* FOCUS VISÍVEL */
button:focus,
input:focus,
a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ALTO CONTRASTE */
@media (prefers-contrast: high) {
  :root {
    --primary: #0000ff;
    --text: #000;
    --bg: #fff;
  }
  
  [data-theme="dark"] {
    --primary: #ffff00;
    --text: #fff;
    --bg: #000;
  }
}
/* ===== MOBILE (≤992px) STRONG RULES ===== */
@media (max-width: 992px) {
  header nav.bg-light { display: none !important; }
  header .navbar-brand { margin-left: auto; margin-right: auto; display: inline-flex; }
  .news-grid { grid-template-columns: 1fr; gap: 1rem; }
  .ticker-wrapper { height: 4px; padding: 0; background: var(--accent); }
  .ticker-wrapper .ticker-label, .ticker-wrapper .ticker, .ticker-wrapper .ticker-inner { display: none !important; }
}
