/* ============================================================================
   SchemaReports - Foundation CSS
   Design System v1.0
   ============================================================================ */

/* ============================================================================
   BASE RESET
   ============================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: var(--line-height-normal);
  font-family: var(--font-body);
  background-color: var(--bg-space);
  color: var(--text-secondary);
}

/* ============================================================================
   CSS CUSTOM PROPERTIES - DESIGN TOKENS
   ============================================================================ */

:root {
  /* --------------------------------------------------------------------------
     PRIMARY BRAND COLORS
     -------------------------------------------------------------------------- */
  --brand-primary: #10b981;         /* ZolukoWeb Green - PRIMARY accent color */
  --brand-primary-dark: #059669;    /* Dark Green - hover states */
  --brand-primary-light: #34d399;   /* Light Green - highlights */
  --brand-secondary: #60a5fa;       /* Smart Stack Blue - secondary accent */
  --brand-secondary-dark: #3b82f6;  /* Dark Blue - hover states */
  --brand-accent: #00ffff;          /* Cyan - tertiary highlights only */

  /* --------------------------------------------------------------------------
     BACKGROUND COLORS
     -------------------------------------------------------------------------- */
  --bg-space: #060d21;              /* Space Background Base - main bg */
  --bg-dark: #0a0a0f;               /* Darkest backgrounds */
  --bg-mid: #1a1a2e;                /* Card/section backgrounds */
  --bg-lighter: #16213e;            /* Elevated surfaces */
  --bg-card: #0f0f23;               /* Card interiors */

  /* --------------------------------------------------------------------------
     TYPOGRAPHY COLORS
     -------------------------------------------------------------------------- */
  --text-primary: #ffffff;          /* Main headings, primary text */
  --text-headings: #60a5fa;         /* H2, H3 headings - Smart Stack Blue */
  --text-secondary: #e2e8f0;        /* Body text, paragraphs */
  --text-muted: #cbd5e1;            /* Secondary text */
  --text-dim: #94a3b8;              /* Tertiary, captions */

  /* --------------------------------------------------------------------------
     GLASS MORPHISM
     -------------------------------------------------------------------------- */
  --glass-bg: rgba(15, 23, 42, 0.8);        /* Glass panel background */
  --glass-bg-light: rgba(30, 41, 59, 0.6);
  --glass-bg-subtle: rgba(51, 65, 85, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.2);

  /* --------------------------------------------------------------------------
     BUTTON COLORS
     -------------------------------------------------------------------------- */
  --btn-primary-bg: #0891b2;        /* Primary button background */
  --btn-primary-hover: #06b6d4;     /* Primary button hover */
  --btn-secondary-bg: transparent;
  --btn-secondary-border: #10b981;

  /* --------------------------------------------------------------------------
     STATUS COLORS
     -------------------------------------------------------------------------- */
  --status-error: #ef4444;          /* Red - errors, critical issues */
  --status-warning: #f59e0b;        /* Yellow/Amber - warnings */
  --status-success: #34d399;        /* Green - success, passing */
  --status-info: #60a5fa;           /* Blue - informational */

  /* --------------------------------------------------------------------------
     GLOW EFFECTS
     -------------------------------------------------------------------------- */
  --glow-green: 0 0 20px rgba(16, 185, 129, 0.3);
  --glow-green-strong: 0 0 30px rgba(16, 185, 129, 0.5);
  --glow-blue: 0 0 20px rgba(96, 165, 250, 0.3);
  --glow-cyan: 0 0 20px rgba(0, 255, 255, 0.2);

  /* --------------------------------------------------------------------------
     PARTICLE EFFECTS
     -------------------------------------------------------------------------- */
  --particle-primary: rgba(16, 185, 129, 0.6);    /* Green particles */
  --particle-secondary: rgba(96, 165, 250, 0.4);  /* Blue particles */
  --particle-accent: rgba(0, 255, 255, 0.3);      /* Cyan particles */

  /* --------------------------------------------------------------------------
     GRADIENTS
     -------------------------------------------------------------------------- */
  --gradient-primary: linear-gradient(135deg, #10b981 0%, #60a5fa 100%);
  --gradient-dark: linear-gradient(180deg, #060d21 0%, #0a0a0f 100%);
  --gradient-card: linear-gradient(145deg, rgba(16, 185, 129, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
  --gradient-cta: linear-gradient(90deg, #10b981 0%, #0891b2 100%);
  --gradient-hero: linear-gradient(180deg, rgba(6, 13, 33, 0) 0%, rgba(6, 13, 33, 0.9) 100%);
  --gradient-section: linear-gradient(180deg, #060d21 0%, #0a0a0f 50%, #060d21 100%);

  /* --------------------------------------------------------------------------
     TYPOGRAPHY - FONT FAMILIES
     -------------------------------------------------------------------------- */
  --font-display: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --------------------------------------------------------------------------
     TYPOGRAPHY - FONT SIZES (Fluid Typography)
     -------------------------------------------------------------------------- */
  --font-size-hero: clamp(2.5rem, 6vw, 4.5rem);
  --font-size-h1: clamp(2rem, 4vw, 3rem);
  --font-size-h2: clamp(1.5rem, 3vw, 2rem);
  --font-size-h3: clamp(1.25rem, 2vw, 1.5rem);
  --font-size-h4: clamp(1.125rem, 1.5vw, 1.25rem);
  --font-size-body: 1rem;           /* 16px base */
  --font-size-body-lg: 1.125rem;    /* 18px */
  --font-size-small: 0.875rem;      /* 14px */
  --font-size-xs: 0.75rem;          /* 12px */

  /* --------------------------------------------------------------------------
     TYPOGRAPHY - LINE HEIGHTS
     -------------------------------------------------------------------------- */
  --line-height-tight: 1.2;         /* Headings */
  --line-height-normal: 1.6;        /* Body text */
  --line-height-relaxed: 1.8;       /* Long-form content */

  /* --------------------------------------------------------------------------
     TYPOGRAPHY - FONT WEIGHTS
     -------------------------------------------------------------------------- */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* --------------------------------------------------------------------------
     SPACING SYSTEM
     -------------------------------------------------------------------------- */
  --space-xs: 0.25rem;      /* 4px */
  --space-sm: 0.5rem;       /* 8px */
  --space-md: 1rem;         /* 16px */
  --space-lg: 1.5rem;       /* 24px */
  --space-xl: 2rem;         /* 32px */
  --space-2xl: 3rem;        /* 48px */
  --space-3xl: 4rem;        /* 64px */
  --space-4xl: 6rem;        /* 96px */
  --space-5xl: 8rem;        /* 128px */

  /* --------------------------------------------------------------------------
     LAYOUT
     -------------------------------------------------------------------------- */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 800px;
  --container-padding: clamp(1rem, 5vw, 2rem);

  /* --------------------------------------------------------------------------
     BORDERS & RADIUS
     -------------------------------------------------------------------------- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* --------------------------------------------------------------------------
     SHADOWS
     -------------------------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);

  /* --------------------------------------------------------------------------
     TRANSITIONS
     -------------------------------------------------------------------------- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms 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-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

/* ============================================================================
   BASE TYPOGRAPHY STYLES
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-h1);
  color: var(--text-primary);
}

h2 {
  font-size: var(--font-size-h2);
  color: var(--text-headings);
}

h3 {
  font-size: var(--font-size-h3);
  color: var(--text-headings);
}

h4 {
  font-size: var(--font-size-h4);
  color: var(--text-primary);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-normal);
}

.hero-title {
  font-size: var(--font-size-hero);
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================================
   LINK STYLES
   ============================================================================ */

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

a:hover {
  color: var(--brand-primary-light);
}

a:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* ============================================================================
   CODE & MONOSPACE
   ============================================================================ */

code, pre, kbd, samp {
  font-family: var(--font-display);
}

code {
  font-size: var(--font-size-small);
  background: var(--bg-card);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--brand-primary);
}

pre {
  background: var(--bg-card);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  overflow-x: auto;
  border: 1px solid var(--glass-border);
}

pre code {
  background: none;
  padding: 0;
}

/* ============================================================================
   LIST STYLES
   ============================================================================ */

ul, ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

/* ============================================================================
   CONTAINER UTILITIES
   ============================================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-wide {
  max-width: var(--container-wide);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ============================================================================
   SECTION SPACING
   ============================================================================ */

section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

@media (max-width: 768px) {
  section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }
}

/* ============================================================================
   BUTTON BASE STYLES
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gradient-cta);
  color: var(--text-primary);
  box-shadow: var(--glow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-green-strong);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--brand-primary);
  border: 2px solid var(--btn-secondary-border);
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--brand-primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  background: var(--glass-bg-subtle);
  border-color: var(--glass-border-hover);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-body-lg);
}

.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-small);
}

/* ============================================================================
   FORM BASE STYLES
   ============================================================================ */

input,
textarea,
select {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}

label {
  display: block;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

/* ============================================================================
   IMAGE BASE STYLES
   ============================================================================ */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

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

/* Text Colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-brand { color: var(--brand-primary); }
.text-accent { color: var(--brand-secondary); }

/* Background Colors */
.bg-space { background-color: var(--bg-space); }
.bg-dark { background-color: var(--bg-dark); }
.bg-mid { background-color: var(--bg-mid); }
.bg-card { background-color: var(--bg-card); }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flexbox */
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }

/* Gap */
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Margin */
.mt-0 { margin-top: 0; }
.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-0 { margin-bottom: 0; }
.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); }

/* Padding */
.p-0 { padding: 0; }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* 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: 0;
}

/* ============================================================================
   RESPONSIVE UTILITIES
   ============================================================================ */

@media (max-width: 1024px) {
  .lg\:d-none { display: none; }
}

@media (max-width: 768px) {
  .md\:d-none { display: none; }
  .md\:d-block { display: block; }
  .md\:d-flex { display: flex; }
  .md\:flex-column { flex-direction: column; }
  .md\:text-center { text-align: center; }
}

@media (max-width: 480px) {
  .sm\:d-none { display: none; }
  .sm\:d-block { display: block; }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visible for keyboard navigation */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* ============================================================================
   SELECTION
   ============================================================================ */

::selection {
  background: rgba(16, 185, 129, 0.3);
  color: var(--text-primary);
}

/* ============================================================================
   SCROLLBAR (Webkit)
   ============================================================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-lighter);
  border-radius: var(--radius-full);
}

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