/* =========================================================
   MERTER AKADEMİ SPOR KULÜBÜ — Tokens
   Colors + Typography base vars and semantic vars.
   Inspired directly by the club crest:
     deep forest green shield · vibrant green outline ·
     orange basketball · brushed silver mask · white typography.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Barlow+Condensed:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap");

:root {
  /* ------- Brand colors (from logo sampling) ------- */
  --ma-green-950: #04210F;   /* near-black shield interior */
  --ma-green-900: #073A1B;   /* deep green bg */
  --ma-green-800: #0B5A2A;   /* shield mid */
  --ma-green-700: #0F7A37;   /* primary brand green */
  --ma-green-600: #149044;   /* vivid / outline */
  --ma-green-500: #1FB057;   /* highlight */
  --ma-green-400: #5CD489;   /* tint / hover */
  --ma-green-300: #9CE6B8;   /* light tint */
  --ma-green-100: #E4F7EC;   /* surface tint */

  --ma-orange-700: #B04400;
  --ma-orange-600: #D66000;
  --ma-orange-500: #F07A18;  /* basketball primary */
  --ma-orange-400: #FF9436;
  --ma-orange-300: #FFB774;
  --ma-orange-100: #FFEAD1;

  /* Silver / neutrals (mask + chrome) */
  --ma-silver-900: #1A1D1A;
  --ma-silver-800: #26292A;
  --ma-silver-700: #3A3E3F;
  --ma-silver-600: #5A5F60;
  --ma-silver-500: #8A9091;
  --ma-silver-400: #B8BDBE;
  --ma-silver-300: #D8DBDC;
  --ma-silver-200: #ECEEEE;
  --ma-silver-100: #F5F6F6;
  --ma-white: #FFFFFF;
  --ma-black: #020603;

  /* Data/stat emphasis (aligns with orange but can be tuned) */
  --ma-stat-green: var(--ma-green-500);
  --ma-stat-orange: var(--ma-orange-500);

  /* Semantic status */
  --ma-success: var(--ma-green-500);
  --ma-warning: #E6A200;
  --ma-danger:  #D62839;
  --ma-info:    #2A6FDB;

  /* ------- Surfaces ------- */
  --bg-0: var(--ma-green-950);             /* page bg (dark mode default) */
  --bg-1: #0A2713;                          /* slightly lifted */
  --bg-2: #0E331A;
  --bg-3: var(--ma-green-900);
  --bg-elevated: #103A1E;

  --bg-light-0: var(--ma-white);
  --bg-light-1: #FAFBFA;
  --bg-light-2: var(--ma-silver-100);

  /* ------- Foreground ------- */
  --fg-1: var(--ma-white);                  /* high-emphasis on dark */
  --fg-2: #CDE1D4;                          /* secondary on dark */
  --fg-3: #7FA08B;                          /* tertiary on dark */
  --fg-4: #4E6B58;                          /* muted on dark */
  --fg-on-orange: var(--ma-green-950);
  --fg-on-green: var(--ma-white);

  --fg-light-1: #071A0E;
  --fg-light-2: #2A3B31;
  --fg-light-3: #5E6E63;

  --border-1: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.24);
  --border-light-1: rgba(7, 26, 14, 0.10);
  --border-light-2: rgba(7, 26, 14, 0.18);

  /* ------- Typography families ------- */
  /* Display: Barlow Condensed — athletic, condensed, all-caps ready.
     Closest free match to the club crest's condensed sans. */
  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
  /* Numeric/stat: Oswald — heavy verticals, great for big stats */
  --font-stat: "Oswald", "Barlow Condensed", "Arial Narrow", sans-serif;
  /* Body: Inter — clean, neutral, Turkish locale friendly */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Mono: JetBrains Mono for data/code */
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ------- Font sizes (fluid-friendly but fixed here) ------- */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-xl: 28px;
  --fs-2xl: 36px;
  --fs-3xl: 48px;
  --fs-4xl: 64px;
  --fs-5xl: 88px;
  --fs-6xl: 120px;
  --fs-eyebrow: 12px;

  /* Line heights */
  --lh-tight: 0.95;
  --lh-snug: 1.1;
  --lh-normal: 1.35;
  --lh-relaxed: 1.55;

  /* Tracking */
  --track-tight: -0.02em;
  --track-normal: 0em;
  --track-wide: 0.06em;
  --track-wider: 0.14em;
  --track-widest: 0.28em;        /* wordmark-style wide eyebrows */

  /* ------- Spacing (8px base) ------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* ------- Radii ------- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-pill: 999px;
  /* Shield-inspired asymmetric radius */
  --radius-crest: 14px 14px 22px 22px;

  /* ------- Shadows + effects ------- */
  --shadow-1: 0 1px 2px rgba(0,0,0,0.35);
  --shadow-2: 0 4px 12px rgba(0,0,0,0.35);
  --shadow-3: 0 12px 32px rgba(0,0,0,0.45);
  --shadow-green-glow: 0 0 0 1px rgba(31,176,87,0.4), 0 8px 24px rgba(20,144,68,0.35);
  --shadow-orange-glow: 0 0 0 1px rgba(240,122,24,0.4), 0 8px 24px rgba(240,122,24,0.28);
  --ring-focus: 0 0 0 3px rgba(31,176,87,0.45);

  /* Gradients */
  --grad-court: linear-gradient(180deg, var(--ma-green-900) 0%, var(--ma-green-950) 100%);
  --grad-stripe: linear-gradient(
    90deg,
    var(--ma-green-700) 0 33%,
    var(--ma-white) 33% 66%,
    var(--ma-orange-500) 66% 100%
  );
  --grad-orange: linear-gradient(135deg, var(--ma-orange-500), var(--ma-orange-700));
  --grad-green: linear-gradient(135deg, var(--ma-green-600), var(--ma-green-800));

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;
}

/* =========================================================
   Semantic element styles — apply to elements directly
   ========================================================= */

.ma-body-dark {
  background: var(--bg-0);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.ma-body-light {
  background: var(--bg-light-0);
  color: var(--fg-light-1);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

/* Display headings — condensed all-caps, locked tight */
.ma-h1, h1.ma {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, var(--fs-5xl));
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0;
}
.ma-h2, h2.ma {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, var(--fs-3xl));
  line-height: var(--lh-snug);
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0;
}
.ma-h3, h3.ma {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0;
}
.ma-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--ma-green-400);
}
.ma-body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
  text-wrap: pretty;
  margin: 0;
}
.ma-lead {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--fg-1);
  font-weight: 400;
  text-wrap: pretty;
}
.ma-small {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--fg-3);
}
.ma-stat-num {
  font-family: var(--font-stat);
  font-weight: 700;
  font-size: var(--fs-5xl);
  line-height: 0.9;
  letter-spacing: var(--track-tight);
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
}
.ma-stat-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--fg-3);
}
.ma-mono { font-family: var(--font-mono); font-size: var(--fs-sm); }

/* Links */
a.ma, .ma-link {
  color: var(--ma-green-400);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base);
}
a.ma:hover, .ma-link:hover {
  border-bottom-color: var(--ma-green-400);
  color: var(--ma-green-300);
}
