/* shared.css — Dark/gold theme for static pages */

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

html {
  height: 100%;
  overflow: hidden;
}

body {
  background: #0a0a1a;
  color: #e0e0e0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Fixed background matching launcher ── */

body::after {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: url('/assets/launcherbg.webp') center center / cover no-repeat;
  animation: kenBurns 30s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -2;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  pointer-events: none;
  z-index: -1;
}

@keyframes kenBurns {
  0%   { transform: scale(1)    translate(0, 0); }
  33%  { transform: scale(1.08) translate(-1.5%, 1%); }
  66%  { transform: scale(1.04) translate(1%, -0.5%); }
  100% { transform: scale(1.1)  translate(-0.5%, 1.5%); }
}

a { color: #f0a830; text-decoration: none; }
a:hover { color: #ffcc33; }

/* ── Navbar ── */

.navbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar-brand {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(240, 168, 48, 0.6);
  flex-shrink: 0;
}

.navbar-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.navbar-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: #f0a830;
}

/* ── Container ── */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Hero ── */

.hero {
  text-align: center;
  padding: 48px 0 40px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 8px;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(240, 168, 48, 0.8),
    0 0 30px rgba(240, 168, 48, 0.4);
  margin-bottom: 16px;
}

.hero p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Section headings ── */

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(240, 168, 48, 0.3);
}

.section-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  margin: -16px 0 24px;
}

/* ── Feature cards (grid) ── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(240, 168, 48, 0.3);
  transform: translateY(-2px);
}

.feature-card h3 {
  color: #f0a830;
  font-size: 16px;
  margin-bottom: 8px;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* ── Controls grid ── */

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}

.control-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.control-key {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  color: #f0a830;
  white-space: nowrap;
  min-width: 48px;
  text-align: center;
}

.control-desc {
  color: rgba(255, 255, 255, 0.6);
}

/* ── CTA button ── */

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #f0a830 0%, #d4922a 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(240, 168, 48, 0.4);
}

/* ── Tables ── */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

th {
  color: #f0a830;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

td {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* ── Sort tabs (highscores) ── */

.sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.sort-tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.sort-tab:hover {
  border-color: rgba(240, 168, 48, 0.3);
  color: #fff;
}

.sort-tab.active {
  background: rgba(240, 168, 48, 0.15);
  border-color: #f0a830;
  color: #f0a830;
}

/* ── Patch notes ── */

.patch-entry {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}

.patch-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.patch-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.patch-version {
  background: rgba(240, 168, 48, 0.15);
  color: #f0a830;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.patch-title {
  flex: 1;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.patch-date {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  white-space: nowrap;
}

.patch-chevron {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  transition: transform 0.2s;
}

.patch-entry.open .patch-chevron {
  transform: rotate(180deg);
}

.patch-body {
  display: none;
  padding: 0 20px 20px;
}

.patch-entry.open .patch-body {
  display: block;
}

.patch-category {
  color: #f0a830;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 16px 0 8px;
}

.patch-body ul {
  list-style: none;
  padding: 0;
}

.patch-body li {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  padding: 3px 0 3px 16px;
  position: relative;
}

.patch-body li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.25);
}

/* ── Medals (top 3 in leaderboard) ── */

.medal { font-size: 16px; margin-right: 4px; }

/* ── Loading / error states ── */

.loading-msg,
.error-msg {
  text-align: center;
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
}

.error-msg { color: #ef5350; }

/* ── Footer ── */

.footer {
  text-align: center;
  padding: 32px 24px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 48px;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .navbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }

  .navbar-links { gap: 16px; }

  .hero h1 {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .hero p { font-size: 15px; }

  .container { padding: 32px 16px 60px; }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .controls-grid {
    grid-template-columns: 1fr;
  }

  .sort-tabs { gap: 6px; }

  .sort-tab {
    padding: 6px 12px;
    font-size: 12px;
  }

  th, td { padding: 8px 10px; font-size: 13px; }
}
