/* ═══════════════════════════════════════════════════
   VERONICA SMP — Premium Minecraft Server
   Design System: Black & White, Dark/Light Toggle
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  /* Dark Mode (Default) */
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-card: #0f0f0f;
  --bg-card-hover: #141414;
  --bg-elevated: #1a1a1a;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-tertiary: #666666;
  --accent: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.15);
  --accent-subtle: rgba(255, 255, 255, 0.05);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --shadow-glow: rgba(255, 255, 255, 0.05);
  --scrollbar-thumb: #2a2a2a;
  --scrollbar-track: #050505;
  --gradient-hero: linear-gradient(180deg, rgba(5,5,5,0) 0%, #050505 100%);
  --nav-bg: rgba(5, 5, 5, 0.85);
  --overlay: rgba(0, 0, 0, 0.7);
  --code-bg: #1a1a1a;
  --badge-bg: rgba(255, 255, 255, 0.08);
  --badge-text: #d0d0d0;
  --success: #22c55e;
  --warning: #eab308;
  --error: #ef4444;
  --info: #3b82f6;
}

[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #f5f5f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f8f8;
  --bg-elevated: #eeeeee;
  --bg-glass: rgba(0, 0, 0, 0.02);
  --bg-glass-hover: rgba(0, 0, 0, 0.04);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --text-primary: #0a0a0a;
  --text-secondary: #555555;
  --text-tertiary: #888888;
  --accent: #0a0a0a;
  --accent-glow: rgba(0, 0, 0, 0.08);
  --accent-subtle: rgba(0, 0, 0, 0.03);
  --shadow-color: rgba(0, 0, 0, 0.08);
  --shadow-glow: rgba(0, 0, 0, 0.04);
  --scrollbar-thumb: #cccccc;
  --scrollbar-track: #fafafa;
  --gradient-hero: linear-gradient(180deg, rgba(250,250,250,0) 0%, #fafafa 100%);
  --nav-bg: rgba(250, 250, 250, 0.85);
  --overlay: rgba(255, 255, 255, 0.7);
  --code-bg: #f0f0f0;
  --badge-bg: rgba(0, 0, 0, 0.06);
  --badge-text: #444444;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ── Typography ── */
.font-display { font-family: 'Space Grotesk', sans-serif; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--badge-bg);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ══════════════════════════════════════
   PARTICLE CANVAS
   ══════════════════════════════════════ */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ══════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-color);
  box-shadow: 0 1px 20px var(--shadow-color);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-logo span {
  color: var(--text-primary);
}

.nav-logo .dot {
  color: var(--text-tertiary);
  font-weight: 400;
}

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

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  transition: all 0.3s ease;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  transform: rotate(15deg);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Nav Buttons */
.btn-nav {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  color: var(--text-secondary);
}

.btn-nav:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-nav-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.btn-nav-primary:hover {
  opacity: 0.9;
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.mobile-menu a:hover {
  background: var(--accent-subtle);
  color: var(--text-primary);
}

.mobile-menu .mobile-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.mobile-menu .mobile-actions .btn-nav {
  flex: 1;
  justify-content: center;
  padding: 12px;
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.15;
  filter: grayscale(100%);
  transition: opacity 0.5s ease, filter 0.5s ease;
}

[data-theme="light"] .hero-bg img {
  opacity: 0.08;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    transparent 0%,
    var(--bg-primary) 85%
  );
  z-index: 1;
}

.hero-radial {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: 1;
  animation: pulse-glow 4s ease-in-out infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease;
}

.hero-badge .status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 550px;
  margin: 0 auto 36px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.3s both;
}

.btn-hero {
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-hero-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 30px var(--accent-glow);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--accent-glow);
}

.btn-hero-primary:active {
  transform: scale(0.97);
}

.btn-hero-secondary {
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
}

.btn-hero-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-glass-hover);
  transform: translateY(-2px);
}

.hero-ip {
  margin-top: 32px;
  animation: fadeUp 0.8s ease 0.4s both;
}

.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.ip-box:hover {
  border-color: var(--border-hover);
  background: var(--bg-glass-hover);
}

.ip-box .ip-label {
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ip-box .ip-address {
  font-family: 'Space Grotesk', monospace;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.ip-box .ip-copy-icon {
  color: var(--text-tertiary);
  transition: color 0.3s ease;
}

.ip-box:hover .ip-copy-icon {
  color: var(--text-primary);
}

.ip-box .ip-copied {
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 600;
  display: none;
}

.ip-box.copied .ip-copy-icon { display: none; }
.ip-box.copied .ip-copied { display: block; }

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeUp 0.8s ease 0.5s both;
}

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

/* ══════════════════════════════════════
   FEATURES
   ══════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 50px;
}

.feature-card {
  padding: 32px 28px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--shadow-color);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ══════════════════════════════════════
   STATS
   ══════════════════════════════════════ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 50px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.stat-item {
  padding: 36px 24px;
  text-align: center;
  background: var(--bg-card);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: var(--bg-card-hover);
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ══════════════════════════════════════
   WIKI
   ══════════════════════════════════════ */
.wiki-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  margin-top: 50px;
}

.wiki-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}

.wiki-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wiki-nav-item {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}

.wiki-nav-item:hover {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.wiki-nav-item.active {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border-color);
  font-weight: 600;
}

.wiki-nav-item i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  opacity: 0.7;
}

.wiki-nav-item.active i {
  opacity: 1;
}

.wiki-content-area {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px;
  min-height: 400px;
}

.wiki-page {
  display: none;
}

.wiki-page.active {
  display: block;
  animation: fadeUp 0.4s ease;
}

.wiki-page h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.wiki-page .wiki-page-desc {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.wiki-page hr {
  border: none;
  height: 1px;
  background: var(--border-color);
  margin: 24px 0;
}

.wiki-block {
  margin-bottom: 24px;
}

.wiki-block h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wiki-block p, .wiki-block li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.wiki-block ul {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wiki-block ul li {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.wiki-block ul li i {
  margin-top: 3px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.wiki-code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--code-bg);
  font-family: 'Space Grotesk', monospace;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
}

.wiki-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.wiki-table th, .wiki-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-color);
}

.wiki-table th {
  background: var(--accent-subtle);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wiki-table td {
  color: var(--text-secondary);
}

.wiki-table tr:last-child td {
  border-bottom: none;
}

.wiki-table tr:hover td {
  background: var(--accent-subtle);
}

/* ══════════════════════════════════════
   GALLERY
   ══════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 50px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 16 / 10;
  cursor: pointer;
  transition: all 0.4s ease;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.5s ease;
  filter: grayscale(30%);
}

.gallery-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--shadow-color);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ══════════════════════════════════════
   RULES
   ══════════════════════════════════════ */
.rules-list {
  margin-top: 50px;
  max-width: 800px;
}

.rule-item {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg-card);
  transition: all 0.3s ease;
}

.rule-item:hover {
  border-color: var(--border-hover);
}

.rule-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.3s ease;
}

.rule-header:hover {
  background: var(--accent-subtle);
}

.rule-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rule-number {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--accent-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
}

.rule-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.rule-toggle {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  transition: transform 0.3s ease;
}

.rule-item.active .rule-toggle {
  transform: rotate(45deg);
}

.rule-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.rule-item.active .rule-body {
  max-height: 300px;
}

.rule-body-inner {
  padding: 0 22px 18px 68px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 300px;
}

.footer-brand .footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ══════════════════════════════════════
   TOAST / NOTIFICATIONS
   ══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 40px var(--shadow-color);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ══════════════════════════════════════
   KEYFRAMES
   ══════════════════════════════════════ */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .wiki-layout {
    grid-template-columns: 1fr;
  }

  .wiki-sidebar {
    position: static;
  }

  .wiki-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
  }

  .wiki-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 8;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  /* Sadece Download butonu ve Login butonunu gizle — theme toggle kalır */
  #btn-login,
  #btn-download {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu.show {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

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

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

  .btn-hero {
    width: 100%;
    justify-content: center;
  }

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

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery-item:first-child {
    grid-column: span 1;
    aspect-ratio: 16 / 10;
  }

  .rules-list {
    max-width: 100%;
  }

  .rule-body-inner {
    padding-left: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section {
    padding: 70px 0;
  }

  .wiki-content-area {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .ip-box {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .stat-number {
    font-size: 1.7rem;
  }
}

/* ══════════════════════════════════════
   NAV ACTIVE LINK
   ══════════════════════════════════════ */
.nav-links a.nav-active {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

/* ══════════════════════════════════════
   AUTH MODAL (Login / Register)
   ══════════════════════════════════════ */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.auth-overlay.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 2001;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 36px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.auth-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 1.15rem;
  transition: all 0.25s ease;
}

.auth-close:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.auth-header h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.auth-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  transition: all 0.3s ease;
}

.auth-input-wrap:focus-within {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.auth-input-wrap i {
  font-size: 1rem;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.auth-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.92rem;
  color: var(--text-primary);
  font-family: inherit;
}

.auth-input-wrap input::placeholder {
  color: var(--text-tertiary);
}

.auth-submit {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid var(--text-primary);
  transition: all 0.3s ease;
}

.auth-submit:hover {
  opacity: 0.9;
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: scale(0.98);
}

.auth-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.auth-error {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--error);
  display: none;
  text-align: center;
}

.auth-error.show {
  display: block;
  animation: fadeUp 0.3s ease;
}

.auth-success {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--success);
  display: none;
  text-align: center;
}

.auth-success.show {
  display: block;
  animation: fadeUp 0.3s ease;
}

.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.auth-switch button {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.85rem;
  transition: opacity 0.25s ease;
}

.auth-switch button:hover {
  opacity: 0.7;
}

/* ══════════════════════════════════════
   WIKI PAGE (Separate Page)
   ══════════════════════════════════════ */
.wiki-hero {
  padding-top: 120px;
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}

.wiki-section {
  padding-bottom: 100px;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════
   AUTH MODAL RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 480px) {
  .auth-modal {
    max-width: calc(100% - 32px);
    padding: 28px 24px;
    border-radius: 16px;
  }
}

/* ══════════════════════════════════════
   USER DROPDOWN (Logged-in state)
   ══════════════════════════════════════ */
.btn-nav-logged-in {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.btn-nav-logged-in:hover {
  background: var(--accent-subtle);
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 16px 40px var(--shadow-color);
  padding: 8px;
  z-index: 2000;
  animation: dropdownFadeIn 0.18s ease;
}

.user-dropdown.show {
  display: block;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.user-dropdown-name {
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-dropdown-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 6px 0;
}

.user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  text-align: left;
}

.user-dropdown-item:hover {
  background: var(--accent-subtle);
  color: var(--error);
}
