/* ===================================
   CITIZENSHIP360 - GLOBAL STYLES
   All styles needed for index.html
   =================================== */

/* Import component styles */
@import url('./partials/header/header.css');
@import url('./partials/footer/footer.css');
@import url('./partials/banner/banner.css');
@import url('./partials/translator/translator.css');
@import url('./partials/privacy-policy/privacy-policy.css');
@import url('./partials/terms-of-service/terms-of-service.css');
@import url('./partials/disclaimer/disclaimer.css');
@import url('./partials/accessibility/accessibility.css');

/* Import modal styles */
@import url('./assets/modal/welcome-modal.css');


/* Import section styles */
@import url('./sections/home/home.css');
@import url('./sections/faq/faq.css');
@import url('./sections/eligibility/eligibility.css');
@import url('./sections/resources/resources.css');
@import url('./sections/file-form-n-400/file-form-n-400.css');
/* New N-400 landing styles */
@import url('./sections/file-form-n-400/n400.css');
@import url('./sections/study/study.css');
@import url('./sections/CivicsFlashcards/civics-flashcards.css');
@import url('./sections/CivicsQuiz/quiz.css');
@import url('./sections/CivicsReading/civics-reading.css');
@import url('./sections/CivicsWriting/writing.css');
@import url('./sections/NewFeatures/new-features.css');
@import url('./sections/track-your-case/track-your-case.css');
@import url('./sections/take-the-test/take-the-test.css');
@import url('./sections/attend-ceremony/attend-ceremony.css');
@import url('./sections/commercial-drivers/commercial-drivers.css');

/* ===== CSS VARIABLES ===== */
:root {
  /* ===== MAIN BACKGROUND ===== */
  /* Purple gradient for main canvas */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  /* ===== TYPOGRAPHY ===== */
  --font-header: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* ===== COLORS ===== */
  --color-primary: #667eea;
  --color-secondary: #764ba2;
  --color-accent: #f59e0b;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  
  /* Text Colors */
  --color-text-primary: #1f2937;
  --color-text-secondary: #6b7280;
  --color-text-light: #9ca3af;
  
  /* Background Colors */
  --color-background: #ffffff;
  --color-background-light: #f9fafb;
  --color-background-dark: #1f2937;
  
  /* Border Colors */
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --color-border-dark: #d1d5db;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* ===== SPACING ===== */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* ===== LAYOUT ===== */
  --max-content-width: 1200px;
  --grid-gap: 1.5rem;
  
  /* ===== LOGO SIZING ===== */
  --logo-height-desktop: 86.4px;   /* Default desktop size */
  --logo-height-tablet: 64.8px;    /* Tablet size (75% of desktop) */
  --logo-height-mobile: 37.8px;    /* Mobile size (25% smaller than current 50.4px) */
  
  /* ===== BREAKPOINTS ===== */
  --breakpoint-mobile: 667px;    /* Most phones including iPhone Pro and Galaxy S24 */
  --breakpoint-tablet: 768px;    /* Tablets and up */  
  --breakpoint-desktop: 1024px;  /* Desktop and up */
  --breakpoint-large: 1200px;    /* Large desktop and up */
  --breakpoint-xl: 1400px;       /* Extra large screens */
  
  /* ===== VISUAL EFFECTS ===== */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --button-border-radius: 0.5rem;
  --card-border-radius: 0.75rem;
  --input-border-radius: 0.5rem;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-medium: 400ms ease-in-out;
  
  /* ===== LINE HEIGHTS ===== */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
}

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

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

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* ===== BASE STYLES ===== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  background: var(--gradient-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-5xl); font-weight: var(--font-weight-extrabold); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-relaxed);
}

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

a:hover {
  text-decoration: underline;
}

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.grid { display: grid; gap: var(--grid-gap); }
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== UTILITY CLASSES ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading-placeholder {
  padding: var(--spacing-xl);
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--button-border-radius);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--gradient-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --gradient-primary: linear-gradient(135deg, #000000 0%, #333333 100%);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .no-print {
    display: none !important;
  }
}
