/* =====================================================================
   speedtest.css — styles specific to /speed-test/
   Reuses CSS variables defined in styles.css (--card, --accent, etc.)
   ===================================================================== */

.st-panel { margin-top: 8px; }

.st-gauges {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: stretch;
}
.st-gauge-box {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
}
.st-gauge-box-sm { display: flex; flex-direction: column; justify-content: center; min-width: 110px; }
.st-gauge-label { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 8px; }
.st-gauge-value { font-size: clamp(28px, 5vw, 40px); font-weight: 900; letter-spacing: -0.03em; color: var(--accent-2); line-height: 1; }
.st-unit { font-size: 14px; font-weight: 700; color: var(--muted); margin-left: 6px; }
.st-gauge-bar {
  margin-top: 14px; height: 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); overflow: hidden;
}
.st-gauge-fill {
  height: 100%; width: 0%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.25s ease-out;
}
.st-gauge-fill.ul { background: linear-gradient(135deg, #00e0a4, #00c6ff); }

.st-status {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 15px; margin-top: 18px; border-radius: 15px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted); font-size: 14px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.st-status.success { background: rgba(103, 248, 155, 0.10); border-color: rgba(103, 248, 155, 0.22); color: var(--success); }
.st-status.warning { background: rgba(255, 209, 102, 0.12); border-color: rgba(255, 209, 102, 0.26); color: var(--warning); }
.st-status.danger { background: rgba(255, 143, 143, 0.12); border-color: rgba(255, 143, 143, 0.28); color: var(--danger); }

.st-server-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding: 11px 15px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
}
.st-server-label { color: var(--muted); font-weight: 700; }
.st-server-value { font-weight: 700; text-align: right; }

@media (max-width: 768px) {
  .st-gauges { grid-template-columns: 1fr 1fr; }
  .st-gauge-box-sm { grid-column: 1 / -1; }
}
