/* ==========================================
   HOOKED - Status Page
   1:1 Dashboard.rip replica
   ========================================== */

:root {
    --st-green: #00ff88;
    --st-green-dim: rgba(0, 255, 136, 0.05);
    --st-green-glow: rgba(0, 255, 136, 0.4);
    --st-orange: #ff9500;
    --st-orange-dim: rgba(255, 149, 0, 0.05);
    --st-orange-glow: rgba(255, 149, 0, 0.4);
    --st-red: #ff3b3b;
    --st-red-dim: rgba(255, 59, 59, 0.05);
    --st-red-glow: rgba(255, 59, 59, 0.4);
    --st-border: #2e2e2e;
    --st-mono: 'JetBrains Mono', 'Courier New', monospace;
    --st-text: #e4e4ea;
    --st-dim: #5c5f6a;
}

/* ---- Everything monospace ---- */
.st-mono {
    font-family: var(--st-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dim { color: var(--st-dim); }
.st-green { color: var(--st-green); }

/* ---- Dots ---- */
.st-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.st-dot.green {
    background: var(--st-green);
    box-shadow: 0 0 6px var(--st-green-glow);
    animation: stPulse 2.5s ease-in-out infinite;
}

.st-dot.orange {
    background: var(--st-orange);
    box-shadow: 0 0 6px var(--st-orange-glow);
    animation: stPulse 2s ease-in-out infinite;
}

.st-dot.red {
    background: var(--st-red);
    box-shadow: 0 0 6px var(--st-red-glow);
}

.st-dot-inline {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
}

.st-dot-inline.green {
    background: var(--st-green);
    box-shadow: 0 0 4px var(--st-green-glow);
}

@keyframes stPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ---- Top Banner ---- */
.st-banner {
    padding-top: calc(var(--nav-height) + var(--space-lg));
    padding-bottom: var(--space-md);
}

.st-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.st-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.st-banner-right {
    display: flex;
    gap: var(--space-2xl);
}

/* ---- Main Section ---- */
.st-main {
    padding: var(--space-md) 0 var(--space-3xl);
}

.st-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    border: 1px solid var(--st-border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Subtle cyan glow behind container — like homepage hero */
.st-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(0, 229, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Left Panel ---- */
.st-left {
    background: rgba(255, 255, 255, 0.015);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    border-right: 1px solid var(--st-border);
    position: relative;
    z-index: 1;
}

.st-ring-wrap {
    position: relative;
    width: 170px;
    height: 170px;
}

.st-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.st-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 4;
}

.st-ring-fill {
    fill: none;
    stroke: var(--st-green);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
    filter: drop-shadow(0 0 8px var(--st-green-glow));
}

.st-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.st-ring-pct {
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.st-ring-sub {
    font-family: var(--st-mono);
    font-size: 0.45rem;
    letter-spacing: 0.15em;
    color: var(--st-dim);
}

/* Stats */
.st-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--st-border);
    width: 100%;
    justify-content: center;
}

.st-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.st-stat-lbl {
    font-family: var(--st-mono);
    font-size: 0.48rem;
    letter-spacing: 0.08em;
    color: var(--st-dim);
}

.st-stat-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.st-stat-val.green { color: var(--st-green); }
.st-stat-val.orange { color: var(--st-orange); }
.st-stat-val.red { color: var(--st-red); }

/* Refresh */
.st-refresh {
    font-family: var(--st-mono);
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.9rem;
    background: transparent;
    border: 1px solid var(--st-border);
    border-radius: 4px;
    color: var(--st-dim);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 7px;
}

.st-refresh:hover {
    border-color: var(--st-green);
    color: var(--st-green);
}

.st-refresh.spin i { animation: stSpin 0.5s linear; }
@keyframes stSpin { to { transform: rotate(360deg); } }

/* ---- Right Panel ---- */
.st-right {
    background: rgba(255, 255, 255, 0.015);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.st-right-header {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--st-border);
}

.st-rows { flex: 1; }

/* ---- Row ---- */
.st-row {
    display: grid;
    grid-template-columns: 50px 1fr auto auto;
    align-items: center;
    gap: 1.2rem;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.15s ease;
}

.st-row:last-child { border-bottom: none; }
.st-row:hover { background: rgba(255, 255, 255, 0.01); }

/* Skeleton */
.st-skeleton {
    height: 52px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.01), transparent);
    background-size: 600px 100%;
    animation: stShimmer 2s ease-in-out infinite;
}
@keyframes stShimmer {
    0% { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

/* Index + dot */
.st-row-idx {
    display: flex;
    align-items: center;
    gap: 8px;
}

.st-row-num {
    font-family: var(--st-mono);
    font-size: 0.6rem;
    color: var(--st-dim);
    letter-spacing: 0.04em;
}

/* Info */
.st-row-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.st-row-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--st-text);
}

.st-row-sub {
    font-family: var(--st-mono);
    font-size: 0.52rem;
    color: var(--st-dim);
    letter-spacing: 0.04em;
}

/* ---- Uptime Bars — dashboard.rip barcode style ---- */
.st-row-bars {
    display: flex;
    gap: 1.5px;
    align-items: flex-end;
    height: 22px;
}

.st-bar {
    width: 2px;
    border-radius: 0;
    min-height: 2px;
}

.st-bar.green {
    background: var(--st-green);
    box-shadow: 0 0 4px var(--st-green-glow), 0 0 1px var(--st-green);
}

.st-bar.orange {
    background: var(--st-orange);
    box-shadow: 0 0 4px var(--st-orange-glow), 0 0 1px var(--st-orange);
}

.st-bar.red {
    background: var(--st-red);
    box-shadow: 0 0 4px var(--st-red-glow), 0 0 1px var(--st-red);
}

/* ---- Badge — border style like dashboard.rip ---- */
.st-badge {
    font-family: var(--st-mono);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 2px;
    white-space: nowrap;
}

.st-badge.green {
    background: var(--st-green-dim);
    border: 1px solid var(--st-green);
    color: var(--st-green);
}

.st-badge.orange {
    background: var(--st-orange-dim);
    border: 1px solid var(--st-orange);
    color: var(--st-orange);
}

.st-badge.red {
    background: var(--st-red-dim);
    border: 1px solid var(--st-red);
    color: var(--st-red);
}

/* ---- Footer Bar ---- */
.st-footer-bar {
    padding: var(--space-xs) 0 var(--space-xl);
}

.st-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    padding: var(--space-sm) 0;
}

/* Empty */
.st-empty {
    padding: 3rem;
    text-align: center;
    color: var(--st-dim);
    font-family: var(--st-mono);
    font-size: 0.7rem;
}

.st-empty i {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    display: block;
}

/* ---- Responsive ---- */
@media (max-width: 968px) {
    .st-container {
        grid-template-columns: 1fr;
    }

    .st-left {
        border-right: none;
        border-bottom: 1px solid var(--st-border);
        max-width: 340px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .st-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    .st-banner-right {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .st-row {
        grid-template-columns: 40px 1fr auto;
        gap: 0.8rem;
        padding: 0.75rem 1rem;
    }

    .st-row-bars { display: none; }
    .st-stats { gap: 1.5rem; }
}
