/* ===== Globe Block – shared styles ===== */

:root {
  --color-bg: #000000;
  --color-surface: #181818;
  --color-surface-alt: #1e1e1e;
  --color-border: #2a2a2a;
  --color-text: #ffffff;
  --color-text-muted: #a8a8a8;
  --color-green: #2ad43d;
  --color-green-dark: #23b233;
  --color-red: #d42a2a;
  --color-blue: #5fa1df;
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.accent {
  color: var(--color-green);
  text-decoration: underline;
  text-decoration-color: var(--color-green);
  text-underline-offset: 6px;
}

.section-heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3.5rem;
  position: relative;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-green);
  color: #06210a;
}

.btn-primary:hover {
  background: var(--color-green-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}

.btn-discord {
  background: #5865f2;
  color: #ffffff;
}

.btn-discord:hover {
  background: #4752c4;
}

/* ===== Header / Nav ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.35));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-text);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-green);
}

.nav-links a.active {
  color: var(--color-green);
  border-bottom-color: var(--color-green);
}

.nav-links a.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #949cf7;
}

.nav-links a.discord-link:hover {
  color: #5865f2;
}

.nav-links a.discord-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

/* ===== Hero (used on all pages) ===== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55)), url('../assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--color-border);
}

.hero-home {
  min-height: 560px;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  padding-bottom: 90px;
}

.hero-page {
  min-height: 340px;
}

.hero-inner {
  max-width: 620px;
}

.hero-page .hero-inner {
  max-width: 100%;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-page h1 {
  font-size: 3rem;
}

.hero p {
  color: #e7e7e7;
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: 28px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* ===== About section ===== */

.about {
  padding: 110px 0;
}

.about .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-heading {
  margin-bottom: 24px;
}

.about-heading .rule {
  display: block;
  width: 46px;
  height: 3px;
  background: var(--color-green);
  margin-bottom: 14px;
}

.about h2 {
  font-size: 1.9rem;
}

.about p {
  color: var(--color-text-muted);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.about-art {
  display: flex;
  justify-content: center;
}

.about-art img {
  width: 100%;
  max-width: 300px;
}

/* ===== Features ===== */

.features {
  padding: 40px 0 110px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 90px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-media {
  order: 2;
}

.feature-row.reverse .feature-copy {
  order: 1;
}

.feature-media img {
  width: 100%;
  border-radius: 4px;
}

.feature-copy h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.feature-copy p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 420px;
}

/* ===== FAQ ===== */

.faq {
  padding: 0 0 130px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--color-surface);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
}

.faq-question .chev {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-right: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-question .chev {
  transform: rotate(225deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 24px 22px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ===== Rules page ===== */

.rules-list {
  padding: 100px 0 130px;
  display: flex;
  flex-direction: column;
  gap: 44px;
  max-width: 950px;
  margin: 0 auto;
}

.rule-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.rule-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.rule-item .rule-number {
  color: var(--color-green);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-right: 10px;
}

/* ===== Map page ===== */

.map-intro {
  padding: 60px 0 6px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.map-intro p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.map-intro a {
  color: var(--color-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-embed {
  padding: 20px 0 70px;
}

.map-frame-wrap {
  width: 100%;
  height: 82vh;
  min-height: 560px;
  max-height: 900px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.map-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  margin-top: 14px;
}

.map-open {
  text-align: center;
  margin-bottom: 18px;
}

/* ===== Staff page ===== */

.staff-grid {
  padding: 100px 0 130px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center;
  gap: 26px;
}

.staff-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 26px 20px 28px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.staff-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-green);
}

.staff-card img {
  width: 110px;
  height: auto;
  margin: 0 auto 18px;
}

.staff-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.badge-owner { background: var(--color-green); color: #06210a; }
.badge-coowner { background: var(--color-green); color: #06210a; }
.badge-mod { background: var(--color-red); color: #ffffff; }
.badge-helper { background: var(--color-blue); color: #06192b; }

.staff-card p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 34px 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

/* ===== Toast (connect button) ===== */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-surface);
  border: 1px solid var(--color-green);
  color: var(--color-text);
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .about .container {
    grid-template-columns: 1fr;
  }

  .about-art {
    order: -1;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }

  .feature-row .feature-media,
  .feature-row.reverse .feature-media {
    order: -1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.96);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-home {
    padding-bottom: 50px;
    min-height: 480px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }
}
