/* 🎨 MIKE'S SKINS DESIGN SYSTEM - Excellence Edition */

:root {
  /* ============================================
     COLOR SYSTEM - Enhanced for Excellence
     ============================================ */
  
  /* Brand Colors */
  --color-fire: #FF4D00;    /* Primary brand color */
  --color-ember: #FF9A00;   /* Secondary brand color */
  --color-char: #111008;    /* Dark background */
  --color-crisp: #FFF3E0;   /* Light background */
  --color-white: #FFFFFF;   /* Pure white */
  --color-gold: #FFD700;    /* Accent gold */
  
  /* Semantic Colors */
  --color-primary: var(--color-fire);
  --color-secondary: var(--color-ember);
  --color-background: var(--color-char);
  --color-surface: rgba(255, 255, 255, 0.03);
  
  /* Status Colors */
  --color-success: #10B981;    /* Green */
  --color-warning: #F59E0B;    /* Amber */
  --color-error: #EF4444;      /* Red */
  --color-info: #3B82F6;       /* Blue */
  
  /* Text Colors */
  --color-text-primary: var(--color-white);
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-tertiary: rgba(255, 255, 255, 0.5);
  --color-text-disabled: rgba(255, 255, 255, 0.3);
  
  /* Border Colors */
  --color-border-light: rgba(255, 255, 255, 0.1);
  --color-border-medium: rgba(255, 255, 255, 0.2);
  --color-border-heavy: rgba(255, 255, 255, 0.3);
  --color-border-primary: var(--color-primary);
  
  /* Shadow Colors */
  --color-shadow-light: rgba(0, 0, 0, 0.1);
  --color-shadow-medium: rgba(0, 0, 0, 0.2);
  --color-shadow-heavy: rgba(0, 0, 0, 0.3);
  
  /* ============================================
     TYPOGRAPHY SYSTEM - Modular Scale (1.25)
     ============================================ */
  
  /* Font Families */
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  
  /* Font Sizes - Modular Scale (Base: 16px, Ratio: 1.25) */
  --text-xs: 0.8rem;      /* 12.8px */
  --text-sm: 1rem;        /* 16px */
  --text-base: 1.25rem;   /* 20px */
  --text-lg: 1.563rem;    /* 25px */
  --text-xl: 1.953rem;    /* 31.25px */
  --text-2xl: 2.441rem;   /* 39px */
  --text-3xl: 3.052rem;   /* 48.8px */
  --text-4xl: 3.815rem;   /* 61px */
  --text-5xl: 4.768rem;   /* 76.3px */
  --text-6xl: 5.96rem;    /* 95.4px */
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-loose: 1.8;
  
  /* Font Weights */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 900;
  
  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  
  /* ============================================
     SPACING SYSTEM - 8px Grid
     ============================================ */
  
  --space-unit: 1rem; /* 16px */
  
  /* Spacing Scale */
  --space-0: 0;
  --space-1: calc(var(--space-unit) * 0.25);  /* 4px */
  --space-2: calc(var(--space-unit) * 0.5);   /* 8px */
  --space-3: calc(var(--space-unit) * 0.75);  /* 12px */
  --space-4: var(--space-unit);               /* 16px */
  --space-5: calc(var(--space-unit) * 1.5);   /* 24px */
  --space-6: calc(var(--space-unit) * 2);     /* 32px */
  --space-7: calc(var(--space-unit) * 3);     /* 48px */
  --space-8: calc(var(--space-unit) * 4);     /* 64px */
  --space-9: calc(var(--space-unit) * 6);     /* 96px */
  --space-10: calc(var(--space-unit) * 8);    /* 128px */
  
  /* ============================================
     BORDER RADIUS SYSTEM
     ============================================ */
  
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 24px;
  --radius-full: 9999px;
  
  /* ============================================
     SHADOW SYSTEM
     ============================================ */
  
  --shadow-sm: 0 1px 2px var(--color-shadow-light);
  --shadow-md: 0 4px 6px -1px var(--color-shadow-light), 
               0 2px 4px -1px var(--color-shadow-light);
  --shadow-lg: 0 10px 15px -3px var(--color-shadow-medium), 
               0 4px 6px -2px var(--color-shadow-light);
  --shadow-xl: 0 20px 25px -5px var(--color-shadow-medium), 
               0 10px 10px -5px var(--color-shadow-light);
  --shadow-2xl: 0 25px 50px -12px var(--color-shadow-heavy);
  --shadow-inner: inset 0 2px 4px 0 var(--color-shadow-light);
  
  /* ============================================
     TRANSITION & ANIMATION SYSTEM
     ============================================ */
  
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* ============================================
     Z-INDEX SYSTEM
     ============================================ */
  
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-auto: auto;
  
  /* ============================================
     LAYOUT SYSTEM
     ============================================ */
  
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* ============================================
     ASPECT RATIOS
     ============================================ */
  
  --aspect-square: 1 / 1;
  --aspect-video: 16 / 9;
  --aspect-portrait: 3 / 4;
  --aspect-landscape: 4 / 3;
  --aspect-widescreen: 21 / 9;
}

/* ============================================
   TYPOGRAPHY EXCELLENCE
   ============================================ */

/* Base Typography */
html {
  font-size: 16px; /* Base for rem calculations */
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Headings */
h1, .h1 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-wider);
  margin-top: 0;
  margin-bottom: var(--space-4);
}

h2, .h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-wide);
  margin-top: 0;
  margin-bottom: var(--space-4);
}

h3, .h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-normal);
  margin-top: 0;
  margin-bottom: var(--space-3);
}

h4, .h4 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  margin-top: 0;
  margin-bottom: var(--space-3);
}

h5, .h5 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  margin-top: 0;
  margin-bottom: var(--space-2);
}

h6, .h6 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  margin-top: 0;
  margin-bottom: var(--space-2);
}

/* Paragraphs */
p {
  margin-top: 0;
  margin-bottom: var(--space-4);
  max-width: 65ch; /* Optimal line length for readability */
}

.lead {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
}

.small {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

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

a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

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

/* Lists */
ul, ol {
  margin-top: 0;
  margin-bottom: var(--space-4);
  padding-left: var(--space-5);
}

li {
  margin-bottom: var(--space-2);
}

li:last-child {
  margin-bottom: 0;
}

/* Code */
code, kbd, pre, samp {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

code {
  background: var(--color-surface);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--color-secondary);
}

pre {
  background: var(--color-surface);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: var(--space-4);
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-4);
  margin-left: 0;
  margin-right: 0;
  margin-bottom: var(--space-4);
  font-style: italic;
  color: var(--color-text-secondary);
}

/* ============================================
   BUTTON EXCELLENCE
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-none);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  min-height: 44px; /* Minimum touch target */
  user-select: none;
  white-space: nowrap;
}

/* Button Variants */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--color-primary) 90%, black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

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

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

.btn-secondary:hover {
  background: rgba(255, 77, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border-light);
}

.btn-ghost:hover {
  background: var(--color-surface);
  border-color: var(--color-border-medium);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--color-error);
  color: var(--color-white);
}

.btn-danger:hover {
  background: color-mix(in srgb, var(--color-error) 90%, black);
  transform: translateY(-2px);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  min-height: 36px;
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-lg);
  min-height: 52px;
}

/* Button States */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Button with icon */
.btn-icon {
  padding: var(--space-2);
  min-height: 44px;
  min-width: 44px;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   FORM EXCELLENCE
   ============================================ */

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-tertiary);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Error states */
.form-input-error,
.form-select-error,
.form-textarea-error {
  border-color: var(--color-error);
}

.form-input-error:focus,
.form-select-error:focus,
.form-textarea-error:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-top: var(--space-1);
}

/* Checkboxes and radios */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.form-check-input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

.form-check-label {
  font-size: var(--text-base);
  color: var(--color-text-primary);
}

/* ============================================
   CARD EXCELLENCE
   ============================================ */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--color-border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.card-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: 0;
  margin-bottom: 0;
}

.card-body {
  margin-bottom: var(--space-4);
}

.card-body:last-child {
  margin-bottom: 0;
}

.card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-light);
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card__image {
  width: 100%;
  aspect-ratio: var(--aspect-square);
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.product-card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.product-card__description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
  flex-grow: 1;
}

.product-card__price {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.product-card__price-old {
  font-size: var(--text-base);
  color: var(--color-text-tertiary);
  text-decoration: line-through;
  margin-right: var(--space-2);
}

.product-card__actions {
  display: flex;
  gap: var(--space-2);
  margin-top: auto;
}

/* ============================================
   LAYOUT EXCELLENCE
   ============================================ */

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

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

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

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

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

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

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Flex System */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }

/* Spacing Utilities */
.m-0 { margin: var(--space-0); }
.m-2 { margin: var(--space-2); }
.m-4 { margin: var(--space-4); }
.m-6 { margin: var(--space-6); }

.mt-0 { margin-top: var(--space-0); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

.mb-0 { margin-bottom: var(--space-0); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.p-0 { padding: var(--space-0); }
.p-2 { padding: var(--space-2); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }

.pt-0 { padding-top: var(--space-0); }
.pt-2 { padding-top: var(--space-2); }
.pt-4 { padding-top: var(--space-4); }
.pt-6 { padding-top: var(--space-6); }

.pb-0 { padding-bottom: var(--space-0); }
.pb-2 { padding-bottom: var(--space-2); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-6 { padding-bottom: var(--space-6); }

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

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

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }

.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

.font-light { font-weight: var(--weight-light); }
.font-normal { font-weight: var(--weight-normal); }
.font-medium { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold { font-weight: var(--weight-bold); }

/* Display Utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }

/* Visibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   ANIMATION EXCELLENCE
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-fadeIn {
  animation: fadeIn var(--transition-normal) forwards;
}

.animate-slideIn {
  animation: slideIn var(--transition-normal) forwards;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Stagger animations */
.stagger > * {
  opacity: 0;
  animation: fadeIn var(--transition-normal) forwards;
}

.stagger > *:nth-child(1) { animation-delay: 50ms; }
.stagger > *:nth-child(2) { animation-delay: 100ms; }
.stagger > *:nth-child(3) { animation-delay: 150ms; }
.stagger > *:nth-child(4) { animation-delay: 200ms; }
.stagger > *:nth-child(5) { animation-delay: 250ms; }

/* ============================================
   RESPONSIVE DESIGN EXCELLENCE
   ============================================ */

/* Fluid typography */
.fluid-heading {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
}

.fluid-text {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
}

/* Container queries support */
@container (min-width: 400px) {
  .card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-4);
  }
}

/* ============================================
   DARK MODE ENHANCEMENTS
   ============================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --color-surface: rgba(255, 255, 255, 0.05);
    --color-border-light: rgba(255, 255, 255, 0.15);
    --color-border-medium: rgba(255, 255, 255, 0.25);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .card {
    border: 1px solid #000;
    break-inside: avoid;
  }
}

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

/* Focus styles */
.focus-ring {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.focus-ring:not(:focus-visible) {
  outline: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: var(--z-50);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-2);
}

/* Reduced motion */
@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;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --color-border-light: #000;
    --color-border-medium: #000;
    --color-text-secondary: #000;
  }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Content-visibility for off-screen content */
.off-screen {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* Will-change for animations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* ============================================
   DEBUG UTILITIES (Remove in production)
   ============================================ */

.debug * {
  outline: 1px solid red;
}

.debug-grid {
  background-image: linear-gradient(to right, rgba(255, 0, 0, 0.1) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 8px 8px;
}