:root {
  /* Core Colors from Reference */
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  
  /* RankedPvP Theme (Red/Gold) adaptation of the ref's accent */
  --accent-primary: #ff4b4b;
  --accent-glow: rgba(255, 75, 75, 0.4);
  --bg-glow: rgba(59, 130, 246, 0.5); /* Blue taken from Sindruid 1:1 */
  
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.05);

  --font-family: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--bg-glow) 0%, transparent 50%);
  opacity: 0.15;
  z-index: -1;
  animation: pulse 15s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.2); }
}

/* Navbar */
.navbar {
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between; /* Space between logo and widget */
  align-items: center;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 2px;
  user-select: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.nav-brand:hover {
  opacity: 0.9;
}

.brand-ranked {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.05em;
  font-style: italic;
}

.brand-pvp {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent-primary);
  font-style: italic;
  padding-left: 2px;
  /* Glow Effect */
  text-shadow: 0 0 15px var(--accent-glow);
}

/* Main Content */
.content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.construction-card {
  text-align: center;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(10px);
  padding: 4rem 3rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  max-width: 600px;
  width: 100%;
  animation: floatIn 0.8s ease-out;
}

.construction-card h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #aaa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -2px;
  line-height: 1.1;
}

.construction-card p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
}

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

/* Combined Widget - Adjusted for Top Right */
.server-widget {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(10, 10, 10, 0.8); /* Darker, less glass, more solid */
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem; /* Smaller padding */
  border-radius: 8px; /* Less rounded, more tech/squares */
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: auto; /* Allow it to shrink */
}

.server-widget:hover {
  background: rgba(20, 20, 20, 0.95);
  border-color: #ff4b4b;
  transform: none; /* Remove float movement for nav items */
}

.widget-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #555;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  transition: background-color 0.3s;
}

.status-dot.online {
  background-color: #4caf50;
  box-shadow: 0 0 8px #4caf50;
}

.status-dot.offline {
  background-color: #ff4b4b;
  box-shadow: 0 0 8px #ff4b4b;
}

.player-text {
  font-weight: 500;
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 1px;
}

.player-count-num {
  color: #fff;
  font-weight: 700;
}

.widget-divider {
  width: 1px;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.1);
}

.ip-text {
  font-family: 'Consolas', monospace;
  font-size: 0.85rem;
  color: #ddd;
  letter-spacing: 0;
}

.copy-hint {
  font-size: 0.7rem;
  color: #ff4b4b;
  margin-left: 5px;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.2s ease;
  display: inline-block;
  white-space: nowrap;
}

.server-widget:hover .copy-hint {
  opacity: 1;
  transform: translateX(0);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 600px) {
  .logo-ranked { font-size: 3rem; letter-spacing: 0.2rem; }
  .logo-pvp { font-size: 3rem; margin-top: -5px; }
  
  .navbar {
    justify-content: center;
    padding: 1rem;
  }
  
  .server-widget {
    font-size: 0.8rem;
    padding: 0.5rem;
  }
  
  .widget-divider { display: block; } /* Keep divider in new compact look */
}
