/* ════════════════════════════════════════════════
   MENACRITIC — Design System / Global Styles
   Dark Navy + Neon Pink (#8e004d)
   ════════════════════════════════════════════════ */
:root {
  /* MenaCritic identity */
  --brand: #8a2bff;          /* violet */
  --brand-bright: #ff2ed1;   /* magenta */
  --brand-neon: #00f0ff;     /* cyan */
  --lime: #a8ff00;           /* lime accent */
  --bg: #0b0f17;             /* deep slate */
  --bg-card: #121826;
  --bg-card2: #1b2230;       /* steel gray */
  --bg-glass: rgba(11, 15, 23, 0.85);
  --border: rgba(0, 240, 255, 0.16);
  --border2: rgba(255, 46, 209, 0.45);
  --glow: rgba(138, 43, 255, 0.30);
  --txt: #f7fbff;
  --txt2: #b9c4d4;
  --txt3: #8794a8;
  --score-green: #10B981;
  --score-yellow: #F59E0B;
  --score-red: #EF4444;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1340px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Exo 2', 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-neon); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.num, .score, .score-num { font-family: 'Orbitron', sans-serif; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.page { padding-block: 28px 90px; }

/* ── Ambient background ── */
.bg-blobs { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.blob { position: absolute; width: 50vw; height: 50vw; border-radius: 50%;
  background: var(--brand); filter: blur(120px); opacity: .07; }
.blob-1 { top: -10vw; inset-inline-end: -10vw; }
.blob-2 { bottom: -10vw; inset-inline-start: -10vw; opacity: .05; }
.bg-grid { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(142,0,77,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142,0,77,.025) 1px, transparent 1px);
  background-size: 60px 60px; }

/* ── Navbar ── */
.navbar { position: sticky; top: 0; z-index: 100;
  background: rgba(5,5,15,.90); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { display: inline-flex; width: 36px; height: 36px; }
.brand-logo svg { width: 100%; height: 100%; }
.brand-logo.small { width: 28px; height: 28px; }
.brand-name { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 1.35rem; letter-spacing: .5px;
  background: linear-gradient(120deg, var(--brand-neon), var(--brand-bright), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 22px; margin-inline-end: auto; }
.nav-links a { color: var(--txt2); font-weight: 600; font-size: .98rem; }
.nav-links a:hover, .nav-links a.active { color: var(--txt); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { background: transparent; border: 1px solid var(--border);
  color: var(--txt); width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: grid; place-items: center; font-size: 1.1rem; }
.icon-btn:hover { border-color: var(--border2); box-shadow: 0 0 16px var(--glow); }
.hamburger { display: none; }

/* ── Mobile menu overlay ── */
.mobile-menu { position: fixed; inset: 0; z-index: 200;
  background: rgba(5,5,15,.98); backdrop-filter: blur(16px);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; font-size: 1.6rem; font-weight: 700; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--txt); }
.mm-close { position: absolute; top: 22px; inset-inline-end: 22px;
  background: transparent; border: none; color: var(--txt); font-size: 2rem; }

/* ── Headings / section headers ── */
.section { margin-block: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 900; }
.section-title::before { content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-neon); box-shadow: 0 0 12px var(--brand-neon); }
.see-all { color: var(--txt2); font-weight: 600; font-size: .9rem; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand)); color: #fff;
  border: none; padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 700; box-shadow: 0 0 22px rgba(255,46,209,.35); transition: transform .15s, box-shadow .2s; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 30px rgba(255,46,209,.55); }
.btn-ghost { background: transparent; border: 1px solid var(--border2); box-shadow: none; color: var(--txt); }
.btn-ghost:hover { background: rgba(142,0,77,.12); }

/* ── Pills / tabs ── */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { background: transparent; border: 1px solid var(--border);
  color: var(--txt2); padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem; }
.pill:hover { border-color: var(--border2); color: var(--txt); }
.pill.active { background: rgba(142,0,77,.15); border-color: var(--border2); color: var(--brand-neon); }

/* ── Score colors ── */
.score-green  { color: var(--score-green); }
.score-yellow { color: var(--score-yellow); }
.score-red    { color: var(--score-red); }
.score-pending{ color: var(--txt3); }
.bg-green  { background: rgba(16,185,129,.12);  border-color: rgba(16,185,129,.5)  !important; }
.bg-yellow { background: rgba(245,158,11,.12);  border-color: rgba(245,158,11,.5)  !important; }
.bg-red    { background: rgba(239,68,68,.12);   border-color: rgba(239,68,68,.5)   !important; }
.bg-pending{ background: rgba(74,68,112,.12);   border-color: rgba(74,68,112,.5)   !important; }

/* ── Utility ── */
.muted { color: var(--txt2); }
.muted3 { color: var(--txt3); }
.center { text-align: center; }
.flex { display: flex; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.mt8{margin-top:8px}.mt16{margin-top:16px}.mt24{margin-top:24px}
.hidden { display: none !important; }
.empty-state { text-align: center; color: var(--txt2); padding: 60px 20px; }

/* ── Brand intro animation ── */
.mc-intro { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #131a2b, var(--bg) 70%); animation: mcIntroOut .6s ease 1.7s forwards; }
.mc-intro-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mc-intro-logo { width: min(70vw, 420px); height: auto; opacity: 0;
  filter: drop-shadow(0 0 24px rgba(0,240,255,.45));
  animation: mcLogoIn 1s cubic-bezier(.2,.8,.2,1) .15s forwards; }
.mc-intro-bar { width: 0; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-neon), var(--brand-bright), var(--brand));
  box-shadow: 0 0 14px var(--brand-bright); animation: mcBar 1.1s ease .5s forwards; }
@keyframes mcLogoIn { 0%{opacity:0;transform:scale(.82) translateY(8px);filter:blur(6px)} 100%{opacity:1;transform:none;filter:blur(0)} }
@keyframes mcBar { 0%{width:0;opacity:0} 25%{opacity:1} 100%{width:min(60vw,360px);opacity:.9} }
@keyframes mcIntroOut { 0%{opacity:1;visibility:visible} 100%{opacity:0;visibility:hidden} }
.mc-intro.skip { display: none !important; }
@media (prefers-reduced-motion: reduce){ .mc-intro{ animation: mcIntroOut .2s ease .2s forwards } .mc-intro-logo,.mc-intro-bar{ animation: none; opacity:1 } }
