/* ══════════════════════════════════════════════
   shared.css — WarriorLand global styles
   ══════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #2a2a2a;
  color: #e8e8e8;
  overflow-x: hidden;
  min-height: 100vh;
  opacity: 0;
  transition: opacity .4s ease;
}
body.page-loaded { opacity: 1; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #c10000; border-radius: 3px; }

/* ── Particles ── */
#particles-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; opacity: .45;
}

/* ── Announcement Bar ── */
#ann-bar {
  background: #c10000; color: #fff;
  font-size: .77rem; font-weight: 700; letter-spacing: .04em;
  padding: .42rem 3rem; position: relative; z-index: 300;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  animation: slideDown .5s ease both;
}
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
#ann-close {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.65);
  cursor: pointer; font-size: .95rem; line-height: 1;
  transition: color .2s, transform .2s;
}
#ann-close:hover { color: #fff; transform: translateY(-50%) rotate(90deg); }

/* ── Navbar ── */
nav.main-nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 200;
  height: 60px; padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(22,22,22,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(193,0,0,.18);
  transition: box-shadow .3s, background .3s;
  animation: slideDown .5s .05s ease both;
}
nav.main-nav.scrolled {
  background: rgba(14,14,14,.99);
  box-shadow: 0 4px 32px rgba(0,0,0,.6);
}
.nav-logo img {
  height: 36px;
  filter: drop-shadow(0 0 8px rgba(193,0,0,.55));
  transition: transform .3s, filter .3s;
}
.nav-logo img:hover {
  transform: scale(1.07) rotate(-2deg);
  filter: drop-shadow(0 0 16px rgba(193,0,0,.8));
}
.nav-links { display: flex; gap: .1rem; align-items: center; }
.nav-links a {
  color: #888; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .38rem .8rem; border-radius: 7px;
  transition: all .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 1.5px; background: #c10000; border-radius: 2px;
  transition: left .25s, right .25s;
}
.nav-links a:hover::after, .nav-links a.active::after { left: 10%; right: 10%; }
.nav-links a:hover { color: #e8e8e8; background: rgba(255,255,255,.05); }
.nav-links a.active { color: #e8e8e8; }
.nav-links a.nav-store {
  background: #c10000; color: #fff !important; border-radius: 8px !important;
  padding: .38rem 1rem !important; transition: all .2s !important;
}
.nav-links a.nav-store::after { display: none; }
.nav-links a.nav-store:hover {
  background: #e30000 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(193,0,0,.5) !important;
}
#hamburger {
  display: none; background: none; border: none;
  color: #aaa; font-size: 1.2rem; cursor: pointer; transition: color .2s;
}
#hamburger:hover { color: #e8e8e8; }

/* ── Toast ── */
#toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #22c55e; color: #fff;
  padding: .6rem 1.4rem; border-radius: 8px;
  font-size: .82rem; font-weight: 700; z-index: 9999;
  opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Lightbox ── */
#lb {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.93);
  align-items: center; justify-content: center; cursor: pointer;
}
#lb.open { display: flex; }
#lb img {
  max-width: 92vw; max-height: 92vh; border-radius: 10px;
  transform: scale(.92); transition: transform .3s;
}
#lb.open img { transform: scale(1); }

/* ── Reveal animations ── */
.rv {
  opacity: 0; transform: translateY(20px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.rv.on { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

/* ── Buttons ── */
.btn-red {
  background: #c10000; color: #fff; border: none;
  padding: .75rem 1.9rem; border-radius: 9px;
  font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  cursor: pointer; display: inline-flex; align-items: center; gap: .45rem;
  transition: all .22s; position: relative; overflow: hidden;
}
.btn-red:hover { background: #d40000; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(193,0,0,.45); }
.btn-red:active { transform: translateY(0); box-shadow: none; }
.btn-outline {
  background: transparent; color: #e8e8e8;
  border: 1.5px solid rgba(255,255,255,.18);
  padding: .75rem 1.9rem; border-radius: 9px;
  font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  cursor: pointer; display: inline-flex; align-items: center; gap: .45rem;
  transition: all .22s;
}
.btn-outline:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); transform: translateY(-1px); }

/* ── Status dot ── */
.sdot {
  width: 8px; height: 8px; background: #22c55e; border-radius: 50%;
  flex-shrink: 0; animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 4px #22c55e; }
  50%      { box-shadow: 0 0 14px #22c55e; }
}

/* ── Section labels ── */
.sec-label {
  font-size: .67rem; text-transform: uppercase; letter-spacing: .13em;
  color: #c10000; font-weight: 700; margin-bottom: .7rem; display: block;
}
.sec-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: .94; letter-spacing: .02em; margin-bottom: 1.2rem;
}

/* ── FAQ ── */
.faq-wrap { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.faq-q {
  padding: 1rem 0; display: flex; align-items: center;
  justify-content: space-between; cursor: pointer;
  font-weight: 700; font-size: .91rem; gap: 1rem;
  transition: color .2s; user-select: none;
}
.faq-q:hover { color: #c10000; }
.faq-q .icon { font-size: .72rem; color: #444; flex-shrink: 0; transition: transform .35s, color .2s; }
.faq-item.open .faq-q .icon { transform: rotate(180deg); color: #c10000; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .45s cubic-bezier(.16,1,.3,1), padding .3s;
  font-size: .86rem; color: #888; line-height: 1.8;
}
.faq-item.open .faq-a { max-height: 280px; padding-bottom: 1rem; }
.faq-a a { color: #c10000; }

/* ── Social bar ── */
.soc-bar {
  background: #1a1a1a; border-top: 1px solid rgba(255,255,255,.05);
  padding: 2rem; display: flex; align-items: center;
  justify-content: center; gap: .8rem; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.soc-link {
  display: flex; align-items: center; gap: .55rem;
  padding: .58rem 1.1rem; border-radius: 10px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  transition: all .22s;
  border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02);
}
.soc-link:hover { transform: translateY(-3px); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.13); }
.soc-link i { font-size: 1rem; }
.soc-discord { color: #7289da; } .soc-discord:hover { border-color: rgba(114,137,218,.35); box-shadow: 0 6px 18px rgba(114,137,218,.12) !important; }
.soc-yt      { color: #ff3333; } .soc-yt:hover      { border-color: rgba(255,0,0,.35);     box-shadow: 0 6px 18px rgba(255,0,0,.12)   !important; }
.soc-ig      { color: #e1306c; } .soc-ig:hover      { border-color: rgba(225,48,108,.35);   box-shadow: 0 6px 18px rgba(225,48,108,.12) !important; }
.soc-tt      { color: #e8e8e8; } .soc-tt:hover      { border-color: rgba(255,255,255,.25); }
.soc-fb      { color: #1877f2; } .soc-fb:hover      { border-color: rgba(24,119,242,.35);   box-shadow: 0 6px 18px rgba(24,119,242,.12) !important; }

/* ── Footer ── */
footer.main-footer {
  background: #1a1a1a; padding: 3.5rem 2rem 1.8rem;
  border-top: 1px solid rgba(255,255,255,.05);
  position: relative; z-index: 1;
}
.fi {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.05);
}
footer img.fl {
  height: 40px; filter: drop-shadow(0 0 8px rgba(193,0,0,.4));
  margin-bottom: .9rem; display: block; transition: filter .3s;
}
footer img.fl:hover { filter: drop-shadow(0 0 16px rgba(193,0,0,.7)); }
.fd { font-size: .82rem; color: #555; line-height: 1.75; }
footer h4 {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .11em;
  color: #c10000; font-weight: 700; margin-bottom: .8rem;
}
footer a.fl-link {
  display: block; color: #666; font-size: .82rem;
  margin-bottom: .38rem; transition: color .2s, padding-left .2s;
}
footer a.fl-link:hover { color: #e8e8e8; padding-left: 4px; }
.fb {
  max-width: 1100px; margin: 0 auto; padding-top: 1.3rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; color: #444; flex-wrap: wrap; gap: .5rem;
}
.fb a { color: #666; transition: color .2s; }
.fb a:hover { color: #e8e8e8; }

/* ── Offline indicator ── */
.offline-txt { color: #555 !important; font-size: 1.2rem !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(14,14,14,.98); padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.05); z-index: 199;
  }
  .nav-links.open { display: flex; }
  #hamburger { display: block; }
  .fi { grid-template-columns: 1fr 1fr; }
  .fb { flex-direction: column; text-align: center; }
  .nav-links a::after { display: none; }
}
