/* assets/css/status.css */

:root {
    --bg-core: #050505;
    --bg-card: #0F0F11;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #FFFFFF;
    --text-muted: #888888;
    
    /* Status Colors */
    --accent: #FF3300; 
    --success: #10b981;
    --warn: #eab308;
    --danger: #ef4444;
    
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body.st-body {
    background-color: var(--bg-core);
    color: var(--text-main);
    font-family: var(--font-sans);
    margin: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.st-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =========================================
   NAVIGATION
   ========================================= */
.st-nav {
    padding: 30px 0;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.st-nav-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; }

.st-brand { 
    font-family: var(--font-display); 
    font-weight: 700; 
    font-size: 20px; 
    color: #fff; 
    text-decoration: none; 
    display: flex; align-items: center; gap: 4px; 
}

.st-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

.st-nav-right { display: flex; align-items: center; gap: 40px; }

.st-link { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-size: 14px; 
    transition: color 0.3s; 
}
.st-link:hover { color: #fff; }

.st-btn-outlined { 
    padding: 10px 24px; 
    border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 100px; 
    color: #fff; 
    text-decoration: none; 
    font-size: 13px; 
    font-weight: 500; 
    transition: all 0.3s; 
}
.st-btn-outlined:hover { border-color: #fff; background: #fff; color: #000; }

/* =========================================
   HERO SECTION
   ========================================= */
.st-hero { padding: 180px 0 100px; }
.st-hero-flex { display: flex; align-items: center; justify-content: space-between; gap: 60px; }

.st-badge {
    font-family: var(--font-mono); font-size: 12px; 
    color: var(--success); text-transform: uppercase; 
    letter-spacing: 0.1em; margin-bottom: 20px; 
    display: flex; align-items: center; gap: 8px;
}

.st-pulse {
    width: 8px; height: 8px; background: var(--success); border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.st-title { 
    font-family: var(--font-display); 
    font-size: 4rem; 
    line-height: 1; 
    margin: 0 0 30px 0; 
    letter-spacing: -0.02em; 
}

.st-lead { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    max-width: 450px; 
    line-height: 1.6; 
}

/* --- FAKE VISUAL 1: Latency Graph --- */
.st-hero-visual { width: 400px; }

.st-graph-card {
    background: #0F0F11;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.st-graph-header { 
    display: flex; justify-content: space-between; 
    margin-bottom: 20px; font-family: var(--font-mono); 
}

.st-graph-label { font-size: 10px; color: #666; }
.st-graph-val { color: var(--success); font-weight: 700; }

.st-bars-container {
    height: 100px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    border-bottom: 1px solid #222;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.st-bar {
    flex: 1;
    background: #222;
    border-radius: 2px 2px 0 0;
    animation: barHeight 1.5s infinite ease-in-out alternate;
}

/* Randomize animations for organic look */
.st-bar:nth-child(odd) { background: #333; animation-duration: 1.2s; }
.st-bar:nth-child(even) { background: #2a2a2a; animation-duration: 1.8s; }
.st-bar:nth-child(3n) { animation-duration: 1.4s; }
.st-bar:nth-child(4n) { background: var(--success); opacity: 0.5; } /* Spikes */

@keyframes barHeight {
    0% { height: 20%; }
    100% { height: 80%; }
}

.st-graph-footer { 
    display: flex; justify-content: space-between; 
    font-size: 9px; color: #555; font-family: var(--font-mono); 
    text-transform: uppercase; 
}

/* =========================================
   DETAILED STATUS SECTION
   ========================================= */
.st-section { padding: 80px 0; border-top: 1px solid var(--border-color); }

.st-section-header { 
    display: flex; justify-content: space-between; 
    align-items: flex-end; margin-bottom: 60px; 
}

.st-section-header h2 { font-family: var(--font-display); font-size: 2rem; margin: 0; }
.st-uptime-badge { 
    font-family: var(--font-mono); font-size: 12px; 
    color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); 
    padding: 6px 12px; border-radius: 4px; 
}

.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.st-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 8px; padding: 30px;
    display: flex; flex-direction: column; gap: 15px;
}

.st-card-top { display: flex; align-items: center; gap: 15px; }

.st-icon { 
    width: 36px; height: 36px; background: #1a1a1a; 
    border-radius: 6px; display: flex; align-items: center; 
    justify-content: center; color: #fff; font-size: 14px; 
}

.st-card h3 { font-family: var(--font-display); font-size: 18px; margin: 0; flex: 1; }

.st-status {
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    text-transform: uppercase; padding: 4px 8px; border-radius: 4px;
}
.st-status.ok { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.st-status.warn { background: rgba(234, 179, 8, 0.1); color: var(--warn); }
.st-status.down { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

.st-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* --- FAKE VISUAL 2: Mini Heatmap --- */
.st-mini-heatmap {
    display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; padding-top: 20px;
}
.st-heat-dot {
    width: 8px; height: 8px; background: #1a1a1a; border-radius: 2px;
}
/* Simulate history */
.st-heat-dot:nth-child(n) { background: #133c29; } /* Dark Green */
.st-heat-dot:nth-child(2n) { background: #185e3d; } /* Mid Green */
.st-heat-dot:nth-child(3n) { background: #10b981; } /* Bright Green */

/* --- FAKE VISUAL 3: Rack Load (NO FLASHING) --- */
.st-rack-visual { 
    display: flex; 
    gap: 4px; 
    height: 12px; 
    margin-top: auto; 
    padding-top: 20px; 
}

.st-rack-unit { 
    flex: 1; 
    background: #222; 
    border-radius: 2px; 
    position: relative; 
    overflow: hidden; 
}

/* Solid Green Units */
.st-rack-unit.active span {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: var(--success); 
    opacity: 1; /* Solid, fully visible */
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3); /* Static glow */
}

/* Solid Orange Units */
.st-rack-unit.warn span {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: #f97316; /* Explicit Solid Orange */
    opacity: 1; /* Solid, fully visible */
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.3); /* Static glow */
}

/* =========================================
   INCIDENTS SECTION
   ========================================= */
.st-darker { background: #020202; }
.st-section-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 40px; }

.st-incident-list { border-left: 1px solid var(--border-color); padding-left: 30px; }

.st-incident { position: relative; margin-bottom: 40px; }
.st-incident::before {
    content: ''; position: absolute; left: -35px; top: 5px;
    width: 9px; height: 9px; background: #222; 
    border: 1px solid var(--border-color); border-radius: 50%;
}

.st-inc-date { font-family: var(--font-mono); font-size: 11px; color: #555; margin-bottom: 5px; }
.st-inc-title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 5px; }
.st-incident p { color: var(--text-muted); font-size: 14px; margin: 0 0 10px 0; }
.st-inc-status { font-size: 11px; font-weight: 600; text-transform: uppercase; }
.st-inc-status.resolved { color: var(--success); }

/* =========================================
   FOOTER
   ========================================= */
.st-footer { 
    padding: 60px 0; border-top: 1px solid var(--border-color); 
    font-size: 12px; color: #555; 
}
.st-footer-flex { display: flex; justify-content: space-between; }

.st-sub-link { 
    color: var(--text-muted); 
    text-decoration: none; 
    border-bottom: 1px dotted #555; 
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .st-hero-flex { flex-direction: column; align-items: flex-start; }
    .st-hero-visual { width: 100%; }
    .st-grid { grid-template-columns: 1fr; }
}