/* Global - Rust-like palette */
:root {
  --bg-main: #1e2020;      /* dark charcoal */
  --bg-dark-2: #141617;
  --card-bg: #202325;
  --accent: #ce422b;       /* rusty red */
  --accent-soft: rgba(206, 66, 43, 0.18);
  --text-main: #f6eae0;    /* warm off-white */
  --text-muted: #b0b5ba;
  --border-subtle: rgba(255, 255, 255, 0.08);
}

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

html, body {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto Condensed", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
}

/* Utility */
.bg-dark-2 {
  background-color: var(--bg-dark-2) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.btn-accent {
  background-color: var(--accent);
  color: #0b0b0b;
  border: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: #e54d32;
  color: #050505;
}

.btn-outline-accent {
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline-accent:hover,
.btn-outline-accent:focus {
  background-color: var(--accent);
  color: #050505;
}

/* Navbar */
.navbar {
  background: rgba(12, 13, 14, 0.98) !important;
  backdrop-filter: blur(8px);
}

.navbar-brand {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.95rem;
}

.brand-logo-square {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #000 0%, #292929 30%, var(--accent) 100%);
  border-radius: 3px;
  position: relative;
}

.brand-logo-square::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.nav-link {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.nav-link.active,
.nav-link:hover {
  color: var(--accent) !important;
}

/* HERO WITH FULL BACKGROUND VIDEO */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 90px;
  padding-bottom: 80px;
  overflow: hidden;
  color: #fff;
}

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

.hero-video-iframe-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-video-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Overlay – dark but allows video through */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 0 0, rgba(206, 66, 43, 0.18) 0, transparent 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.60) 80%);
}

/* Cinematic fog */
.hero-fog {
  position: absolute;
  bottom: -25%;
  left: -20%;
  width: 160%;
  height: 70%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 200, 200, 0.16), transparent 60%);
  filter: blur(10px);
  opacity: 0.7;
  animation: fogDrift 45s linear infinite;
}

@keyframes fogDrift {
  0%   { transform: translateX(0); opacity: 0.65; }
  50%  { transform: translateX(40px); opacity: 0.9; }
  100% { transform: translateX(-40px); opacity: 0.65; }
}

/* Grain / noise overlay */
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: soft-light;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 2px
    );
  animation: noiseShift 2.3s steps(2) infinite;
}

@keyframes noiseShift {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(-10px, 5px, 0); }
  100% { transform: translate3d(10px, -5px, 0); }
}

/* Ember particles (hero + footer) */
.hero-embers,
.footer-embers {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.footer-embers {
  z-index: 0;
}

.ember {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 180, 100, 0.95);
  box-shadow: 0 0 10px rgba(255, 180, 100, 0.9);
  opacity: 0;
  animation: emberFloat 10s linear infinite;
}

/* Positions, speeds, and delays */
.hero-embers .ember:nth-child(1),
.footer-embers .ember:nth-child(1)  { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.hero-embers .ember:nth-child(2),
.footer-embers .ember:nth-child(2)  { left: 22%; animation-duration: 14s; animation-delay: 2s; }
.hero-embers .ember:nth-child(3),
.footer-embers .ember:nth-child(3)  { left: 34%; animation-duration: 11s; animation-delay: 4s; }
.hero-embers .ember:nth-child(4),
.footer-embers .ember:nth-child(4)  { left: 46%; animation-duration: 13s; animation-delay: 1s; }
.hero-embers .ember:nth-child(5),
.footer-embers .ember:nth-child(5)  { left: 58%; animation-duration: 15s; animation-delay: 3s; }
.hero-embers .ember:nth-child(6),
.footer-embers .ember:nth-child(6)  { left: 70%; animation-duration: 16s; animation-delay: 5s; }
.hero-embers .ember:nth-child(7),
.footer-embers .ember:nth-child(7)  { left: 80%; animation-duration: 12s; animation-delay: 6s; }
.hero-embers .ember:nth-child(8),
.footer-embers .ember:nth-child(8)  { left: 90%; animation-duration: 18s; animation-delay: 2s; }
.hero-embers .ember:nth-child(9),
.footer-embers .ember:nth-child(9)  { left: 25%; animation-duration: 20s; animation-delay: 7s; }
.hero-embers .ember:nth-child(10),
.footer-embers .ember:nth-child(10) { left: 52%; animation-duration: 17s; animation-delay: 8s; }
.hero-embers .ember:nth-child(11),
.footer-embers .ember:nth-child(11) { left: 73%; animation-duration: 19s; animation-delay: 9s; }
.hero-embers .ember:nth-child(12),
.footer-embers .ember:nth-child(12) { left: 94%; animation-duration: 13s; animation-delay: 10s; }

@keyframes emberFloat {
  0% {
    transform: translate3d(0, 110%, 0) scale(0.4);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  60% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(10px, -130%, 0) scale(1);
    opacity: 0;
  }
}

/* Content sits above overlay + video + fog + embers/noise */
.hero-content {
  position: relative;
  z-index: 4;
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.05rem;
  max-width: 560px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-buttons .btn {
  min-width: 180px;
}

.hero-meta {
  font-size: 0.85rem;
}

.hero-badge {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Status panel */
.status-panel {
  background: rgba(10, 11, 12, 0.96);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  padding: 18px 20px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

.status-title {
  font-size: 1.05rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

.status-list li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: var(--text-main);
}

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

.status-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-online {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
}

.status-offline {
  background: rgba(248, 113, 113, 0.15);
  color: #fecaca;
}

/* Sections */
.section-padding {
  padding: 80px 0;
}

.section-header {
  max-width: 680px;
  margin-inline: auto;
}

.section-title {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-main) !important;
}

.section-subtitle {
  color: var(--text-muted) !important;
  font-size: 0.95rem;
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-main) !important;
}

/* Server cards */
.server-card .card-title {
  color: var(--text-main) !important;
}

.card-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.server-features li {
  font-size: 0.9rem;
  color: var(--text-muted) !important;
  margin-bottom: 4px;
}

.server-features i {
  color: var(--accent);
  margin-right: 6px;
}

.server-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.server-pop {
  color: var(--text-muted);
}

/* Info chips */
.info-chip {
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Shop cards */
.shop-card {
  position: relative;
}

.shop-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.shop-perks li {
  font-size: 0.9rem;
  color: var(--text-muted) !important;
  margin-bottom: 4px;
}

.shop-perks i {
  color: var(--accent);
  margin-right: 6px;
}

.best-value {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(206, 66, 43, 0.4);
}

.best-value-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: #050505;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 999px;
}

/* Rules & FAQ */
.rules-card {
  min-height: 100%;
}

.rules-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.rules-list li {
  font-size: 0.9rem;
  color: var(--text-muted) !important;
  margin-bottom: 6px;
}

/* FAQ */
.accordion-item {
  background-color: var(--card-bg);
  border-color: var(--border-subtle);
}

.accordion-button {
  background-color: var(--card-bg);
  color: var(--text-main) !important;
}

.accordion-button:not(.collapsed) {
  color: var(--accent) !important;
  background-color: rgba(206, 66, 43, 0.06);
  box-shadow: none;
}

.accordion-button::after {
  filter: invert(1) brightness(1.8) !important;
}

.accordion-body {
  color: #e6e6e6 !important;
}

/* Events */
.events-card .events-list {
  list-style: none;
  padding-left: 0;
}

.events-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted) !important;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

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

/* Discord */
.discord-section {
  padding: 80px 0;
  background:
    radial-gradient(circle at 0 0, rgba(148, 163, 255, 0.28), transparent 50%),
    linear-gradient(135deg, #111314 0%, #020617 100%);
}

/* Contact */
.contact-card {
  height: 100%;
}

.contact-card .form-control,
.contact-card .form-select {
  background-color: #101214;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.contact-card .form-control:focus,
.contact-card .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.15rem rgba(206, 66, 43, 0.35);
}

.contact-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Footer base */
.footer {
  position: relative;
  background-color: #101112;
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow: hidden;
}

/* Expanded Footer */
.expanded-footer {
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

.footer-logo span {
  font-size: 1.2rem;
}

.footer-about {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 350px;
}

/* Newsletter */
.footer-news-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 6px;
}

.footer-news-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.footer-news-input {
  flex: 1;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background-color: #0f1112;
  color: var(--text-main);
  font-size: 0.85rem;
}

.footer-news-input:focus {
  outline: none;
  border-color: var(--accent);
}

.footer-news-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background-color: var(--accent);
  color: #050505;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.footer-news-btn:hover {
  background-color: #e54d32;
}

.footer-news-note {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Footer headings & links */
.footer-heading {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Footer Discord widget */
.footer-discord-widget {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: #050509;
  padding: 8px;
}

.footer-discord-widget iframe {
  border-radius: 8px;
}

.footer-widget-note {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Footer grain */
.footer-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.25;
  mix-blend-mode: soft-light;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 2px
    );
  animation: noiseShift 2.6s steps(2) infinite;
}

/* Footer bottom bar */
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

/* Back to top */
.back-to-top-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
}

/* Responsive */
@media (max-width: 767.98px) {
  .hero-section { text-align: center; }
  .hero-subtitle { margin-inline: auto; }
  .status-panel { margin-top: 30px; }

  .footer-grid {
    gap: 30px;
  }
}
