/* GLOBAL STYLES */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

:root {
  --accent: #ff8800;
  --accent-hover: #ff8800;
  --bg-dark: #101218;
  --bg-light: #1b1e26;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-dark);
  padding: 15px 5%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.navbar h1 {
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 2px;
}

.navbar nav a {
  color: #ccc;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar nav a:hover,
.navbar nav a.active {
  color: var(--accent);
}

/* HERO SECTION */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90vh;
  background: url('../images/lunabanner.png') center/cover no-repeat;
}

.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero-text {
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  animation: fadeInUp 1.5s ease;
}

.hero-text h2 {
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 0 20px var(--accent);
  margin-bottom: 15px;
}

.hero-text p {
  color: #ccc;
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.btn {
  background: var(--accent);
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* HOME CONTENT */
.content {
  background-color: var(--bg-light);
  padding: 80px 10%;
  text-align: center;
}

.content h3 {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 25px;
}

.content p {
  color: #ccc;
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.feature-card {
  background: var(--bg-dark);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid #242424;
  transition: 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
}

.feature-card h4 {
  color: var(--accent);
  margin-bottom: 10px;
}

.feature-card p {
  color: #bbb;
}

/* SHOWCASE */
#showcase {
  padding: 80px 10%;
  text-align: center;
}

#showcase h2 {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.gallery {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  transition: 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* RULES */
/* ---------- RULES SECTION (Modern Style) ---------- */

#rules {
  max-width: 1000px;
  margin: 0 auto;
  color: #fff;
  text-align: left;
  padding: 40px 20px;
}

#rules h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
  color: #ffa500;
  text-transform: uppercase;
}

#rules .intro {
  text-align: center;
  color: #7c7c7c;
  margin-bottom: 25px;
  font-size: 1rem;
}

#rules h3 {
  background-color: #707070;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 1.2rem;
  margin-top: 35px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

#rules ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 15px;
}

#rules ul li {
  background-color: #474747;
  margin-bottom: 6px;
  padding: 10px 15px;
  border-radius: 8px;
  color: #ccc;
  line-height: 1.5;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#rules ul li:hover {
  background-color: #976c33;
  transform: translateX(3px);
}

#rules strong {
  color: #fff;
}

/* Severity Colors */
#rules li strong {
  border-radius: 10px;
  padding: 3px 8px;
  margin-right: 6px;
  font-weight: 600;
  color: #fff;
}

#rules li strong:contains("Light") {
  background-color: #3a6ff7;
}

#rules li strong:contains("Moderate") {
  background-color: #d38c2f;
}

#rules li strong:contains("Severe") {
  background-color: #d33b3b;
}

#rules li strong:contains("Extreme") {
  background-color: #7c2bbd;
}

/* Last Updated */
#rules .last-updated {
  text-align: center;
  margin-top: 40px;
  color: #aaa;
  font-size: 0.9rem;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.link-card {
  padding: 20px;
  background: var(--bg-dark);
  border-radius: 15px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: 0.3s;
}

.link-card:hover {
  background: var(--accent);
}

/* SUPPORT */
#support {
  background-color: var(--bg-light);
  padding: 80px 10%;
  text-align: center;
}

#support a {
  color: var(--accent);
  text-decoration: none;
}

#support a:hover {
  text-decoration: underline;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 25px;
  background-color: var(--bg-dark);
  color: #777;
  border-top: 1px solid #292929;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Heading underline for section titles (thicker & brighter) */
.section h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 20px;
  font-weight: 700;
}
.section h2::after {
  content: "";
  display: block;
  height: 6px;                      /* thicker */
  width: 110px;                     /* slightly wider */
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 6px;
  margin-top: 10px;
  opacity: 1;                        /* fully visible */
  box-shadow: 0 4px 18px rgba(96,165,250,0.12);
}

/* Visible separators between rule cards */
.rules-list .rule {
  padding: 18px;
  border-top: 3px solid rgba(255,255,255,0.06); /* thicker, higher contrast */
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  background-clip: padding-box;
}
.rules-list .rule:first-child {
  border-top: 0;
}

/* Divider under the title inside each rule (stronger) */
.rule h3 {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 2px solid rgba(255,255,255,0.06); /* thicker and visible */
}

/* Optional visible small divider element usable inside content */
.sub-divider {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, rgba(96,165,250,0.9), rgba(110,231,183,0.6));
  border-radius: 3px;
  margin: 12px 0;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.300);
}

/* Stronger divider between major sections */
.section + .section {
  border-top: 3px solid rgba(255, 255, 255, 0.300);
  padding-top: 34px;
}

/* make text contrast slightly stronger near dividers if needed */
.rule p, .rule .meta { color: var(--muted); opacity: 0.95; }

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 40px; /* increased to give more breathing room under buttons */
}

/* More bottom padding for hero section so link cards sit further down */
.hero-section {
  padding: 64px 0 70px; /* was 64px 0 48px previously; larger bottom padding */
}

/* Extra safety: if links use these classes, ensure they have extra spacing */
#LINKS .links-grid,
#LINKS .link-cards,
#LINKS .community-links,
#LINKS .links-row {
  margin-top: 18px;
  margin-bottom: 36px;
}

/* If the section divider still feels close, increase the inter-section gap */
.section + .section {
  padding-top: 72px; /* increased slightly for extra breathing room */
}

/* Center community / links area */
section#LINKS,
#LINKS {
  text-align: center; /* center headings and inline content */
}

#LINKS .container {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px;
}

/* flexible centered grid for link buttons/cards */
#LINKS .links-grid,
#LINKS .links-row,
#LINKS .community-links,
#LINKS .link-cards {
  display: flex;
  justify-content: center; /* center items horizontally */
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ensure individual link cards are centered content-wise */
#LINKS a,
#LINKS .link-card,
#LINKS .community-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 220px; /* keep button/card widths consistent */
  max-width: 320px;
  padding: 14px 18px;
  margin: 6px 0;
}

/* mobile: make them full width with nice spacing */
@media (max-width: 560px) {
  #LINKS .links-grid,
  #LINKS .links-row,
  #LINKS .community-links,
  #LINKS .link-cards { gap: 12px; }
  #LINKS a,
  #LINKS .link-card,
  #LINKS .community-link { width: 100%; min-width: auto; max-width: 100%; }
}

/* small extra gap under hero CTAs to avoid crowding (keeps previous spacing) */
.hero-ctas { margin-bottom: 40px; }

/* Category-specific hover styles (replaces generic .rule:hover) */
.rule { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height,72px) + 8px);
}
section[id] {
  scroll-margin-top: calc(var(--nav-height,72px) + 8px);
}

/* Severity label colors for rules page */
.severity-light { color: #37a9c5; font-weight:700; }     /* light = blue */
.severity-moderate { color: #27d862; font-weight:700; }  /* moderate = green */
.severity-extreme { color: #c93030; font-weight:700; }   /* extreme = light red */
.severity-severe { color: #8b1515; font-weight:700; }    /* severe = dark red */

/* small spacing so label and text look tidy */
.rules-list .severity-light,
.rules-list .severity-moderate,
.rules-list .severity-extreme,
.rules-list .severity-severe { margin-right: 8px; display:inline-block; }

/* Hover per-severity (make hover color match the severity) */
.rule { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }

/* Light (blue) */
.rule.light:hover {
  transform: translateY(-6px);
  border-color: rgba(96,165,250,0.22);
  background: linear-gradient(180deg, rgba(96,165,250,0.05), rgba(96,165,250,0.01));
  box-shadow: 0 18px 40px rgba(96,165,250,0.10);
}

/* Moderate (green) */
.rule.moderate:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 92, 0.22);
  background: linear-gradient(180deg, rgba(52,211,153,0.05), rgba(52,211,153,0.01));
  box-shadow: 0 18px 40px rgba(52,211,153,0.09);
}

/* Severe (dark red) */
.rule.severe:hover {
  transform: translateY(-6px);
  border-color: rgba(185,28,28,0.30);
  background: linear-gradient(180deg, rgba(185,28,28,0.05), rgba(185,28,28,0.01));
  box-shadow: 0 20px 48px rgba(185,28,28,0.14);
}

/* Extreme (light red) */
.rule.extreme:hover {
  transform: translateY(-6px);
  border-color: rgba(156, 55, 55, 0.24);
  background: linear-gradient(180deg, rgba(248,113,113,0.05), rgba(248,113,113,0.01));
  box-shadow: 0 18px 40px rgba(248,113,113,0.10);
}

/* Optional: subtle left accent matching color */
.rule.light::before,
.rule.moderate::before,
.rule.severe::before,
.rule.extreme::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 6px;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  opacity: 0;
  transition: opacity .18s ease;
}
.rule { position: relative; padding-left: 18px; } /* make room for accent */
.rule.light::before { background: #60A5FA; }
.rule.moderate::before { background: #34D399; }
.rule.severe::before { background: #B91C1C; }
.rule.extreme::before { background: #F87171; }
.rule.light:hover::before,
.rule.moderate:hover::before,
.rule.severe:hover::before,
.rule.extreme:hover::before { opacity: 1; }

/* ...existing code... */

.rules-list .rule {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 10px 0 !important; /* vertical spacing */
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.04); /* visible divider between items */
  position: relative;
}

/* Keep severity hover color but remove lift/large shadow */
.rule.light:hover,
.rule.moderate:hover,
.rule.severe:hover,
.rule.extreme:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255,255,255,0.01); /* optional subtle highlight */
}

/* Optional: hide the left accent if you prefer no accent bar */
.rule::before { display: none; }



/* Community link brand colours */
.btn.discord {
  background: #5865F2; /* Discord blurple */
  color: #fff;
  border: 1px solid rgba(88,101,242,0.12);
  box-shadow: 0 8px 24px rgba(88,101,242,0.12);
}
.btn.discord:hover { filter: brightness(0.95); transform: translateY(-2px); }

.btn.tebex {
  background: #8a8a8a; /* light/soft blue */
  color: #2ee2e2;
  border: 1px solid rgba(96,165,250,0.14);
  box-shadow: 0 8px 24px rgba(96,165,250,0.08);
}
.btn.tebex:hover { filter: brightness(0.96); transform: translateY(-2px); }

.btn.tiktok {
  background: #b361ff; /* purple (TikTok-style accent) */
  color: #fff;
  border: 1px solid rgba(123,97,255,0.12);
  box-shadow: 0 8px 24px rgba(123,97,255,0.08);
}
.btn.tiktok:hover { filter: brightness(0.95); transform: translateY(-2px); }

.btn.twitter {
  background: #1DA1F2; /* Twitter blue */
  color: #031026;
  border: 1px solid rgba(29,161,242,0.12);
  box-shadow: 0 8px 24px rgba(29,161,242,0.08);
}
.btn.twitter:hover { filter: brightness(0.96); transform: translateY(-2px); }

/* Ensure buttons look consistent (optional adjustments) */
.btn.discord, .btn.tebex, .btn.tiktok, .btn.twitter {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  transition:all .16s ease;
}


/* Make the Twitch Terms link show up blue in the rules */
#rules a[href="https://www.twitch.tv/p/en/legal/terms-of-service/"] {
  color: #2563EB; /* blue */
  font-weight: 700;
  text-decoration: underline;
}

#rules a[href="https://www.twitch.tv/p/en/legal/terms-of-service/"]:hover {
  color: #000000; /* slightly darker on hover */
}

/* === APPLICATIONS PAGE === */
.applications-section {
  text-align: center;
  padding: 120px 20px;
  background: linear-gradient(to bottom right, #0a0a0a, #111);
  color: #fff;
}

.applications-section h2 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.applications-section p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 40px;
}

.application-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.application-options button {
  background: #121212;
  border: 2px solid #ffbb00;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.application-options button:hover {
  background: #ffffff;
  color: #0a0a0a;
  transform: translateY(-2px);
  box-shadow: 0 0 15px #745d3280;
}

/* === APPLICATION FORM PAGE === */
.application-form-section {
  max-width: 650px;
  margin: 100px auto;
  background: #0e0e0e;
  border: 1px solid #99999933;
  padding: 40px;
  border-radius: 15px;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 208, 0, 0.1);
}

.application-form-section h2 {
  text-align: center;
  color: #707070;
  font-size: 2rem;
  margin-bottom: 30px;
}

.application-form label {
  display: block;
  margin-top: 20px;
  font-weight: 500;
  color: #ccc;
}

.application-form input,
.application-form select,
.application-form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: #1a1a1a;
  border: 1px solid #ffc40033;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  border-color: #616161;
  outline: none;
}

.application-form textarea {
  min-height: 120px;
  resize: vertical;
}

.application-form button {
  margin-top: 30px;
  width: 100%;
  background: #09d34c;
  color: #000;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.application-form button:hover {
  background: #049735;
  transform: translateY(-2px);
}

/* === SUCCESS PAGE === */
.success-section {
  text-align: center;
  padding: 150px 20px;
  background: radial-gradient(circle at top, #0a0a0a, #111);
  color: #fff;
}

.success-section h2 {
  font-size: 2.5rem;
  color: #00ffaa;
  margin-bottom: 15px;
}

.success-section p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 30px;
}

.success-section .btn {
  background: #ff8800;
  color: #000;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.success-section .btn:hover {
  background: #00cc88;
  box-shadow: 0 0 20px #00ffaa66;
}

/* === BACK BUTTON === */
.back-btn {
  background: transparent;
  color: #ffa600;
  border: 2px solid #ffbb00;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  cursor: pointer;
  position: absolute;
  top: 120px;
  left: 60px;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #ffa600;
  color: #0a0a0a;
  box-shadow: 0 0 15px #885b0880;
  transform: translateY(-2px);
}

/* For mobile view */
@media (max-width: 768px) {
  .back-btn {
    top: 100px;
    left: 20px;
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

/* === PAGE SLIDE ANIMATION === */
.page-transition {
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.6s ease-in-out;
}

.page-transition.show {
  opacity: 1;
  transform: translateX(0);
}

.page-exit {
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.6s ease-in-out;
}

/* === Login Page Styling === */
body {
  background-color: #111;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  margin: 0;
  padding: 0;
}

.navbar {
  background-color: #222;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar h1 {
  font-size: 24px;
  margin: 0;
}

.navbar img.logo {
  height: 40px;
  margin-right: 10px;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
}

nav a:hover {
  color: orange;
}

/* === Login Page Styling (based on application form) === */
.login-form-section {
  max-width: 450px;
  margin: 100px auto;
  background: #0e0e0e;
  border: 1px solid #99999933;
  padding: 40px;
  border-radius: 15px;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 208, 0, 0.1);
}

.login-form-section h2 {
  text-align: center;
  color: #707070;
  font-size: 2rem;
  margin-bottom: 30px;
}

.login-form label {
  display: block;
  margin-top: 20px;
  font-weight: 500;
  color: #ccc;
}

.login-form input {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: #1a1a1a;
  border: 1px solid #ffc40033;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.login-form input:focus {
  border-color: #616161;
  outline: none;
}

.login-form button {
  margin-top: 30px;
  width: 100%;
  background: #09d34c;
  color: #000;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.login-form button:hover {
  background: #049735;
  transform: translateY(-2px);
}

#loginMessage {
  text-align: center;
  margin-top: 15px;
  color: red;
}





