/* ═══════════════════════════════════════════════════════════════════════════
   DECK-AS-CODE — LIGHT THEME (498AS-LIGHT)
   Clean, Professional Light Theme · Teal Accent · Executive Reports
   
   Activar con: data-theme="light" en <body>
   Combinar con brand: data-brand="498as" o data-brand="zoopa"
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── LIGHT THEME VARIABLES ─────────────────────────────────────────────── */
[data-theme="light"] {
  /* Background & Surface */
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  
  /* Foreground */
  --fg: #212529;
  --fg-secondary: #495057;
  --fg-muted: #6c757d;
  
  /* Borders */
  --border-color: #dee2e6;
  --border-subtle: #e9ecef;
  
  /* Primary Accent (Teal - GEO Radar style) */
  --primary: #37E813;
  --primary-dark: #2bc00e;
  --primary-light: rgba(55, 232, 19, 0.15);
  --accent: #37E813;
  
  /* Semantic Colors */
  --positive: #198754;
  --positive-light: rgba(25, 135, 84, 0.1);
  --negative: #dc3545;
  --negative-light: rgba(220, 53, 69, 0.1);
  --warning: #fd7e14;
  --warning-light: rgba(253, 126, 20, 0.1);
  --info: #0d6efd;
  --info-light: rgba(13, 110, 253, 0.1);
  
  /* Grays */
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #adb5bd;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #343a40;
  --gray-800: #212529;
  
  /* Overrides */
  --muted: rgba(0,0,0,0.55);
  --subtle: rgba(0,0,0,0.08);
  
  /* Fonts */
  --font: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

/* ─── LIGHT THEME WITH ZOOPA BRAND ──────────────────────────────────────── */
[data-theme="light"][data-brand="zoopa"] {
  --primary: #FF6B00;
  --primary-dark: #E05F00;
  --primary-light: rgba(255, 107, 0, 0.15);
  --accent: #FF6B00;
}

/* ─── LIGHT THEME WITH 498AS GREEN BRAND ────────────────────────────────── */
[data-theme="light"][data-brand="498as-green"] {
  --primary: #37E813;
  --primary-dark: #2BC410;
  --primary-light: rgba(55, 232, 19, 0.15);
  --accent: #37E813;
}

/* ─── BASE OVERRIDES FOR LIGHT THEME ────────────────────────────────────── */
[data-theme="light"] body {
  background: var(--bg);
  color: var(--fg);
}

[data-theme="light"] .deck__header {
  border-bottom-color: var(--border-color);
}

[data-theme="light"] .deck__header::after {
  background: var(--primary);
}

[data-theme="light"] .deck__h2 {
  color: var(--fg-muted);
}

[data-theme="light"] .p {
  color: var(--fg-secondary);
}

[data-theme="light"] .p strong {
  color: var(--fg);
}

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

[data-theme="light"] .kicker {
  color: var(--primary);
}

/* ─── SIDEBAR LIGHT THEME ───────────────────────────────────────────────── */
[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-left-color: var(--border-color);
}

[data-theme="light"] .sidebar__hint {
  color: var(--fg-muted);
  border-bottom-color: var(--border-color);
}

[data-theme="light"] .sidebar__item:hover {
  background: var(--gray-100);
  border-left-color: var(--gray-400);
}

[data-theme="light"] .sidebar__item.active {
  background: var(--primary-light);
  border-left-color: var(--primary);
}

[data-theme="light"] .sidebar__num {
  color: var(--fg-muted);
}

[data-theme="light"] .sidebar__item.active .sidebar__num {
  color: var(--primary);
}

/* ─── INDEX CARDS LIGHT THEME ───────────────────────────────────────────── */
[data-theme="light"] .index__card {
  border-color: var(--border-color);
  background: var(--bg);
}

[data-theme="light"] .index__card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* ─── COMPONENTS LIGHT OVERRIDES ────────────────────────────────────────── */
[data-theme="light"] .card {
  border-color: var(--border-color);
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

[data-theme="light"] .card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

[data-theme="light"] .card--bordered {
  border-left: 3px solid var(--primary);
}

[data-theme="light"] .stat::after {
  background: var(--primary);
}

[data-theme="light"] .stat__label {
  color: var(--fg-muted);
}

[data-theme="light"] .ranking__bar {
  background: var(--gray-200);
}

[data-theme="light"] .ranking__label {
  color: var(--fg-secondary);
}

[data-theme="light"] .rank-item {
  border-bottom-color: var(--border-color);
}

[data-theme="light"] .rank-item__pos {
  color: var(--fg-muted);
}

/* ─── INSIGHT BOX LIGHT ─────────────────────────────────────────────────── */
[data-theme="light"] .insight {
  background: var(--bg-secondary);
  border-left-color: var(--primary);
}

[data-theme="light"] .insight--positive {
  background: var(--positive-light);
  border-left-color: var(--positive);
}

[data-theme="light"] .insight--warning {
  background: var(--warning-light);
  border-left-color: var(--warning);
}

[data-theme="light"] .insight--negative {
  background: var(--negative-light);
  border-left-color: var(--negative);
}

[data-theme="light"] .insight--info {
  background: var(--info-light);
  border-left-color: var(--info);
}

[data-theme="light"] .insight__text {
  color: var(--fg-secondary);
}

[data-theme="light"] .insight__text strong {
  color: var(--fg);
}

/* ─── SENTIMENT BARS LIGHT ──────────────────────────────────────────────── */
[data-theme="light"] .sentiment-bar__track {
  background: var(--gray-200);
}

[data-theme="light"] .sentiment-bar__label {
  color: var(--fg-secondary);
}

/* ─── DATA TABLE LIGHT ──────────────────────────────────────────────────── */
[data-theme="light"] .data-table th {
  background: var(--primary);
  color: var(--bg);
  border-bottom-color: var(--primary);
}

[data-theme="light"] .data-table td {
  border-bottom-color: var(--border-color);
  color: var(--fg-secondary);
}

[data-theme="light"] .data-table tr:hover td {
  background: var(--bg-secondary);
}

[data-theme="light"] .data-table__highlight {
  background: var(--primary-light) !important;
}

/* ─── TAGS LIGHT ────────────────────────────────────────────────────────── */
[data-theme="light"] .tag {
  background: var(--gray-200);
  border-color: var(--border-color);
  color: var(--fg-secondary);
}

[data-theme="light"] .tag:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

[data-theme="light"] .tag--primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

/* ─── HIGHLIGHT BLOCK LIGHT ─────────────────────────────────────────────── */
[data-theme="light"] .highlight {
  background: var(--primary);
  color: var(--bg);
}

/* ─── DIVIDER LIGHT ─────────────────────────────────────────────────────── */
[data-theme="light"] .divider {
  background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
}

/* ─── SOURCE ITEM LIGHT ─────────────────────────────────────────────────── */
[data-theme="light"] .source {
  border-bottom-color: var(--border-color);
}

[data-theme="light"] .source__name {
  color: var(--fg);
}

[data-theme="light"] .source__type {
  color: var(--fg-muted);
}

/* ─── ENGINE CARD LIGHT ─────────────────────────────────────────────────── */
[data-theme="light"] .engine {
  border-color: var(--border-color);
  background: var(--bg);
}

/* ─── SCORE/GAUGE LIGHT ─────────────────────────────────────────────────── */
[data-theme="light"] .score__ring {
  border-color: var(--gray-200);
  background: var(--bg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

[data-theme="light"] .score__label {
  color: var(--fg-secondary);
}

/* ─── BULLETS LIGHT ─────────────────────────────────────────────────────── */
[data-theme="light"] .bullets li {
  color: var(--fg-secondary);
  border-bottom-color: var(--border-color);
}

[data-theme="light"] .bullets li strong {
  color: var(--fg);
}

/* ─── COMPARE LIGHT ─────────────────────────────────────────────────────── */
[data-theme="light"] .compare__vs {
  color: var(--fg-muted);
  border-color: var(--border-color);
}

/* ─── QUOTE LIGHT ───────────────────────────────────────────────────────── */
[data-theme="light"] .quote {
  color: var(--fg);
}

[data-theme="light"] .quote__by {
  color: var(--fg-muted);
}

/* ─── OUTLINED TEXT LIGHT ───────────────────────────────────────────────── */
[data-theme="light"] .outlined {
  -webkit-text-stroke-color: var(--primary);
}
