/* ============================================
   MCFrom — Design Tokens (v2: Minecraft-inspired)
   نظام المتغيرات الأساسي — أسود + ذهبي + أحمر
   ============================================ */

:root{
  /* ---- Color: surfaces (deep dark, mysterious) ---- */
  --bg:            rgb(47,47,48);
  --surface-1:     rgb(230,232,235);
  --surface-2:     rgb(50,50,50);
  --surface-3:     rgb(73,73,73);
  --border:        rgb(30,30,31);
  --border-strong: rgb(30,30,31);

  /* ---- Color: text ---- */
  --text-1:        rgb(255,255,255);
  --text-2:        rgb(208,209,212);
  --text-3:        rgb(170,170,170);

  /* ---- Color: accent — gold (primary) ---- */
  --accent:        rgb(85,183,55);
  --accent-hover:  rgb(100,200,70);
  --accent-active: rgb(60,133,39);
  --accent-text:   #ffffff;

  /* ---- Color: secondary — red (warnings / special states) ---- */
  --red:           #e6423a;
  --red-hover:     #f0554d;
  --red-text:      #ffffff;

  /* ---- Color: semantic ---- */
  --success:  #5bb974;
  --warning:  #f5b93d;
  --danger:   #e6423a;
  --info:     #4a90c2;

  /* ---- Color: tag/tier accents (Addon tags: Addon/VIP/New/Jenny) ---- */
  --tag-vip:    #f5b93d;
  --tag-new:    #5bb974;
  --tag-jenny:  #b06fe0;

  /* ---- Typography ---- */
  --font-display: 'Press Start 2P', 'VT323', monospace; /* عناوين بكسلية مستوحاة من ماينكرافت */
  --font-ui:   'VT323', 'Rajdhani', monospace;
  --font-mono: 'VT323', 'Courier New', monospace;

  --fs-xs:   15px;
  --fs-sm:   17px;
  --fs-base: 18px;
  --fs-md:   20px;
  --fs-lg:   19px;
  --fs-xl:   23px;
  --fs-2xl:  29px;
  --fs-3xl:  37px;

  --fw-regular:  500;
  --fw-medium:   600;
  --fw-semibold: 700;
  --fw-bold:     800;

  --lh-tight:  1.2;
  --lh-normal: 1.5;
  --lh-loose:  1.7;

  /* ---- Spacing scale (4px base) ---- */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* ---- Radius — mostly sharp/blocky, minimal rounding ---- */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-full: 999px;

  /* ---- Shadows — hard, blocky depth (not soft glows) ---- */
  --shadow-sm: 0 2px 0 rgba(0,0,0,.5);
  --shadow-md: 0 3px 0 rgba(0,0,0,.5), 0 4px 10px rgba(0,0,0,.4);
  --shadow-lg: 0 4px 0 rgba(0,0,0,.5), 0 8px 20px rgba(0,0,0,.45);

  /* ---- Icon sizes ---- */
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;

  /* ---- Button heights ---- */
  --btn-h-sm: 34px;
  --btn-h-md: 42px;
  --btn-h-lg: 48px;

  /* ---- Layout ---- */
  --container-max: 1280px;
  --header-h: 60px;
  --bottom-nav-h: 58px;

  /* ---- Breakpoints (reference only, used in media queries) ---- */
  /* sm: 480px | md: 768px | lg: 1024px | xl: 1280px */
}

*, *::before, *::after{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }

::selection{ background: var(--accent); color: var(--accent-text); }

/* Scrollbar (subtle, not decorative) */
::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-track{ background: var(--surface-1); }
::-webkit-scrollbar-thumb{ background: var(--border-strong); border-radius: var(--radius-full); }
