/* ==========================================================================
   ZyJobs Global Stylesheet
   Premium Dark-Mode SaaS Design System
   ========================================================================== */

/* ── Google Fonts Import ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS Custom Properties (Design Tokens) ───────────────────────────────── */
:root {
  /* Primary Palette - Deep Space with Neon Accents */
  --zy-bg-primary: #0a0a0f;
  --zy-bg-secondary: #12121a;
  --zy-bg-tertiary: #1a1a25;
  --zy-bg-elevated: #22222f;
  
  /* Neon Accent Colors */
  --zy-accent-primary: #6366f1;      /* Indigo */
  --zy-accent-secondary: #8b5cf6;    /* Violet */
  --zy-accent-tertiary: #06b6d4;     /* Cyan */
  --zy-accent-success: #10b981;      /* Emerald */
  --zy-accent-warning: #f59e0b;      /* Amber */
  --zy-accent-danger: #ef4444;       /* Red */
  
  /* Gradient Presets */
  --zy-gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --zy-gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  --zy-gradient-text: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
  
  /* Glassmorphism */
  --zy-glass-bg: rgba(255, 255, 255, 0.03);
  --zy-glass-border: rgba(255, 255, 255, 0.08);
  --zy-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --zy-glass-blur: blur(20px);
  
  /* Text Colors */
  --zy-text-primary: #f8fafc;
  --zy-text-secondary: #94a3b8;
  --zy-text-muted: #64748b;
  
  /* Spacing Scale */
  --zy-space-xs: 0.25rem;
  --zy-space-sm: 0.5rem;
  --zy-space-md: 1rem;
  --zy-space-lg: 1.5rem;
  --zy-space-xl: 2rem;
  --zy-space-2xl: 3rem;
  --zy-space-3xl: 4rem;
  
  /* Border Radius */
  --zy-radius-sm: 8px;
  --zy-radius-md: 12px;
  --zy-radius-lg: 16px;
  --zy-radius-xl: 24px;
  --zy-radius-full: 9999px;
  
  /* Typography */
  --zy-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --zy-font-display: 'Space Grotesk', var(--zy-font-primary);
  
  /* Shadows */
  --zy-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --zy-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --zy-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --zy-shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
  
  /* Transitions */
  --zy-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --zy-transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --zy-transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-Index Scale */
  --zy-z-base: 1;
  --zy-z-dropdown: 100;
  --zy-z-sticky: 200;
  --zy-z-modal: 1000;
  --zy-z-toast: 1100;
}

/* ── Light Mode Override (Optional) ──────────────────────────────────────── */
[data-theme="light"] {
  --zy-bg-primary: #f8fafc;
  --zy-bg-secondary: #f1f5f9;
  --zy-bg-tertiary: #e2e8f0;
  --zy-bg-elevated: #ffffff;
  --zy-glass-bg: rgba(255, 255, 255, 0.7);
  --zy-glass-border: rgba(0, 0, 0, 0.08);
  --zy-text-primary: #0f172a;
  --zy-text-secondary: #475569;
  --zy-text-muted: #94a3b8;
}

/* ── CSS Reset ───────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--zy-font-primary);
  background-color: var(--zy-bg-primary);
  color: var(--zy-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Typography — Responsive with clamp() ────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--zy-font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--zy-text-primary);
}

/* Fluid typography using clamp(min, preferred, max) */
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.25rem); }
h5 { font-size: clamp(1rem, 2vw, 1.125rem); }
h6 { font-size: clamp(0.9375rem, 2vw, 1rem); }

p {
  color: var(--zy-text-secondary);
  line-height: 1.7;
}

a {
  color: var(--zy-accent-primary);
  text-decoration: none;
  transition: color var(--zy-transition-fast);
}

a:hover {
  color: var(--zy-accent-secondary);
}

/* ── Utility Classes ─────────────────────────────────────────────────────── */
.zy-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--zy-space-lg);
}

.zy-section {
  padding: var(--zy-space-3xl) 0;
}

.zy-text-gradient {
  background: var(--zy-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.zy-glass {
  background: var(--zy-glass-bg);
  backdrop-filter: var(--zy-glass-blur);
  -webkit-backdrop-filter: var(--zy-glass-blur);
  border: 1px solid var(--zy-glass-border);
  border-radius: var(--zy-radius-lg);
}

.zy-hidden {
  display: none !important;
}

.zy-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Scrollbar Styling ───────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--zy-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--zy-bg-elevated);
  border-radius: var(--zy-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--zy-accent-primary);
}

/* ── Selection ───────────────────────────────────────────────────────────── */
::selection {
  background-color: rgba(99, 102, 241, 0.3);
  color: var(--zy-text-primary);
}

/* ── Focus States ────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--zy-accent-primary);
  outline-offset: 2px;
}

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes zy-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zy-float {
  0%, 100% {
    transform: translateY(0) rotateX(5deg);
  }
  50% {
    transform: translateY(-20px) rotateX(-5deg);
  }
}

@keyframes zy-pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
  }
}

@keyframes zy-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.zy-animate-fade-in {
  animation: zy-fade-in 0.6s ease-out forwards;
}

.zy-animate-float {
  animation: zy-float 6s ease-in-out infinite;
}

/* ── Background Effects ──────────────────────────────────────────────────── */
.zy-bg-grid {
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.zy-bg-radial {
  background: radial-gradient(
    ellipse 80% 50% at 50% -20%,
    rgba(99, 102, 241, 0.15),
    transparent
  );
}

/* ── Loading State ───────────────────────────────────────────────────────── */
.zy-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.zy-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  background-size: 200% 100%;
  animation: zy-shimmer 1.5s infinite;
}