@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&family=Inter&display=swap');

/*  RESET & BASE  */
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', sans-serif;
  background-color: #0e0e0e;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

/*  TYPOGRAPHY  */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  color: #bb86fc;
  text-shadow: 0 0 6px #bb86fc66;
  margin: 20px;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
h3 {
  font-size: 1.3rem;
  color: #9f7aea;
  text-align: center;
  margin: 40px 0 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
p {
  margin: 0 20px 20px;
}
small {
  font-size: 0.75em;
  color: #999;
}

/*  LINKS  */
a {
  color: #bb86fc;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/*  NAVIGATION  */
nav {
  background-color: #1a1a1a;
  padding: 15px;
  box-shadow: 0 0 10px #000;
  border-bottom: 1px solid #333;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav li {
  margin: 0 12px;
}
nav a {
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
}

/*  PAGE LAYOUT  */
.page-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px;
  text-align: left;
}
.section-title {
  text-align: center;
  margin: 60px 0 10px;
}

/*  HERO  */
.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
}
.home-hero p {
  font-size: 1.2rem;
  color: #ccc;
}

/*  BUTTONS  */
.join-button, #copyDiscordId {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #bb86fc;
  color: #111;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  border-radius: 6px;
  box-shadow: 0 0 12px #bb86fc88;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.join-button:hover, #copyDiscordId:hover {
  background: #d0a8ff;
  color: #fff;
  box-shadow: 0 0 20px #d0a8ffcc;
  text-shadow: 0 0 5px #fff;
}
.join-button .join-main {
  font-size: 1.2rem;
}
.join-button .join-sub {
  font-size: 0.8rem;
  text-transform: none;
  margin-top: 2px;
}
.centered-button {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

/*  GAME CARD  */
.game {
  position: relative;
  padding-bottom: 2rem;
  background: #1b1b1f;
  margin: 40px 0;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px #bb86fc22;
}
.game-meta {
  text-align: right;
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 5px;
}
.owner {
  position: absolute;
  bottom: 0.5rem;
  right: 1rem;
  font-size: 0.75rem;
  color: #999;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 6px #bb86fc66;
  margin: 0;
}

.game p {
  margin: 10px 20px;
}
.expansion {
  margin-left: 20px;
  margin-top: 10px;
}
.expansion a {
  font-family: 'Orbitron', sans-serif;
  color: #9f7aea;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.expansion span {
  display: block;
  margin-left: 10px;
  color: #ccc;
  font-size: 0.95em;
}
.expansion-note {
  font-size: 0.8rem;
  color: #9f7aea;
  margin-left: 5px;
}
.expansion-warning {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #c792ea;
  font-family: 'Inter', sans-serif;
  text-shadow: 0 0 6px #c792ea66;
  display: flex;
  align-items: center;
  gap: 8px;
}
.expansion-warning img {
  width: 1em;
  height: 1em;
  filter: drop-shadow(0 0 4px #c792ea88);
}

/*  COMING SOON  */
.game.coming-soon {
  border-left: 4px solid #ff9800;
  background-color: #1f1a14;
  box-shadow: 0 0 18px #ff980033;
}
.game.coming-soon p strong {
  color: #ffb74d;
}
.event-highlight {
  background: #1b1b1f;
  border-left: 4px solid #bb86fc;
  padding: 20px;
  margin: 40px 0;
  border-radius: 8px;
  box-shadow: 0 0 10px #bb86fc33;
}

/*  POLL RESULTS  */
.poll-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1em;
}
.poll-result {
  background: #1a1c2c;
  border: 1px solid #3c3f5c;
  border-radius: 6px;
  padding: 10px;
}
.poll-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
  margin-bottom: 4px;
  color: #bb86fc;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 6px #bb86fc66;
}
.poll-label a {
  color: #bb86fc;
  font-weight: 600;
}
.poll-label a:hover {
  color: #fff;
  text-decoration: underline;
}
.poll-bar-container {
  background: #2a2d44;
  border-radius: 4px;
  overflow: hidden;
  height: 10px;
}
.poll-bar {
  background: linear-gradient(to right, #bb86fc, #d0a8ff);
  height: 100%;
  transition: width 0.5s ease-in-out;
  box-shadow: 0 0 10px #bb86fc88;
}
.glow-first-place {
  border: 2px solid #bb86fc;
  box-shadow: 0 0 15px #bb86fc88, 0 0 30px #bb86fc44;
  animation: glowPulse 2s infinite ease-in-out;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px #bb86fc88, 0 0 20px #bb86fc44; }
  50% { box-shadow: 0 0 20px #bb86fcaa, 0 0 35px #bb86fc55; }
}

/* MATCHES RESULTS */
.match-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  margin: 0 0 5px;
  color: #bb86fc;
  text-shadow: 0 0 6px #bb86fc66;
}

/*  DISCORD BOX  */
.discord-id-box {
  margin: 40px 20px 0;
  text-align: left;
}
.discord-id-box label {
  color: #ccc;
  margin-bottom: 8px;
  display: block;
}
.discord-id-container {
  display: flex;
  gap: 10px;
}
#discordId {
  width: 66ch;
  background: #222;
  color: #fff;
  border: 1px solid #444;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.95rem;
}

/*  FILTERS  */
.filter-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}
.filter-controls label {
  color: #ccc;
  font-size: 0.95rem;
}
.filter-controls select,
.filter-controls button {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.95rem;
  cursor: pointer;
}

/*  MAP  */
#map,
iframe {
  width: 95%;
  max-width: 800px;
  height: 400px;
  margin: 40px auto 20px;
  display: block;
  border: 1px solid #333;
  border-radius: 8px;
}

/*  EMOJIS  */
.emoji-icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: middle;
  margin-right: 4px;
  filter: drop-shadow(0 0 4px #bb86fc66);
}

/*  MOBILE  */
@media (max-width: 600px) {
  p {
    margin: 15px;
    font-size: 1.1rem;
  }
  .game, .game.coming-soon {
    margin: 15px 10px;
    padding: 15px;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  nav li {
    margin: 10px 0;
  }
  #map, iframe {
    height: 300px;
  }
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .discord-id-container {
    flex-direction: column;
  }
  #discordId {
    width: 100%;
  }
}
