/* ============================================================
   GameLikeUs — Global Stylesheet
   /css/global.css
   Design 7: The Locker Room
   ============================================================ */

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0a0a0a;
  --surface:    #111111;
  --card:       #161616;
  --border:     #222222;
  --border-l:   #2e2e2e;
  --red:        #e8001a;
  --red-dark:   #cc0016;
  --white:      #f5f0eb;
  --muted:      #555555;
  --sub:        #888888;
  --green:      #00c94a;
  --gold:       #f5a800;

  --font-display: 'Oswald', sans-serif;
  --font-serif:   'Source Serif 4', serif;
  --font-body:    'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── TOPBAR ── */
.topbar {
  background: var(--red);
  height: 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.topbar-label {
  font-family: var(--font-display);
  font-size: .68rem; font-weight: 700; letter-spacing: .2em;
  padding: 0 16px; height: 100%;
  display: flex; align-items: center;
  background: rgba(0,0,0,.25);
  border-right: 1px solid rgba(255,255,255,.2);
  white-space: nowrap; flex-shrink: 0;
}
.topbar-scroll { flex: 1; overflow: hidden; }
.topbar-inner {
  display: flex; gap: 56px;
  white-space: nowrap; width: max-content;
  animation: topbar-scroll 32s linear infinite;
}
@keyframes topbar-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.topbar-inner span {
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 500; letter-spacing: .12em;
}
.topbar-inner b { font-weight: 700; }

/* ── NAV ── */
#main-nav {
  background: var(--bg);
  border-bottom: 3px solid var(--red);
  position: sticky; top: 0; z-index: 200;
}
.nav-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--red); }
.nav-tagline {
  font-family: var(--font-serif);
  font-size: .78rem; font-style: italic;
  color: var(--sub);
}
.nav-actions { display: flex; gap: 12px; align-items: center; }
.btn-signin {
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 600; letter-spacing: .15em;
  padding: 7px 18px;
  background: transparent; border: 1.5px solid var(--border-l);
  color: var(--sub); text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn-signin:hover { border-color: var(--white); color: var(--white); }
.btn-join {
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 700; letter-spacing: .15em;
  padding: 8px 22px;
  background: var(--red); border: none;
  color: var(--white); text-decoration: none;
  transition: background .2s;
}
.btn-join:hover { background: var(--red-dark); }

.nav-bottom {
  display: flex; gap: 0;
  padding: 0 40px;
  overflow-x: auto;
}
.nav-bottom a {
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 18px;
  color: var(--sub); text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.nav-bottom a:hover,
.nav-bottom a.active { color: var(--white); border-bottom-color: var(--red); }

/* ── FOOTER ── */
#main-footer {
  background: var(--surface);
  border-top: 3px solid var(--red);
  margin-top: 60px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px 40px 28px; }

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700; letter-spacing: .08em;
  color: var(--sub); text-decoration: none;
  display: inline-block; margin-bottom: 12px;
}
.footer-logo span { color: var(--red); }
.footer-tagline {
  font-family: var(--font-serif);
  font-size: .82rem; font-style: italic;
  color: var(--muted); line-height: 1.6;
  margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  font-family: var(--font-display);
  font-size: .65rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.footer-socials a:hover { color: var(--white); }

.footer-nav {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--white); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.footer-col a {
  display: block;
  font-family: var(--font-body);
  font-size: .82rem; color: var(--muted);
  text-decoration: none; padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: .72rem; color: var(--muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-family: var(--font-display);
  font-size: .65rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.footer-legal a:hover { color: var(--white); }

/* ── UTILITY CLASSES ── */
.container  { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section    { padding: 48px 0; }
.red        { color: var(--red); }
.muted      { color: var(--muted); }

/* Platform accent colours */
.plat-ps    { color: #60a5fa; }
.plat-xbox  { color: #4ade80; }
.plat-nin   { color: #fb923c; }
.plat-pc    { color: var(--gold); }
.plat-retro { color: #a78bfa; }

/* Live dot */
.live-dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 6px var(--red);
  animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s, transform .55s; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-top     { padding: 12px 20px; }
  .nav-tagline { display: none; }
  .nav-bottom  { padding: 0 16px; }
  .nav-logo    { font-size: 1.4rem; }
  .container   { padding: 0 20px; }
  .footer-top  { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav  { grid-template-columns: repeat(2, 1fr); }
  .footer-inner{ padding: 40px 20px 24px; }
  #main-footer { margin-top: 40px; }
}

@media (max-width: 600px) {
  .footer-nav    { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
