﻿/* ===============================================================================
   TL-TOKENS.CSS - Design Tokens
   Single source of truth for colors, typography, spacing, shadows, and more.
   All other modules reference these variables for consistency.
   =============================================================================== */

:root {
  /* -- Color System ----------------------------------------------------------- */

  /* Primary */
  --tl-primary: #007bff;
  --tl-primary-dark: #0056b3;
  --tl-primary-light: #e7f1ff;
  --tl-primary-rgb: 0, 123, 255;

  /* Brand Accent */
  --tl-accent: #e84c3d;
  --tl-accent-dark: #c73a2f;
  --tl-accent-light: #fef2f1;

  /* Sky (used in nav, CTAs) */
  --tl-sky: #38bdf8;
  --tl-sky-dark: #0ea5e9;
  --tl-sky-light: #e0f2fe;

  /* Status */
  --tl-success: #28a745;
  --tl-success-dark: #1e7e34;
  --tl-success-light: #d4edda;

  --tl-warning: #ffc107;
  --tl-warning-dark: #e0a800;
  --tl-warning-light: #fff3cd;

  --tl-danger: #dc3545;
  --tl-danger-dark: #bd2130;
  --tl-danger-light: #f8d7da;

  --tl-info: #17a2b8;
  --tl-info-dark: #117a8b;
  --tl-info-light: #d1ecf1;

  /* Neutrals */
  --tl-gray-50: #f9fafb;
  --tl-gray-100: #f3f4f6;
  --tl-gray-200: #e5e7eb;
  --tl-gray-300: #d1d5db;
  --tl-gray-400: #9ca3af;
  --tl-gray-500: #6b7280;
  --tl-gray-600: #4b5563;
  --tl-gray-700: #374151;
  --tl-gray-800: #1f2937;
  --tl-gray-900: #111827;

  /* Semantic */
  --tl-body-bg: #ffffff;
  --tl-body-color: #212529;
  --tl-heading-color: #0f172a;
  --tl-muted: #64748b;
  --tl-border: #e2e8f0;
  --tl-surface: #ffffff;
  --tl-surface-alt: #f8fafc;

  /* Dark backgrounds (nav, hero, footer) */
  --tl-dark-bg: #0f172a;
  --tl-dark-bg-alt: #1e293b;
  --tl-dark-surface: rgba(255, 255, 255, 0.05);
  --tl-dark-border: rgba(148, 163, 184, 0.1);
  --tl-dark-text: #e2e8f0;
  --tl-dark-muted: #94a3b8;

  /* -- Typography ------------------------------------------------------------- */

  --tl-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --tl-font-heading: "Raleway", var(--tl-font-sans);
  --tl-font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;

  --tl-text-xs: 0.75rem;     /* 12px */
  --tl-text-sm: 0.875rem;    /* 14px */
  --tl-text-base: 1rem;      /* 16px */
  --tl-text-lg: 1.125rem;    /* 18px */
  --tl-text-xl: 1.25rem;     /* 20px */
  --tl-text-2xl: 1.5rem;     /* 24px */
  --tl-text-3xl: 1.875rem;   /* 30px */
  --tl-text-4xl: 2.25rem;    /* 36px */

  --tl-weight-normal: 400;
  --tl-weight-medium: 500;
  --tl-weight-semibold: 600;
  --tl-weight-bold: 700;
  --tl-weight-extrabold: 800;

  --tl-leading-tight: 1.15;
  --tl-leading-snug: 1.35;
  --tl-leading-normal: 1.5;
  --tl-leading-relaxed: 1.7;

  /* -- Spacing Scale (4px base) ----------------------------------------------- */

  --tl-space-0: 0;
  --tl-space-1: 0.25rem;   /* 4px */
  --tl-space-2: 0.5rem;    /* 8px */
  --tl-space-3: 0.75rem;   /* 12px */
  --tl-space-4: 1rem;      /* 16px */
  --tl-space-5: 1.25rem;   /* 20px */
  --tl-space-6: 1.5rem;    /* 24px */
  --tl-space-8: 2rem;      /* 32px */
  --tl-space-10: 2.5rem;   /* 40px */
  --tl-space-12: 3rem;     /* 48px */
  --tl-space-16: 4rem;     /* 64px */
  --tl-space-20: 5rem;     /* 80px */

  /* -- Border Radius ---------------------------------------------------------- */

  --tl-radius-sm: 4px;
  --tl-radius-md: 8px;
  --tl-radius-lg: 12px;
  --tl-radius-xl: 16px;
  --tl-radius-2xl: 20px;
  --tl-radius-full: 9999px;

  /* -- Shadows ---------------------------------------------------------------- */

  --tl-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --tl-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --tl-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --tl-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --tl-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --tl-shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  --tl-shadow-glow: 0 0 20px rgba(56, 189, 248, 0.15);

  /* -- Z-Index Scale ---------------------------------------------------------- */

  --tl-z-dropdown: 100;
  --tl-z-sticky: 200;
  --tl-z-nav: 500;
  --tl-z-overlay: 900;
  --tl-z-modal: 1000;
  --tl-z-toast: 1100;
  --tl-z-loader: 9999;

  /* -- Transitions ------------------------------------------------------------ */

  --tl-ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --tl-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --tl-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --tl-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --tl-duration-fast: 150ms;
  --tl-duration-base: 200ms;
  --tl-duration-slow: 300ms;
  --tl-duration-slower: 500ms;

  /* -- Breakpoints (reference only - use in media queries) -------------------- */
  /* xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, 2xl: 1400px */

  /* -- Container Widths ------------------------------------------------------- */

  --tl-container-sm: 540px;
  --tl-container-md: 720px;
  --tl-container-lg: 960px;
  --tl-container-xl: 1140px;
  --tl-container-2xl: 1320px;
}

/* -- Dark Mode Token Overrides ------------------------------------------------ */

[data-theme="dark"] {
  --tl-body-bg: #0f172a;
  --tl-body-color: #e2e8f0;
  --tl-heading-color: #f1f5f9;
  --tl-muted: #94a3b8;
  --tl-border: rgba(148, 163, 184, 0.15);
  --tl-surface: #1e293b;
  --tl-surface-alt: #0f172a;
}

/* -- Bootstrap Compatibility Bridge ------------------------------------------- */
/* Maps Bootstrap's --variables to our token system for gradual migration */

:root {
  --primary: var(--tl-primary);
  --success: var(--tl-success);
  --info: var(--tl-info);
  --warning: var(--tl-warning);
  --danger: var(--tl-danger);
}

/* -- Gradient Presets --------------------------------------------------------- */

:root {
  --tl-gradient-hero: linear-gradient(135deg, var(--tl-dark-bg) 0%, #1e3a5f 50%, var(--tl-dark-bg) 100%);
  --tl-gradient-cta: linear-gradient(135deg, #0284c7 0%, var(--tl-dark-bg) 100%);
  --tl-gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  --tl-gradient-card-purple: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
}

/* -- Opacity Presets ---------------------------------------------------------- */

:root {
  --tl-opacity-disabled: 0.5;
  --tl-opacity-hover: 0.08;
  --tl-opacity-overlay: 0.5;
  --tl-opacity-backdrop: 0.95;

  /* -- Interview Questions Page Variables ------------------------------------ */
  --iq-badge-bg: rgba(56, 189, 248, 0.1);
  --iq-badge-border: rgba(56, 189, 248, 0.3);
  --iq-badge-color: #38bdf8;
  --iq-hero-glow: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  --iq-card-border-hover: #38bdf8;
  --iq-card-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
  --iq-num-bg: #e0f2fe;
  --iq-num-color: #0284c7;
}


