/* ===== Single Post Detail Page ===== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  margin: 28px 0;
}
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }

.crumb-nav {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-script);
  font-size: 14px;
  margin-bottom: 16px;
  align-items: center;
}
.crumb-nav a { color: var(--mustard); }
.crumb-nav a:hover { color: var(--salmon); }

.article {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
.article-cover {
  width: 100%;
  height: 320px;
  position: relative;
}
.article-cover .cat-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 12px;
  padding: 6px 16px;
}
.article-meta-stamp {
  position: absolute;
  bottom: 20px;
  right: 24px;
  background: rgba(var(--paper-rgb), 0.92);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-script);
  font-size: 18px;
  color: var(--salmon);
  transform: rotate(-3deg);
  box-shadow: 0 4px 12px rgba(var(--ink-rgb), 0.12);
}

.article-body { padding: 36px 44px 44px; }
.article h1 {
  font-family: var(--font-section);
  font-size: 30px;
  margin: 0 0 12px;
  line-height: 1.5;
}
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 12px;
  color: var(--ink-3);
}
.article-meta .date {
  font-family: var(--font-script);
  font-size: 16px;
  color: var(--mustard);
}
.article-meta .pin {
  display: flex;
  align-items: center;
  gap: 4px;
}
.article-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.article-content { font-size: 14px; line-height: 2; color: var(--ink); }
.article-content p { margin: 0 0 18px; }
.article-content h2 {
  font-family: var(--font-section);
  font-size: 20px;
  margin: 32px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--salmon);
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-content h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-soft) 0 4px, transparent 4px 8px);
}

.article-figure {
  margin: 28px 0;
  text-align: center;
}
.article-figure .img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  position: relative;
}
.article-figure figcaption {
  font-family: var(--font-script);
  color: var(--ink-2);
  font-size: 16px;
  margin-top: 10px;
}

.callout {
  background: linear-gradient(180deg, var(--paper-2), var(--mustard-soft));
  border: 1.5px dashed var(--mustard);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: 22px 0;
  font-size: 13px;
  position: relative;
}
.callout::before {
  content: "♡";
  position: absolute;
  top: -12px; left: 16px;
  background: var(--paper);
  padding: 2px 8px;
  color: var(--salmon);
  font-size: 16px;
}
.callout b { color: var(--salmon); font-family: var(--font-section); }

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.shot-pair .polaroid { transform: rotate(-1.5deg); }
.shot-pair .polaroid:nth-child(2) { transform: rotate(2deg); }

.heart-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  margin-top: 28px;
  background: var(--paper-2);
  border-radius: var(--r-md);
}
.heart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--card);
  border: 2px solid var(--salmon-soft);
  border-radius: var(--r-pill);
  cursor: pointer;
  font-family: var(--font-base);
  font-size: 13px;
  color: var(--salmon);
  transition: all .2s ease;
}
.heart-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(var(--salmon-rgb), 0.25); }
.heart-btn.liked {
  background: var(--salmon);
  color: var(--paper);
  border-color: var(--salmon);
}
.heart-btn .heart {
  transition: transform .3s ease;
}
.heart-btn:hover .heart { transform: scale(1.2); }
.heart-btn.liked .heart { animation: pop .4s ease; }
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.share-row {
  display: flex;
  gap: 8px;
}
.share-row .social-btn { width: 36px; height: 36px; }

.next-prev {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.next-prev a {
  display: block;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  transition: all .2s ease;
}
.next-prev a:hover { transform: translateY(-2px); border-color: var(--salmon); }
.next-prev .label {
  font-family: var(--font-script);
  font-size: 14px;
  color: var(--mustard);
  margin-bottom: 4px;
}
.next-prev .title {
  font-family: var(--font-card-title);
  font-size: 14px;
  color: var(--ink);
}
.next-prev .next { text-align: right; }

/* Comments */
.comments {
  margin-top: 36px;
  padding: 28px 32px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
}
.comments h3 {
  font-family: var(--font-section);
  font-size: 18px;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border-soft);
}
.comment:last-of-type { border-bottom: 0; }
.comment .av {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--font-card-title);
  font-weight: 600;
}
.comment .body { flex: 1; font-size: 13px; line-height: 1.8; }
.comment .head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 4px;
}
.comment .name { font-family: var(--font-card-title); }
.comment .when {
  color: var(--ink-3);
  font-family: var(--font-script);
  font-size: 14px;
}

.comment-form {
  margin-top: 18px;
  padding: 18px;
  background: var(--paper-2);
  border-radius: var(--r-md);
}
.comment-form textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-base);
  font-size: 13px;
  resize: vertical;
  background: var(--card);
}
.comment-form textarea:focus { outline: 2px solid var(--salmon-soft); }
.comment-form .row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.comment-form input[type=text] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  font-family: var(--font-base);
  font-size: 13px;
  background: var(--card);
}

/* TOC sidebar */
.toc-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 18px;
  position: sticky;
  top: 100px;
}
.toc-card h3 {
  font-family: var(--font-section);
  font-size: 14px;
  margin: 0 0 12px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li {
  padding: 6px 0 6px 14px;
  font-size: 12px;
  border-left: 2px solid var(--border-soft);
  cursor: pointer;
  transition: all .15s ease;
}
.toc-list li:hover { border-left-color: var(--salmon); padding-left: 18px; color: var(--salmon); }
