/* ============================================
   Live Servers Section — Glass Morphism Premium
   ============================================ */
.servers {
  background: var(--color-surface-container-lowest);
  border-top: 1px solid var(--color-outline-variant);
  border-bottom: 1px solid var(--color-outline-variant);
}

.servers__header {
  text-align: center;
  margin-bottom: 48px;
}

.servers__header .section-subtitle {
  margin: 0 auto;
}

.servers__divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary-container), transparent);
  margin: 20px auto 0;
}

.servers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .servers__grid {
    grid-template-columns: 1fr;
  }
}

/* Server Card — Glass Morphism */
.server-card {
  background: rgba(30, 32, 35, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-outline-variant);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

/* Gradient border effect */
.server-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0), rgba(0, 229, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: all 0.35s ease;
}

.server-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow:
    0 0 20px rgba(0, 229, 255, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.server-card:hover::before {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.3), rgba(0, 229, 255, 0.05));
}

/* Hex pattern overlay on card */
.server-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2300e5ff' fill-opacity='1'%3E%3Cpath d='M13.99 9c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10zm0 18c-4.418 0-8-3.582-8-8s3.582-8 8-8 8 3.582 8 8-3.582 8-8 8zm0-14c-3.314 0-6 2.686-6 6s2.686 6 6 6 6-2.686 6-6-2.686-6-6-6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.server-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.server-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-container-high);
  border: 1px solid var(--color-outline-variant);
}

.server-card__icon svg {
  width: 20px;
  height: 20px;
  fill: var(--color-primary-container);
}

.server-card__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headline);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.server-card__status--online {
  color: var(--color-energy-online);
}

.server-card__status--offline {
  color: var(--color-energy-danger);
}

.server-card__status--warning {
  color: var(--color-energy-warning);
}

.server-card__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
}

/* Radar ping animation */
.server-card__status-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid currentColor;
  animation: radar-ping 2s ease-out infinite;
}

.server-card__name {
  font-family: var(--font-headline);
  font-size: var(--text-headline-md-size);
  font-weight: var(--text-headline-md-weight);
  line-height: var(--text-headline-md-line);
  color: var(--color-on-surface);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.server-card__version {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-on-surface-variant);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.server-card__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.server-card__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.server-card__stat-label {
  font-family: var(--font-headline);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
  opacity: 0.7;
}

.server-card__stat-value {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-on-surface);
}

.server-card__stat-value--players {
  color: var(--color-primary);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

.server-card__stat-bar {
  width: 100%;
  height: 3px;
  background: var(--color-surface-container-highest);
  margin-top: 4px;
  overflow: hidden;
}

.server-card__stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-container), var(--color-primary-fixed));
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
  transition: width 0.5s ease;
}

.server-card__connect {
  width: 100%;
  justify-content: center;
  font-size: 0.6875rem;
  position: relative;
  z-index: 1;
}

.server-card__connect--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.server-card--offline {
  opacity: 0.6;
}

.server-card--offline:hover {
  transform: none;
  box-shadow: none;
}

.server-card--offline::before {
  background: linear-gradient(180deg, rgba(255, 23, 68, 0), rgba(255, 23, 68, 0.05));
}

.server-card--offline .server-card__status-dot::before {
  animation: none;
}
