/* TradeLytics design system.
   Direction: a clean, confident market-data reader -- legible at a glance
   on a phone (this is the whole point: SEO visitors land on a phone,
   check one number, leave or bookmark). Deep teal-navy base (distinct
   from any other product's palette), single amber accent for the brand
   mark and CTAs, up/down colors doing real work (green/red on signal,
   never decorative). Mobile-first: base styles target narrow screens,
   wider layouts added via min-width media queries, not the reverse. */

:root {
    --bg: #0B1420;
    --surface: #111E2E;
    --surface-2: #16283C;
    --border: #223349;
    --text: #E8EEF5;
    --text-muted: #8FA3B8;
    --accent: #F0A94E;
    --accent-ink: #14110A;
    --up: #34C77B;
    --down: #EF5A5A;
    --flat: #8FA3B8;
    --radius: 10px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell { max-width: 1080px; margin: 0 auto; padding: 16px 16px 60px; }

.topbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; border-bottom: 1px solid var(--border); margin-bottom: 18px;
}
.brand { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.brand .accent-dot { color: var(--accent); }
.tagline { color: var(--text-muted); font-size: 12px; display: none; }

.hero { text-align: center; padding: 20px 0 24px; }
.hero h1 { font-size: 22px; margin: 0 0 6px; }
.hero p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---- Symbol grid (index page) ---- */
.symbol-grid {
    display: grid; grid-template-columns: 1fr; gap: 12px;
}
.symbol-card {
    display: block; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 18px; transition: border-color 0.15s;
}
.symbol-card:hover { border-color: var(--accent); text-decoration: none; }
.symbol-card .row { display: flex; justify-content: space-between; align-items: center; }
.symbol-card .sym-name { font-weight: 700; font-size: 16px; color: var(--text); }
.symbol-card .sym-display { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.symbol-card .sym-score { font-family: var(--font-mono); font-size: 22px; font-weight: 700; }
.symbol-card .sym-signal { font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; margin-top: 4px; }
.symbol-card .sym-meta { color: var(--text-muted); font-size: 11px; margin-top: 8px; }

.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--flat); }

/* ---- Detail page ---- */
.panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; margin-bottom: 14px;
}
.sentiment-hero { text-align: center; }
.sentiment-hero .label { color: var(--text-muted); font-size: 13px; }
.sentiment-hero .word { font-size: 32px; font-weight: 800; margin: 6px 0; letter-spacing: -0.01em; }
.sentiment-hero .score { font-family: var(--font-mono); font-size: 20px; color: var(--text-muted); }
.gauge-track { background: var(--surface-2); border-radius: 999px; height: 10px; overflow: hidden; margin: 16px 0 10px; }
.gauge-fill { height: 100%; border-radius: 999px; }
.gauge-fill.up { background: var(--up); }
.gauge-fill.down { background: var(--down); }
.gauge-fill.flat { background: var(--flat); }
.meta-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-ok { background: rgba(52,199,123,.15); color: var(--up); }
.badge-warn { background: rgba(240,169,78,.15); color: var(--accent); }

.component-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.component-tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.component-tile .comp-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.comp-value { font-family: var(--font-mono); font-size: 17px; margin-top: 4px; }

.watchlist-btn {
    font: inherit; font-size: 13px; font-weight: 700; padding: 8px 16px;
    border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2);
    color: var(--text); cursor: pointer;
}
.watchlist-btn.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.disclaimer { color: var(--text-muted); font-size: 11px; text-align: center; margin-top: 30px; line-height: 1.6; }

/* ---- Wider screens ---- */
@media (min-width: 640px) {
    .tagline { display: block; }
    .symbol-grid { grid-template-columns: repeat(2, 1fr); }
    .component-grid { grid-template-columns: repeat(5, 1fr); }
    .hero h1 { font-size: 26px; }
}
@media (min-width: 900px) {
    .symbol-grid { grid-template-columns: repeat(3, 1fr); }
}
