/* Prism Analysis Brand Theme - Professional Blue Palette */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

:root {
  /* ===== TYPOGRAPHY ===== */
  --font-family: 'Roboto', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* ===== COLORS ===== */

  /* Background & Surface */
  --bg: #f8fafc;           /* Soft slate background */
  --border: #cbd5e1;       /* Cool slate border */

  /* Text */
  --text: #0f172a;         /* Deep slate, almost navy */
  --muted: #415779;        /* Mid slate for secondary text */

  /* Brand Colors - Professional Blues */
  --brand: #023e8a;        /* Deep professional blue */
  --accent: #0096c7;       /* Calm medium blue */
  --accent2: #48cae4;      /* Soft light blue */

  /* Semi-transparent overlays */
  --overlay-header: rgba(255, 255, 255, 0.6);
  --overlay-footer: rgba(255, 255, 255, 0.4);
  --overlay-surface: rgba(248, 250, 252, 0.68);
  --overlay-gradient-top: rgba(11, 16, 32, 0.70);
  --overlay-gradient-mid: rgba(11, 16, 32, 0.35);
  --overlay-gradient-bottom: rgba(11, 16, 32, 0.70);

  /* Status Colors */
  --success: #16a34a;      /* Green-600 */
  --success-bg: rgba(34, 197, 94, 0.1);
  --success-border: rgba(34, 197, 94, 0.3);
  --error: #dc2626;        /* Red-600 */
  --error-bg: rgba(239, 68, 68, 0.1);
  --error-border: rgba(239, 68, 68, 0.3);

  /* ===== SPACING ===== */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 80px;

  /* ===== TYPOGRAPHY ===== */
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;

  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --letter-spacing-tight: 0.12em;
  --letter-spacing-normal: 0.2px;

  --line-height-tight: 1.25;

  /* ===== LAYOUT ===== */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow: 0 8px 32px rgba(15, 23, 42, 0.08);

  --z-sticky: 10;

  --icon-size-sm: 18px;
  --icon-size-md: 24px;
  --icon-size-lg: 28px;

  /* ===== EFFECTS ===== */
  --backdrop-blur-sm: saturate(160%) blur(6px);
  --backdrop-blur-lg: saturate(180%) blur(8px);

  --transition-fast: 0.2s;

  --outline-width: 2px;
  --outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Background & Surface */
    --bg: #0f172a;         /* Deep navy slate */
    --border: #334155;     /* Muted slate border */
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Semi-transparent overlays */
    --overlay-header: rgba(15, 23, 42, 0.6);
    --overlay-footer: rgba(15, 23, 42, 0.4);
    --overlay-surface: rgba(15, 23, 42, 0.5);
    --overlay-gradient-top: rgba(6, 10, 22, 0.85);
    --overlay-gradient-mid: rgba(6, 10, 22, 0.55);
    --overlay-gradient-bottom: rgba(6, 10, 22, 0.85);

    /* Text */
    --text: #f1f5f9;       /* Soft white for readability */
    --muted: #94a3b8;      /* Light slate for secondary text */

    /* Brand Colors - Brighter for Dark Mode */
    --brand: #60a5fa;      /* Bright blue (blue-400) */
    --accent: #38bdf8;     /* Bright sky blue (sky-400) */
    --accent2: #3b82f6;    /* Vibrant blue (blue-500) */
  }
}

/* Manual theme overrides (when user toggles) */
html.theme-dark {
  /* Background & Surface */
  --bg: #0f172a;         /* Deep navy slate */
  --border: #334155;     /* Muted slate border */
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Semi-transparent overlays */
  --overlay-header: rgba(15, 23, 42, 0.6);
  --overlay-footer: rgba(15, 23, 42, 0.4);
  --overlay-surface: rgba(15, 23, 42, 0.5);
  --overlay-gradient-top: rgba(6, 10, 22, 0.85);
  --overlay-gradient-mid: rgba(6, 10, 22, 0.55);
  --overlay-gradient-bottom: rgba(6, 10, 22, 0.85);

  /* Text */
  --text: #f1f5f9;       /* Soft white for readability */
  --muted: #94a3b8;      /* Light slate for secondary text */

  /* Brand Colors - Brighter for Dark Mode */
  --brand: #60a5fa;      /* Bright blue (blue-400) */
  --accent: #38bdf8;     /* Bright sky blue (sky-400) */
  --accent2: #3b82f6;    /* Vibrant blue (blue-500) */
}

html.theme-light {
  /* Background & Surface */
  --bg: #f8fafc;           /* Soft slate background */
  --border: #cbd5e1;       /* Cool slate border */
  --shadow: 0 8px 32px rgba(15, 23, 42, 0.08);

  /* Semi-transparent overlays */
  --overlay-header: rgba(255, 255, 255, 0.6);
  --overlay-footer: rgba(255, 255, 255, 0.4);
  --overlay-surface: rgba(248, 250, 252, 0.68);
  --overlay-gradient-top: rgba(11, 16, 32, 0.70);
  --overlay-gradient-mid: rgba(11, 16, 32, 0.35);
  --overlay-gradient-bottom: rgba(11, 16, 32, 0.70);

  /* Text */
  --text: #0f172a;         /* Deep slate, almost navy */
  --muted: #415779;        /* Mid slate for secondary text */

  /* Brand Colors - Professional Blues */
  --brand: #023e8a;        /* Deep professional blue */
  --accent: #0096c7;       /* Calm medium blue */
  --accent2: #48cae4;      /* Soft light blue */
}
