/* =====================================================
   Post Detail Page (Editorial Magazine Style)
   ===================================================== */

body {
  background: var(--bg-base);
  color: var(--ink);
}

/* Hero Header Full-Width Photo */
.post-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  max-height: 720px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 3rem;
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(15, 23, 42, 0.15) 0%,
      rgba(15, 23, 42, 0.45) 50%,
      rgba(15, 23, 42, 0.88) 100%);
}

.post-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 6vw, 6rem) 3.5rem;
  max-width: 1000px;
}

.post-hero__badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.badge-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-pill--category {
  background: var(--purple);
  border-color: var(--purple);
}

.post-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.12;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  flex-wrap: wrap;
}

/* Sticky TOC Bar (Opsional untuk Resep/Review) */
.post-toc {
  position: sticky;
  top: 72px;
  z-index: 40;
  display: flex;
  gap: 1.75rem;
  padding: 0.9rem clamp(1.5rem, 5vw, 5rem);
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.post-toc a {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: all 0.2s;
}

.post-toc a:hover,
.post-toc a.is-active {
  color: var(--purple-deep);
  font-weight: 600;
}

/* Editorial 2-Column Wrapper & Grid */
.post-editorial-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 6rem;
}

.post-editorial-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3.5rem;
  align-items: start;
}

/* Main Content Column (Kiri) */
.post-main-col {
  min-width: 0;
}

.post-lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.6;
  color: var(--ink);
  font-style: italic;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

/* Article Body Typography (Render HTML dari Tiptap) */
.post-article-body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--ink);
}

.post-article-body p {
  margin-bottom: 1.75rem;
}

.post-article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
  margin: 3rem 0 1.25rem;
  color: var(--ink);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--purple-tint);
}

.post-article-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 500;
  margin: 2.25rem 0 1rem;
  color: var(--ink);
}

.post-article-body blockquote {
  border-left: 4px solid var(--purple);
  background: var(--purple-tint);
  padding: 1.25rem 1.75rem;
  margin: 2.25rem 0;
  border-radius: 0 14px 14px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--ink-muted);
}

.post-article-body blockquote p {
  margin-bottom: 0;
}

.post-article-body ul,
.post-article-body ol {
  padding-left: 1.75rem;
  margin: 1.5rem 0;
}

.post-article-body li {
  margin-bottom: 0.6rem;
}

.post-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 2rem 0;
  display: block;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.post-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-article-body th,
.post-article-body td {
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

.post-article-body th {
  background: var(--purple-tint);
  font-weight: 600;
  color: var(--purple-deep);
}

.post-article-body pre {
  background: #1e1e2e !important;
  color: #cdd6f4 !important;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  overflow-x: auto;
  margin: 2rem 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.post-article-body code {
  background: var(--purple-tint);
  color: var(--purple-deep);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

/* Source Card */
.post-source-card {
  margin-top: 3.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Author Bio Card */
.author-bio-card {
  margin-top: 1rem;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.author-bio-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--purple-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.author-bio-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.author-bio-info p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.5;
}

/* Sidebar Right Column (Kanan) */
.post-sidebar-col {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-soft);
}

.widget-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.widget-post-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease-out);
}

.widget-post-item:hover {
  transform: translateX(4px);
}

.widget-post-thumb {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border-soft);
}

.widget-post-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.widget-post-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

/* Promo Widget */
.promo-widget {
  background: linear-gradient(145deg, #2a1b40, #140d21);
  color: #fff;
  border: none;
}

.promo-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--purple-light);
  margin-bottom: 0.5rem;
}

.promo-widget h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  color: #fff;
}

.promo-widget p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.btn-promo {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 100px;
  background: var(--purple);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out);
}

.btn-promo:hover {
  transform: translateY(-2px);
  background: var(--purple-deep);
}

/* Footer */
.editorial-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--bg-surface);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-brand span {
  color: var(--purple);
}

.editorial-footer p {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .post-editorial-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .post-sidebar-col {
    position: static;
  }

  .post-hero {
    height: 55vh;
    min-height: 380px;
  }
}


.post-section:last-child {
  border-bottom: none;
}

.post-section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 1.75rem;
  color: var(--ink);
}

/* Ingredients */
.ingredient-group {
  margin-bottom: 2rem;
}

.ingredient-group__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.9rem;
}

.ingredient-list {
  list-style: none;
}

.ingredient-list li {
  display: flex;
  gap: 0.85rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}

.ingredient-list li:last-child {
  border-bottom: none;
}

.ingredient-list .qty {
  flex-shrink: 0;
  min-width: 70px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.83rem;
}

.ingredient-list .note {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* Steps */
.step-list {
  list-style: none;
  counter-reset: step;
}

.step-item {
  counter-increment: step;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.step-item::before {
  content: counter(step);
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

.step-item__body {
  padding-top: 0.3rem;
}

.step-item img {
  margin-top: 0.85rem;
  border-radius: 4px;
  max-width: 100%;
}

/* Review specific */
.review-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.review-meta-item {
  padding: 1.1rem;
  background: var(--bg-surface);
}

.review-meta-item__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.review-meta-item__value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 560px) {
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
}

.pros-cons-col__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: var(--ink-muted);
}

.pros-cons-col ul {
  list-style: none;
}

.pros-cons-col li {
  padding: 0.55rem 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-soft);
}

/* Source note */
.source-note {
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.92rem;
  padding: 1.1rem 0 1.1rem 1.25rem;
  border-left: 1px solid var(--ink);
}

/* Promo footer -- muncul di bawah post-body */
.post-promo {
  max-width: 760px;
  margin: 0 auto 3rem;
  padding: 0 clamp(1.5rem, 5vw, 2rem);
}

/* =====================================================
   Content Protection (Anti-Copas, Anti-Print)
   ===================================================== */
.post-body {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

@media print {
  body, .post-hero, .post-body, .site-header, .editorial-footer, .post-promo, .share-section {
    display: none !important;
  }
}

/* =====================================================
   Share Section Widget (Premium Minimalist)
   ===================================================== */
.share-section {
  max-width: 100%;
  margin: 3.5rem 0 2rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--border-soft);
  text-align: left;
}

.share-section__title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
  display: block;
}

.share-grid {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 0.6rem 1.1rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.share-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.share-btn--wa:hover { background: #25d366; border-color: #25d366; }
.share-btn--tg:hover { background: #0088cc; border-color: #0088cc; }
.share-btn--fb:hover { background: #1877f2; border-color: #1877f2; }
.share-btn--in:hover { background: #0077b5; border-color: #0077b5; }
.share-btn--ig:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: transparent; }

.share-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Proteksi Gambar */
img,
.post-article-body img {
  pointer-events: none !important;
  -webkit-user-drag: none !important;
  user-drag: none !important;
}

/* =====================================================
   Author Bio Card (Premium Editorial Style)
   ===================================================== */
.author-bio-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  margin-top: 3.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.author-bio-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(147, 51, 234, 0.15);
}

.author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--bg-base);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-out);
}

.author-bio-card:hover .author-bio-avatar {
  transform: rotate(5deg) scale(1.05);
}

.author-bio-info {
  flex-grow: 1;
}

.author-bio-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pink);
  margin-bottom: 0.25rem;
}

.author-bio-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.author-bio-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 1.1rem;
}

.author-bio-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* =====================================================
   Reaction & Komentar (Dapur Tanya Rei Style)
   ===================================================== */

/* Reaction Bar Artikel */
.reaction-bar {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-start;
  margin: 2.5rem 0 0.75rem;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  user-select: none;
}

.reaction-btn:hover {
  border-color: var(--purple);
  color: var(--purple-deep);
  background: var(--purple-tint);
  transform: translateY(-1px);
}

.reaction-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.25);
}

.reaction-btn .emoji {
  font-size: 0.88rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rxn-pulse .emoji,
.reaction-btn.rxn-pulse .emoji {
  transform: scale(1.4) rotate(-10deg);
}

/* Comments Section */
.comments-section {
  max-width: 100%;
  margin: 3.5rem 0 4rem;
  padding: 0;
}

.comments-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

/* Toast Komentar */
.cr-toast {
  background: var(--bg-surface);
  border: 1px solid var(--purple);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.15);
  margin-bottom: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cr-toast.show {
  opacity: 1;
  max-height: 200px;
  margin-bottom: 1.5rem;
  transform: translateY(0);
  pointer-events: auto;
}

/* Form Komentar */
.comment-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.comment-form input[type="text"],
.comment-form textarea {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.75rem;
  resize: vertical;
  transition: border-color 0.2s;
}

.comment-form textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.6;
}

.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.comment-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.comment-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.comment-submit-btn {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 0.6rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.comment-submit-btn:hover {
  background: var(--purple-deep);
  transform: translateY(-1px);
}

.comment-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.comment-status-msg {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Comment Cards & List */
.comment-item {
  margin-bottom: 1.25rem;
}

.comment-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}

.comment-card.is-admin {
  border-color: var(--purple);
  background: var(--purple-tint);
}

.comment-badge-admin {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--purple);
  color: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comment-card:hover {
  border-color: var(--border);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.comment-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.comment-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.comment-body {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 0.75rem;
  white-space: pre-line;
}

.comment-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.comment-react-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.comment-react-btn:hover {
  color: var(--ink);
  background: var(--purple-tint);
}

.comment-react-btn.active {
  color: var(--purple);
  font-weight: 700;
}

.comment-reply-btn {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.comment-reply-btn:hover {
  color: var(--purple);
  background: var(--purple-tint);
}

/* Replies (Nested) */
.comment-replies {
  margin-left: 1.75rem;
  margin-top: 0.85rem;
  border-left: 2px solid var(--purple-tint);
  padding-left: 1rem;
}

.comment-reply-form {
  display: none;
}

.comment-reply-form.open {
  display: block;
}

.comments-empty {
  color: var(--ink-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 2.5rem 0;
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: 14px;
}


.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-base);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: background 0.2s;
}

.author-bio-card:hover .author-badge {
  background: var(--bg-surface);
}

.author-badge-icon {
  font-size: 0.8rem;
}

/* Responsive adjustment for Mobile */
@media (max-width: 580px) {
  .author-bio-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.25rem;
    gap: 1.25rem;
  }
  .author-bio-badges {
    justify-content: center;
  }
}