/* ============================================================
   Strata base.css
   Shared shell styles for the public dashboard.
   ============================================================ */

/* VARIABLES */
:root {
    /* Background layers */
    --bg:          #050508;
    --bg-surface:  #0A0A0F;
    --bg-card:     #0E0E14;
    --bg-card-alt: #121218;

    /* State colors - non-financial */
    --amber:       #C8973A;
    --amber-dim:   #8A6420;
    --amber-pale:  rgba(200,151,58,0.08);
    --amber-line:  rgba(200,151,58,0.28);
    --amber-text:  #E2B870;

    --cyan:        #3A8FA0;
    --cyan-dim:    #265F6E;
    --cyan-pale:   rgba(58,143,160,0.07);
    --cyan-line:   rgba(58,143,160,0.25);
    --cyan-text:   #6ABECE;

    --green:       #2FB86A;
    --green-dim:   #1E7A49;
    --green-pale:  rgba(47,184,106,0.11);
    --green-line:  rgba(47,184,106,0.38);
    --green-text:  #79E6A5;

    --slate:       #4A4A58;
    --slate-dim:   #2E2E38;
    --slate-pale:  rgba(74,74,88,0.06);
    --slate-line:  rgba(74,74,88,0.3);
    --slate-text:  #9898AA;

    /* Typography */
    --text-hi:     #E8ECF0;
    --text:        #9AAABF;
    --text-dim:    #6A7A90;
    --text-faint:  #566578;

    /* Borders */
    --border:      rgba(255,255,255,0.055);
    --border-hi:   rgba(255,255,255,0.1);

    /* Fonts */
    --mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Layout */
    --radius: 0px;   /* Sharp corners - terminal feel */
    --col-w:  360px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--mono);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Scanline overlay */
body::after {
    content: '';
    position: fixed; inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.03) 2px,
        rgba(0,0,0,0.03) 3px
    );
    pointer-events: none;
    z-index: 9998;
}

/* TOPBAR */
.topbar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    height: 40px; padding: 0 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
}
.topbar-left  { display: flex; align-items: center; gap: 24px; }
.topbar-right { font-variant-numeric: tabular-nums; }

.pulse-dot {
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 4px var(--amber-dim);
    animation: pulse 2.5s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* HEADER */
.site-header {
    padding: 28px 28px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--bg-surface);
}
.logo {
    font-size: 21px;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: 0.08em;
    text-shadow: 0 0 18px rgba(200,151,58,0.08);
}
.logo-cursor {
    display: inline-block;
    width: 3px; height: 16px;
    background: var(--text-hi);
    vertical-align: middle;
    margin-left: 1px;
    animation: blink 1.1s step-end infinite;
    opacity: 0.95;
    box-shadow: 0 0 8px rgba(232,236,240,0.2);
    transform: translateY(-1px);
}
@keyframes blink { 0%,100%{opacity:0.8} 50%{opacity:0} }
.logo-sub {
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.header-right {
    text-align: right;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    line-height: 2.2;
}
.header-right strong { color: var(--text); }

/* DISCLAIMER */
.disclaimer {
    padding: 8px 28px;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: rgba(200,151,58,0.65);
    border-bottom: 1px solid rgba(200,151,58,0.1);
    background: rgba(200,151,58,0.03);
    text-align: center;
}

.runtime-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    letter-spacing: 0.04em;
    background: var(--bg-surface);
    color: var(--text);
}
.runtime-pill {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid var(--border-hi);
}
.runtime-banner.rs-loading .runtime-pill {
    color: var(--cyan-text);
    border-color: var(--cyan-line);
    background: var(--cyan-pale);
}
.runtime-banner.rs-live .runtime-pill {
    color: var(--amber-text);
    border-color: var(--amber-line);
    background: var(--amber-pale);
}
.runtime-banner.rs-degraded .runtime-pill {
    color: #E8C57E;
    border-color: rgba(232,197,126,0.3);
    background: rgba(232,197,126,0.08);
}
.runtime-banner.rs-error .runtime-pill {
    color: #E48E8E;
    border-color: rgba(200,68,68,0.28);
    background: rgba(200,68,68,0.08);
}

