/* ==========================================================================
   School Site Templates - Theme System
   CSS Custom Properties (Variables) for consistent theming
   ========================================================================== */

:root {
  /* ==========================================================================
     Primary Colors - Main brand colors
     ========================================================================== */
  --color-primary: #2563eb;           /* Blue 600 - main action color */
  --color-primary-hover: #1d4ed8;     /* Blue 700 - hover state */
  --color-primary-light: #dbeafe;     /* Blue 100 - backgrounds, badges */
  --color-primary-dark: #1e40af;      /* Blue 800 - dark mode, emphasis */

  /* ==========================================================================
     Secondary Colors - Supporting colors
     ========================================================================== */
  --color-secondary: #64748b;         /* Slate 500 - secondary text, icons */
  --color-secondary-hover: #475569;   /* Slate 600 - hover state */
  --color-secondary-light: #f1f5f9;   /* Slate 100 - backgrounds */

  /* ==========================================================================
     Accent Colors - Highlights, calls to action
     ========================================================================== */
  --color-accent: #f59e0b;            /* Amber 500 - attention grabbing */
  --color-accent-hover: #d97706;      /* Amber 600 - hover state */
  --color-accent-light: #fef3c7;      /* Amber 100 - backgrounds */

  /* ==========================================================================
     Semantic Colors - Status and feedback
     ========================================================================== */
  --color-success: #22c55e;           /* Green 500 */
  --color-success-light: #dcfce7;     /* Green 100 */
  --color-warning: #eab308;           /* Yellow 500 */
  --color-warning-light: #fef9c3;     /* Yellow 100 */
  --color-error: #ef4444;             /* Red 500 */
  --color-error-light: #fee2e2;       /* Red 100 */
  --color-info: #3b82f6;              /* Blue 500 */
  --color-info-light: #dbeafe;        /* Blue 100 */

  /* ==========================================================================
     Neutral Colors - Backgrounds, borders, text
     ========================================================================== */
  --color-background: #ffffff;        /* Main page background */
  --color-surface: #ffffff;           /* Card/component backgrounds */
  --color-surface-elevated: #f8fafc;  /* Elevated surfaces (modals, dropdowns) */
  --color-border: #e2e8f0;            /* Default borders */
  --color-border-light: #f1f5f9;      /* Subtle borders */
  --color-divider: #e2e8f0;           /* Horizontal rules, separators */

  /* ==========================================================================
     Text Colors
     ========================================================================== */
  --color-text: #1e293b;              /* Primary text - Slate 800 */
  --color-text-secondary: #475569;    /* Secondary text - Slate 600 */
  --color-text-muted: #64748b;        /* Muted text - Slate 500 */
  --color-text-light: #94a3b8;        /* Light text - Slate 400 */
  --color-text-on-primary: #ffffff;   /* Text on primary color backgrounds */
  --color-text-on-dark: #ffffff;      /* Text on dark backgrounds */

  /* ==========================================================================
     Typography - Font Families
     ========================================================================== */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, monospace;

  /* ==========================================================================
     Typography - Font Sizes
     ========================================================================== */
  --text-xs: 0.75rem;                 /* 12px */
  --text-sm: 0.875rem;                /* 14px */
  --text-base: 1rem;                  /* 16px */
  --text-lg: 1.125rem;                /* 18px */
  --text-xl: 1.25rem;                 /* 20px */
  --text-2xl: 1.5rem;                 /* 24px */
  --text-3xl: 1.875rem;               /* 30px */
  --text-4xl: 2.25rem;                /* 36px */
  --text-5xl: 3rem;                   /* 48px */
  --text-6xl: 3.75rem;                /* 60px */

  /* ==========================================================================
     Typography - Font Weights
     ========================================================================== */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* ==========================================================================
     Typography - Line Heights
     ========================================================================== */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* ==========================================================================
     Spacing - Consistent spacing scale
     ========================================================================== */
  --space-0: 0;
  --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 */

  /* Section-specific spacing */
  --spacing-section: 5rem;            /* Space between major sections */
  --spacing-section-sm: 3rem;         /* Smaller section spacing */
  --spacing-container: 1.5rem;        /* Container padding on mobile */

  /* ==========================================================================
     Border Radius - Rounded corners
     ========================================================================== */
  --radius-none: 0;
  --radius-sm: 0.125rem;              /* 2px */
  --radius-md: 0.375rem;              /* 6px */
  --radius-lg: 0.5rem;                /* 8px */
  --radius-xl: 0.75rem;               /* 12px */
  --radius-2xl: 1rem;                 /* 16px */
  --radius-3xl: 1.5rem;               /* 24px */
  --radius-full: 9999px;              /* Fully rounded (pills, circles) */

  /* ==========================================================================
     Shadows - Elevation and depth
     ========================================================================== */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --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);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

  /* ==========================================================================
     Transitions - Animation timings
     ========================================================================== */
  --transition-fast: 150ms;
  --transition-normal: 200ms;
  --transition-slow: 300ms;
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ==========================================================================
     Layout - Widths and breakpoints
     ========================================================================== */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;

  /* ==========================================================================
     Z-Index Scale - Layering
     ========================================================================== */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* ==========================================================================
     School-Specific Variables
     ========================================================================== */
  --school-logo: url('../assets/images/placeholder-logo.png');
  --school-name: 'Your School Name';

  /* Header heights for sticky positioning */
  --header-height: 4rem;              /* 64px */
  --header-height-mobile: 3.5rem;     /* 56px */
}

/* ==========================================================================
   Base Element Styles using Variables
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-background);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  color: var(--color-text);
  line-height: var(--leading-tight);
}

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

a {
  color: var(--color-primary);
  transition: color var(--transition-fast) var(--ease-default);
}

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

/* ==========================================================================
   Utility Classes using Variables
   ========================================================================== */

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-on-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-6);
  font-weight: var(--font-semibold);
  transition: background-color var(--transition-fast) var(--ease-default);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
}

.btn-secondary {
  background-color: var(--color-secondary-light);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-6);
  font-weight: var(--font-semibold);
  transition: background-color var(--transition-fast) var(--ease-default);
}

.btn-secondary:hover {
  background-color: var(--color-border);
}

.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
}

.section {
  padding-top: var(--spacing-section);
  padding-bottom: var(--spacing-section);
}

/* ==========================================================================
   Block Selection Styles (for editor) - DISABLED FOR PREVIEW
   ========================================================================== */

/* Editor styles removed - preview only mode */
