/* =========================================
   Ísland Servers — Supreme Icelandic Theme
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== Root Colors & Tokens ===== */
:root {
  --bg: #0b101b;
  --bg-alt: #111827;
  --text: #f8fafc;
  --muted: #9ca3af;
  --brand: #3b82f6;
  --brand-dark: #2563eb;
  --brand-glow: rgba(59, 130, 246, 0.4);
  --card: #1a2235;
  --border: #1e293b;
  --radius: 12px;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

/* ===== Reset & Global Setup ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}
/* ==== Dashboard Layout ==== */
.sql-browser, .city-stats {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-top: 2rem;
}

#tableList li {
  background: rgba(59,130,246,0.08);
  margin-bottom: 6px;
  border-radius: 8px;
  padding: 0.6rem 1rem;
}

#tableList li:hover {
  background: rgba(59,130,246,0.2);
}


/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 3rem;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.4s ease, transform 0.4s ease;
}

header:hover {
  background: rgba(15, 23, 42, 0.93);
}

header .logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.3px;
  transition: text-shadow 0.3s ease;
}

header .logo:hover {
  text-shadow: 0 0 15px var(--brand-glow);
}

/* New navigation layout to match HTML */
.nav-wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.menu { display: flex; gap: 1.5rem; }
.menu a { text-decoration: none; color: var(--text); font-weight: 500; }
.menu a:hover { color: var(--brand); text-shadow: 0 0 8px var(--brand-glow); }
.menu a.active { color: var(--brand); }
.hamburger { display: none; background: transparent; border: 1px solid rgba(255,255,255,0.15); color: var(--text); padding: 0.4rem 0.6rem; border-radius: 8px; }
.hamburger:hover { border-color: var(--brand); }

/* =========================================
   HOMEPAGE HERO
   ========================================= */
.hero {
  position: relative;
  background: url("/assets/baner.jpg") center / cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  animation: fadeIn 1s ease-out;
}

.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(11,17,27,0.1) 0%, rgba(11,17,27,0.8) 100%); }
.hero-content { position: relative; z-index: 1; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(11,17,27,0.1) 0%, rgba(11,17,27,0.8) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), var(--bg) 95%);
  opacity: 0.7;
}

.hero h1 {
  position: relative;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 900px;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
  animation: slideUp 1.2s ease-out forwards;
}

.hero p {
  position: relative;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin-bottom: 2rem;
  animation: fadeIn 1.6s ease-out;
}

.actions, .hero .btn-group {
  position: relative;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 0 15px var(--brand-glow);
}

.btn.primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--brand-glow);
}

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

/* Alias for existing outline style */
.btn.secondary { border: 1px solid var(--brand); color: var(--brand); background: transparent; }
.btn.secondary:hover { background: rgba(59, 130, 246, 0.15); color: white; box-shadow: 0 0 12px var(--brand-glow); }

.btn.inverse { border: 1px solid rgba(255,255,255,0.35); color: var(--text); background: transparent; }
.btn.inverse:hover { background: rgba(255,255,255,0.12); }

.btn.outline:hover {
  background: rgba(59, 130, 246, 0.15);
  color: white;
  box-shadow: 0 0 12px var(--brand-glow);
}

/* ===== Discord Section ===== */
.discord-section {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  animation: fadeIn 1s ease-out;
}

.discord-section h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--brand);
  text-shadow: 0 0 20px var(--brand-glow);
}

.discord-section iframe {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg-alt);
  letter-spacing: 0.3px;
}

footer a {
  color: var(--brand);
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  color: var(--brand-dark);
  text-shadow: 0 0 8px var(--brand-glow);
}

/* =========================================
   STATUS PAGE
   ========================================= */
body.server-page {
  background: var(--bg);
  animation: fadeIn 0.6s ease-out;
}

.server-page header {
  flex-direction: column;
  padding: 3rem 1rem 1.5rem;
  text-align: center;
  background: transparent;
  border: none;
}

.server-page .home-btn {
  position: absolute;
  top: 1.2rem;
  left: 2rem;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.server-page .home-btn:hover {
  color: var(--brand-dark);
}

.server-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.server-page .subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* ===== Filters ===== */
.controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem auto 3rem;
}

.controls input,
.controls select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.controls input:focus,
.controls select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 12px var(--brand-glow);
}

/* ===== Server Cards ===== */
.server-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  padding: 0 2rem 4rem;
  margin: 0 auto;
  max-width: 1300px;
}

.server-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transform: translateY(0);
}

.server-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.server-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #0f172a;
  transition: transform 0.4s ease;
}

.server-card:hover img {
  transform: scale(1.05);
}

.server-card .info {
  padding: 1.5rem;
}

.server-card h2 {
  font-size: 1.3rem;
  color: var(--brand);
  margin-bottom: 0.6rem;
}

.server-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 3px 0;
}

.status-online {
  color: #22c55e;
  font-weight: 600;
}

.status-offline {
  color: #ef4444;
  font-weight: 600;
}

.server-card .links {
  margin-top: 0.8rem;
}

.server-card .links a {
  display: inline-block;
  background: rgba(59, 130, 246, 0.08);
  color: var(--text);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.server-card .links a:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.6);
}

/* ===== Discord embed on status page ===== */
#discord {
  text-align: center;
  padding: 5rem 1rem;
}

#discord h2 {
  font-size: 1.7rem;
  color: var(--brand);
  margin-bottom: 1.5rem;
}

#discord iframe {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Transitions ===== */
a, button, .btn, .server-card {
  transition: all 0.25s ease;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .menu { display: none; position: absolute; right: 1rem; top: 64px; background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 0.8rem 1rem; flex-direction: column; gap: 0.8rem; }
  .menu.open { display: flex; }
  .hamburger { display: inline-block; }

  header {
    padding: 1rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
  body.sql-browser, body.city-stats {
  background: linear-gradient(180deg, #0b101b 0%, #111827 100%) !important;
  color: #f8fafc !important;
  font-family: 'Inter', sans-serif;
  overflow: auto;
}

/* --- Header --- */
body.sql-browser header, 
body.city-stats header {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 25px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 10;
}

body.sql-browser nav button,
body.city-stats nav button {
  background: #1a2235;
  border: 1px solid #3b82f6;
  color: #f8fafc;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: 0.25s;
}
body.sql-browser nav button.active,
body.city-stats nav button.active {
  background: #3b82f6;
  color: white;
  box-shadow: 0 0 10px rgba(59,130,246,0.7);
}

/* --- Layout --- */
#app {
  display: flex;
  min-height: calc(100vh - 80px);
}
aside {
  width: 250px;
  background: #111827;
  padding: 1.5rem;
  border-right: 1px solid #1e293b;
  overflow-y: auto;
}
main {
  flex: 1;
  padding: 2rem;
  background: #0b101b;
}

/* --- Cards / Tables --- */
#statsTab, #browserTab {
  background: #1a2235;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

#tableList li {
  background: rgba(59,130,246,0.08);
  color: #f8fafc;
  margin-bottom: 6px;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  transition: 0.3s;
}
#tableList li:hover {
  background: rgba(59,130,246,0.2);
}

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: #1a2235;
  border-radius: 12px;
  overflow: hidden;
}
th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #1e293b;
}
th {
  background: rgba(59,130,246,0.2);
  color: #60a5fa;
  font-weight: 600;
}
td {
  color: #f1f5f9;
}

/* --- Search --- */
#search {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  width: 260px;
  border: 1px solid #1e293b;
  border-radius: 8px;
  background: #111827;
  color: #f8fafc;
}

/* --- Chart Canvas --- */
canvas {
  background: #111827;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}
}
/* 🎄 CHRISTMAS HERO TEXT */
.christmas-title {
  font-family: "Mountains of Christmas", cursive;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.15;
  text-shadow:
    0 0 8px rgba(255, 215, 160, 0.35),
    0 0 22px rgba(255, 170, 70, 0.25);
}

.christmas-title span {
  display: inline-block;
  margin-top: 0.4rem;
  background: linear-gradient(
    90deg,
    #22c55e,
    #facc15,
    #ef4444
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

/* Sub text */
.christmas-sub {
  font-size: 1.15rem;
  color: #e5e7eb;
  margin-top: 1rem;
}

/* Greeting line */
.christmas-greeting {
  margin-top: 1.5rem;
  font-weight: 700;
  color: #facc15;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.45);
}
/* =========================================
   🎄 CHRISTMAS EXTENSION — Ísland Servers
   Non-destructive overlay (safe to remove)
   ========================================= */

body.christmas {
  background:
    radial-gradient(1200px 600px at top, #10203a 0%, #0b101b 60%),
    linear-gradient(180deg, #0b101b, #020617);
}

/* --- Christmas Header Glow --- */
body.christmas header {
  background: rgba(10, 18, 35, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.christmas header .logo {
  color: #facc15;
  text-shadow:
    0 0 10px rgba(250, 204, 21, 0.35),
    0 0 25px rgba(250, 204, 21, 0.15);
}

/* --- Hero Background Override --- */
body.christmas .hero {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.85)),
    url("/assets/christmas-bg.jpg") center / cover no-repeat;
}

/* --- Snow Layer --- */
body.christmas .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 70% 40%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 50% 80%, rgba(255,255,255,0.7), transparent);
  animation: christmasSnow 18s linear infinite;
  opacity: 0.65;
}

/* --- Christmas Buttons --- */
body.christmas .btn.primary {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow:
    0 0 18px rgba(220, 38, 38, 0.55),
    0 0 35px rgba(250, 204, 21, 0.25);
}

body.christmas .btn.primary:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* --- Christmas Secondary Button --- */
body.christmas .btn.secondary {
  border-color: #facc15;
  color: #facc15;
}

body.christmas .btn.secondary:hover {
  background: rgba(250, 204, 21, 0.15);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
}

/* --- Footer Christmas Tone --- */
body.christmas footer {
  background: linear-gradient(180deg, #020617, #0b101b);
  border-top: 1px solid rgba(250, 204, 21, 0.15);
}

body.christmas footer p {
  color: #e5e7eb;
}

/* --- Snow Animation --- */
@keyframes christmasSnow {
  from { background-position: 0 0; }
  to { background-position: 0 700px; }
}
/* =========================================
   🎄 FIX — Christmas Lights & Bigger Text
   ========================================= */

/* Bigger hero text */
.christmas-title.big {
  font-size: clamp(3.8rem, 7vw, 5.2rem);
  line-height: 1.1;
  letter-spacing: -1px;
}

.christmas-title.big span {
  display: block;
  margin-top: 0.6rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.christmas-sub.big {
  font-size: 1.35rem;
  margin-top: 1.4rem;
  max-width: 900px;
}

.christmas-greeting.big {
  font-size: 1.25rem;
  margin-top: 1.6rem;
}

/* =========================================
   🎄 Hanging Christmas Lights
   ========================================= */

.hero {
  position: relative;
}

.christmas-lights {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  display: flex;
  justify-content: space-evenly;
  pointer-events: none;
  z-index: 6;
}

.christmas-lights span {
  width: 14px;
  height: 22px;
  background: #facc15;
  border-radius: 50% 50% 45% 45%;
  position: relative;
  animation: lightGlow 3s infinite ease-in-out;
}

.christmas-lights span::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 2px;
  height: 14px;
  background: #374151;
  transform: translateX(-50%);
}

/* Light colors */
.christmas-lights span:nth-child(3n) { background: #ef4444; }
.christmas-lights span:nth-child(3n+1) { background: #22c55e; }
.christmas-lights span:nth-child(3n+2) { background: #facc15; }

@keyframes lightGlow {
  0%, 100% {
    opacity: 0.6;
    box-shadow: 0 0 6px currentColor;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 16px currentColor;
  }
}

