/* ============================================
   LIGHT THEME VARIABLES
   Vibe Working & AI Workforce - Light Edition
   Created: 2026-03-03
   ============================================ */

:root {
  /* ===== BASE COLORS - Light Theme ===== */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFF; /* Very light blue tint */
  --color-surface: #FFFFFF;
  --color-surface-light: #F1F5F9;
  --color-surface-hover: #E2E8F0;

  /* ===== BORDERS & DIVIDERS ===== */
  --color-border: rgba(100, 116, 139, 0.2);
  --color-border-light: rgba(148, 163, 184, 0.15);

  /* ===== TEXT COLORS ===== */
  --color-text: #0F172A; /* Dark blue-grey */
  --color-text-secondary: #334155; /* IMPROVED: darker for better contrast (was #475569) */
  --color-text-muted: #475569; /* IMPROVED: better contrast ratio 5.8:1 (was #64748B 3.7:1) */
  --color-text-dim: #64748B; /* IMPROVED: better contrast ratio 3.9:1 (was #94A3B8 2.5:1) */

  /* ===== PRIMARY - Vibrant Blue ===== */
  --color-primary: #2563EB;
  --color-primary-light: #3B82F6;
  --color-primary-dark: #1D4ED8;
  --color-primary-ultra-light: #DBEAFE;

  /* ===== SECONDARY - Purple ===== */
  --color-secondary: #8B5CF6;
  --color-secondary-light: #A78BFA;
  --color-secondary-ultra-light: #EDE9FE;

  /* ===== ACCENT - Orange/Coral ===== */
  --color-accent: #F97316;
  --color-accent-light: #FB923C;
  --color-accent-ultra-light: #FFEDD5;

  /* ===== AGENT COLORS (Cute Theme) ===== */
  --color-agent-research: #3B82F6; /* Blue */
  --color-agent-content: #8B5CF6; /* Purple */
  --color-agent-design: #EC4899; /* Pink */
  --color-agent-code: #10B981; /* Green */
  --color-agent-analysis: #F59E0B; /* Orange */
  --color-agent-automation: #EAB308; /* Yellow */

  /* Agent background tints */
  --color-agent-research-bg: #DBEAFE;
  --color-agent-content-bg: #EDE9FE;
  --color-agent-design-bg: #FCE7F3;
  --color-agent-code-bg: #D1FAE5;
  --color-agent-analysis-bg: #FEF3C7;
  --color-agent-automation-bg: #FEF9C3;

  /* ===== STATUS COLORS ===== */
  --color-success: #10B981;
  --color-success-light: #34D399;
  --color-success-bg: #D1FAE5;

  --color-warning: #F59E0B;
  --color-warning-light: #FBBF24;
  --color-warning-bg: #FEF3C7;

  --color-error: #EF4444;
  --color-error-light: #F87171;
  --color-error-bg: #FEE2E2;

  --color-info: #3B82F6;
  --color-info-light: #60A5FA;
  --color-info-bg: #DBEAFE;

  /* ===== GRADIENTS - Vibrant & Energetic ===== */
  --gradient-primary: linear-gradient(135deg, #3B82F6, #8B5CF6);
  --gradient-primary-soft: linear-gradient(135deg, #DBEAFE, #EDE9FE);

  --gradient-accent: linear-gradient(135deg, #F97316, #FB923C);
  --gradient-accent-soft: linear-gradient(135deg, #FFEDD5, #FEF3C7);

  --gradient-hero: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 50%, #FFF7ED 100%);
  --gradient-hero-alt: linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);

  --gradient-card: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.05));
  --gradient-card-hover: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.08));

  --gradient-glow: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1), transparent 70%);
  --gradient-glow-accent: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.1), transparent 70%);

  /* Agent-specific gradients */
  --gradient-agent-research: linear-gradient(135deg, #3B82F6, #2563EB);
  --gradient-agent-content: linear-gradient(135deg, #8B5CF6, #7C3AED);
  --gradient-agent-design: linear-gradient(135deg, #EC4899, #DB2777);
  --gradient-agent-code: linear-gradient(135deg, #10B981, #059669);
  --gradient-agent-analysis: linear-gradient(135deg, #F59E0B, #D97706);
  --gradient-agent-automation: linear-gradient(135deg, #EAB308, #CA8A04);

  /* ===== GLASS MORPHISM ===== */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(148, 163, 184, 0.2);
  --glass-blur: blur(20px);

  /* ===== SHADOWS - Enhanced for better depth ===== */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.1);    /* IMPROVED: stronger depth */
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);  /* IMPROVED: more dramatic */
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);   /* IMPROVED: strongest depth */

  /* Colored shadows for agents */
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.2);
  --shadow-glow-accent: 0 0 30px rgba(249, 115, 22, 0.2);
  --shadow-glow-success: 0 0 30px rgba(16, 185, 129, 0.2);

  /* Agent avatar shadows (cute effect) */
  --shadow-agent-research: 0 4px 20px rgba(59, 130, 246, 0.3);
  --shadow-agent-content: 0 4px 20px rgba(139, 92, 246, 0.3);
  --shadow-agent-design: 0 4px 20px rgba(236, 72, 153, 0.3);
  --shadow-agent-code: 0 4px 20px rgba(16, 185, 129, 0.3);
  --shadow-agent-analysis: 0 4px 20px rgba(245, 158, 11, 0.3);
  --shadow-agent-automation: 0 4px 20px rgba(234, 179, 8, 0.3);

  /* ===== TYPOGRAPHY ===== */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.625rem;    /* 42px - IMPROVED: larger section titles */
  --font-size-5xl: 3.75rem;     /* 60px - IMPROVED: larger hero titles */
  --font-size-6xl: 4.5rem;      /* 72px - IMPROVED: extra large hero */
  --font-size-7xl: 5.5rem;      /* 88px - NEW: for special impact */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.15;     /* IMPROVED: tighter for large headings */
  --line-height-snug: 1.3;       /* IMPROVED: for medium headings */
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;    /* IMPROVED: more relaxed for body */
  --line-height-loose: 1.8;      /* IMPROVED: for emphasis blocks */

  /* ===== SPACING ===== */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px - IMPROVED: more generous section spacing */
  --space-28: 7rem;     /* 112px - NEW: extra large spacing */
  --space-32: 8rem;     /* 128px - NEW: maximum spacing */

  /* ===== BORDER RADIUS ===== */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-full: 9999px;

  /* Agent avatar radius (cute, rounded) */
  --radius-agent: 16px;

  /* ===== TRANSITIONS ===== */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-elastic: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Animation durations */
  --duration-instant: 100ms;
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;

  /* ===== LAYOUT ===== */
  --container-max: 1200px;
  --container-narrow: 800px;
  --nav-height: 72px;

  /* ===== Z-INDEX LAYERS ===== */
  --z-base: 0;
  --z-particles: 1;
  --z-content: 10;
  --z-floating: 50;
  --z-nav: 100;
  --z-dropdown: 150;
  --z-modal-backdrop: 200;
  --z-modal: 210;
  --z-tooltip: 300;
  --z-notification: 400;

  /* ===== ANIMATION KEYFRAME REFERENCES ===== */
  /* These will be defined in animations-advanced.css */
  --anim-bounce: bounce;
  --anim-pulse: pulse;
  --anim-spin: spin;
  --anim-ping: ping;
  --anim-float: float;
  --anim-wiggle: wiggle;

  /* ===== CUSTOM PROPERTIES FOR AGENTS ===== */
  /* Agent sizes */
  --agent-size-sm: 48px;
  --agent-size-md: 64px;
  --agent-size-lg: 80px;
  --agent-size-xl: 120px;

  /* Agent animation speeds */
  --agent-idle-duration: 2s;
  --agent-thinking-duration: 1.5s;
  --agent-working-duration: 2s;
  --agent-success-duration: 0.6s;

  /* ===== PARTICLE SYSTEM ===== */
  --particle-count-desktop: 50;
  --particle-count-tablet: 30;
  --particle-count-mobile: 20;
  --particle-size-min: 2px;
  --particle-size-max: 6px;
  --particle-speed-min: 0.5;
  --particle-speed-max: 2;

  /* ===== INTERACTIVE ELEMENTS ===== */
  /* Magnetic button properties */
  --magnetic-strength: 0.3;
  --magnetic-radius: 100px;

  /* Hover card tilt */
  --tilt-max-x: 10deg;
  --tilt-max-y: 10deg;

  /* ===== BREAKPOINTS (for reference in JS) ===== */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

/* ===== SELECTION COLOR ===== */
::selection {
  background: rgba(59, 130, 246, 0.2);
  color: var(--color-text);
}

::-moz-selection {
  background: rgba(59, 130, 246, 0.2);
  color: var(--color-text);
}

/* ===== SCROLLBAR STYLING (Light Theme) ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface-light);
}

::-webkit-scrollbar-thumb {
  background: var(--color-text-muted);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

/* ===== FOCUS VISIBLE (Accessibility) ===== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
    --transition-spring: 0ms;
    --transition-elastic: 0ms;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
