/* ============================================================
   VexoraCity — shared.css
   Dark neon-city aesthetic | Rajdhani + Orbitron + Bebas Neue
   ============================================================ */

:root {
  --bg:        #03010a;
  --bg2:       #07040f;
  --bg3:       #0d0818;
  --card:      #0f0b1c;
  --card2:     #161028;
  --border:    rgba(180,60,255,0.15);
  --border2:   rgba(0,229,255,0.12);
  --accent:    #c84bff;
  --accent2:   #e0a0ff;
  --cyan:      #00e5ff;
  --cyan2:     #80f4ff;
  --text:      #e8e0f5;
  --muted:     #8a7a9a;
  --gold:      #ffd700;
  --green:     #4ade80;
  --red:       #f87171;
  --nav-h:     68px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Grid background */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(180,60,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,60,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none; z-index: 0;
}

/* Top glow */
body::after {
  content: '';
  position: fixed; top: -150px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(180,60,255,0.08) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: rgba(180,60,255,0.4); border-radius: 3px; }

/* ════════════════════════════════════════
   NAV
   ════════════════════════════════════════ */
.topnav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(3,1,10,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}

.logo-diamond {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #c84bff, #7b2fbe);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 0 16px rgba(200,75,255,0.5);
  flex-shrink: 0;
}

.logo-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px; font-weight: 900;
  color: #fff; letter-spacing: 2px;
  line-height: 1.1;
}

.logo-sub2 {
  font-size: 9px; font-weight: 500;
  color: var(--muted); letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center;
  list-style: none; gap: 4px;
}

.nav-links li { position: relative; }

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent2);
  background: rgba(180,60,255,0.08);
}

.nav-cta {
  background: linear-gradient(135deg, rgba(200,75,255,0.2), rgba(0,229,255,0.15)) !important;
  border: 1px solid rgba(200,75,255,0.4) !important;
  color: var(--accent2) !important;
  border-radius: 999px !important;
}

.nav-cta:hover {
  background: linear-gradient(135deg, rgba(200,75,255,0.35), rgba(0,229,255,0.25)) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200,75,255,0.3);
}

/* Dropdown */
.nav-drop { position: relative; }

.chev2 { font-size: 9px; margin-left: 3px; color: var(--muted); }

.drop-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  z-index: 200;
}

.nav-drop:hover .drop-menu { display: block; }

.drop-menu a {
  display: block !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  color: var(--muted) !important;
  white-space: nowrap;
  background: transparent !important;
}

.drop-menu a:hover {
  color: var(--accent2) !important;
  background: rgba(180,60,255,0.1) !important;
}

/* ════════════════════════════════════════
   PAGE HERO
   ════════════════════════════════════════ */
.page-hero {
  position: relative; z-index: 1;
  text-align: center;
  padding: 80px 24px 60px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 0%, rgba(180,60,255,0.08) 0%, transparent 60%);
}

.page-hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 18px;
  background: rgba(180,60,255,0.1);
  border: 1px solid rgba(180,60,255,0.3);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; color: var(--accent);
  text-transform: uppercase; margin-bottom: 20px;
}

.page-hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  background: linear-gradient(135deg, #fff 30%, var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px; line-height: 1.1;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--muted);
  max-width: 600px; margin: 0 auto;
  line-height: 1.7;
}

/* ════════════════════════════════════════
   WRAP / LAYOUT
   ════════════════════════════════════════ */
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative; z-index: 1;
}

.section {
  padding: 80px 0;
  position: relative; z-index: 1;
}

.section-alt {
  background: rgba(180,60,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sec-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 4px; color: var(--accent);
  text-transform: uppercase; margin-bottom: 10px;
}

.sec-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  color: #fff; letter-spacing: -0.5px;
  margin-bottom: 16px; line-height: 1.2;
}

/* ════════════════════════════════════════
   FEAT GRID (2-col image + text)
   ════════════════════════════════════════ */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}

.feat-grid.flip { direction: rtl; }
.feat-grid.flip > * { direction: ltr; }

.feat-img {
  background: linear-gradient(135deg, var(--card2), var(--card));
  border: 1px solid var(--border);
  border-radius: 16px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

.feat-img::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(180,60,255,0.12) 0%, transparent 70%);
}

.feat-img-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 4px;
  color: rgba(180,60,255,0.3);
  position: relative; z-index: 1;
}

.feat-text p {
  color: var(--muted);
  font-size: 16px; line-height: 1.8;
  margin-bottom: 12px;
}

.feat-list {
  list-style: none; margin-top: 16px;
}

.feat-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 15px; color: var(--muted);
  border-bottom: 1px solid rgba(180,100,255,0.07);
}

.feat-list li:last-child { border-bottom: none; }

.feat-list li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--accent); font-size: 12px;
  top: 10px;
}

/* ════════════════════════════════════════
   ACCORDION / RULES
   ════════════════════════════════════════ */
.accordion { margin-top: 32px; }

.accordion details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.accordion details:hover { border-color: rgba(180,60,255,0.3); }
.accordion details[open] { border-color: rgba(180,60,255,0.4); }

.accordion summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 1px; color: var(--accent2);
  cursor: pointer;
  background: rgba(180,60,255,0.05);
  user-select: none;
  list-style: none;
}

.accordion summary::-webkit-details-marker { display: none; }

.chev {
  font-size: 16px; color: var(--accent);
  transition: transform 0.3s;
}

details[open] .chev { transform: rotate(180deg); }

.rule-list {
  padding: 8px 0 16px;
}

.rule {
  padding: 10px 24px;
  font-size: 14px; color: var(--muted);
  border-bottom: 1px solid rgba(180,100,255,0.06);
  line-height: 1.7;
  transition: background 0.2s, color 0.2s;
}

.rule:last-child { border-bottom: none; }

.rule:hover {
  background: rgba(180,60,255,0.04);
  color: var(--text);
}

/* ════════════════════════════════════════
   SEARCH BOX
   ════════════════════════════════════════ */
.search-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.search-row {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px; gap: 16px;
  flex-wrap: wrap;
}

.search-row h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px; font-weight: 700;
  color: #fff; margin-bottom: 4px;
}

.search-row p {
  font-size: 13px; color: var(--muted);
}

#resultLabel {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px; letter-spacing: 1px;
  color: var(--accent); white-space: nowrap;
  margin-top: 4px;
}

.search-inputs {
  display: flex; gap: 10px;
}

#ruleSearch {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

#ruleSearch:focus { border-color: var(--accent); }
#ruleSearch::placeholder { color: var(--muted); }

/* ════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════ */
.btn {
  padding: 10px 22px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; border: none;
  transition: all 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(200,75,255,0.25), rgba(0,229,255,0.15));
  border: 1px solid rgba(200,75,255,0.4);
  color: var(--accent2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(200,75,255,0.4), rgba(0,229,255,0.25));
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(200,75,255,0.3);
}

.btn-secondary {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn-secondary:hover {
  border-color: rgba(180,60,255,0.3);
  color: var(--accent2);
}

/* ════════════════════════════════════════
   REVEAL ANIMATION
   ════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.vfooter {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px 40px 24px;
  background: var(--bg2);
}

.vfooter-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: flex-start;
  justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.vfooter-brand {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px; font-weight: 900;
  color: var(--accent2); letter-spacing: 2px;
  margin-bottom: 4px;
}

.vfooter-sub {
  font-size: 11px; color: var(--muted);
  letter-spacing: 2px; text-transform: uppercase;
}

.vfooter-links {
  display: flex; gap: 6px; flex-wrap: wrap;
}

.vfooter-links a {
  padding: 6px 14px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.vfooter-links a:hover {
  color: var(--accent2);
  background: rgba(180,60,255,0.08);
}

.vfooter-bottom {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}

.vfooter-copy {
  font-size: 11px; color: rgba(138,122,154,0.5);
  letter-spacing: 0.5px;
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat-grid.flip { direction: ltr; }
  .topnav { padding: 0 20px; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .page-hero { padding: 60px 20px 40px; }
  .vfooter { padding: 32px 20px 20px; }
  .vfooter-inner { flex-direction: column; }
  .search-inputs { flex-direction: column; }
}
