/* ============================================================
   PRICE ACTION TRADING COURSE — GLOBAL DESIGN SYSTEM
   Premium Dark Theme · Tamil Trading Education Platform
   ============================================================ */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Backgrounds */
  --color-bg: #0A0E17;
  --color-bg-secondary: #111827;
  --color-bg-card: #1E293B;
  --color-bg-card-hover: #334155;

  /* Text */
  --color-text: #E8E8E8;
  --color-text-muted: #9CA3AF;
  --color-text-heading: #F1F5F9;

  /* Semantic Colors */
  --color-bullish: #00C853;
  --color-bullish-dim: rgba(0, 200, 83, 0.15);
  --color-bearish: #FF1744;
  --color-bearish-dim: rgba(255, 23, 68, 0.15);
  --color-info: #2979FF;
  --color-info-dim: rgba(41, 121, 255, 0.15);
  --color-tip: #FFD600;
  --color-tip-dim: rgba(255, 214, 0, 0.15);
  --color-warning: #FF6D00;
  --color-warning-dim: rgba(255, 109, 0, 0.15);
  --color-psychology: #AA00FF;
  --color-psychology-dim: rgba(170, 0, 255, 0.15);

  /* Accent & Brand */
  --color-accent: #00BCD4;
  --color-gold: #FFC107;
  --color-border: #374151;

  /* Typography */
  --font-primary: 'Inter', sans-serif;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow-green: 0 0 20px rgba(0, 200, 83, 0.3);
  --shadow-glow-red: 0 0 20px rgba(255, 23, 68, 0.3);
  --shadow-glow-blue: 0 0 20px rgba(41, 121, 255, 0.3);
  --shadow-glow-accent: 0 0 20px rgba(0, 188, 212, 0.3);
  --shadow-glow-gold: 0 0 20px rgba(255, 193, 7, 0.3);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00C853 0%, #00BCD4 100%);
  --gradient-hero: linear-gradient(180deg, rgba(10,14,23,0) 0%, #0A0E17 100%);
  --gradient-card: linear-gradient(145deg, rgba(30,41,59,0.8) 0%, rgba(17,24,39,0.9) 100%);
  --gradient-gold: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
  --gradient-danger: linear-gradient(135deg, #FF1744 0%, #D50000 100%);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-nav: 500;
  --z-modal: 1000;
  --z-toast: 1500;

  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
}


/* ============================================================
   CSS RESET / NORMALIZE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-bullish);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}


/* ============================================================
   TYPOGRAPHY SYSTEM
   ============================================================ */
.text-xs   { font-size: 0.75rem; line-height: 1.5; }
.text-sm   { font-size: 0.875rem; line-height: 1.5; }
.text-base { font-size: 1rem; line-height: 1.7; }
.text-lg   { font-size: 1.125rem; line-height: 1.6; }
.text-xl   { font-size: 1.25rem; line-height: 1.5; }
.text-2xl  { font-size: 1.5rem; line-height: 1.4; }
.text-3xl  { font-size: 1.875rem; line-height: 1.3; }
.text-4xl  { font-size: 2.25rem; line-height: 1.2; }
.text-5xl  { font-size: 3rem; line-height: 1.1; }
.text-6xl  { font-size: 3.75rem; line-height: 1.05; }

h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

strong, b {
  font-weight: 700;
  color: var(--color-text-heading);
}

em, i {
  font-style: italic;
}

small {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

code {
  font-family: 'Fira Code', 'SF Mono', 'Cascadia Code', monospace;
  font-size: 0.875em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-accent);
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--color-text-muted);
  font-style: italic;
}


/* ============================================================
   BASE LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Flex Utilities */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Grid Utilities */
.grid { display: grid; }

/* Text Alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Margin/Padding Utilities */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.py-2xl { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.py-3xl { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }
.py-4xl { padding-top: var(--space-4xl); padding-bottom: var(--space-4xl); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }

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

/* Selection Color */
::selection {
  background: rgba(0, 188, 212, 0.3);
  color: var(--color-text-heading);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-bg);
}
