/* blog.css — LRW blog index + article styling.
   Implemented from Claude Design handoff bundle (Laptop Repair World Design System).
   Pairs with site.css — only ADDS blog-scoped tokens + components, never overrides.
   Source: chats/chat1.md + templates/tpl-blog.jsx + templates/templates.css. */

/* ─────────── tokens used by the design that may be missing from site.css ─────────── */
:root {
  --navy-2: #0d1b5e;
  --navy-3: #0a1840;
  --orange-2: #ff8c42;
  --fg-1: var(--navy);
  --fg-3: #aab4cc;
  --navy-gray: #4a5570;
  --hairline: #f0f2f8;
  --border: rgba(26, 61, 228, 0.12);
  --card-shadow: 0 4px 24px rgba(10, 15, 46, 0.08);
  --card-shadow-hover: 0 8px 32px rgba(26, 61, 228, 0.10);
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-2xl: 20px;
  --card-radius: var(--r-xl);
  --t-fast: 150ms;
  --t-med: 250ms;
  --ease: cubic-bezier(.2,.7,.2,1);
  --font-heading: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ═══════════════════════ BLOG INDEX (landing) ═══════════════════════ */

.blog-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-2) 60%, var(--navy-3));
  color: #fff;
  padding: 96px 0 44px;
  position: relative;
  overflow: hidden;
}
.blog-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 18%, rgba(0, 212, 255, 0.12), transparent 55%);
  pointer-events: none;
}
.blog-hero__inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 0 20px;
}
.blog-hero .eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
}
.blog-hero h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 10px 0 12px;
  color: #fff;
  letter-spacing: -0.4px;
}
.blog-hero h1 em { font-style: normal; color: var(--cyan); }
.blog-hero p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0;
}

/* ── Category filter row ── */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.blog-cat {
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--t-fast);
  text-decoration: none;
  display: inline-block;
}
.blog-cat:hover { border-color: var(--cyan); color: #fff; }
.blog-cat.is-active { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }

/* ── Featured post ── */
.blog-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 36px;
  text-decoration: none;
  color: inherit;
  transition: all var(--t-med) var(--ease);
}
.blog-feature:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); border-color: var(--blue); }
.blog-feature__media {
  position: relative;
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(26, 61, 228, 0.10), rgba(0, 212, 255, 0.18)),
    radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.22), transparent 60%),
    var(--off);
  display: flex; align-items: center; justify-content: center;
}
.blog-feature__media .ph-ic { font-size: 3.4rem; color: var(--blue); opacity: 0.5; }
.blog-feature__media .ph-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--orange); color: #fff;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 100px;
}
.blog-feature__body { padding: 36px 34px; display: flex; flex-direction: column; justify-content: center; }
.blog-feature__cat {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.76rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}
.blog-feature__body h2 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.18;
  color: var(--fg-1); margin: 0 0 12px;
}
.blog-feature__body p {
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  color: var(--navy-gray); margin: 0 0 18px;
}
.blog-feature__meta {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-body); font-size: 0.85rem;
  color: var(--gray); margin-bottom: 18px;
}
.blog-feature__meta i { color: var(--blue); margin-right: 5px; }
@media (max-width: 820px) {
  .blog-feature { grid-template-columns: 1fr; }
  .blog-feature__media { min-height: 200px; }
  .blog-feature__body { padding: 28px 24px; }
}

/* ── Post grid ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--t-med) var(--ease);
}
.blog-card:hover { transform: translateY(-5px); border-color: var(--blue); box-shadow: var(--card-shadow-hover); }
.blog-card__media { height: 168px; position: relative; display: flex; align-items: center; justify-content: center; }
.blog-card__media .ph-ic { font-size: 2.2rem; opacity: 0.55; }
.blog-card__media .ph-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.68rem; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
}
.blog-card__media.m-blue { background: linear-gradient(135deg, #eef1ff, #dbe3ff); }
.blog-card__media.m-blue .ph-ic { color: var(--blue); }
.blog-card__media.m-teal { background: linear-gradient(135deg, #e8faf3, #cdf3e6); }
.blog-card__media.m-teal .ph-ic { color: #00b09b; }
.blog-card__media.m-amber { background: linear-gradient(135deg, #fff6e6, #ffe9c2); }
.blog-card__media.m-amber .ph-ic { color: #f59e0b; }
.blog-card__media.m-pur { background: linear-gradient(135deg, #f6f0ff, #e9dcff); }
.blog-card__media.m-pur .ph-ic { color: #9333ea; }
.blog-card__media.m-pink { background: linear-gradient(135deg, #ffeef4, #ffd9e6); }
.blog-card__media.m-pink .ph-ic { color: #ec4899; }
.blog-card__media.m-navy { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.blog-card__media.m-navy .ph-ic { color: var(--cyan); }
.blog-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card__cat {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 8px;
}
.blog-card__body h3 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.12rem; line-height: 1.3;
  color: var(--fg-1); margin: 0 0 8px;
}
.blog-card__body p {
  font-family: var(--font-body); font-size: 0.9rem; line-height: 1.55;
  color: var(--gray); margin: 0 0 16px; flex: 1;
}
.blog-card__meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 0.8rem; color: var(--gray);
}
.blog-card__meta .read {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--blue); font-weight: 700; font-family: var(--font-heading);
}
.blog-card:hover .blog-card__meta .read { color: var(--orange); }

/* ── Newsletter strip ── */
.blog-news {
  background: var(--off); border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 32px 30px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-top: 40px;
}
.blog-news h3 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.3rem; color: var(--fg-1); margin: 0 0 4px;
}
.blog-news p { font-family: var(--font-body); font-size: 0.92rem; color: var(--gray); margin: 0; }
.blog-news form { display: flex; gap: 10px; flex: 1; min-width: 280px; max-width: 440px; }
.blog-news input {
  flex: 1; box-sizing: border-box;
  padding: 13px 16px; border-radius: var(--r-md);
  border: 1.5px solid var(--light-gray);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--fg-1); outline: none;
}
.blog-news input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 61, 228, 0.08); }

/* ═══════════════════════ BLOG POST (article) ═══════════════════════ */
.post-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-2) 60%, var(--navy-3));
  color: #fff;
  padding: 92px 0 40px;
  position: relative; overflow: hidden;
}
.post-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(0, 212, 255, 0.12), transparent 55%);
  pointer-events: none;
}
.post-hero__inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.post-hero__cat {
  display: inline-block;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.74rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.post-hero h1 {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.14;
  color: #fff; margin: 0 0 18px; letter-spacing: -0.4px;
  text-wrap: balance;
}
/* Mix bold + italic-accent in H1 — cyan italic sub-phrase
   reads as a quieter "voice in parentheses" against the bold main clause.
   10.58:1 on navy hero — WCAG AAA. */
.post-hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: -0.2px;
}
.post-hero__meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-body); font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}
.post-hero__meta .author { display: flex; align-items: center; gap: 9px; }
.post-hero__meta .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.82rem;
}
.post-hero__meta .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }

.post-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.post-figure {
  margin: -32px 0 36px;
  height: 300px;
  border-radius: var(--r-2xl);
  position: relative; overflow: hidden;
  box-shadow: var(--card-shadow);
  background:
    linear-gradient(135deg, rgba(26, 61, 228, 0.12), rgba(0, 212, 255, 0.20)),
    radial-gradient(circle at 75% 30%, rgba(0, 212, 255, 0.25), transparent 60%),
    var(--off);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.post-figure .ph-ic { font-size: 3rem; color: var(--blue); opacity: 0.5; }
.post-figure img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.post-figure figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10, 15, 46, 0.6));
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  padding: 26px 18px 12px;
  font-family: var(--font-body);
}

.post-body {
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--navy-gray);
}
.post-body > p:first-of-type {
  font-size: 1.18rem; line-height: 1.7; color: var(--fg-1);
}
.post-body h2 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.55rem; line-height: 1.25;
  color: var(--fg-1); margin: 38px 0 12px;
}
.post-body h3 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.22rem; color: var(--fg-1); margin: 28px 0 10px;
}
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { padding-left: 24px; margin: 0 0 18px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { color: var(--fg-1); font-weight: 700; }

/* ─────── Editorial emphasis vocabulary ───────
   Use sparingly — emphasis only works when earned. Reserve for the lines
   you would underline if you were reading on paper. */

/* <em> — italic asides, technical terms first-mention, internal thoughts.
   Subtle navy-blue tint so it reads as voice-shift, not just slanted text. */
.post-body em {
  font-style: italic;
  color: #2030a8;     /* mid blue — quieter than --blue, still distinct */
  font-weight: 500;
}

/* <span class="stat"> — punchy numeric stats. Brand orange, weight-800,
   slightly tighter tracking, optional baseline pop. */
.post-body .stat {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.01em;
  font-size: 1.06em;          /* mild upsize, not a banner */
  white-space: nowrap;        /* keep "73%" or "₹1,500" from breaking */
}
.post-body .stat--blue { color: var(--blue); }   /* alt accent for technical numbers */
.post-body .stat--cyan { color: #007a99; }       /* dark cyan for callout numbers */

/* <mark> — quiet highlight on a phrase the reader should remember.
   Cream tint, no garish yellow. Padding sits under the text baseline. */
.post-body mark {
  background: linear-gradient(180deg, transparent 55%, rgba(255, 226, 92, 0.55) 55%);
  color: inherit;
  padding: 0 2px;
  border-radius: 1px;
}

/* <code> — inline technical/product-name treatment (HP Pavilion, MOSFET, M3, etc.).
   Mono only when truly code-like; for product names use .term instead. */
.post-body code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--off);
  color: var(--fg-1);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* <span class="term"> — for product names, model numbers, technical jargon
   appearing for the first time. Quieter than <code>, more elegant. */
.post-body .term {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--fg-1);
  letter-spacing: -0.005em;
}
.post-body a {
  color: var(--blue); font-weight: 600;
  border-bottom: 1.5px solid rgba(26, 61, 228, 0.25);
  text-decoration: none; transition: all var(--t-fast);
}
.post-body a:hover { color: var(--orange); border-color: var(--orange); }
.post-body blockquote {
  margin: 24px 0; padding: 18px 22px;
  background: var(--off); border-left: 4px solid var(--cyan);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic; color: var(--fg-1);
}
.post-callout {
  background: linear-gradient(135deg, #eef1ff, #f5f8ff);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px 22px; margin: 26px 0;
  display: flex; gap: 14px; align-items: flex-start;
}
.post-callout i { color: var(--blue); font-size: 1.3rem; margin-top: 2px; }
.post-callout p { margin: 0; font-size: 0.98rem; }
.post-tldr {
  background: var(--navy); color: #fff;
  border-radius: var(--r-xl);
  padding: 24px 26px;
  margin: 0 0 32px;
}
.post-tldr h4 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 12px;
}
.post-tldr ul { margin: 0; padding-left: 20px; }
.post-tldr li {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem; line-height: 1.5;
}

/* Cost table within post-body */
.post-body .post-table {
  border-radius: var(--r-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  background: #fff;
  margin: 18px 0 26px;
}
.post-body .post-table table { width: 100%; border-collapse: collapse; min-width: 560px; }
.post-body .post-table th {
  background: var(--off); color: var(--fg-1);
  text-align: left;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.post-body .post-table td {
  padding: 14px 18px;
  font-family: var(--font-body); font-size: 0.95rem;
  color: var(--fg-1);
  border-bottom: 1px solid var(--hairline);
}
.post-body .post-table tr:last-child td { border: 0; }

/* Share + author footer */
.post-share {
  display: flex; align-items: center; gap: 12px;
  margin: 36px 0; padding: 20px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.post-share span {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.9rem; color: var(--fg-1); margin-right: 4px;
}
.post-share a {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--off); color: var(--blue);
  transition: all var(--t-fast);
}
.post-share a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.post-share a.wa:hover { background: var(--whatsapp); }

.post-author {
  display: flex; gap: 16px; align-items: center;
  background: var(--off); border-radius: var(--r-xl);
  padding: 22px 24px; margin-bottom: 8px;
}
.post-author .avatar {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem;
}
.post-author h4 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1rem; color: var(--fg-1); margin: 0 0 3px;
}
.post-author p { font-family: var(--font-body); font-size: 0.88rem; color: var(--gray); margin: 0; }

/* Mobile */
@media (max-width: 768px) {
  .blog-hero { padding: 64px 0 36px; }
  .post-hero { padding: 64px 0 32px; }
  .post-figure { margin: -24px 0 28px; height: 220px; }
  .post-body { font-size: 1.02rem; }
  .post-body h2 { font-size: 1.35rem; margin: 32px 0 12px; }
  .post-body h3 { font-size: 1.12rem; margin: 24px 0 10px; }
  .post-author { flex-direction: row; padding: 18px 20px; }
}
</content>
</invoke>