/* MacWP EOY Challenge - Modern Cozy Winter Design System (Consolidated) */

:root {
  /* Tannengrün - Hauptfarbe */
  --primary-green: #1f5f3f;
  --primary-green-hover: #15432a;
  --primary-green-light: #e8f4ed;
  --primary-green-soft: #c7e9d1;

  /* Warmes Rot - Akzentfarbe */
  --warm-red: #c5382b;
  --warm-red-hover: #a12e24;
  --warm-red-light: #f8e8e6;
  --warm-red-soft: #e8a5a0;

  /* Goldene Akzente - Prize & Achievement */
  --prize-gold: #d4a744;
  --prize-gold-hover: #b8922e;
  --prize-gold-light: #faf4e6;
  --prize-gold-glow: rgba(212, 167, 68, 0.4);

  /* Backgrounds - Warm Whites */
  --bg-snow: #fefefe;
  --bg-cream: #fbf9f7;
  --bg-winter: #f7f5f3;
  --bg-frost: #f1f0ee;

  /* Warm Gray Tones */
  --text-pine: #1a1a1a;
  --text-bark: #4a4a4a;
  --text-mist: #6b6b6b;
  --text-snow: #ffffff;

  /* System Feedback Colors */
  --success-green: #22c55e;
  --success-light: #dcfce7;
  --warning-amber: #f59e0b;
  --warning-light: #fef3c7;
  --error-red: #ef4444;
  --error-light: #fee2e2;

  /* Borders & Dividers */
  --border-frost: #e5e3e0;
  --border-winter: #d1cec9;
  --border-pine: #9ca3af;

  /* Typography */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "SF Mono", "Monaco", "Roboto Mono", monospace;

  /* Font Sizes - Modular Scale (1.25 ratio) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Spacing - 4px Grid System */
  --space-px: 1px;
  --space-0-5: 0.125rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Component Spacing */
  --component-padding-sm: var(--space-3);
  --component-padding-md: var(--space-4);
  --component-padding-lg: var(--space-6);
  --component-padding-xl: var(--space-8);

  /* Section Spacing */
  --section-padding-y: var(--space-16);
  --section-padding-x: var(--space-8);

  /* Card & Container Spacing */
  --card-padding: var(--space-6);
  --card-gap: var(--space-8);

  /* Border Radius - Rounded & Friendly */
  --radius-none: 0;
  --radius-sm: 0.25rem;
  --radius-base: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows - Cozy Depth */
  --shadow-cozy-xs: 0 1px 2px 0 rgba(31, 95, 63, 0.05);
  --shadow-cozy-sm: 0 2px 4px 0 rgba(31, 95, 63, 0.08);
  --shadow-cozy-md: 0 4px 8px 0 rgba(31, 95, 63, 0.12);
  --shadow-cozy-lg: 0 8px 16px 0 rgba(31, 95, 63, 0.15);
  --shadow-cozy-xl: 0 12px 24px 0 rgba(31, 95, 63, 0.18);

  /* Special Gamification Shadows */
  --shadow-prize-glow: 0 0 20px rgba(212, 167, 68, 0.3);
  --shadow-warm-glow: 0 4px 20px rgba(197, 56, 43, 0.15);
  --shadow-winter: 0 8px 32px rgba(31, 95, 63, 0.1);

  /* Winter Patterns & Textures */
  --winter-gradient: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-winter) 50%, var(--bg-cream) 100%);
  --snow-pattern: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  --cozy-texture: linear-gradient(45deg, transparent 48%, rgba(31, 95, 63, 0.02) 49%, rgba(31, 95, 63, 0.02) 51%, transparent 52%);

  /* Animation Settings */
  --ease-cozy: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-warm: cubic-bezier(0.23, 1, 0.32, 1);
  --duration-quick: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: 17px;
  /* Increased for better readability */
  color: #1a1a1a;
  /* Higher contrast */
  line-height: 1.6;
  background: #f7f5f3;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-width: 320px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-title {
  font-family: var(--font-display);
  color: #0a0a0a;
  letter-spacing: -0.02em;
}

/* Main Application Background */
.app-winter-bg {
  background: #f7f5f3;
  min-height: 100vh;
  position: relative;
}

.app-winter-bg::before {
  /* Animation disabled as per design fix */
  content: none;
}

/* Typography Scale */
.title-main {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--primary-green);
  line-height: var(--leading-tight);
  text-shadow: 0 1px 2px rgba(31, 95, 63, 0.1);
}

.header-festive {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--warm-red);
  line-height: var(--leading-snug);
}

.text-cozy {
  font-family: var(--font-primary);
  font-size: 16px;
  color: #2d2d2d;
  line-height: 1.65;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.font-bold {
  font-weight: var(--font-bold);
}

.font-medium {
  font-weight: var(--font-medium);
}

.text-primary {
  color: var(--primary-green);
}

.text-secondary {
  color: var(--text-mist);
}

.text-error {
  color: var(--error-red);
}

.text-success {
  color: var(--success-green);
}

.text-warning {
  color: var(--warning-amber);
}

/* Focus Styles */
:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Selection Styles */
::selection {
  background: var(--primary-green-light);
  color: var(--primary-green);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-frost);
}

::-webkit-scrollbar-thumb {
  background: var(--border-winter);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-mist);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
}