/* ==========================================================================
   DONUTDRIVE - KOMPLETT LEADERBOARD + ORIGINAL FOOTER
   ========================================================================== */

:root {
  --electric-purple: #9d32a8;
  --neon-glow: rgba(157, 50, 168, 0.8);
}

body {
  background-color: #0b0b0b;
  margin: 0;
  color: white;
  font-family: "Inter", sans-serif;
}

/* --- LEADERBOARD PAGE SETUP --- */
.leaderboard-page {
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(
    circle at top,
    rgba(157, 50, 168, 0.15) 0%,
    #0b0b0b 60%
  );
  min-height: 100vh;
}

/* Container som tvinger alt til midten */
.container {
  width: 100%;
  max-width: 1100px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* --- HERO (SENTRERT) --- */
.leaderboard-hero {
  text-align: center;
  margin-bottom: 60px;
}

.leaderboard-hero h1 {
  font-size: clamp(40px, 12vw, 100px);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  text-shadow:
    0 0 15px var(--neon-glow),
    0 0 35px var(--neon-glow);
  margin: 0;
}

/* --- PODIUM (SENTRERT) --- */
.podium-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
}

.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 600px;
}

.podium-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step {
  width: 100%;
  background: #151515;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  border-radius: 10px 10px 0 0;
}

.gold .step {
  height: 160px;
  border-color: #ffd700;
  color: #ffd700;
}
.silver .step {
  height: 120px;
  border-color: #c0c0c0;
  color: #c0c0c0;
}
.bronze .step {
  height: 90px;
  border-color: #cd7f32;
  color: #cd7f32;
}

/* --- TABELLEN --- */
.table-section {
  width: 100%;
  margin-bottom: 100px;
}

.table-wrapper {
  background: #111;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #222;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table td,
.leaderboard-table th {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #1a1a1a;
}

.time-cell {
  color: var(--electric-purple);
  font-family: monospace;
  font-weight: 900;
}

/* --- DEN BRA FOOTEREN (Original stil) --- */
.main-footer {
  position: relative;
  background: #080808;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(157, 50, 168, 0.2);
  width: 100%; /* Sørger for at den dekker hele bredden */
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: var(--electric-purple);
  box-shadow: 0 0 20px var(--electric-purple);
}

/* Her må vi overstyre containeren for footeren så den blir grid igjen */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
  width: 100%;
}

.footer-brand .logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  display: block;
  margin-bottom: 20px;
}

.footer-brand p {
  color: #888;
  line-height: 1.6;
}

.footer-grid h4 {
  font-size: 0.9rem;
  color: var(--electric-purple);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
}
.footer-links li,
.footer-contact li {
  margin-bottom: 12px;
  color: #aaa;
}
.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: 0.3s;
}
.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}
.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}
.social-link:hover {
  border-color: var(--electric-purple);
  background: rgba(157, 50, 168, 0.1);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid #1a1a1a;
  text-align: center;
  color: #555;
}

/* Responsiv */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
}
