/* ═══════════════════════════════════════════════════════════════════
   HIKARI STATUS PREMIUM — metric cards pulse
   Uses base.css variables
   ═══════════════════════════════════════════════════════════════════ */

@import url('base.css');

/* Status page specific background - same as home */
body {
  background:
    radial-gradient(900px 500px at 20% -10%, rgba(108, 99, 255, 0.22), transparent 60%),
    radial-gradient(700px 400px at 90% 30%, rgba(0, 242, 255, 0.12), transparent 60%),
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(10, 10, 15, 0.92)),
    url('https://files.catbox.moe/hgxz9h.png') no-repeat center center fixed;
  background-size: cover;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(0, 0, 0, 0.58), rgba(10, 10, 15, 0.92)),
    url('https://files.catbox.moe/hgxz9h.png') center/cover no-repeat;
  animation: kenBurns 28s ease-in-out infinite alternate;
  will-change: transform;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 500px at 75% 18%, rgba(108, 99, 255, 0.28), transparent 60%),
    radial-gradient(900px 600px at 10% 85%, rgba(0, 242, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.status-container {
  position: relative;
  z-index: 2;
  padding: 110px 20px 60px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  animation: fadeInUp 0.7s var(--ease) both;
}

.status-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.status-subtitle {
  color: var(--text-dim);
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

/* ── cards métricas ── */
.card,
.status-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid var(--glass-border);
  padding: 26px 20px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.34s var(--ease), border-color 0.3s, box-shadow 0.3s;
  animation: fadeInUp 0.6s var(--ease) both;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.10s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.20s; }

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(108, 99, 255, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(108, 99, 255, 0.14) inset, 0 0 22px rgba(108, 99, 255, 0.18);
}

.card:hover::before {
  transform: translateX(120%);
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 10px rgba(108, 99, 255, 0.35));
  transition: transform 0.3s var(--ease);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(-4deg);
}

.card h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9aa0c8;
  font-weight: 700;
}

.card span {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.card small {
  font-size: 0.78rem;
  color: #7d80a8;
}

/* pulse dot */
.online-pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(46, 204, 113, 0.4);
  animation: hkPulse 2s infinite;
  vertical-align: middle;
}

/* status indicator bar */
.status-card.online {
  border-color: rgba(46, 204, 113, 0.35);
}

.status-card.offline {
  border-color: rgba(255, 80, 80, 0.3);
}

.status-card .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  background: var(--success);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.6);
  animation: hkPulse 2s infinite;
}

/* indicator class used inline */
.indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  transition: transform 0.3s, box-shadow 0.3s;
}

.indicator.online {
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: hkPulse 1.6s ease infinite;
}

.indicator.offline {
  background: var(--error);
  box-shadow: 0 0 10px var(--error);
}

/* stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* last updated */
.last-updated {
  text-align: center;
  color: var(--text-muted);
  margin-top: 30px;
  font-size: 0.9rem;
}

/* updates/log */
.updates {
  margin-top: 56px;
  text-align: left;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.updates h2 {
  text-align: center;
  margin-bottom: 22px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.update {
  position: relative;
  margin-bottom: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 14px;
  transition: transform 0.28s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.update:hover {
  background: rgba(108, 99, 255, 0.10);
  border-color: rgba(108, 99, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.update-date {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7d80a8;
  display: block;
  margin-bottom: 6px;
}

/* btn-back */
.btn-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn-back:hover {
  color: var(--primary);
  transform: translateX(-4px);
}

/* skeleton for status */
.sk-inline {
  display: inline-block;
  width: 88px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.14) 37%, rgba(255, 255, 255, 0.06) 63%);
  background-size: 400% 100%;
  animation: hkShim 1.1s ease infinite;
}

@keyframes hkShim {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .status-title {
    font-size: 1.7rem;
  }
  .status-container {
    padding-top: 80px;
  }
}