/* ════════════════════════════════════════════════
   NEO CRYSTAL TOKYO — vpn.css
   VPN status page specific styles only.
   Requires global.css to be loaded first.
   ════════════════════════════════════════════════ */

/* ── PAGE COLOR VARIABLES ── */
:root {
  --pluto-dark:   #1a0a2e;
  --pluto-deep:   #2d1b4e;
  --pluto-mid:    #4a2d6e;
  --garnet:       #8b1a2e;
  --garnet-light: #c4304a;
  --text-light:   #e8d8ff;
  --connected:    #4caf82;
  --disconnected: #c4304a;
}

html, body { color: #e8eef8; cursor: none; }
*, *::before, *::after { cursor: none; }

/* ── BACKGROUND ── */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background: url('../images/vpn-bg.png') center center / cover no-repeat;
  filter: blur(8px) brightness(0.35) saturate(1.5);
  transform: scale(1.05);
}
.bg-overlay {
  position: fixed; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,   rgba(45,27,78,0.7)  0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(26,106,90,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%,   rgba(139,26,46,0.2) 0%, transparent 60%),
    rgba(15, 5, 25, 0.6);
  pointer-events: none;
}

/* ── PAGE ── */
.page { padding: 2.5rem 1.5rem 4rem; }

/* ── HEADER ── */
header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeDown 0.9s ease both;
}

.pluto-symbol {
  width: 60px; height: 60px;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 16px rgba(196,48,74,0.8));
  animation: float 4s ease-in-out infinite;
}

.title {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--garnet-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 12px rgba(196,48,74,0.4));
}
.subtitle {
  margin-top: 0.6rem;
  font-size: 1rem;
  color: var(--text-light);
  opacity: 0.75;
}
.divider {
  width: 160px;
  background: linear-gradient(90deg, transparent, var(--garnet-light), var(--gold), var(--garnet-light), transparent);
}

/* ── STATUS BADGE ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  border: 1px solid;
  transition: all 0.5s ease;
  animation: fadeUp 0.8s 0.2s ease both;
}
.status-badge.active   { background: rgba(76,175,130,0.15);  border-color: rgba(76,175,130,0.5);  color: var(--connected);    }
.status-badge.inactive { background: rgba(196,48,74,0.15);   border-color: rgba(196,48,74,0.5);   color: var(--disconnected); }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: dot-pulse 2s ease-in-out infinite;
}
.active .status-dot   { background: var(--connected);    }
.inactive .status-dot { background: var(--disconnected); }

/* ── STATS ROW ── */
.stats-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s 0.3s ease both;
}
.stat-pill {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245,216,126,0.2);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
}
.stat-pill strong {
  font-style: normal;
  color: var(--gold);
  
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

/* ── PEERS ── */
.peers-label {
  
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  opacity: 0.7;
  margin-bottom: 1.2rem;
  text-align: center;
  animation: fadeUp 0.8s 0.4s ease both;
}
.peers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  width: 100%;
  max-width: 900px;
}

/* ── PEER CARD ── */
.peer-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245,216,126,0.2);
  border-radius: 18px;
  padding: 1.5rem;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s ease;
  animation: fadeUp 0.7s ease both;
}
.peer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(196,48,74,0.2);
}
.peer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 18px 18px 0 0;
}
.peer-card.connected::before    { background: linear-gradient(90deg, var(--connected), transparent); }
.peer-card.disconnected::before { background: linear-gradient(90deg, var(--garnet-light), transparent); }

.peer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.peer-name {
  
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.peer-status {
  font-size: 0.72rem;
  font-style: italic;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
}
.peer-status.connected    { color: var(--connected);    background: rgba(76,175,130,0.15);  border: 1px solid rgba(76,175,130,0.3);  }
.peer-status.disconnected { color: var(--garnet-light); background: rgba(196,48,74,0.15);   border: 1px solid rgba(196,48,74,0.3);   }

.peer-rows  { display: flex; flex-direction: column; gap: 0.6rem; }
.peer-row   { display: flex; justify-content: space-between; align-items: center; }
.peer-label { font-size: 0.75rem; font-style: italic; color: var(--text-light); opacity: 0.65; }
.peer-value {
  font-size: 0.8rem;
  color: var(--text-light);
  font-family: monospace;
  letter-spacing: 0.03em;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(245,216,126,0.1);
}
.transfer-item  { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; flex: 1; }
.transfer-label { font-size: 0.68rem; font-style: italic; color: var(--text-light); opacity: 0.55; letter-spacing: 0.05em; }
.transfer-value {  font-size: 0.7rem; color: var(--gold); }

/* ── MISC ── */
.no-peers {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  opacity: 0.5;
  padding: 3rem;
  animation: fadeUp 0.7s 0.5s ease both;
}
.refresh-row {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-light);
  opacity: 0.45;
  animation: fadeUp 0.7s 0.6s ease both;
}
footer { color: var(--text-light); animation: fadeUp 0.7s 0.7s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
  .stats-row { flex-direction: column; align-items: center; }
  .peers     { grid-template-columns: 1fr; }
}