/* blog.css — shared styles for all KibbleIQ blog pages */

:root {
  --bg: #f7faf8;
  --bg2: #eff5f1;
  --card: #ffffff;
  --border: #ddeae1;
  --border2: #c8dece;
  --green: #4caf78;
  --green-light: #2e8c52;
  --green-dim: #3a8c5c;
  --accent: #1a6e3c;
  --text: #1a2e20;
  --text2: #3d5c45;
  --text3: #7a9880;
  --grade-a: #2d9a58;
  --grade-b: #3a8e50;
  --grade-c: #b08c10;
  --grade-d: #c07020;
  --grade-f: #c03030;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── HEADER ── */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.logo-link img { display: block; border-radius: 6px; }

.wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.wordmark span { color: var(--green); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.site-nav a:hover { background: var(--bg2); color: var(--text); }

.site-nav a.nav-active {
  color: var(--green-light);
  background: rgba(46,140,82,0.08);
}

.site-nav .nav-cta {
  background: var(--green);
  color: #ffffff !important;
  font-weight: 600;
  margin-left: 6px;
}

.site-nav .nav-cta:hover {
  background: var(--green-dim);
  color: #fff !important;
}

/* ── LAYOUT ── */
.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── BLOG INDEX ── */
.blog-hero {
  margin-bottom: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.blog-hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.15;
}

.blog-hero p {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.7;
  max-width: 580px;
}

.article-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 2px 10px rgba(26,46,32,0.06);
  display: flex;
  gap: 20px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
}

.article-card:hover {
  box-shadow: 0 6px 24px rgba(26,46,32,0.11);
  transform: translateY(-1px);
}

.card-grade {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  border: 2px solid;
}

.grade-A { color: var(--grade-a); border-color: var(--grade-a); background: rgba(45,154,88,0.08); }
.grade-B { color: var(--grade-b); border-color: var(--grade-b); background: rgba(58,142,80,0.08); }
.grade-C { color: var(--grade-c); border-color: var(--grade-c); background: rgba(176,140,16,0.08); }
.grade-D { color: var(--grade-d); border-color: var(--grade-d); background: rgba(192,112,32,0.08); }
.grade-F { color: var(--grade-f); border-color: var(--grade-f); background: rgba(200,48,48,0.08); }

.card-body { flex: 1; min-width: 0; }

.card-brand {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--green-light);
  margin-bottom: 3px;
}

.card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-arrow {
  flex-shrink: 0;
  color: var(--border2);
  font-size: 1.1rem;
  transition: color 0.15s, transform 0.15s;
}

.article-card:hover .card-arrow {
  color: var(--green-light);
  transform: translateX(3px);
}

/* ── ARTICLE PAGE ── */
.article-wrap {
  max-width: 720px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text3);
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text3);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--green-light); }
.breadcrumb .sep { color: var(--border2); user-select: none; }
.breadcrumb .current { color: var(--text2); }

.article-header { margin-bottom: 40px; }

.article-grade-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.article-grade-letter {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  border: 2.5px solid;
  flex-shrink: 0;
}

.article-grade-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.article-score-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text3);
}

.article-score-value {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text2);
}

.article-h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* ── ARTICLE BODY ── */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text2);
}

.article-body .callout {
  background: rgba(76,175,120,0.07);
  border: 1px solid rgba(76,175,120,0.28);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 36px;
  font-size: 1rem;
  line-height: 1.75;
}

.article-body .callout strong { color: var(--text); font-weight: 600; }

.article-body .affiliate-disclosure {
  background: rgba(0,0,0,0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 24px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text3);
}

.article-body .affiliate-disclosure strong { color: var(--text2); font-weight: 600; }

.article-body .sources {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.7;
}

.article-body .sources h2 {
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.article-body .sources ul { margin: 0; padding-left: 20px; }
.article-body .sources li { margin-bottom: 6px; color: var(--text3); }

.article-body h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.article-body p { margin-bottom: 20px; }

.article-body p:last-child { margin-bottom: 0; }

.article-body strong { color: var(--text); font-weight: 600; }

.article-body a {
  color: var(--green-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(46,140,82,0.35);
  transition: text-decoration-color 0.15s;
}

.article-body a:hover { text-decoration-color: var(--green-light); }

/* ── CTA BOX ── */
.article-cta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 32px;
  margin-top: 52px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(26,46,32,0.07);
}

.article-cta h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
}

.article-cta p {
  font-size: 0.9rem;
  color: var(--text2);
  margin-bottom: 20px;
  line-height: 1.65;
}

.cta-btn {
  display: inline-block;
  background: var(--green);
  color: #0e1a12;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 30px;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
}

.cta-btn:hover {
  background: var(--green-dim);
  color: #fff;
  transform: translateY(-1px);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 32px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text3);
  line-height: 1.9;
}

footer a { color: var(--text3); text-decoration: underline; }
footer a:hover { color: var(--text2); }

/* ── RESPONSIVE ── */
@media (max-width: 560px) {
  .header-inner { padding: 0 16px; }
  .wrap { padding: 28px 16px 60px; }
  .blog-hero h1 { font-size: 1.75rem; }
  .article-card { padding: 16px 14px; gap: 12px; }
  .card-grade { width: 46px; height: 46px; font-size: 1.2rem; }
  .card-arrow { display: none; }
  .article-h1 { font-size: 1.65rem; }
  .article-cta { padding: 22px 18px; }
  .site-nav .nav-cta { display: none; }
  .site-nav a { padding: 6px 8px; font-size: 0.82rem; }
}
