:root {
  --bg: #050608;
  --bg-elevated: #101218;
  --accent: #00b4ff;
  --accent-soft: rgba(0,180,255,0.12);
  --text: #f5f5f5;
  --muted: #a0a4b8;
  --border-subtle: rgba(255,255,255,0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  background: radial-gradient(circle at top,#162036 0,#050608 55%,#000 100%);
  color: var(--text);
}

/* HERO */

.hero {
  height: 420px;
  overflow: hidden;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* NAV */

.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 20;
}

.navbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 3rem;
  background:rgba(5,6,8,.96);
  border-bottom:1px solid var(--border-subtle);
}

.brand-title {
  font-weight:700;
  letter-spacing:.1em;
}

.brand-sub {
  font-size:.7rem;
  color:var(--muted);
  letter-spacing:.15em;
}

.nav-link {
  color:var(--accent);
  text-decoration:none;
}

/* MAIN */

main {
  padding:3rem 6vw;
}

.layout {
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:2rem;
}

.card {
  background:linear-gradient(135deg,rgba(255,255,255,.03),rgba(0,0,0,.7));
  border:1px solid var(--border-subtle);
  border-radius:18px;
  padding:2rem;
}

.card-compact {
  padding:1.6rem;
}

/* SERVERS */

.server-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:1.2rem;
}

.server-card {
  background:rgba(0,0,0,.5);
  border:1px solid var(--border-subtle);
  border-radius:14px;
  padding:1.2rem;
}

.server-card h3 {
  margin:0 0 .2rem;
}

.server-card p {
  margin:0 0 .6rem;
  font-size:.85rem;
  color:var(--muted);
}

.server-status {
  display:flex;
  gap:.6rem;
  align-items:center;
}

/* STATUS */

.status {
  font-weight:700;
  font-size:.75rem;
}

.status.online {
  color:#57f287;
}

.status.offline {
  color:#ff5c5c;
}

.uptime {
  margin-left:auto;
  font-weight:700;
}

.uptime.good { color:#4ade80; }
.uptime.warn { color:#facc15; }
.uptime.bad  { color:#f87171; }

/* FOOTER */

footer {
  border-top:1px solid var(--border-subtle);
  padding:1rem 6vw;
  display:flex;
  justify-content:space-between;
  font-size:.8rem;
  color:var(--muted);
}

/* MOBILE */

@media(max-width:900px){
  .layout{grid-template-columns:1fr}
  main{padding:1.5rem}
}
/* ===============================
   STATUS BADGES
================================ */

.status {
  font-weight: 700;
  font-size: 0.75rem;
}

.status.online {
  color: #22ff88;
}

.status.offline {
  color: #ff4d4d;
}

/* ===============================
   UPTIME %
================================ */

.uptime {
  font-weight: 700;
}

.uptime.good {
  color: #22ff88;
}

.uptime.warn {
  color: #ffaa00;
}

.uptime.bad {
  color: #ff4d4d;
}

/* ===============================
   HISTORY BARS
================================ */

.history {
  margin-top: 12px;
  display: flex;
  gap: 4px;
  max-width: 100%;
  overflow: hidden;
  justify-content: flex-start;
}

.history-bar {
  width: 5px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  opacity: 0.9;
}

.history-bar.up {
  background: linear-gradient(#22ff88, #18cc66);
}

.history-bar.down {
  background: linear-gradient(#ff4d4d, #cc2222);
}
/* ===============================
   WOW HISTORY FIX (FINAL)
================================ */

[data-kuma-group="wow"] .history-bars {
  display: flex !important;
  width: 100%;
  margin-top: 10px;
  grid-column: 1 / -1;
}

[data-kuma-group="wow"] .history-bar {
  height: 14px;
}

/* sørg for at status-linjen kan brytes */
[data-kuma-group="wow"] .server-status {
  flex-wrap: wrap;
}

/* ===============================
   DISCORD WIDGET
================================ */

.discord-card iframe {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: #0b0d12;
}

/* mobile tweak */
@media(max-width:900px){
  .discord-card iframe {
    height: 420px;
  }
}
h1 {
  margin-bottom: 2.5rem;
}