/* ═══════════════════════════════════════════════════════
   Blog V2 — Futoriq-inspired premium dark theme
   Overrides blog styles from main.css
   ═══════════════════════════════════════════════════════ */

/* ── Reading Progress Bar ──────────────────────────── */
.blog-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1001;
  background: transparent;
}

.blog-reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #9DC34D);
  box-shadow: 0 0 10px rgba(139, 175, 63, 0.6), 0 0 20px rgba(157, 195, 77, 0.3);
  transition: width 0.15s ease-out;
}

/* ── Full-bleed Hero ───────────────────────────────── */
.blog-hero-fullbleed {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 220px;
}

.blog-hero-fullbleed--has-image {
  min-height: 420px;
}

.blog-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0A0F1E 0%, rgba(10,15,30,0.85) 40%, rgba(10,15,30,0.4) 100%);
}

.blog-hero-overlay--plain {
  background: linear-gradient(135deg, #0A0F1E 0%, #111827 50%, #0A0F1E 100%);
}

.blog-hero-content {
  position: relative;
  padding-top: 120px;
  padding-bottom: 40px;
  max-width: 1020px;
}

/* Breadcrumbs */
.blog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
}

.blog-breadcrumbs a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-breadcrumbs a:hover {
  color: rgba(255,255,255,0.8);
}

/* Hero Tags */
.blog-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.blog-hero-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-hero-tag:hover {
  background: rgba(139, 175, 63, 0.25);
  color: var(--accent-hover);
}

/* Hero Title */
.blog-hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.15;
  margin-bottom: 12px;
  max-width: 700px;
}

/* Accent Line */
.blog-hero-accent-line {
  width: 80px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(139,175,63,0.2));
  margin-bottom: 16px;
}

/* Hero Meta */
.blog-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

.blog-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-hero-meta-item svg {
  opacity: 0.7;
}

.blog-hero-meta-link {
  color: var(--accent);
  text-decoration: none;
}

.blog-hero-meta-link:hover {
  color: var(--accent-hover);
}

/* ── Post Grid V2 ──────────────────────────────────── */
.blog-post-v2 .blog-post-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-2xl);
  align-items: start;
  max-width: 1020px;
  padding-top: 40px;
  padding-bottom: 0;
}

/* ── Sticky TOC V2 ─────────────────────────────────── */
.blog-post-v2 .blog-post-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,175,63,0.2) transparent;
}

.blog-post-v2 .blog-toc {
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: var(--space-lg);
}

.blog-post-v2 .blog-toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.blog-toc-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blog-toc-link {
  display: block;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

.blog-toc-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
  padding-left: 10px;
}

.blog-toc-link.active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-dim);
}

.blog-toc-number {
  font-family: var(--font-mono);
  font-size: 0.72em;
  margin-right: 6px;
  color: var(--text-tertiary);
  opacity: 0.5;
}

.blog-toc-link.active .blog-toc-number {
  color: var(--accent);
  opacity: 1;
}

/* ── Content V2 ────────────────────────────────────── */
.blog-post-v2 .blog-post-content {
  font-size: 1rem;
  color: rgba(203, 213, 225, 1);
  line-height: 1.85;
}

.blog-post-v2 .blog-post-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  padding-bottom: 0.6rem;
  padding-left: 0;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, rgba(139,175,63,0.5), transparent) 1;
  line-height: 1.25;
  scroll-margin-top: 100px;
  position: relative;
  transition: padding-left 0.25s cubic-bezier(0.4,0,0.2,1), color 0.2s;
  cursor: pointer;
}

.blog-post-v2 .blog-post-content h2:hover {
  padding-left: 6px;
  color: #fff;
}

.blog-post-v2 .blog-post-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-left: 0;
  line-height: 1.3;
  scroll-margin-top: 100px;
  transition: padding-left 0.25s cubic-bezier(0.4,0,0.2,1), color 0.2s;
  cursor: pointer;
}

.blog-post-v2 .blog-post-content h3:hover {
  padding-left: 6px;
  color: #f1f5f9;
}

/* Tags footer */
.blog-post-tags-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.blog-tag-pill {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}

.blog-tag-pill:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

/* Back link */
.blog-post-back-link {
  margin-top: 24px;
}

.blog-post-back-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
}

.blog-post-back-link a:hover {
  gap: 12px;
}

/* ── Mobile TOC ────────────────────────────────────── */
.blog-toc-mobile-btn {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 45;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 15, 30, 0.9);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: all 0.2s;
}

.blog-toc-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.blog-toc-mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.blog-toc-mobile-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 91;
  max-height: 70vh;
  background: rgba(10, 15, 30, 0.97);
  border-top: 1px solid var(--border-accent);
  border-radius: 20px 20px 0 0;
  padding: 16px 20px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.4);
}

.blog-toc-mobile-drawer.active {
  transform: translateY(0);
}

.blog-toc-mobile-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(148,163,184,0.3);
  margin: 0 auto 12px;
}

.blog-toc-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.blog-toc-mobile-header h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
}

.blog-toc-mobile-close {
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 8px;
  padding: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
}

.blog-toc-mobile-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blog-toc-mobile-link {
  display: block;
  padding: 8px 6px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.blog-toc-mobile-link:hover,
.blog-toc-mobile-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── Blog Listing V2 — Cards with images ───────────── */
.blog-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-v2:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.blog-card-v2-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.blog-card-v2-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card-v2:hover .blog-card-v2-img-wrap img {
  transform: scale(1.05);
}

.blog-card-v2-img-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

.blog-card-v2-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(139,175,63,0.15), rgba(139,175,63,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.3;
}

/* Read time badge on image */
.blog-card-v2-readtime {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(0,0,0,0.6);
  color: #e2e8f0;
  padding: 3px 10px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card-v2-body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-v2-category {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 6px;
  margin-bottom: 10px;
}

.blog-card-v2-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-v2-excerpt {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  flex: 1;
}

.blog-card-v2-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.blog-card-v2-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card-v2-readmore {
  margin-left: auto;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
}

/* Featured card variant */
.blog-card-v2--featured .blog-card-v2-img-wrap {
  aspect-ratio: 21/9;
}

.blog-card-v2--featured .blog-card-v2-body {
  padding: 20px 28px 28px;
}

.blog-card-v2--featured .blog-card-v2-title {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  -webkit-line-clamp: unset;
}

.blog-card-v2--featured .blog-card-v2-excerpt {
  -webkit-line-clamp: 3;
  max-width: 650px;
}

/* ── Blog Listing Hero ─────────────────────────────── */
.blog-listing-hero {
  padding: calc(var(--header-height) + 32px) 0 40px;
  background: rgba(17, 24, 39, 0.3);
  text-align: center;
}

.blog-listing-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.blog-listing-hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.blog-listing-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-hero-fullbleed--has-image {
    min-height: 320px;
  }

  .blog-hero-content {
    padding-top: 90px;
    padding-bottom: 32px;
  }

  .blog-post-v2 .blog-post-grid {
    grid-template-columns: 1fr;
  }

  .blog-post-v2 .blog-post-sidebar {
    display: none;
  }

  .blog-toc-mobile-btn {
    display: flex;
  }

  .blog-card-v2--featured .blog-card-v2-img-wrap {
    aspect-ratio: 16/9;
  }
}

.blog-post-v2 .blog-post-sidebar::-webkit-scrollbar { width: 3px; }
.blog-post-v2 .blog-post-sidebar::-webkit-scrollbar-track { background: transparent; }
.blog-post-v2 .blog-post-sidebar::-webkit-scrollbar-thumb { background: rgba(139,175,63,0.2); border-radius: 4px; }
.blog-post-v2 .blog-post-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(139,175,63,0.4); }

/* ═══════════════════════════════════════════════════════
   Blog Rating & Comments
   ═══════════════════════════════════════════════════════ */

/* ── Article Rating ────────────────────────────────── */
.blog-rating {
  text-align: center;
  padding: 32px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.blog-rating-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.blog-rating-stars {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 8px;
}

.blog-rating-star {
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(148, 163, 184, 0.3);
  transition: color 0.15s, transform 0.15s;
  padding: 2px;
  line-height: 1;
}

.blog-rating-star:hover {
  transform: scale(1.15);
}

.blog-rating-star--selected,
.blog-rating-star--hover {
  color: #facc15;
}

.blog-rating-star--avg {
  color: rgba(250, 204, 21, 0.5);
}

.blog-rating-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.blog-rating-avg {
  font-weight: 700;
  font-size: 1.1rem;
  color: #facc15;
}

.blog-rating-thank {
  display: none;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

/* ── Comments Section ──────────────────────────────── */
.blog-comments {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.blog-comments-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.blog-comments-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.blog-comments-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 12px;
  min-width: 24px;
  text-align: center;
}

/* Comment form */
.blog-comment-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
}

.blog-comment-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-comment-form input[type="text"],
.blog-comment-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.blog-comment-form input[type="text"]:focus,
.blog-comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(139, 175, 63, 0.15);
}

.blog-comment-form textarea {
  min-height: 100px;
  resize: vertical;
}

.blog-comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.blog-comment-charcount {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.blog-comment-form .btn {
  font-size: 0.85rem;
  padding: 8px 20px;
}

/* Honeypot — must be invisible */
.blog-comment-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* Reply banner */
.blog-comment-reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--accent);
}

.blog-comment-reply-cancel {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.blog-comment-reply-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Comment list */
.blog-comments-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-comments-empty {
  text-align: center;
  color: var(--text-tertiary);
  padding: 32px 0;
  font-size: 0.92rem;
}

/* Single comment */
.blog-comment {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.blog-comment--depth-1 { padding-left: 28px; }
.blog-comment--depth-2 { padding-left: 56px; }

.blog-comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.blog-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.blog-comment-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.blog-comment-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.blog-comment-time {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.blog-comment-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: 42px;
  white-space: pre-wrap;
  word-break: break-word;
}

.blog-comment-reply-btn {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: 42px;
  margin-top: 4px;
  border-radius: 4px;
  transition: all 0.15s;
}

.blog-comment-reply-btn:hover {
  color: var(--accent);
  background: rgba(139, 175, 63, 0.08);
}

.blog-comment-children {
  border-left: 2px solid rgba(139, 175, 63, 0.12);
  margin-left: 16px;
}

/* ── Responsive comments ───────────────────────────── */
@media (max-width: 768px) {
  .blog-comment-form-row {
    flex-direction: column;
  }

  .blog-comment--depth-1 { padding-left: 16px; }
  .blog-comment--depth-2 { padding-left: 32px; }
  .blog-comment-text { padding-left: 0; margin-top: 6px; }
  .blog-comment-reply-btn { margin-left: 0; }
}

/* ═══════════════════════════════════════════════════════
   Light Theme — Blog V2 Overrides
   ═══════════════════════════════════════════════════════ */

/* Hero */
[data-theme="light"] .blog-hero-overlay {
  background: linear-gradient(to top, #F8FAFB 0%, rgba(248,250,251,0.85) 40%, rgba(248,250,251,0.4) 100%);
}
[data-theme="light"] .blog-hero-overlay--plain {
  background: linear-gradient(135deg, #F8FAFB 0%, #EFF2F5 50%, #F8FAFB 100%);
}
[data-theme="light"] .blog-hero-content h1 { color: #111827; }
[data-theme="light"] .blog-breadcrumbs { color: #9CA3AF; }
[data-theme="light"] .blog-breadcrumbs a { color: #9CA3AF; }
[data-theme="light"] .blog-breadcrumbs a:hover { color: #4B5563; }
[data-theme="light"] .blog-hero-meta { color: #6B7280; }

/* TOC */
[data-theme="light"] .blog-post-v2 .blog-toc {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--border);
}
[data-theme="light"] .blog-toc-link { color: #6B7280; }
[data-theme="light"] .blog-toc-link:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .blog-toc-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* Content */
[data-theme="light"] .blog-post-v2 .blog-post-content { color: #374151; }
[data-theme="light"] .blog-post-v2 .blog-post-content h2 { color: #111827; }
[data-theme="light"] .blog-post-v2 .blog-post-content h2:hover { color: #111827; }
[data-theme="light"] .blog-post-v2 .blog-post-content h3 { color: #1F2937; }
[data-theme="light"] .blog-post-v2 .blog-post-content h3:hover { color: #111827; }

/* Cards */
[data-theme="light"] .blog-card-v2 {
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="light"] .blog-card-v2:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .blog-card-v2-img-gradient {
  background: linear-gradient(to top, var(--bg-card), transparent);
}
[data-theme="light"] .blog-card-v2-title { color: #111827; }
[data-theme="light"] .blog-card-v2-excerpt { color: #6B7280; }
[data-theme="light"] .blog-card-v2-readtime {
  background: rgba(255, 255, 255, 0.85);
  color: #374151;
}

/* Blog listing hero */
[data-theme="light"] .blog-listing-hero {
  background: rgba(0, 0, 0, 0.02);
}
[data-theme="light"] .blog-listing-hero h1 { color: #111827; }
[data-theme="light"] .blog-listing-hero p { color: #6B7280; }

/* Rating */
[data-theme="light"] .blog-rating-star { color: rgba(0, 0, 0, 0.15); }

/* Comment form */
[data-theme="light"] .blog-comment-form {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--border);
}
[data-theme="light"] .blog-comment-form input[type="text"],
[data-theme="light"] .blog-comment-form textarea {
  background: #FFFFFF;
  border-color: var(--border);
  color: #111827;
}
[data-theme="light"] .blog-comment { border-bottom-color: var(--border); }
[data-theme="light"] .blog-comment-text { color: #4B5563; }
[data-theme="light"] .blog-comment-reply-cancel:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Mobile TOC */
[data-theme="light"] .blog-toc-mobile-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .blog-toc-mobile-overlay {
  background: rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .blog-toc-mobile-drawer {
  background: rgba(255, 255, 255, 0.97);
  border-top-color: var(--border-accent);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .blog-toc-mobile-handle {
  background: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .blog-toc-mobile-header h4 { color: #111827; }
[data-theme="light"] .blog-toc-mobile-close {
  background: rgba(0, 0, 0, 0.04);
  color: #6B7280;
}
[data-theme="light"] .blog-toc-mobile-link { color: #6B7280; }
[data-theme="light"] .blog-toc-mobile-link:hover,
[data-theme="light"] .blog-toc-mobile-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* Reading progress */
[data-theme="light"] .blog-reading-progress-bar {
  box-shadow: 0 0 10px rgba(92, 122, 31, 0.4), 0 0 20px rgba(92, 122, 31, 0.2);
}

/* Scrollbar */
[data-theme="light"] .blog-post-v2 .blog-post-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .blog-post-v2 .blog-post-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.15);
}
