/* ==========================================================================
   Naturbinderiet Design System - "Organisk Elegance"
   Inspireret af lotus-logoets gracefulde, naturlige æstetik
   ========================================================================== */

/* Fonts loaded via App.razor with non-blocking pattern */

:root {
  color-scheme: light;

  /* ==========================================================================
     FARVER - Organisk palette inspireret af lotus og natur
     ========================================================================== */

  /* Primære farver - Lotus grøn */
  --color-primary: #4a7c3f;           /* Dyb skovgrøn */
  --color-primary-dark: #3d6634;      /* Mørkere - hover */
  --color-primary-light: #6b9b5e;     /* Lysere accent */
  --color-primary-muted: #8bb07f;     /* Dæmpet grøn */

  /* Sekundære farver - Varme jordtoner */
  --color-secondary: #c4a574;         /* Varm sand/guld */
  --color-secondary-dark: #a68b5b;    /* Mørkere sand */
  --color-secondary-light: #d4bc94;   /* Lys sand */

  /* Baggrunde - Varme, bløde toner */
  --color-bg-cream: #faf8f5;          /* Varm cremehvid */
  --color-bg-warm: #f5f1eb;           /* Varmere baggrund */
  --color-bg-soft: #efe9e0;           /* Blød beige */
  --color-bg-white: #ffffff;

  /* Tekst - Rige, læsbare toner */
  --color-text-dark: #2c3e2d;         /* Mørkegrøn tekst */
  --color-text-body: #4a5c4b;         /* Brødtekst */
  --color-text-muted: #637563;        /* Dæmpet tekst (4.57:1 kontrast) */
  --color-text-light: #8a9a8b;        /* Lys tekst */

  /* Accenter */
  --color-accent-rose: #c9a9a6;       /* Dæmpet rosa */
  --color-accent-sage: #a8b5a0;       /* Salvie grøn */
  --color-accent-terracotta: #c4a08a; /* Terrakotta */

  /* Semantiske farver */
  --color-success: #5a8f5a;
  --color-error: #b85c5c;
  --color-warning: #c4a060;

  /* Border farver */
  --color-border: #d4cfc6;
  --color-border-light: #e5e0d8;

  /* ==========================================================================
     TYPOGRAPHY - Elegant og læsbar
     ========================================================================== */

  /* Font families */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, sans-serif;

  /* Font sizes - Generøs skala */
  --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: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;

  /* Font weights */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;

  /* ==========================================================================
     SPACING - Generøst og luftigt
     ========================================================================== */

  --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;
  --space-24: 6rem;
  --space-32: 8rem;

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

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-max: 1400px;

  /* ==========================================================================
     BREAKPOINTS (Dokumentation - kan ikke bruges i media queries pga CSS limitation)
     Brug disse værdier direkte: @media (min-width: 640px) { }
     ========================================================================== */
  /*
   * --breakpoint-sm: 640px;   Mobile landscape, små tablets
   * --breakpoint-md: 768px;   Tablets
   * --breakpoint-lg: 1024px;  Desktop
   * --breakpoint-xl: 1280px;  Store skærme
   * --breakpoint-2xl: 1536px; Ekstra store skærme
   *
   * MEDIA QUERY REFERENCE:
   * @media (min-width: 640px)  - Tablet and up
   * @media (min-width: 768px)  - Tablet landscape and up
   * @media (min-width: 1024px) - Desktop and up
   * @media (min-width: 1280px) - Large desktop and up
   * @media (max-width: 639px)  - Mobile only
   * @media (max-width: 767px)  - Mobile and small tablet
   */

  /* ==========================================================================
     EFFECTS
     ========================================================================== */

  /* Border radius - Bløde, organiske former */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows - Bløde, naturlige skygger */
  --shadow-soft: 0 2px 8px rgba(44, 62, 45, 0.06);
  --shadow-md: 0 4px 16px rgba(44, 62, 45, 0.08);
  --shadow-lg: 0 8px 32px rgba(44, 62, 45, 0.1);
  --shadow-xl: 0 16px 48px rgba(44, 62, 45, 0.12);
  --shadow-glow: 0 0 40px rgba(74, 124, 63, 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 600ms;

  /* ==========================================================================
     Z-INDEX
     ========================================================================== */

  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 500;
  --z-tooltip: 600;

  /* ==========================================================================
     TOUCH TARGETS - WCAG 2.2 compliant mobile touch targets
     ========================================================================== */

  --touch-target-min: 44px;
  --touch-target-comfortable: 48px;
  --touch-target-spacing: 8px;

  /* ==========================================================================
     ALIASES - For backward compatibility with component CSS
     Disse mapper til de primære variabler ovenfor
     ========================================================================== */

  /* Font aliases */
  --font-family-base: var(--font-body);
  --font-family-heading: var(--font-heading);

  /* Font size aliases */
  --font-size-xs: var(--text-xs);
  --font-size-sm: var(--text-sm);
  --font-size-base: var(--text-base);
  --font-size-lg: var(--text-lg);
  --font-size-xl: var(--text-xl);
  --font-size-2xl: var(--text-2xl);
  --font-size-3xl: var(--text-3xl);
  --font-size-4xl: var(--text-4xl);
  --font-size-5xl: var(--text-5xl);

  /* Mono font for code */
  --font-family-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;

  /* Font weight aliases */
  --font-weight-light: var(--weight-light);
  --font-weight-normal: var(--weight-normal);
  --font-weight-medium: var(--weight-medium);
  --font-weight-semibold: var(--weight-semibold);
  --font-weight-bold: var(--weight-bold);

  /* Line height aliases */
  --line-height-tight: var(--leading-tight);
  --line-height-snug: var(--leading-snug);
  --line-height-normal: var(--leading-normal);
  --line-height-relaxed: var(--leading-relaxed);

  /* Transition shorthand aliases */
  --transition-fast: var(--duration-fast) var(--ease-out);
  --transition-normal: var(--duration-normal) var(--ease-out);
  --transition-slow: var(--duration-slow) var(--ease-out);

  /* Gray color aliases (mapper til text-farver) */
  --color-gray-50: var(--color-bg-cream);
  --color-gray-100: var(--color-bg-warm);
  --color-gray-200: var(--color-bg-soft);
  --color-gray-600: var(--color-text-muted);
  --color-gray-700: var(--color-text-body);
  --color-gray-800: var(--color-text-body);
  --color-gray-900: var(--color-text-dark);

  /* Primary color scale aliases (for selection, focus states) */
  --color-primary-100: rgba(74, 124, 63, 0.1);
  --color-primary-800: var(--color-primary-dark);

  /* White alias */
  --color-white: var(--color-bg-white);

  /* Shadow alias */
  --shadow-sm: 0 1px 4px rgba(44, 62, 45, 0.04);

  /* ==========================================================================
     SEMANTIC COLORS - Success/Error/Warning backgrounds
     ========================================================================== */

  /* Success/Error backgrounds for forms and messages */
  --color-success-bg: rgba(90, 143, 90, 0.1);
  --color-error-bg: rgba(184, 92, 92, 0.1);
  --color-warning-bg: rgba(196, 160, 96, 0.1);

  /* Primary overlays (subtle backgrounds) */
  --color-primary-overlay-light: rgba(74, 124, 63, 0.08);
  --color-secondary-overlay-light: rgba(196, 165, 116, 0.06);

  /* Dark overlays for modals and lightboxes */
  --color-overlay-dark: rgba(0, 0, 0, 0.8);
  --color-overlay-medium: rgba(0, 0, 0, 0.5);
  --color-overlay-light: rgba(0, 0, 0, 0.12);

  /* Light/white overlays (for dark sections like footer) */
  --color-light-text: rgba(255, 255, 255, 0.85);
  --color-light-muted: rgba(255, 255, 255, 0.6);
  --color-light-divider: rgba(255, 255, 255, 0.1);
  --color-light-border: rgba(255, 255, 255, 0.15);
  --color-light-overlay: rgba(255, 255, 255, 0.2);
  --color-light-overlay-strong: rgba(255, 255, 255, 0.9);
}
