/* Coach Bhai blog — light theme, Healthifyme-inspired.
   Matches the product's light-theme tokens from src/index.css. */
:root {
  --bg-base:        #F2F4F8;
  --bg-surface:     #FFFFFF;
  --bg-cream:       #FAF6EF;
  --text-primary:   #18140E;
  --text-secondary: #4A4339;
  --text-muted:     #7A7065;
  --border:         #E6E1D8;
  --border-strong:  #D6CFC1;
  --accent-gold:    #C8912A;
  --accent-gold-2:  #E8B84B;
  --accent-rust:    #C04020;
  --max:            760px;
  --max-wide:       1120px;
  --radius:         14px;
  --shadow-sm:      0 1px 2px rgba(24, 20, 14, 0.04);
  --shadow-md:      0 6px 18px rgba(24, 20, 14, 0.07);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Top banner (exact landing copy) ── */
.top-banner {
  background: #C8912A;
  color: #0A0A0A;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: 0.01em;
}
.top-banner .banner-short { display: none; }
@media (max-width: 640px) {
  .top-banner .banner-full { display: none; }
  .top-banner .banner-short { display: inline; }
}

/* ── Nav (matches landing: dark, padded, LogoMark + Login + CTA) ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(20, 18, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* LogoMark — recreated from src/components/ui/LogoMark.jsx (size="md") */
.logo-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark .lm-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: block;
}
.logo-mark .lm-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-mark .lm-coach {
  font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  font-size: 1rem;
  color: #F97316;
  letter-spacing: 0.28em;
  line-height: 1;
}
.logo-mark .lm-bhai {
  font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  font-size: 2rem;
  color: #F4EEE8;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo-mark .lm-ai {
  color: #FAFF00;
  font-size: 0.68em;
}
.logo-mark .lm-rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin: 4px 0 5px;
}
.logo-mark .lm-tagline {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: 700;
  color: #C9C2B6;
}

.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-login {
  font-size: 0.9rem;
  font-weight: 700;
  color: #F4EEE8;
  padding: 8px 16px;
  border: 1px solid rgba(200, 145, 42, 0.35);
  border-radius: 6px;
  background: rgba(200, 145, 42, 0.05);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-login:hover {
  text-decoration: none;
  color: #E8B84B;
  border-color: rgba(200, 145, 42, 0.7);
  background: rgba(200, 145, 42, 0.10);
}
.nav-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #E8B84B, #C8912A);
  padding: 8px 20px;
  border-radius: 6px;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { text-decoration: none; opacity: 0.92; transform: translateY(-1px); }

@media (max-width: 720px) {
  .site-nav { padding: 12px 20px; }
  .logo-mark .lm-icon { width: 44px; height: 44px; }
  .logo-mark .lm-coach { font-size: 0.7rem; }
  .logo-mark .lm-bhai { font-size: 1.5rem; }
  .logo-mark .lm-tagline { font-size: 0.5rem; }
}
@media (max-width: 480px) {
  .nav-login { display: none; }
  .nav-links { gap: 8px; }
}

/* ── Layout containers ── */
.container { max-width: var(--max); margin: 0 auto; padding: 28px 20px 64px; }
.container-wide { max-width: var(--max-wide); margin: 0 auto; padding: 28px 20px 64px; }

/* ── Breadcrumbs ── */
.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-gold); text-decoration: none; }
.breadcrumbs span[aria-current] { color: var(--text-primary); font-weight: 600; }

/* ── Post header ── */
.post-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.post-eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}
h1 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 8px 0 16px;
  color: var(--text-primary);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.post-meta .dot { color: var(--border-strong); }

/* ── Hero image ── */
.post-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 32px;
  background: linear-gradient(135deg, #f0c85a22, #c8912a22), linear-gradient(135deg, #fef6e4, #f4e4c7);
  box-shadow: var(--shadow-md);
}
.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-hero .credit {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* ── Article body ── */
article h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  color: var(--text-primary);
}
article h3 { font-size: 19px; margin: 28px 0 8px; font-weight: 700; }
article p, article li {
  font-size: 17px;
  color: var(--text-secondary);
}
article p strong, article li strong { color: var(--text-primary); }
article ul, article ol { padding-left: 22px; }
article ul li, article ol li { margin: 6px 0; }
article img { max-width: 100%; height: auto; border-radius: 10px; }

/* ── Table ── */
.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
thead { background: var(--bg-cream); }
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
th { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: rgba(250, 246, 239, 0.5); }

/* ── Related Feature CTA (reusable callout) ── */
.cta-feature {
  background: linear-gradient(135deg, #FFFCF5, #FAF1E0);
  border: 1px solid rgba(200, 145, 42, 0.35);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 36px 0;
  box-shadow: var(--shadow-sm);
}
.cta-feature .cta-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 6px;
}
.cta-feature h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}
.cta-feature p { margin: 0 0 16px; color: var(--text-secondary); font-size: 16px; }
.cta-feature .cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #E8B84B, #C8912A);
  color: #fff;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(200, 145, 42, 0.25);
  transition: transform 0.15s;
}
.cta-feature .cta-btn:hover { text-decoration: none; transform: translateY(-1px); }

/* ── Blog index hero ── */
.index-hero {
  text-align: center;
  padding: 40px 20px 8px;
  max-width: 760px;
  margin: 0 auto;
}
.index-hero h1 {
  font-size: 42px;
  margin-bottom: 12px;
}
.index-hero .lede {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

/* ── Card grid (Healthifyme-style) ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  box-shadow: var(--shadow-sm);
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.post-card .thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fef6e4, #f4e4c7);
  overflow: hidden;
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.post-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.post-card .tag::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}
.post-card h2 {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.post-card h2 a { color: inherit; }
.post-card h2 a:hover { color: var(--accent-gold); text-decoration: none; }
.post-card .excerpt {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.post-card .read {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 10px;
}

/* ── Footer (dark — matches landing) ── */
.site-foot {
  background: #141210;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 24px 36px;
  margin-top: 56px;
  color: #C9C2B6;
}
.site-foot .inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.site-foot .foot-logo img { height: 36px; width: auto; }
.site-foot .foot-sub {
  font-size: 14px;
  color: #9A9384;
}
.site-foot .foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  font-size: 14px;
}
.site-foot .foot-links a { color: #C9C2B6; }
.site-foot .foot-links a:hover { color: var(--accent-gold-2); text-decoration: none; }
.site-foot .foot-dot { color: rgba(255, 255, 255, 0.2); }
.site-foot .copy { font-size: 12px; color: #7A7367; margin-top: 6px; }

/* ── Responsive ── */
@media (max-width: 560px) {
  h1 { font-size: 28px; }
  .index-hero h1 { font-size: 32px; }
  article h2 { font-size: 21px; }
  .container, .container-wide { padding: 20px 16px 48px; }
  .cta-feature { padding: 20px; }
}
