/* ------------------------------
   GLOBAL RESET
------------------------------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050608;
  color: #f5f5f5;
  line-height: 1.6;
}

/* ------------------------------
   COLOUR SCHEME
------------------------------ */
:root {
  --mint: #4fd1b8;
  --mint-light: #7ff2d6;
  --blue-mint: #2b9fbf;
  --orange: #f29f4c;
  --white: #ffffff;
  --card-bg: #101217;
  --border-soft: #262a33;
}

/* ------------------------------
   NAVBAR
------------------------------ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: #080a0f;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: 700;
  color: var(--mint-light);
  letter-spacing: 0.08em;
}

.navbar nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #d0d4e0;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.navbar nav a:hover,
.navbar nav a.active {
  color: var(--mint-light);
}

/* ------------------------------
   HERO SECTION
------------------------------ */
.hero {
  display: flex;
  flex-wrap: wrap;
  padding: 1.5rem;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(rgba(5, 6, 8, 0.55), rgba(5, 6, 8, 0.7)),
    url("images/spawnbackground.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-soft);
}

.hero-image {
  max-width: 420px;
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--mint);
  box-shadow: 0 0 25px rgba(79, 209, 184, 0.35);
}

.hero-content {
  max-width: 520px;
}

.hero-content h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  color: var(--mint-light);
}

.hero-content p {
  margin-bottom: 0.8rem;
  color: #c7cbd8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

/* ------------------------------
   BUTTONS
------------------------------ */
.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.discord-btn {
  background: linear-gradient(135deg, var(--blue-mint), var(--mint));
  color: var(--white);
  box-shadow: 0 0 12px rgba(43, 159, 191, 0.5);
}

.discord-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(43, 159, 191, 0.7);
}

.ip-btn {
  background: #181c24;
  color: var(--mint-light);
  border: 1px solid var(--mint);
}

.ip-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(79, 209, 184, 0.4);
}

/* ------------------------------
   COPY STATUS
------------------------------ */
.copy-status {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--mint-light);
}

/* ------------------------------
   MAIN CONTENT
------------------------------ */
.content {
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1rem 2rem;
}

/* ------------------------------
   CARDS
------------------------------ */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-soft);
}

.card h2,
.card h1 {
  margin-bottom: 0.6rem;
  color: var(--mint-light);
  text-align: center;
}

.mods-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  list-style: none;
  margin: 1.2rem 0 1.5rem;
}

.mods-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.4rem;
  padding: 0.55rem 0.6rem 0.55rem 1rem;
  color: #e5e8ef;
  background: #151922;
  border: 1px solid #2c3440;
  border-radius: 8px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.mods-list li:hover {
  background: #19232a;
  border-color: var(--mint);
  transform: translateY(-2px);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  color: #071311;
  background: var(--mint-light);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.download-btn span {
  font-size: 1.1rem;
  line-height: 0.7;
}

.download-btn:hover,
.download-btn:focus-visible {
  color: #04100d;
  background: var(--white);
  box-shadow: 0 0 14px rgba(127, 242, 214, 0.45);
  transform: translateX(2px);
}

.download-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.donation-card {
  text-align: center;
}

/* ------------------------------
   LAUNCHER DOWNLOADS
------------------------------ */
.launcher-status {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--orange);
  margin-bottom: 0.8rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.launcher-screenshots + .download-grid {
  margin-top: 1.5rem;
}

.download-card {
  background: #151922;
  border: 1px solid #2c3440;
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.download-card h3 {
  color: var(--mint-light);
}

.os-icon-large {
  width: auto;
  height: 72px;
  filter: drop-shadow(0 0 10px rgba(79, 209, 184, 0.35));
}

.download-card .btn {
  width: 100%;
}

.download-card .secondary-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.download-card .secondary-links a {
  color: #a5a9b8;
}

.download-card .secondary-links a:hover {
  color: var(--mint-light);
}

.version-badge {
  display: inline-block;
  font-size: 0.85rem;
  color: #a5a9b8;
  margin-top: 0.4rem;
}

.launcher-more-link {
  text-align: center;
  margin-top: 0.8rem;
}

.launcher-more-link a {
  color: var(--mint-light);
}

.launcher-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  vertical-align: middle;
  margin-right: 0.3rem;
}

.launcher-btn-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}

.launcher-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.launcher-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}

.launcher-screenshots.home-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}

.launcher-screenshot-featured {
  flex: 1 1 380px;
  max-width: 400px;
  width: 100%;
}

.launcher-screenshot-thumbs {
  flex: 1 1 320px;
  max-width: 400px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.lightbox-trigger {
  cursor: zoom-in;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lightbox-trigger:hover,
.lightbox-trigger:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(79, 209, 184, 0.4);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 8, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.lightbox-overlay[hidden] {
  display: none;
}

.launcher-features-list {
  list-style: none;
  margin: 0.8rem 0 0;
}

.launcher-features-list li {
  margin-bottom: 0.5rem;
  padding-left: 0.6rem;
  border-left: 3px solid rgba(79, 209, 184, 0.4);
  color: #d0d4e0;
}

.launcher-requirements {
  margin-top: 1rem;
  color: #c7cbd8;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* ------------------------------
   COMMUNITY NOTE
------------------------------ */
.community-note {
  color: var(--mint-light);
  font-style: italic;
}

.community-note.mods-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 1.2rem;
}

.mods-discord-cta {
  text-align: center;
  margin-top: 0.5rem;
}

.donation-btn {
  background: #ffdd00;
  color: #1f1f1f;
  box-shadow: 0 0 16px rgba(255, 221, 0, 0.2);
}

.donation-btn:hover {
  background: #ffe94d;
  box-shadow: 0 0 22px rgba(255, 221, 0, 0.4);
  transform: translateY(-2px);
}

/* ------------------------------
   FEATURE TABLE (buttons + info)
------------------------------ */
.features-table {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-row .btn {
  width: 180px;
  background: #181c24;
  color: var(--mint-light);
  border: 1px solid var(--mint);
  text-align: left;
}

.feature-row .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(79, 209, 184, 0.4);
}

.feature-row p {
  flex: 1;
  margin: 0;
  color: #d0d4e0;
}

/* ------------------------------
   RULES LIST
------------------------------ */
.rules-list {
  list-style: none;
  margin-left: 0;
  column-count: 2;
  column-gap: 1.5rem;
}

.rules-list li {
  margin-bottom: 0.4rem;
  padding-left: 0.6rem;
  border-left: 3px solid rgba(242, 159, 76, 0.4);
  break-inside: avoid;
}

/* ------------------------------
   FOOTER
------------------------------ */
.footer {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--border-soft);
  background: #080a0f;
  font-size: 0.9rem;
  color: #a5a9b8;
}

/* ------------------------------
   GALLERY GRID
------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 768px) {
  .hero {
    padding: 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar nav {
    margin-top: 0.4rem;
  }

  .feature-row {
    flex-direction: column;
  }

  .feature-row .btn {
    width: 100%;
  }

  .mods-list {
    grid-template-columns: 1fr;
  }

  .rules-list {
    column-count: 1;
  }
}
html {
  scroll-padding-top: 80px;
}
.discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* space between icon and text */
  padding: 0.6rem 1.2rem;
}

.discord-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: brightness(0) invert(1); /* makes it white */
  vertical-align: middle;
}
.discord-btn:hover .discord-icon {
  filter: drop-shadow(0 0 4px var(--mint-light));
}
