:root {
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --mc-green: #55ff55;
  --mc-blue: #5555ff;
  --discord-color: #5865F2;
  --text-color: #e0e0e0;
  --border-color: #333;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================================================
   HEADER
========================================================= */
header {
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(
    0deg,
    rgba(18, 18, 18, 1) 0%,
    rgba(30, 30, 30, 1) 100%
  );
}

.main-logo {
  width: 250px;
  max-width: 90%;
  height: auto;
  filter:
    drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

h1 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.2rem;
  color: var(--mc-green);
  margin-top: 20px;
  line-height: 1.6;
}

/* =========================================================
   MAIN CONTAINER
========================================================= */

.container {
  width: 90%;
  max-width: 950px;
  margin-bottom: 50px;
}

/* =========================================================
   COMMUNITY CARDS
========================================================= */
.community-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 0;
}

.discord-card,
.forum-card {
  width: 50%;
}

/* =========================================================
   DISCORD
========================================================= */

.discord-card {
  background-color: #2c2f33;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  border-left: 5px solid var(--discord-color);
}

.discord-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.discord-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.btn-join {
  background-color: var(--discord-color);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: 0.3s;
}

.btn-join:hover {
  background-color: #4752c4;
  transform: scale(1.05);
}

/* =========================================================
   LUANTI FORUM
========================================================= */

.forum-card {
  background-color: #1e1e1e;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  border-left: 5px solid var(--mc-green);
}

.forum-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.luanti-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.btn-forum {
  background-color: var(--mc-green);
  color: #121212;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: 0.3s;
}

.btn-forum:hover {
  background-color: #33cc33;
  transform: scale(1.05);
}


/* =========================================================
   SERVER STATUS
========================================================= */

.server-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.server-card h2 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  color: var(--mc-green);
  text-align: center;
  margin-top: 0;
  margin-bottom: 30px;
  line-height: 1.6;
}

.status-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  font-weight: bold;
  font-size: 1.1rem;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #777;
}

.status-dot.online {
  background-color: var(--mc-green);
  box-shadow: 0 0 10px var(--mc-green);
}

.status-dot.offline {
  background-color: #ff5555;
  box-shadow: 0 0 10px #ff5555;
}

/* =========================================================
   SERVER STATS
========================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #333;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--mc-green);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* =========================================================
   ONLINE PLAYERS
========================================================= */
.players-section {
  margin-top: 25px;
}

.players-section h3 {
  color: #ffaa00;
  margin-bottom: 15px;
}

.player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.player-name {
  background-color: rgba(85, 255, 85, 0.1);
  border: 1px solid rgba(85, 255, 85, 0.4);
  color: var(--mc-green);
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.no-players {
  opacity: 0.6;
  font-style: italic;
}

/* =========================================================
   PLACES
========================================================= */
.places-section {
  margin-top: 30px;
}

.places-section h3 {
  color: #ffaa00;
  margin-bottom: 15px;
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.place-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #333;
  border-radius: 10px;
  padding: 15px;
}

.place-name {
  color: var(--mc-green);
  font-weight: bold;
  margin-bottom: 6px;
}

.place-command {
  color: #ffaa00;
  font-family: monospace;
  font-size: 0.9rem;
}

.place-coordinates {
  margin-top: 6px;
  font-family: monospace;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* =========================================================
   UPDATED TIME
========================================================= */
.updated-time {
  text-align: center;
  margin-top: 25px;
  font-size: 0.75rem;
  opacity: 0.5;
}

/* =========================================================
   RULES
========================================================= */
.rules-container {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
}

.rules-container h2 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  color: #ffaa00;
  text-align: center;
  margin-bottom: 25px;
  border-bottom: 2px solid #333;
  padding-bottom: 15px;
  line-height: 1.6;
}

.rules-list {
  height: 400px;
  overflow-y: scroll;
  padding-right: 15px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.rules-list::-webkit-scrollbar {
  width: 8px;
}

.rules-list::-webkit-scrollbar-track {
  background: #121212;
}

.rules-list::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 10px;
}

.rule-item {
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 5px;
}

.rule-number {
  color: var(--mc-green);
  font-weight: bold;
  margin-right: 8px;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  margin: 40px 0;
  font-size: 0.7rem;
  opacity: 0.5;
  text-align: center;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
  .community-cards {
    flex-direction: column;
    gap: 0;
  }

  .discord-card,
  .forum-card {
    width: 100%;
    flex-direction: column;
    text-align: center;
  }

  .discord-info,
  .forum-info {
    flex-direction: column;
  }

  h1 {
    font-size: 0.9rem;
  }

  .server-card,
  .rules-container {
    padding: 20px;
  }
}