/* ============================================================
   Empire RP — shared site styles
   Edit here once and every page updates. Page-specific styles
   stay in each page's own <style> block.
   ============================================================ */

:root {
  --bg: #060504;
  --panel: #0f0d0b;
  --panel2: #161310;
  --gold: #f6b13a;
  --gold2: #ff7200;
  --gold-dim: rgba(246,177,58,.18);
  --text: #f2ede4;
  --muted: #a89880;
  --line: rgba(246,177,58,.18);
  --danger: #ff3c3c;
  --green: #39ff82;
  --discord: #5865F2;
  --r: 22px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; cursor: default; }
body {
  background: var(--bg);
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* App-like feel: no text-selection cursor on display text */
  -webkit-user-select: none;
  user-select: none;
}
a { color: inherit; text-decoration: none; }
img { -webkit-user-drag: none; user-select: none; }

/* Interactive things keep the pointer cursor */
a, button, .btn, .btn.ghost, .btn-nav, .btn-discord, .btn-store,
.hamburger, .faq-q, [role="button"], summary, label { cursor: pointer; }

/* Inputs stay fully selectable with a real text caret */
input, textarea, select, [contenteditable] {
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
}
/* Opt-in helper if some copy should be selectable */
.selectable, .selectable * { -webkit-user-select: text; user-select: text; }
::selection { background: rgba(246,177,58,.30); color: #fff; }

/* ── PAGE TRANSITIONS ── */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn .42s ease backwards; transition: opacity .26s ease; }
body.is-leaving { opacity: 0; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center;
  gap: 22px;
  padding: 0 4%;
  height: 76px;
  background: linear-gradient(180deg, rgba(11,9,7,.92), rgba(6,5,4,.86));
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(246,177,58,.05), 0 14px 30px -10px rgba(0,0,0,.5);
  transition: background .3s, box-shadow .3s, height .3s;
  animation: navPop .55s cubic-bezier(.34,1.56,.64,1) both;
}
.nav.scrolled {
  height: 66px;
  background: rgba(6,5,4,.97);
  box-shadow: 0 1px 0 rgba(246,177,58,.14), 0 16px 36px -8px rgba(0,0,0,.6);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 21px;
  letter-spacing: .04em; text-transform: uppercase;
  flex-shrink: 0; white-space: nowrap;
  transition: opacity .2s;
}
.brand:hover { opacity: .88; }
.brand img {
  height: 42px; flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(246,177,58,.5));
  animation: float 3.2s ease-in-out infinite;
}
.brand span { color: var(--text); }
.brand span b {
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links {
  flex: 1;
  display: flex; gap: 2px; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase;
  min-width: 0;
}
.nav-links a {
  position: relative; white-space: nowrap;
  padding: 9px 15px; border-radius: 999px;
  transition: color .2s, background .25s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-links a.active {
  color: #160b00;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  box-shadow: 0 4px 18px rgba(255,114,0,.35);
}
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-divider { width: 1px; height: 26px; background: var(--line); flex-shrink: 0; }
.btn-nav {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #160b00; border-radius: 999px; padding: 10px 22px;
  font-weight: 900; font-size: 13px; white-space: nowrap;
  box-shadow: 0 0 20px rgba(255,114,0,.3);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s; border: none;
}
.btn-nav:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 6px 28px rgba(255,114,0,.55); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; margin-left: auto; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--gold); border-radius: 2px; transition: .3s;
}
.mobile-menu {
  display: none; position: fixed; top: 70px; left: 0; right: 0; z-index: 99;
  background: rgba(6,5,4,.97); border-bottom: 1px solid var(--line);
  padding: 20px 6%; flex-direction: column; gap: 6px;
  max-height: calc(100vh - 70px); overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-weight: 800; font-size: 15px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; padding: 13px 14px;
  border-radius: 12px; transition: color .2s, background .2s;
}
.mobile-menu a.active { color: var(--gold); background: rgba(246,177,58,.08); }
.mobile-menu a:hover { color: var(--gold); background: rgba(255,255,255,.04); }

/* ── BUTTONS ── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(246,177,58,.5);
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #160b00; font-weight: 900; font-size: 15px;
  border-radius: 999px; padding: 14px 26px;
  box-shadow: 0 0 24px rgba(255,114,0,.25);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s; cursor: pointer;
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -130%;
  width: 55%; height: 100%; pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
}
.btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 38px rgba(255,114,0,.5); }
.btn:hover::after { left: 150%; transition: left .65s ease; }
.btn:active { transform: translateY(-1px) scale(1.01); }
.btn.ghost {
  background: rgba(255,255,255,.05);
  color: var(--text);
  border-color: rgba(255,255,255,.15);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(255,255,255,.1); border-color: var(--gold); box-shadow: 0 10px 28px rgba(0,0,0,.3); }
.btn.ghost::after { background: linear-gradient(120deg, transparent, rgba(255,255,255,.25), transparent); }

/* Discord — branded blurple, pops on hover */
.btn-discord {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--discord); color: #fff;
  font-weight: 900; font-size: 15px;
  border: none; border-radius: 999px;
  padding: 14px 24px; cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow: 0 10px 26px rgba(88,101,242,.45);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s, background .2s;
  animation: discordIdle 3.4s ease-in-out infinite;
}
.btn-discord svg { width: 22px; height: 22px; flex-shrink: 0; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.btn-discord::after {
  content: ''; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%; pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
}
.btn-discord:hover {
  background: #6c79ff;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 18px 42px rgba(88,101,242,.7);
  animation-play-state: paused;
}
.btn-discord:hover svg { transform: rotate(-12deg) scale(1.18); }
.btn-discord:hover::after { left: 140%; transition: left .7s ease; }
.btn-discord:active { transform: translateY(-1px) scale(1.02); }
.btn-discord.sm { padding: 8px 16px; font-size: 13px; gap: 7px; animation: none; box-shadow: 0 6px 16px rgba(88,101,242,.4); }
.btn-discord.sm svg { width: 18px; height: 18px; }
@keyframes discordIdle {
  0%, 100% { box-shadow: 0 10px 26px rgba(88,101,242,.4); }
  50%      { box-shadow: 0 12px 36px rgba(88,101,242,.72); }
}

/* Store — gold outline that fills + pops on hover (sits cleanly on any background) */
.btn-store {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  font-weight: 900; font-size: 15px;
  color: var(--gold);
  background: rgba(246,177,58,.06);
  border: 1.5px solid rgba(246,177,58,.55);
  box-shadow: 0 0 0 rgba(246,177,58,0);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .25s, color .2s, border-color .2s;
}
.btn-store .gem { font-size: 15px; line-height: 1; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.btn-store::after {
  content: ''; position: absolute; top: 0; left: -130%;
  width: 55%; height: 100%; pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
}
.btn-store:hover {
  color: #160b00;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border-color: transparent;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 34px rgba(255,114,0,.45);
}
.btn-store:hover .gem { transform: rotate(-12deg) scale(1.2); }
.btn-store:hover::after { left: 150%; transition: left .7s ease; }
.btn-store:active { transform: translateY(-1px) scale(1.02); }

/* ── LIVE PLAYER COUNT ── */
.live-badge strong { color: #fff; font-weight: 900; }
.server-status-wrap { text-align: center; position: relative; z-index: 1; margin-bottom: 30px; }
.server-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 999px;
  background: rgba(57,255,130,.06);
  border: 1px solid rgba(57,255,130,.28);
  color: var(--text); font-weight: 800; font-size: 14px; letter-spacing: .03em;
}
.server-status .dot { background: var(--green); box-shadow: 0 0 12px var(--green); }
.server-status b { color: var(--green); font-weight: 900; }
.server-status.offline { background: rgba(255,60,60,.06); border-color: rgba(255,60,60,.28); }
.server-status.offline .dot { background: var(--danger); box-shadow: 0 0 12px var(--danger); animation: none; }
.server-status.offline b { color: var(--danger); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 1.8s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(1.3); } }

/* ── FOOTER ── */
footer {
  padding: 60px 6% 34px;
  color: var(--muted); border-top: 1px solid var(--line);
  background: #030302; font-size: 14px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 48px; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 320px; }
.footer-brand img { height: 46px; width: auto; align-self: flex-start; filter: drop-shadow(0 0 16px rgba(246,177,58,.3)); }
.footer-brand p { line-height: 1.65; }
.footer-links {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(5, auto);
  gap: 14px 48px; align-content: start;
}
.footer-links a { color: var(--muted); width: fit-content; transition: color .2s, transform .2s; }
.footer-links a:hover { color: var(--gold); transform: translateX(3px); }
.footer-bottom {
  max-width: 1200px; margin: 34px auto 0; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.footer-copy { color: rgba(168,152,128,.55); font-size: 12px; letter-spacing: .02em; }

/* ── ANIMATIONS ── */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes navPop   { from { opacity: 0; transform: translateY(-12px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glowDrift {
  0%,100% { transform: translateX(-50%) translateY(0)    scale(1);    opacity: 1;   }
  50%     { transform: translateX(-50%) translateY(22px) scale(1.08); opacity: .82; }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── SHARED RESPONSIVE (nav + footer) ── */
@media (max-width: 1180px) {
  .nav-links, .nav-actions, .nav-divider { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .nav { padding: 0 5%; height: 64px; }
  .mobile-menu { top: 64px; max-height: calc(100vh - 64px); }
  .footer-inner { gap: 32px; }
  .footer-links { gap: 12px 36px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .hero-content > *, .nav { opacity: 1 !important; transform: none !important; }
}
