/* Entreverso — Theme variables (light default + dark overrides) */
:root {
  --brand: #1a4fd8;
  --brand-2: #0d3bab;
  --accent: #f59e0b;
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.12);
}

[data-theme="dark"] {
  --brand: #3b82f6;
  --brand-2: #1a4fd8;
  --accent: #fbbf24;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --bg: #0f172a;
  --surface: #1e293b;
  --border: #334155;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.5);
  /* Sobrescreve vars do index.css tambem */
  --body-bg: #0f172a;
  --white: #1e293b;
  --gray-50: #0f172a;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #94a3b8;
  --gray-500: #cbd5e1;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #f8fafc;
  --blue-light-bg: #1e3a5f;
  color-scheme: dark;
}

[data-theme="dark"] body {
  background: var(--body-bg);
  color: var(--gray-800);
}

[data-theme="dark"] .widget,
[data-theme="dark"] .news-card,
[data-theme="dark"] .news-card-big,
[data-theme="dark"] .news-card-grid,
[data-theme="dark"] .news-card-sm,
[data-theme="dark"] .plan-card,
[data-theme="dark"] .ad-slot,
[data-theme="dark"] .site-header,
[data-theme="dark"] aside,
[data-theme="dark"] section {
  background-color: var(--surface);
}

[data-theme="dark"] .site-header {
  border-bottom-color: var(--border);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--text-muted);
}

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

[data-theme="dark"] a:hover {
  color: var(--accent);
}

/* Transições suaves */
html, body { transition: background-color 0.2s, color 0.2s; }
.widget, .news-card, .news-card-big, .news-card-grid, .news-card-sm,
input, textarea, select {
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

/* sr-only utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
