/* ================================================
   SKYWARD OFFICIAL — style.css
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;600;700&family=Space+Mono&display=swap');

/* ── VARIABLES ─────────────────────────────────── */
:root {
  --red:    #FF2D20;
  --orange: #FF6B00;
  --yellow: #FFD600;
  --bg:     #0a0a0f;
  --bg2:    #12121a;
  --bg3:    #1a1a28;
  --text:   #f0eefc;
  --muted:  #7a7a9a;
  --border: rgba(255,255,255,0.07);
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
}

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── NAV ────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}

nav.scrolled {
  padding: 0.8rem 2rem;
  background: rgba(10,10,15,0.97);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  background: linear-gradient(90deg, #ff2d20, #ff6b00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ── HERO ───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,45,32,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(255,107,0,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 80% 70%, rgba(100,80,255,0.12) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,45,32,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,45,32,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #fff 0%, #ff8a60 40%, #ff2d20 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.4s;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.6s;
}

.hero-username {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--orange);
  margin-top: 0.5rem;
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.7s;
}

.hero-cta {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.9s;
}

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.18s;
}

.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  box-shadow: 0 4px 30px rgba(255,45,32,0.35);
}
.btn-primary:hover { box-shadow: 0 8px 40px rgba(255,45,32,0.5); }

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

.btn-discord {
  background: #5865F2;
  color: #fff;
  box-shadow: 0 4px 20px rgba(88,101,242,0.4);
}

.btn-saweria {
  background: linear-gradient(135deg, #f7b731, #e67e22);
  color: #1a0a00;
  font-weight: 700;
}

/* ── SCROLL HINT ────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 1.2s;
}

.scroll-hint span {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 1.5s ease-in-out infinite;
}

/* ── MARQUEE ────────────────────────────────────── */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0.8rem 0;
  background: var(--bg2);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.marquee-track .dot { color: var(--red); }

/* ── SECTIONS ───────────────────────────────────── */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  margin-bottom: 3.5rem;
}

/* ── MAP CARDS ──────────────────────────────────── */
.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2px;
}

.map-card {
  background: var(--bg2);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.map-card:hover { transform: scale(1.01); }

.map-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow));
}

.map-card-number {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  user-select: none;
}

.map-thumb-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--bg3) 0%, #1e1e30 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

.map-thumb-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,45,32,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,45,32,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}

.map-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: var(--bg3);
}

.map-icon {
  position: absolute;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.map-body { padding: 1.8rem; }

.map-genre {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  background: rgba(255,45,32,0.12);
  border: 1px solid rgba(255,45,32,0.3);
  color: var(--red);
  margin-bottom: 1rem;
}

.map-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.map-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 1.8rem;
  white-space: pre-line;
}

.map-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  padding: 1rem;
  background: var(--bg3);
  border-left: 3px solid var(--red);
}

.stat-item { text-align: center; }

.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--orange);
  display: block;
}

.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

.map-play-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: box-shadow 0.2s;
}

.map-play-btn:hover { box-shadow: 0 4px 30px rgba(255,45,32,0.5); }

/* ── COMMUNITY SECTION ──────────────────────────── */
.community-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.community-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.community-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.community-link-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.community-link-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent, var(--red));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.2s;
}

.community-link-card:hover::before { transform: scaleY(1); }
.community-link-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateX(4px);
}

.link-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.link-icon-discord { background: #5865F2; }
.link-icon-saweria { background: linear-gradient(135deg, #f7b731, #e67e22); }

.community-link-card.discord-card { --accent: #5865F2; }
.community-link-card.saweria-card { --accent: #f7b731; }

.link-info-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.link-info-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.link-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform 0.2s, color 0.2s;
}

.community-link-card:hover .link-arrow {
  transform: translateX(4px);
  color: var(--text);
}

/* ── ROBLOX BADGE ───────────────────────────────── */
.roblox-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,45,32,0.1);
  border: 1px solid rgba(255,45,32,0.25);
  padding: 0.3rem 0.8rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 1.5rem;
}

.roblox-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

/* ── DIVIDER ────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 2rem;
}

/* ── FOOTER ─────────────────────────────────────── */
footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

footer p {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--red);
  display: block;
  margin-bottom: 0.5rem;
}

/* ── ANIMATIONS ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
  .community-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-links { gap: 1.2rem; }

  .hero-cta { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  nav { padding: 1rem; }
  .nav-links { display: none; }
}

.btn-nav-admin {
  background: var(--accent);
  color: white !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: opacity 0.2s;
}
.btn-nav-admin:hover {
  opacity: 0.85;
}