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

:root {
  --bg:           #0d0d0f;
  --bg-surface:   #141417;
  --bg-card:      #1a1a1f;
  --bg-card-hover:#1f1f26;
  --border:       rgba(255,255,255,0.07);
  --border-light: rgba(255,255,255,0.12);
  --text:         #e8e8f0;
  --text-muted:   #8888a0;
  --text-dim:     #555568;
  --accent:       #4f8ef7;
  --accent-hover: #6ba3ff;
  --green:        #3ecf6e;
  --red:          #f75454;
  --yellow:       #f7c154;
  --font:         'Inter', system-ui, sans-serif;
  --radius:       10px;
  --radius-sm:    6px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
}

html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { display: block; max-width: 100%; }

/* ─── Navbar ─────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 60px; gap: 32px;
}
.nav-logo { display: flex; align-items: center; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
.logo-accent { color: var(--accent); }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 6px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link--staff { color: var(--yellow); }
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-avatar-wrap { position: relative; cursor: pointer; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border-light); }
.nav-username { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }
.nav-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 160px; overflow: hidden;
  box-shadow: var(--shadow);
}
.nav-avatar-wrap:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 10px 16px; font-size: 0.875rem;
  color: var(--text-muted); transition: background 0.1s, color 0.1s;
}
.nav-dropdown a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.nav-dropdown-divider { border-top: 1px solid var(--border); margin: 4px 0; }
.nav-dropdown-logout { color: var(--red) !important; }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.15s; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--steam { background: #1b2838; color: #c6d4df; font-size: 0.85rem; padding: 8px 14px; }
.btn--steam:hover { background: #2a475e; color: #fff; }
.btn--steam-hero { background: var(--accent); color: #fff; padding: 12px 24px; font-size: 1rem; }
.btn--steam-hero:hover { background: var(--accent-hover); color: #fff; }
.steam-icon { flex-shrink: 0; }

/* ─── Banner ─────────────────────────────────────────────────────── */
.site-banner {
  text-align: center; padding: 12px 24px; font-size: 0.9rem;
}
.site-banner--warning { background: rgba(247,193,84,0.12); color: var(--yellow); border-bottom: 1px solid rgba(247,193,84,0.25); }
.site-banner--danger  { background: rgba(247,84,84,0.12);  color: var(--red);    border-bottom: 1px solid rgba(247,84,84,0.25);  }
.site-banner--info    { background: rgba(79,142,247,0.12); color: var(--accent); border-bottom: 1px solid rgba(79,142,247,0.25); }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero { padding: 100px 24px 80px; text-align: center; }
.hero-inner { max-width: 680px; margin: 0 auto; }
#live-dot-wrap { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim);
  transition: background 0.3s;
}
.live-dot--online { background: var(--green); box-shadow: 0 0 0 3px rgba(62,207,110,0.2); animation: pulse 2s infinite; }
.live-dot--offline { background: var(--red); }
@keyframes pulse { 0%,100%{ box-shadow:0 0 0 3px rgba(62,207,110,0.2); } 50%{ box-shadow:0 0 0 6px rgba(62,207,110,0.05); } }
.live-label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.hero-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -1px; color: var(--text); }
.hero-accent { color: var(--accent); }
.hero-sub { color: var(--text-muted); font-size: 1.05rem; margin: 16px 0 36px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Stats bar ──────────────────────────────────────────────────── */
.stats-bar { padding: 0 24px 48px; }
.stats-bar-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px;
}
.stat-card--highlight { border-color: var(--green); box-shadow: 0 0 0 1px rgba(62,207,110,0.1); }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-card--highlight .stat-value { color: var(--green); }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-top: 6px; }

/* ─── Sections ───────────────────────────────────────────────────── */
.section { padding: 60px 24px; }
.section--dark { background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: 1.15rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.section-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); }
.section-dot.live-dot--online { background: var(--green); }
.section-title-center { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 40px; color: var(--text); }

/* ─── Server list ────────────────────────────────────────────────── */
.server-list { display: flex; flex-direction: column; gap: 16px; }
.server-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  transition: border-color 0.15s;
}
.server-card--online { border-left: 3px solid var(--green); }
.server-card--offline { opacity: 0.6; }
.server-card--loading { min-height: 80px; }
.server-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.server-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot--green { background: var(--green); }
.dot--grey  { background: var(--text-dim); }
.server-name { font-weight: 600; color: var(--text); flex: 1; }
.server-count { font-size: 0.85rem; color: var(--text-muted); }
.server-players { display: flex; flex-wrap: wrap; gap: 8px; }
.server-player { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.player-avatar { width: 22px; height: 22px; border-radius: 50%; }
.server-empty { font-size: 0.875rem; color: var(--text-dim); }
.server-offline-msg { color: var(--text-dim); font-size: 0.9rem; }

/* ─── Features grid ──────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color 0.15s, background 0.15s;
}
.feature-card:hover { background: var(--bg-card-hover); border-color: var(--border-light); }
.feature-icon { font-size: 1.75rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ─── CTA block ──────────────────────────────────────────────────── */
.cta-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  border-left: 3px solid var(--accent);
}
.cta-text h2 { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.cta-text p  { color: var(--text-muted); margin-top: 8px; font-size: 0.95rem; }
.cta-bonus   { color: var(--green); font-weight: 600; }
.cta-actions { flex-shrink: 0; }

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border); padding: 28px 24px;
  background: var(--bg-surface);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-size: 0.85rem; color: var(--text-dim); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* ─── Main content padding for sticky navbar ─────────────────────── */
.main-content { min-height: calc(100vh - 60px - 80px); }

/* ─── Skeletons ──────────────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
.skeleton--title { height: 20px; width: 60%; margin-bottom: 12px; }
.skeleton--line  { height: 14px; width: 40%; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .cta-block { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Server badge (fps / uptime) ───────────────────────────────────────── */
.server-meta { display: flex; align-items: center; gap: 8px; }
.server-badge {
  font-size: 0.75rem; font-weight: 600; padding: 2px 8px;
  border-radius: 4px; background: rgba(62,207,110,0.12); color: var(--green);
}
.server-badge--dim { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.player-steamid { font-size: 0.8rem; color: var(--text-muted); font-family: monospace; }
