/*
 * ═══════════════════════════════════════════════════════════════
 *  نادي الحريق الرياضي — Design Tokens
 *  Single source of truth for all visual values.
 *  Import once from main.tsx. Never duplicate these values.
 * ═══════════════════════════════════════════════════════════════
 */

:root {
  /* ── Colors: Backgrounds ──────────────────────────────────────
     Usage: page canvas, section backgrounds, card surfaces       */
  --ds-color-background:      #0A0A0A;  /* page root background  */
  --ds-color-surface-alt:     #111111;  /* alternate sections     */
  --ds-color-surface:         #1A1A1A;  /* cards, panels          */
  --ds-color-surface-raised:  #2A2A2A;  /* borders, raised items  */
  --ds-color-strategy-stats-mid: #1A0F00; /* Strategy baseline gradient midpoint */

  /* ── Colors: Brand ───────────────────────────────────────────
     primary = flame yellow. accent = ember orange.               */
  --ds-color-primary:         #FFB800;  /* main brand action      */
  --ds-color-accent:          #FF5500;  /* secondary brand color  */
  --ds-color-primary-dark:    #CC9200;  /* pressed / dark state   */
  --ds-color-highlight:       #FFD700;  /* decorative highlight   */

  /* ── Colors: Sports ──────────────────────────────────────────
     Shared by squad filters, player numbers, labels and accents. */
  --ds-color-sport-football:   var(--ds-color-primary);
  --ds-color-sport-taekwondo:  #3B82F6;
  --ds-color-sport-judo:       #10B981;
  --ds-color-sport-boxing:     #EF4444;

  /* ── Colors: Text ────────────────────────────────────────────  */
  --ds-color-text:            #F0F0F0;  /* primary readable text  */
  --ds-color-text-muted:      #717171;  /* captions, metadata     */
  --ds-color-text-on-primary: #0A0A0A;  /* text on primary button */

  /* ── Colors: Borders ─────────────────────────────────────────  */
  --ds-color-border:          rgba(42, 42, 42, 1);    /* default border   */
  --ds-color-border-muted:    rgba(255,255,255,0.07); /* subtle card border */
  --ds-color-border-primary:  rgba(255,184,0,0.20);   /* branded border   */

  /* ── Gradients (limited — document all uses) ─────────────────  */
  --ds-gradient-primary:      linear-gradient(135deg, #FFB800 0%, #FF5500 100%);
  --ds-gradient-flame-text:   linear-gradient(135deg, #FFD700 0%, #FFB800 28%, #FF7700 62%, #FF3300 100%);
  --ds-gradient-gold-text:    linear-gradient(135deg, #FFE566 0%, #FFB800 100%);

  /* ── Typography: Font Families ───────────────────────────────  */
  --ds-font-heading: var(--font-ahr-heading); /* all headings, labels, buttons */
  --ds-font-body:    var(--font-ahr-body);    /* body copy, metadata, UI text  */

  /* ── Typography: Font Weights ────────────────────────────────  */
  --ds-font-weight-regular:   400;
  --ds-font-weight-medium:    500;
  --ds-font-weight-semibold:  600;
  --ds-font-weight-bold:      700;
  --ds-font-weight-black:     900;

  /* ── Typography: Font Sizes ──────────────────────────────────
     Desktop / base sizes. Use clamp() for fluid headings.        */
  --ds-font-size-h1:          clamp(2.8rem, 8vw, 7rem);
  --ds-font-size-page-hero:   clamp(2rem, 4.5vw, 3.5rem); /* inner-page heroes — shorter than root H1 */
  --ds-font-size-article-hero: clamp(1.5rem, 3.25vw, 2.625rem); /* article titles — client-approved compact scale */
  --ds-font-size-h2:          clamp(1.875rem, 4vw, 2.25rem);  /* 3xl → 4xl */
  --ds-font-size-h3:          1.25rem;   /* 20px */
  --ds-font-size-body:        1rem;      /* 16px */
  --ds-font-size-sm:          0.875rem;  /* 14px */
  --ds-font-size-xs:          0.75rem;   /* 12px */

  /* ── Typography: Line Heights ────────────────────────────────  */
  --ds-leading-tight:   1.1;
  --ds-leading-snug:    1.35;
  --ds-leading-normal:  1.5;
  --ds-leading-relaxed: 1.75;

  /* ── Typography: Letter Spacing ─────────────────────────────
     eyebrow = section sub-labels above headings                  */
  --ds-tracking-eyebrow: 0.2em;
  --ds-tracking-wide:    0.1em;

  /* ── Spacing ─────────────────────────────────────────────────  */
  --ds-space-1:   0.25rem;  /*  4px */
  --ds-space-2:   0.5rem;   /*  8px */
  --ds-space-3:   0.75rem;  /* 12px */
  --ds-space-4:   1rem;     /* 16px */
  --ds-space-5:   1.25rem;  /* 20px */
  --ds-space-6:   1.5rem;   /* 24px */
  --ds-space-8:   2rem;     /* 32px */
  --ds-space-10:  2.5rem;   /* 40px */
  --ds-space-12:  3rem;     /* 48px */
  --ds-space-16:  4rem;     /* 64px */
  --ds-space-20:  5rem;     /* 80px */

  /* ── Section Padding (vertical rhythm) ──────────────────────  */
  --ds-section-py:     var(--ds-space-20);   /* default: 5rem  */
  --ds-section-py-lg:  var(--ds-space-20);   /* large screen   */

  /* ── Container ───────────────────────────────────────────────  */
  --ds-container-width: 80rem;   /* max-w-7xl = 1280px */
  --ds-container-px:    1rem;    /* mobile side padding */
  --ds-container-px-md: 2rem;    /* md+ side padding    */

  /* ── Border Radius ───────────────────────────────────────────  */
  --ds-radius-sm:     0.5rem;    /*  8px — badges, tags         */
  --ds-radius-md:     0.75rem;   /* 12px — inputs, small cards  */
  --ds-radius-lg:     1rem;      /* 16px — cards (rounded-2xl)  */
  --ds-radius-button: 9999px;    /* pill — primary/outline btns */
  --ds-radius-badge:  9999px;    /* pill — category badges      */

  /* ── Shadows ─────────────────────────────────────────────────  */
  --ds-shadow-card-hover:
    0 20px 50px rgba(255, 184, 0, 0.14),
    0 8px 20px rgba(0, 0, 0, 0.5);
  --ds-shadow-btn-primary:
    0 8px 25px rgba(255, 184, 0, 0.4);
  --ds-shadow-glow:
    0 0 28px rgba(255, 184, 0, 0.85),
    0 0 50px rgba(255, 85, 0, 0.35);

  /* ── Buttons ─────────────────────────────────────────────────  */
  --ds-button-height-sm:  2rem;     /* 32px */
  --ds-button-height-md:  2.75rem;  /* 44px — default */
  --ds-button-height-lg:  3.25rem;  /* 52px — hero CTAs */
  --ds-button-px-sm:      1rem;
  --ds-button-px-md:      2rem;
  --ds-button-px-lg:      2.5rem;
  --ds-button-font-size:  var(--ds-font-size-sm);
  --ds-button-font-size-lg: var(--ds-font-size-body);

  /* ── Transitions ─────────────────────────────────────────────  */
  --ds-transition-fast:   0.2s ease;
  --ds-transition-normal: 0.35s ease;
  --ds-transition-slow:   0.5s ease;

  /* ── Navbar ──────────────────────────────────────────────────  */
  --ds-navbar-height-mobile: 4rem;   /* 64px  */
  --ds-navbar-height:        5rem;   /* 80px  */
  --ds-navbar-bg-scrolled:   rgba(10,10,10,0.90);

  /* ── Breakpoints (reference only — use Tailwind classes) ─────
     sm: 640px  |  md: 768px  |  lg: 1024px  |  xl: 1280px       */
}
