/* ═══════════════════
   single.css
═══════════════════ */
.single-hero {
  position: relative;
  height: 65vh;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
  overflow: hidden;
}
.single-hero-img { position: absolute; inset: 0; }
.single-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.single-hero-content { position: relative; z-index: 2; }
.single-hero .tag { margin-bottom: 16px; }
.single-title { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 16px; max-width: 760px; }
.single-meta { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* Content Layout */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}
.sticky-sidebar { position: sticky; top: 100px; }
.single-sidebar .widget-title { font-size: 0.75rem; }

/* Article Body */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--mid);
}
.entry-content h2 { margin: 2em 0 0.75em; color: var(--black); }
.entry-content h3 { margin: 1.8em 0 0.6em; color: var(--dark); }
.entry-content p  { margin-bottom: 1.4em; }
.entry-content a  { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--radius-lg); margin: 2em 0; }
.entry-content blockquote {
  border-left: 3px solid var(--orange);
  padding: 20px 28px;
  margin: 2em 0;
  background: var(--bg);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  color: var(--dark);
  font-size: 1.1rem;
}
.entry-content ul, .entry-content ol { padding-left: 28px; margin-bottom: 1.4em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content code { background: var(--bg); padding: 2px 6px; border-radius: 3px; font-family: var(--font-mono); font-size: 0.875em; color: var(--orange); }
.entry-content pre { background: var(--dark); color: var(--white); padding: 24px; border-radius: var(--radius-lg); overflow-x: auto; margin: 2em 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 2em 0; }
.entry-content th, .entry-content td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; font-size: 0.9rem; }
.entry-content th { background: var(--bg); font-weight: 700; }

/* Tags & Share */
.single-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 24px 0; border-top: 1px solid var(--border); margin-top: 40px; }
.single-tags span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--light-gray); font-weight: 600; }
.single-share {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 24px 0 40px;
}
.share-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--light-gray); font-weight: 600; }
.share-fb, .share-copy {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}
.share-fb:hover { background: #1877f2; border-color: #1877f2; color: var(--white); }
.share-copy:hover { border-color: var(--orange); color: var(--orange); }

/* Author Bio */
.author-bio {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  margin: 40px 0;
}
.author-bio img { border-radius: 50%; width: 80px; height: 80px; flex-shrink: 0; }
.author-name { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.author-desc { font-size: 0.875rem; color: var(--gray); margin: 0; }

/* Post Nav */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.post-nav-item { display: flex; flex-direction: column; gap: 6px; }
.post-nav-item:last-child { text-align: right; }
.post-nav-item .nav-dir { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--light-gray); }
.post-nav-item .nav-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--dark); transition: color var(--transition); }
.post-nav-item:hover .nav-title { color: var(--orange); }

/* Comments */
.comments-area { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.comments-title { font-size: 1.4rem; margin-bottom: 32px; }
.comment-list { list-style: none; }
.comment-body { padding: 24px; background: var(--bg); border-radius: var(--radius-lg); margin-bottom: 16px; }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-meta img { border-radius: 50%; width: 40px; height: 40px; }
.comment-author .fn { font-weight: 700; font-size: 0.9rem; }
.comment-metadata time { font-size: 0.75rem; color: var(--light-gray); }
.comment-content p { font-size: 0.9rem; color: var(--gray); margin: 0; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.875rem;
  transition: border-color var(--transition); outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--orange); }
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form-comment { margin-bottom: 16px; }
.comment-form .submit { background: var(--orange); color: var(--white); padding: 12px 28px; border-radius: var(--radius); font-weight: 600; border: none; cursor: pointer; transition: var(--transition); }
.comment-form .submit:hover { background: var(--orange-dk); }

@media (max-width: 1024px) {
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { display: none; }
}
@media (max-width: 768px) {
  .single-hero { height: 55vh; }
  .post-nav { grid-template-columns: 1fr; }
}
