/* aicrashindex styles.css - always dark (aibondwatch is the light sister site) */

:root {
  --bg: #0f1115;
  --text: #e6e8eb;
  --muted: #b8bdc4;
  --accent: #f0a030;
  --btn-border: #333a44;
  --bar: #171a20;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

/* header */
.site-header { background: var(--bar); padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #262b33; }
.site-header h1 { margin: 0; font-size: 1.5em; font-weight: 600; }
.site-header h1 a { color: inherit; text-decoration: none; }
.site-header .tagline { color: var(--muted); font-size: 0.95em; }

/* timeframe toggle */
.tf-switch { display: flex; gap: 6px; justify-content: center; margin: 0 0 8px; }
.tf-switch button {
  font: 600 12px system-ui, Arial, sans-serif; padding: 3px 12px; border-radius: 4px;
  border: 1px solid var(--btn-border); background: transparent; color: var(--muted); cursor: pointer; }
.tf-switch button.active { background: var(--accent); border-color: var(--accent); color: #1a1205; }

/* panels - stacked; chart takes most of the row, text beside it */
.market-panel { max-width: 1240px; margin: 28px auto 36px; padding: 0 24px; }
.market-panel h2 { text-align: center; font-size: 1.4em; font-weight: 600; margin: 6px 0 14px; }
.chart-row { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.chart-row .chart-col { flex: 3 1 600px; min-width: 300px; }
.chart-row .chart-side { flex: 1 1 260px; min-width: 240px; }
.chart-col img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 6px; }
.chart-side .side-line { font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: 6px; }

/* footer */
.site-footer { background: var(--bar); color: var(--muted); padding: 40px 20px; font-size: 0.9em; margin-top: auto; border-top: 1px solid #262b33; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-col { flex: 1 1 220px; min-width: 200px; }
.footer-col h4 { font-size: 1em; margin-bottom: 10px; font-weight: 600; color: var(--text); }

@media (max-width: 480px) {
  .market-panel { padding: 0 16px; }
  .chart-row .chart-col, .chart-row .chart-side { min-width: 0; }
}
