/* aibondwatch styles.css - same look as etfswing; theme follows the visitor's system setting */

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/quicksand/quicksand-regular.woff2') format('woff2');
}

:root {
  --bg: #f9fafb;
  --text: #334155;
  --muted: #64748b;
  --strong: #334155;
  --btn-border: #cbd5e1;
  --tf-active-bg: #0f172a;
  --tf-active-text: #fff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --strong: #e5e7eb;
    --btn-border: #334155;
    --tf-active-bg: #4ade80;
    --tf-active-text: #052e16;
  }
}

body {
  font-family: 'Quicksand', "Segoe UI", "SF Pro", "Ubuntu", Arial, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

/* header */
.site-header { background: #0f172a; color: #fff; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; }
.site-header h1 { margin: 0; font-size: 1.5em; font-weight: 600; }
.site-header h1 a { color: inherit; text-decoration: none; }
.site-header nav { display: flex; gap: 15px; }
.site-header nav a { color: #fff; text-decoration: none; font-weight: 600; }
.site-header nav a:hover { text-decoration: underline; }

/* timeframe toggle */
.tf-switch { display: flex; gap: 6px; justify-content: center; margin: 0 0 8px; }
.tf-switch button {
  font: 600 12px 'Quicksand', 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(--tf-active-bg); border-color: var(--tf-active-bg); color: var(--tf-active-text); }

/* 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; }
.chart-side .side-line { font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: 6px; }

/* footer */
.site-footer { background: #0f172a; color: #eee; padding: 40px 20px; font-size: 0.9em; margin-top: auto; }
.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; }
.footer-col a { color: #ddd; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }

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