/* MyHealthBuddy.AI — light theme for the main site pages.
   Each page keeps its own <style> (written for the original dark theme); this
   file is linked after it and switches the shared colour variables to the
   warm off-white palette used by The Pulse (assets/blog.css). Rules below fix
   the few places that hard-code dark-theme colours. */

:root {
  --bg: #f6f4ef; --bg2: #efece4; --surface: #ffffff; --surface2: #faf8f3;
  --border: #e5e1d6; --border2: #d6d0c1;
  --text: #1b2230; --text2: #434c5c; --text3: #6b7280;
  /* Accents used as text need darker shades on a light page. Gradients and
     buttons keep the bright brand colours, which are written as hex. */
  --green: #0b7f5a; --blue: #2563eb; --sky: #0369a1; --purple: #6d28d9;
  --cyan: #0e7490; --amber: #b45309; --gold: #b45309; --red: #c2410c; --orange: #c2410c;
}
body { background: var(--bg) !important; color: var(--text); }

/* Top menu bar (was a dark translucent strip) */
nav, header nav { background: rgba(246,244,239,0.92) !important; border-bottom: 1px solid var(--border) !important; }
nav .nav-links a { color: var(--text2); }
nav .nav-links a:hover { color: var(--text); }

/* Store buttons: icons were hard-coded white */
.store-btn, .store-btn-lg { background: var(--surface) !important; border-color: var(--border2) !important; color: var(--text) !important; }
.store-btn svg, .store-btn-lg svg { color: var(--text) !important; }

/* The phone mockups show the app itself, so they keep the app's dark look */
.phone { box-shadow: 0 30px 60px rgba(27,34,48,0.18) !important; }
.phone, .phone * {
  --bg: #050d1a; --bg2: #070f1e; --surface: #0d1a2e; --surface2: #0f1f35;
  --border: rgba(255,255,255,0.07); --border2: rgba(255,255,255,0.12);
  --text: #e8edf5; --text2: #94a3b8; --text3: #64748b;
  --green: #10b981; --blue: #3b82f6; --sky: #0ea5e9; --purple: #8b5cf6;
  --cyan: #06b6d4; --amber: #f59e0b;
}

/* AI chat bubbles outside the phones: light bubble, dark text */
.mock-msg.ai { background: var(--surface2) !important; border: 1px solid var(--border); color: var(--text2) !important; }

/* Hero glows are tuned for a dark page */
.hero-bg::before, .hero-bg::after { opacity: 0.35; }

/* Callouts that hard-code light text */
.note strong, .highlight-box strong { color: var(--text) !important; }
.emergency, .emergency * { color: #991b1b !important; }
.warning-box, .warning-box * { color: #92400e !important; }

/* Labels that hard-code bright brand colours as text */
.bm-tag { filter: brightness(0.72) saturate(1.2); }
.badge-amber { color: #92400e !important; }
.badge-red { color: #b91c1c !important; }

/* Tables and badges */
.matrix-table tr:hover td { background: rgba(27,34,48,0.03) !important; }
.badge, .tag { border-color: var(--border2); }
