/* ================= ROOT ================= */
:root {
  --bg: #05070d;
  --bg-secondary: #0b0f1a;
  --card: #0f1626;
  --accent: #7c5cff;
  --accent-light: #9b7bff;
  --text: #ffffff;
  --text-muted: #7a8194;
  /* --border: rgba(255, 255, 255, 0.08); */
  --border: #1f2937;
}

/* ================= BACKGROUNDS ================== */
.dark {
  background-color: var(--bg-secondary);
}

.midnight-slate {
  background-color: #1f2937;
}

/* ================= GLOBAL RESET ================= */
html,
body {
  height: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
}

/* Force ALL text to be readable */
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
span,
a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  font-family: "Orbitron", sans-serif;
}

/* ================= NAVBAR ================= */

.brand-text {
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.brand-text .highlight {
  margin-left: 6px;
}

.brand-text:hover {
  /* color: var(--text); */
}

.navbar-brand {
  text-decoration: none;
}

.navbar-brand:hover {
  color: inherit; /* prevents weird hover on "Player" */
}

.navbar {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.navbar-brand,
.nav-link {
  color: #b9c0d4;
  transition: 0.2s ease;
}

.navbar .nav-link:hover {
  color: var(--accent-light);
}

.nav-link.active {
  color: var(--accent) !important;
  border-bottom: 2px solid var(--accent);
}

.nav-link.active:hover {
  color: var(--accent-light) !important;
}

.navbar-nav {
  align-items: center;
  margin-top: 1.1%;
}

/* Fix Bootstrap toggler icon (it disappears on dark bg otherwise) */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ================= ICONS ================== */
.icon {
  font-size: 30px;
  color: var(--accent);
}

.icon-large {
  font-size: 60px;
  color: var(--accent);
}

.icon-discord {
  font-size: 20px;
  color: inherit;
  display: flex;
  align-items: center;
}

.icon-discord-large {
  font-size: 60px;
  color: var(--accent);
}

.view-games {
  font-size: 20px;
}

/* ================= BUTTON ================= */
.join-btn {
  background-color: var(--bg-secondary);
  color: var(--accent);
  border: 1px var(--accent) solid;
  padding: 8px 16px;
  transition: 0.2s ease;
  max-width: auto;
  display: inline-flex;
}

.join-btn:hover {
  background-color: var(--accent);
  box-shadow: 0 0 10px rgba(124, 92, 255, 0.6);
  color: var(--text);
}

/* ================= CARD / BOX ================= */
.card-box {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: 0.2s ease;
}

.card-box:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.card-highlight {
  border-left: 4px solid var(--accent);
}

.card-body {
  background-color: var(--bg-secondary);
  color: var(--text);
}

.card {
  --bs-card-border-color: #1f2937;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
/* ================= DIVIDER ================= */
.divider {
  height: 2px;
  width: 60%;
  background: linear-gradient(to right, var(--accent), transparent);
  margin: 10px 0 20px;
}

/* ================= TEXT ================= */
.muted {
  color: var(--text-muted);
}

.highlight {
  color: var(--accent);
}

#online-count {
  color: var(--accent);
  font-family: "Inter";
  font-size: 3rem;
}

#server-count {
  color: var(--accent);
  font-family: "Inter";
  font-size: 3rem;
}
/* ================ HERO ================== */

.hero-background {
  background-image: url("../assets/images/player-reborn/background.png");
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 600;
}

.hero-brand {
  font-size: 3.5rem;
  font-weight: 700;
}

.hero-text {
  max-width: 400px;
}

/* ================= LIST ================= */
ul {
  padding-left: 0;
  list-style: none;
}

li {
  margin-bottom: 8px;
  color: #b9c0d4;
}

/* ============ ONLINE/OFFLINE =========== */
.status-dot {
  height: 10px;
  width: 10px;
  border-radius: 50%;
}

.status-online {
  background-color: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 1.5s infinite;
}

.status-offline {
  background-color: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

/* ================= FOOTER ================= */
footer {
  background-color: var(--bg-secondary);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 820px) {
  .join-btn {
    width: auto;
    display: inline-flex;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .navbar-collapse {
    align-items: center;
    text-align: center;
  }

  .status-dot {
    padding: 5px;
  }

  .server-tags {
    text-align: center;
  }

  .server-list {
    text-align: center;
  }

  .hero-logo {
    display: none;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}
