/* === Reset === */
* { margin: 0; padding: 0; box-sizing: border-box; }
ul { list-style: none; }

/* === Global === */
html, body { height: 100%; }
body {
  font-family: 'Trebuchet MS', sans-serif;
  color: #eee;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  position: relative;
  z-index: 0;

  /* Background image */
  background: #000 url('../images/background.jpg') no-repeat center center fixed;
  background-size: cover;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55); /* overlay for readability */
  z-index: -1;
}

/* === Header === */
header {
  background: rgba(0,0,0,0.85);
  padding: 1.5rem;
  border-bottom: 2px solid #2e7d32;
  text-align: center;
}
header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
header .logo {
  height: 48px;
  opacity: 0.9;
  transition: opacity 0.3s;
}
header .logo:hover { opacity: 1; }
header h1 {
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: #6fcf97;
  text-shadow: 0 0 10px #2e7d32;
}
header p { font-size: 1rem; color: #ccc; }

/* === Navigation === */
nav {
  background: rgba(0,0,0,0.9);
  border-bottom: 2px solid #2e7d32;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem;
}
.nav-wrapper ul { display: flex; gap: 1.5rem; }
nav a {
  color: #eee;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: #6fcf97;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
nav a:hover, nav a.active { color: #6fcf97; }
nav a:hover::after, nav a.active::after { transform: scaleX(1); }
.nav-leaf { height: 32px; }

/* === Layout === */
.landing-layout {
  display: flex;
  gap: 1rem;
  max-width: 1200px;
  margin: 2rem auto;
  align-items: flex-start;
}
.center-content {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.side-panel {
  flex: 1;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(111,207,151,0.4);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.9rem;
  box-shadow: 0 0 12px rgba(111,207,151,0.3);
}
.side-panel h3 {
  color: #6fcf97;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 6px #2e7d32;
}

/* === Content Blocks (Listen, Events, News, etc.) === */
.content-block {
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(0,0,0,0.7);
  border-radius: 16px;
  max-width: 900px;
  border: 1px solid rgba(111,207,151,0.4);
  box-shadow: 0 0 20px rgba(0,255,102,0.5);
  text-align: center;
}
/* === News Buttons === */
.news-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.news-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  padding: 0.75rem 1rem;
  background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
  border: 1px solid rgba(111,207,151,0.6);
  border-radius: 8px;

  color: #e8ffe8;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(111,207,151,0.4);
  transition: all 0.3s ease;
}
.news-btn:hover {
  background: #0f2f1a;
  color: #6fcf97;
  border-color: #6fcf97;
  box-shadow: 0 0 14px rgba(111,207,151,0.8);
  transform: translateY(-2px);
}

/* === SLURL Button Variant === */
.slurl-btn {
  background: linear-gradient(145deg, #0a0a0a, #102f1a);
  border-color: #6fcf97;
}
.slurl-btn:hover {
  background: #0f3a20;
  box-shadow: 0 0 16px rgba(111,207,151,0.9);
}
.sl-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px #6fcf97);
}

/* === Equalizer === */
.equalizer {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 1rem 0;
  height: 40px;
}
.equalizer span {
  display: block;
  width: 6px;
  height: 20px;
  background: #6fcf97;
  animation: bounce 1s infinite ease-in-out;
}
.equalizer span:nth-child(2) { animation-delay: 0.2s; }
.equalizer span:nth-child(3) { animation-delay: 0.4s; }
.equalizer span:nth-child(4) { animation-delay: 0.6s; }
.equalizer span:nth-child(5) { animation-delay: 0.8s; }
@keyframes bounce {
  0%, 100% { height: 10px; }
  50% { height: 40px; }
}

/* === Track Info === */
.track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.track img {
  width: 100px;
  height: 100px;
  border-radius: 6px;
  box-shadow: 0 0 10px #000;
  object-fit: cover;
}
.track span {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  max-width: 240px;
  line-height: 1.4;
}

/* === Featured Video === */
#youtube iframe {
  width: 100%;
  max-width: 560px;
  height: 315px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(207,111,151,0.6);
}
/* === Major Feature Blocks (Marketplace, Shop, Affiliates) === */
#marketplace, #shop, #affiliates {
  margin: 3rem auto;
  padding: 2rem;
  max-width: 900px;
  border-radius: 16px;
  text-align: center;
}

/* Marketplace */
#marketplace {
  background: linear-gradient(145deg, rgba(18,18,18,0.9), rgba(0,0,0,0.7));
  border: 1px solid rgba(111,207,151,0.6);
  box-shadow: 0 8px 20px rgba(111,207,151,0.4);
}
#marketplace h2 {
  color: #6fcf97;
  margin-bottom: 1rem;
  text-shadow: 0 0 6px #2e7d32;
}

/* Shop */
#shop {
  background: linear-gradient(145deg, rgba(18,18,22,0.9), rgba(0,0,0,0.7));
  border: 1px solid rgba(111,151,207,0.6);
  box-shadow: 0 8px 20px rgba(111,151,207,0.4);
}
#shop h2 {
  color: #6f97cf;
  margin-bottom: 1rem;
  text-shadow: 0 0 6px #2e327d;
}

/* Affiliates */
#affiliates {
  background: linear-gradient(145deg, rgba(20,20,20,0.9), rgba(0,0,0,0.7));
  border: 1px solid rgba(207,151,111,0.6);
  box-shadow: 0 8px 20px rgba(207,151,111,0.4);
}
#affiliates h2 {
  color: #cf976f;
  margin-bottom: 1rem;
  text-shadow: 0 0 6px #7d4a2e;
}

/* === Affiliates Grid === */
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

/* === Affiliate Cards === */
.affiliate-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(207,151,111,0.4);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;

  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  min-height: 280px;
  box-shadow: 0 0 12px rgba(207,151,111,0.3);
}
.affiliate-card:hover {
  transform: translateY(-5px);
  border-color: #cf976f;
  box-shadow: 0 0 14px rgba(207,151,111,0.8);
}
.affiliate-card h3 {
  color: #cf976f;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 6px #7d4a2e;
}
.affiliate-card p { margin: 0.5rem 0; }
.affiliate-card p a {
  color: #eee;
  font-weight: bold;
  text-decoration: none;
  margin: 0 0.25rem;
}
.affiliate-card p a:hover { color: #cf976f; }

/* Logos & Maps inside cards */
.affiliate-card img.affiliate-logo {
  max-width: 160px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.affiliate-card img.affiliate-map {
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-top: auto;
  border-radius: 6px;
}

/* === Footer === */
footer {
  background: rgba(0,0,0,0.85);
  padding: 1rem;
  font-size: 0.8rem;
  color: #aaa;
  border-top: 1px solid #333;
  margin-top: auto;
  text-align: center;
}

/* === Responsive === */
@media (max-width: 900px) {
  .landing-layout { flex-direction: column; }
  .side-panel { order: 2; margin-top: 1rem; }
  .center-content { order: 1; }
}
@media (max-width: 600px) {
  header h1 { font-size: 1.8rem; letter-spacing: 1px; }
  .content-block, #listen, #youtube, #affiliates, #marketplace, #shop {
    margin: 1.5rem auto;
    padding: 1rem;
    border-radius: 8px;
  }
  .track { flex-direction: column; gap: 0.5rem; }
  .track img { width: 120px; height: 120px; }
  .nav-wrapper { flex-direction: column; gap: 0.5rem; }
  .nav-leaf { height: 24px; }
  .nav-wrapper ul { flex-direction: column; gap: 0.5rem; }
}
/* === Leaderboard Overrides (for SL readability) === */
#leaderboard {
  font-size: 28px; /* larger base font */
  text-align: center;
}

#leaderboard h2 {
  font-size: 48px;
  margin-bottom: 1rem;
}

#leaderboard table {
  font-size: 32px; /* big table text */
  width: 90%;
  margin: 2rem auto;
  border-collapse: collapse;
}

#leaderboard th,
#leaderboard td {
  padding: 20px;
  border-bottom: 2px solid #444;
}

#leaderboard th {
  font-size: 28px;
  background: #222;
  color: #ffcc00;
  text-transform: uppercase;
}

#leaderboard tr.top1 {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #111;
  font-weight: bold;
}
#leaderboard tr.top2 {
  background: linear-gradient(135deg, #C0C0C0, #999);
  color: #111;
  font-weight: bold;
}
#leaderboard tr.top3 {
  background: linear-gradient(135deg, #CD7F32, #8B4513);
  color: #fff;
  font-weight: bold;
}