﻿/* ═══════════════════════════════════════
   FoxelixVPN — Status Page CSS
   ═══════════════════════════════════════ */

body {
    padding-top: 80px;
    min-height: 100vh;
}

/* ── Main layout ── */
.status-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

/* ════════════════════════════════════
   HERO — animated status ring
   ════════════════════════════════════ */
.status-hero {
    text-align: center;
    margin-bottom: 64px;
}

.status-pulse-ring {
    position: relative;
    width: 128px;
    height: 128px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-pulse-ring .ring {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: statusPulse 2.8s ease-out infinite;
}
.status-pulse-ring .ring-1 { width: 128px; height: 128px; }
.status-pulse-ring .ring-2 { width: 96px;  height: 96px;  animation-delay: 0.45s; }

.status-pulse-ring .icon-core {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 28px rgba(0,0,0,0.2);
}

/* Operational — purple (brand) */
.status-operational .ring         { border: 1.5px solid rgba(168,132,248,0.55); }
.status-operational .icon-core    { background: rgba(168,132,248,0.14); border: 1.5px solid rgba(168,132,248,0.45); color: #A884F8; }
/* Degraded — red */
.status-degraded .ring            { border: 1.5px solid rgba(239,68,68,0.55); }
.status-degraded .icon-core       { background: rgba(239,68,68,0.14); border: 1.5px solid rgba(239,68,68,0.45); color: #ef4444; }
/* Partial — amber */
.status-partial .ring             { border: 1.5px solid rgba(245,158,11,0.55); }
.status-partial .icon-core        { background: rgba(245,158,11,0.14); border: 1.5px solid rgba(245,158,11,0.45); color: #f59e0b; }

@keyframes statusPulse {
    0%   { transform: scale(0.55); opacity: 0.65; }
    100% { transform: scale(1.45); opacity: 0; }
}

.status-title {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 8px;
}
.status-title.operational { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.status-title.degraded    { color: #ef4444; }
.status-title.partial     { color: #f59e0b; }

.status-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.status-time-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.time-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #A884F8;
    box-shadow: 0 0 6px rgba(168,132,248,0.7);
    animation: blink 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}

/* ════════════════════════════════════
   MAINTENANCE ALERT
   ════════════════════════════════════ */
.maintenance-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 16px;
    padding: 14px 22px;
    margin-bottom: 36px;
    font-size: 0.9rem;
    color: #f59e0b;
    font-weight: 500;
}

/* ════════════════════════════════════
   SECTION LABEL
   ════════════════════════════════════ */
.section-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 18px 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ════════════════════════════════════
   SERVICES GRID — 2 columns
   ════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 48px;
}

.service-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--card-blur));
    -webkit-backdrop-filter: blur(var(--card-blur));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* top accent line */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    transition: opacity 0.3s;
}
.service-card.ok::before    { background: var(--gradient-primary); opacity: 0.7; }
.service-card.error::before { background: linear-gradient(90deg, transparent, #ef4444, transparent); opacity: 0.7; }

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.service-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.service-card.ok    .service-icon-wrap { background: rgba(168,132,248,0.12); color: #A884F8; }
.service-card.error .service-icon-wrap { background: rgba(239,68,68,0.12);  color: #ef4444; }
.service-card:hover .service-icon-wrap { transform: scale(1.08); }

.service-info { flex: 1; min-width: 0; }

.service-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 600;
    margin-top: 5px;
    padding: 2px 9px;
    border-radius: 999px;
}
.badge-ok    { background: rgba(168,132,248,0.1); color: #A884F8; }
.badge-error { background: rgba(239,68,68,0.1);  color: #ef4444; }

.badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}
.badge-dot.ok    { background: #A884F8; animation: blink 2s ease-in-out infinite; }
.badge-dot.error { background: #ef4444; }

/* ════════════════════════════════════
   VPN SERVERS GRID — 2 columns
   ════════════════════════════════════ */
.vpn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 48px;
}

.vpn-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--card-blur));
    -webkit-backdrop-filter: blur(var(--card-blur));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.vpn-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    opacity: 0.7;
}
.vpn-card.ok::before      { background: var(--gradient-primary); }
.vpn-card.error::before   { background: linear-gradient(90deg, transparent, #ef4444, transparent); }
.vpn-card.offline::before { background: linear-gradient(90deg, transparent, #9ca3af, transparent); opacity: 0.4; }

.vpn-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.vpn-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.vpn-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.vpn-card.ok      .vpn-card-icon { background: rgba(168,132,248,0.12);  color: #A884F8; }
.vpn-card.error   .vpn-card-icon { background: rgba(239,68,68,0.12);   color: #ef4444; }
.vpn-card.offline .vpn-card-icon { background: rgba(107,114,128,0.10); color: #9ca3af; }

.vpn-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.3;
}
.vpn-name-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Status pills ── */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}
.pill-ok    { background: rgba(168,132,248,0.12);  color: #A884F8; border: 1px solid rgba(168,132,248,0.25); }
.pill-error { background: rgba(239,68,68,0.12);   color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.pill-warn  { background: rgba(245,158,11,0.12);  color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }
.pill-off   { background: rgba(107,114,128,0.12); color: #9ca3af; border: 1px solid rgba(107,114,128,0.2); }

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-ok    { background: #A884F8; animation: blink 2s ease-in-out infinite; }
.dot-error { background: #ef4444; }
.dot-warn  { background: #f59e0b; }
.dot-off   { background: #9ca3af; }

/* ── Latency bar ── */
.latency-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.latency-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.latency-label .latency-ms {
    font-weight: 600;
    color: var(--text-color);
}
.latency-bar-bg {
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    overflow: hidden;
}
.latency-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
}
.fill-fast   { background: var(--gradient-primary); }
.fill-medium { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.fill-slow   { background: linear-gradient(90deg, #ef4444, #fca5a5); }

/* ════════════════════════════════════
   REFRESH COUNTDOWN
   ════════════════════════════════════ */
.refresh-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 48px;
}
.refresh-progress {
    width: 100px;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}
.refresh-progress-fill {
    height: 100%;
    width: 100%;
    background: var(--primary-color);
    border-radius: 999px;
    transform-origin: left;
    animation: countdown 60s linear forwards;
}
@keyframes countdown {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* ════════════════════════════════════
   FOOTER NOTE
   ════════════════════════════════════ */
.status-footer-note {
    text-align: center;
    font-size: 0.83rem;
    color: var(--text-muted);
    padding: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.status-footer-note .sep { opacity: 0.35; }
.status-footer-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}
.status-footer-note a:hover { opacity: 0.75; }

/* ════════════════════════════════════
   ENTRANCE ANIMATIONS
   ════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeInUp 0.5s ease forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.10s; }
.fade-in:nth-child(3) { animation-delay: 0.15s; }
.fade-in:nth-child(4) { animation-delay: 0.20s; }
.fade-in:nth-child(5) { animation-delay: 0.25s; }
.fade-in:nth-child(6) { animation-delay: 0.30s; }
.fade-in:nth-child(7) { animation-delay: 0.35s; }
.fade-in:nth-child(8) { animation-delay: 0.40s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: none; }
}

/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */
@media (max-width: 620px) {
    .services-grid { grid-template-columns: 1fr; }
    .vpn-grid      { grid-template-columns: 1fr; }
    .status-title  { font-size: 1.6rem; }
    .status-page   { padding: 40px 16px 60px; }
}
