/**
 * Quwa Theme - CSS Custom Properties (Design Tokens)
 *
 * Extracted from Figma reference files
 * Performance-first approach: All values defined here
 *
 * @package Quwa_Theme
 * @since 1.0.0
 */

:root {
  /* ===========================
     QUWA DESIGN TOKENS
     Extracted from Figma/React
     =========================== */

  /* COLORS - Primary */
  --color-accent: #1F9CAC;
  --color-accent-hover: #188899;

  /* COLORS - Neutrals */
  --color-primary: #1a1a1a;
  --color-text-secondary: #666666;
  --color-text-muted: #4b5563;  /* FIX 14: Changed from gray-400 to gray-600 per Figma */
  --color-border: #e5e7eb;
  --color-bg-light: #f9fafb;
  --color-white: #ffffff;
  --color-black: #000000;

  /* COLORS - Gray Scale */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #1f2937; /* Darker gray */
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* COLORS - Footer */
  --color-footer-bg: #0B5563;
  --color-footer-border: #0A4D5C;

  /* COLORS - Buttons */
  --color-blue-600: #2563eb;
  --color-blue-700: #1d4ed8;
  --color-teal-400: #2dd4bf;
  --color-teal-50: #f0fdfa;

  /* COLORS - Semantic */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Component Colors */
  --color-topbar-bg: var(--color-black);
  --color-card-bg: var(--color-white);
  --color-body-bg: var(--color-white);
  --color-text: var(--color-primary);
  --color-heading: var(--color-primary);
  --color-link: var(--color-accent);
  --color-link-hover: var(--color-accent-hover);

  /* FONTS */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-article: 'Vollkorn', Georgia, serif;

  /* FONT SIZES */
  --text-xs: 0.75rem;        /* 12px */
  --text-sm: 0.875rem;       /* 14px */
  --text-base: 1rem;         /* 16px */
  --text-article: 1.125rem;  /* 18px - Updated for better readability */
  --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: 2.625rem;      /* 42px */

  /* LINE HEIGHTS */
  --leading-tight: 1.2;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-article: 1.7;    /* Tighter body text line-height */
  --leading-loose: 1.8;

  /* LETTER SPACING */
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;

  /* FONT WEIGHTS */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* 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 */

  /* CONTAINER */
  --container-max: 1280px;
  --container-narrow: 800px;
  --container-padding: 1rem;      /* 16px mobile */
  --container-padding-lg: 1.5rem; /* 24px desktop */
  --content-max: 65ch;
  --sidebar-width: 300px;

  /* GRID */
  --grid-gap: 2rem;        /* 32px desktop */
  --grid-gap-mobile: 1.5rem; /* 24px mobile */
  --grid-gap-sm: var(--space-4);
  --grid-gap-lg: var(--space-8);

  /* BORDERS */
  --radius-none: 0;
  --radius-sm: 0.25rem;    /* 4px */
  --radius: 0.375rem;      /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.625rem;   /* 10px */
  --radius-xl: 1rem;       /* 16px */
  --radius-full: 9999px;

  /* SHADOWS */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 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);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

  /* TRANSITIONS */
  --transition-fast: 0.2s ease;
  --transition: 150ms ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 300ms ease;

  /* Z-INDEX */
  --z-dropdown: 100;
  --z-sticky: 50;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}
