/* System Design Variables - HUB SCR */

:root {
  /* Corporate Colors (from aplicacion-sig-grd) */
  --color-primary: #223764;       /* Brand Dark Blue */
  --color-primary-light: #304e8c; /* Interactive Blue */
  --color-primary-rgb: 34, 55, 100;
  --color-accent: #FAC718;        /* Official Yellow */
  --color-accent-hover: #e0b215;
  --color-accent-rgb: 250, 199, 24;
  --color-teal: #087283;          /* Category/icon accent (already used in card icons) */
  --color-teal-rgb: 8, 114, 131;

  /* Neutrals (Light Mode / Default) */
  --bg-main: #f8fafc;             /* Slate 50 */
  --bg-card: #ffffff;
  --bg-hero: linear-gradient(135deg, #223764 0%, #304e8c 100%);
  --bg-header: rgba(255, 255, 255, 0.85);
  
  --text-main: #223764;           /* Slate 900 / Brand dark blue */
  --text-muted: #475569;          /* Slate 600 */
  --text-light: #64748b;          /* Slate 500 */
  --text-on-primary: #ffffff;
  
  --border-color: rgba(34, 55, 100, 0.12); /* Faint brand blue border instead of dark borders */
  --border-focus: #FAC718;        /* Yellow focus */

  /* Shadows (Notion + GitBook Inspired) */
  --shadow-sm: 0 1px 3px 0 rgba(34, 55, 100, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(34, 55, 100, 0.05), 0 2px 4px -2px rgba(34, 55, 100, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(34, 55, 100, 0.06), 0 4px 6px -4px rgba(34, 55, 100, 0.06);
  --shadow-hover: 0 20px 25px -5px rgba(250, 199, 24, 0.15), 0 8px 10px -6px rgba(250, 199, 24, 0.15);

  /* Fonts */
  --font-primary: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  /* Accessibility Defaults */
  --accessibility-font-scale: 1;
}

/* Dark Mode Theme */
[data-theme="dark"] {
  --bg-main: #0b1329;             /* Very dark blue-gray */
  --bg-card: #152238;             /* Dark blue-gray card */
  --bg-hero: linear-gradient(135deg, #050d1d 0%, #0f1c3f 100%);
  --bg-header: rgba(21, 34, 56, 0.85);

  --text-main: #f1f5f9;           /* Slate 100 */
  --text-muted: #cbd5e1;          /* Slate 300 */
  --text-light: #94a3b8;          /* Slate 400 */

  --border-color: #2e3f5d;        /* Muted border */
  --border-focus: #60a5fa;
  --color-teal: #0d9488;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 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-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

/* High Contrast Mode (WCAG AAA Compliance) */
body.high-contrast {
  --bg-main: #ffffff !important;
  --bg-card: #ffffff !important;
  --bg-hero: #000000 !important;
  --bg-header: #ffffff !important;

  --text-main: #000000 !important;
  --text-muted: #000000 !important;
  --text-light: #111111 !important;
  --text-on-primary: #ffff00 !important; /* Yellow text on black bg */

  --border-color: #000000 !important;
  --border-focus: #0000ff !important;

  --color-primary: #000000 !important;
  --color-primary-light: #111111 !important;
  --color-accent: #ffff00 !important; /* High contrast yellow */
  
  --shadow-sm: none !important;
  --shadow-md: none !important;
  --shadow-lg: none !important;
  --shadow-hover: none !important;
  
  border: 1px solid #000000 !important;
}

/* Font Scales for Accessibility */
body.font-scale-1-1 {
  --accessibility-font-scale: 1.1;
}

body.font-scale-1-2 {
  --accessibility-font-scale: 1.2;
}

body.font-scale-1-3 {
  --accessibility-font-scale: 1.3;
}

/* Dyslexic Friendly Font Option */
body.dyslexic-font {
  --font-primary: 'OpenDyslexic', 'Comic Sans MS', sans-serif !important;
}
