/* ═══════════════════════════════════════════════════════════
   GLOBAL STYLES - LUNARIS NETWORK
   ══════════════════════════════════════════════════════════ */

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

:root {
  --primary: #7b5cff;
  --secondary: #3fb7ff;
  --accent: #5f8cff;
  --dark-bg: #0a0b1a;
  --card-bg: rgba(18, 20, 40, 0.85);
  --text-primary: #ffffff;
  --text-secondary: #aab0ff;
  --border-color: rgba(123, 92, 255, 0.3);
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #0a0b1a 0%, #1a1b3d 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 15px 8%;
  background: rgba(10, 11, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(123, 92, 255, 0.2);
  z-index: 200;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-right {
  justify-content: flex-end;
}

.navbar a {
  color: #cfd3ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.navbar a:hover {
  color: #7b5cff;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7b5cff, #5f8cff);
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}

.logo-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-center img {
  height: 40px;
  transition: transform 0.3s ease;
}

.logo-center:hover img {
  transform: scale(1.1);
}

/* Auth nav: loading + Account dropdown (when logged in) */
#auth-nav {
  display: inline-flex;
  align-items: center;
}

.nav-right .auth-mc-head {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  vertical-align: middle;
  margin-right: 6px;
}

.nav-right .auth-mc-head-placeholder {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 6px;
  vertical-align: middle;
}

.nav-right .auth-nav-loading {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.nav-right .auth-nav-sep {
  color: var(--text-secondary);
  margin: 0 6px;
  font-weight: 400;
}

.nav-right .auth-account-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-right .auth-account-trigger {
  display: inline-flex;
  align-items: center;
  color: #cfd3ff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-right: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-right .auth-account-trigger:hover {
  color: #7b5cff;
}

.nav-right .auth-account-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 180px;
  padding: 6px 0;
  background: rgba(18, 20, 40, 0.98);
  border: 1px solid rgba(123, 92, 255, 0.35);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 300;
}

.nav-right .auth-account-wrap:hover .auth-account-dropdown,
.nav-right .auth-account-wrap:focus-within .auth-account-dropdown {
  opacity: 1;
  visibility: visible;
}

.nav-right .auth-account-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  color: #cfd3ff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-right .auth-account-item:hover {
  background: rgba(123, 92, 255, 0.2);
  color: #7b5cff;
}

.nav-right .auth-account-logout {
  border-top: 1px solid rgba(123, 92, 255, 0.2);
  margin-top: 4px;
  padding-top: 10px;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT US
   ══════════════════════════════════════════════════════════ */

.about-us {
  padding: 80px 8% 100px;
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.about-us h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #7b5cff, #5f8cff, #3fb7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-us h2:first-child {
  margin-top: 0;
}

.about-us p,
.about-us li {
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.about-us p:last-of-type {
  margin-bottom: 0;
}

.about-us ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.about-us ul li {
  margin-bottom: 0.5rem;
}

.about-us hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2.5rem 0 1.5rem;
}

.about-us em {
  color: #aab0ff;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════ */

.hero {
  padding: 150px 8% 100px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero-content .subtitle {
  font-size: 1.3rem;
  color: #aab0ff;
  margin-bottom: 30px;
}

.hero-ip {
  display: inline-block;
  background: rgba(123, 92, 255, 0.12);
  border: 1px solid rgba(123, 92, 255, 0.3);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1.1rem;
  color: #cfd3ff;
  margin-top: 10px;
}

.hero-ip strong {
  color: #7b5cff;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   GRADIENT TEXT
   ══════════════════════════════════════════════════════════ */

.gradient-text {
  background: linear-gradient(90deg, #7b5cff, #5f8cff, #3fb7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */

button,
.button {
  padding: 14px 35px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(90deg, #7b5cff, #5f8cff, #3fb7ff);
  color: white;
  box-shadow: 0 0 25px rgba(123, 92, 255, 0.5);
}

a.button {
  text-decoration: none;
  display: inline-block;
  color: inherit;
}

button:hover,
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(123, 92, 255, 0.8);
}

.secondary {
  background: transparent;
  border: 1px solid rgba(123, 92, 255, 0.6);
  color: #cfd3ff;
  box-shadow: none;
}

.secondary:hover {
  background: rgba(123, 92, 255, 0.15);
  color: white;
}

/* ═══════════════════════════════════════════════════════════
   COOKIE BANNER
   ══════════════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(18, 20, 40, 0.98);
  border-top: 1px solid rgba(123, 92, 255, 0.3);
  padding: 16px 8%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.cookie-banner p {
  margin: 0;
  color: #cfd3ff;
  font-size: 0.9rem;
  max-width: 560px;
}

.cookie-banner a {
  color: #7b5cff;
  text-decoration: underline;
}

.cookie-banner .cookie-banner-accept {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #7b5cff, #5f8cff);
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.cookie-banner .cookie-banner-accept:hover {
  opacity: 0.95;
}

/* Discord widget — set data-guild-id on .discord-widget-wrap to show embed */
.discord-widget-wrap {
  margin: 16px 0;
}

.discord-widget-iframe {
  border-radius: 12px;
  display: block;
  max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */

footer {
  text-align: center;
  padding: 40px 8%;
  background: rgba(10, 11, 26, 0.8);
  border-top: 1px solid rgba(123, 92, 255, 0.2);
  color: #aab0ff;
  font-size: 0.9rem;
  margin-top: 80px;
}

footer a {
  color: #b8bcff;
  text-decoration: none;
}

footer a:hover {
  color: #7b5cff;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .navbar {
    padding: 15px 6%;
  }

  .nav-left,
  .nav-right {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 15px 5%;
  }

  .nav-left,
  .nav-right {
    gap: 18px;
  }

  .navbar a {
    font-size: 0.85rem;
  }

  .logo-center img {
    height: 36px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 15px 4%;
  }

  .nav-left,
  .nav-right {
    gap: 12px;
  }

  .navbar a {
    font-size: 0.75rem;
  }

  .logo-center img {
    height: 30px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .subtitle {
    font-size: 1rem;
  }
}
