/* ════════════════════════════════════════════════
   NEO CRYSTAL TOKYO — stats.css
   Server stats page specific styles only.
   Requires global.css to be loaded first.
   ════════════════════════════════════════════════ */

/* ── PAGE COLOR VARIABLES ── */
:root {
  --night:        #080c14;
  --deep:         #0d1220;
  --mid:          #1a2240;
  --silver:       #c8d4e8;
  --silver-light: #e8eef8;
  --accent:       #7eb8f5;
  --text-dim:     #8899bb;
  --luna-purple:  #3a2d5e;
  --artemis-blue: #1e3a5f;
}

html, body { color: #e8eef8; cursor: none; }
*, *::before, *::after { cursor: none; }

/* ── BACKGROUND ── */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background: url('../images/stats-bg.jpg') center center / cover no-repeat;
  filter: blur(8px) brightness(0.25) saturate(0.8);
  transform: scale(1.05);
}
.bg-overlay {
  position: fixed; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(58,45,94,0.5)  0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(30,58,95,0.4)  0%, transparent 60%),
    rgba(8, 12, 20, 0.55);
  pointer-events: none;
}

/* ── PAGE ── */
.page { padding: 2.5rem 1.5rem 4rem; }

/* ── HEADER ── */
header {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeDown 0.9s ease both;
}

.cats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.cat-icon {
  width: 52px; height: 52px;
  filter: drop-shadow(0 0 12px rgba(200,212,232,0.6));
  animation: float var(--float-d, 4s) ease-in-out infinite var(--float-delay, 0s);
}
.cat-icon.artemis { --float-d: 4.5s; --float-delay: -1.5s; }

.title {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  background: linear-gradient(135deg, var(--silver), var(--white), var(--gold), var(--silver));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 12px rgba(200,212,232,0.3));
}
.subtitle {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--text-dim);
}
.divider {
  width: 160px;
  background: linear-gradient(90deg, transparent, var(--silver), var(--gold), var(--silver), transparent);
}

/* ── UPTIME BANNER ── */
.uptime-banner {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  background: rgba(200,212,232,0.08);
  border: 1px solid rgba(200,212,232,0.2);
  font-size: 1rem;
  font-style: italic;
  color: var(--silver);
  animation: fadeUp 0.8s 0.2s ease both;
}
.uptime-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  animation: dot-pulse 2s ease-in-out infinite;
}

/* ── STATS GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  width: 100%;
  max-width: 1100px;
  margin-top: 0.5rem;
}

/* ── STAT CARD ── */
.stat-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200,212,232,0.15);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s ease;
  animation: fadeUp 0.7s ease both;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(126,184,245,0.1);
  border-color: rgba(200,212,232,0.3);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 1.2rem; right: 1.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  opacity: 0.4;
}

.card-title {
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  opacity: 0.8;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* ── PROGRESS BAR ── */
.progress-wrap { margin: 0.6rem 0 0.3rem; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.progress-label .value { color: var(--silver-light); font-style: italic; }
.progress-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
  background: linear-gradient(90deg, var(--accent), var(--silver));
}
.progress-fill.warn   { background: linear-gradient(90deg, var(--warn),   #f5d87e); }
.progress-fill.danger { background: linear-gradient(90deg, var(--danger),  #ff6b6b); }

/* ── BIG STAT ── */
.big-stat { display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 0.3rem; }
.big-number {
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(200,212,232,0.3));
}
.big-unit { font-size: 0.85rem; color: var(--text-dim); font-style: italic; }
.big-sub  { font-size: 0.8rem; color: var(--text-dim); font-style: italic; }

/* temp colors */
.temp-ok     { color: var(--ok);     }
.temp-warn   { color: var(--warn);   }
.temp-danger { color: var(--danger); }

/* ── DISK ROW ── */
.disk-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(200,212,232,0.08);
}
.disk-item  { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.disk-label { font-size: 0.8rem; opacity: 0.6; letter-spacing: 0.05em; }
.disk-value { color: var(--silver-light); font-style: italic; }

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.3rem;
}
.service-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,212,232,0.08);
}
.service-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.service-dot.ok   { background: var(--ok);     box-shadow: 0 0 6px var(--ok);     }
.service-dot.down { background: var(--danger);  box-shadow: 0 0 6px var(--danger);  }
.service-name {
  font-size: 0.85rem;
  color: var(--silver);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── MISC ── */
.refresh-row {
  margin-top: 2rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-dim);
  opacity: 0.5;
  animation: fadeUp 0.7s 0.8s ease both;
}
footer { color: var(--text-dim); animation: fadeUp 0.7s 0.9s ease both; }

/* ── CARD STAGGER ── */
.stat-card:nth-child(1) { animation-delay: 0.3s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-delay: 0.5s; }
.stat-card:nth-child(4) { animation-delay: 0.6s; }
.stat-card:nth-child(5) { animation-delay: 0.7s; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .grid          { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}