/**
 * Hayder Voice — Single Post Styles
 */

@layer components {

/* ── SUPPRESS DUPLICATE FEATURED IMAGE IN CONTENT ── */
.post-body .wp-block-post-featured-image,
.entry-content .wp-block-post-featured-image,
.post-body .wp-post-image,
.entry-content > .wp-post-image,
.article-body > figure:first-child,
.entry-content > figure:first-child,
.article-body > .wp-block-image:first-child,
.article-body > p:first-child > img {
  display: none !important;
}

/* ── READING PROGRESS ── */
.reading-progress-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 99;
  background: linear-gradient(to right, #C4956A, #C4604A);
  transform-origin: left; transform: scaleX(0);
  transition: transform 50ms linear;
}

/* ── POST HERO ── */
.post-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 0;
  background: #09090A;
}
.post-hero .wp-post-image,
.post-hero__bg img,
.post-hero__img {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
}
.post-hero__image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.post-hero__overlay,
.post-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg,
    rgba(9,9,10,0.95) 0%,
    rgba(9,9,10,0.65) 45%,
    rgba(9,9,10,0.15) 100%);
}
.post-hero__overlay { content: none; } /* use ::before instead */
.post-hero::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 55%; z-index: 1;
  background: linear-gradient(to top, rgba(9,9,10,1) 0%, transparent 100%);
}
.post-hero__content {
  position: relative; z-index: 2;
  padding: 0 5% 4.5rem; max-width: 820px;
}
.post-hero__category,
.post-category-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: #C4956A;
  display: block; margin-bottom: 1.25rem;
  text-decoration: none;
  writing-mode: horizontal-tb;
}
.post-hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 300; color: #F5F0E8;
  line-height: 1.08; letter-spacing: -0.01em;
  writing-mode: horizontal-tb; white-space: normal;
  display: block; width: 100%;
}
.post-hero__excerpt {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: rgba(184,180,171,0.75); line-height: 1.8;
  margin-top: 1.25rem; max-width: 580px;
  display: block;
}
.post-hero__meta {
  display: flex; gap: 1rem; align-items: center;
  margin-top: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem; color: #4A4A44;
}
.post-hero__meta .sep { color: #2A2A25; }

/* ── ARTICLE ── */
.article-wrap {
  max-width: 660px; margin: 0 auto;
  padding: 5rem 2rem 3rem;
}
.article-body {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.175rem);
  line-height: 1.9; color: #B8B4AB;
}
.article-body > p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5.5em; font-weight: 400; color: #C4956A;
  float: left; line-height: 0.75;
  padding-right: 0.12em; padding-top: 0.1em;
}
.article-body p { margin-bottom: 1.8rem; }
.article-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300; color: #E8E4DC;
  line-height: 1.2; margin: 3.5rem 0 1.25rem;
}
.article-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 400; color: #E8E4DC;
  margin: 2.5rem 0 1rem;
}
.article-body blockquote {
  border-left: 2px solid #C4956A;
  background: rgba(196,149,106,0.05);
  padding: 1.25rem 2rem; margin: 2.5rem 0;
  border-radius: 0 8px 8px 0;
}
.article-body blockquote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-style: italic; color: #E8E4DC;
  line-height: 1.65; margin: 0;
}
.article-body a { color: #C4956A; text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: #C4956A; opacity: 0.85; }
.article-body img { width: 100%; border-radius: 6px; margin: 2rem 0 0.5rem; }
.article-body figcaption {
  font-size: 0.8rem; color: #4A4A44;
  font-style: italic; text-align: center; margin-bottom: 2rem;
}
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.8rem; }
.article-body li { margin-bottom: 0.5rem; line-height: 1.8; }
.article-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875em; color: #C4956A;
  background: #0F0F0D; padding: 0.2em 0.4em;
  border-radius: 4px; border: 1px solid #1E1E1A;
}
.article-body pre {
  background: #0F0F0D; border: 1px solid #1E1E1A;
  border-radius: 8px; padding: 1.5rem;
  overflow-x: auto; margin: 2rem 0;
}
.article-body pre code { background: none; border: none; padding: 0; color: #B8B4AB; }
.article-body hr {
  border: none; text-align: center; margin: 3rem 0;
  color: #C4956A; font-size: 1.2rem; letter-spacing: 0.5em;
}
.article-body hr::after { content: '· · ·'; }

/* ── POST BOTTOM ── */
.post-bottom {
  max-width: 660px; margin: 0 auto;
  padding: 3rem 2rem 4rem;
  border-top: 1px solid #1E1E1A;
}
.post-tags-wrap {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.post-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: #7A7870;
  border: 1px solid #2A2A25; border-radius: 9999px;
  padding: 0.35rem 1rem; text-decoration: none;
  transition: all 0.3s; display: inline-block;
}
.post-tag:hover { color: #C4956A; border-color: rgba(196,149,106,0.4); }

/* Post footer (share + tags) */
.post-footer {
  max-width: 660px; margin: 0 auto;
  padding: 0 2rem 2rem;
}
.post-footer__inner {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.post-footer__share-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ── AUTHOR BIO ── */
.author-bio,
.author-bio-card {
  max-width: 660px; margin: 0 auto 2rem;
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: #0F0F0D; border: 1px solid #1E1E1A;
  border-radius: 12px; padding: 1.75rem;
}
.author-bio__avatar,
.author-bio-card img {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  filter: grayscale(20%);
  border: 1px solid #2A2A25;
  position: static !important; opacity: 1 !important;
}
.author-bio__name,
.author-bio-card__name {
  font-family: 'Inter', sans-serif; font-size: 0.85rem;
  font-weight: 600; color: #E8E4DC; margin-bottom: 0.4rem;
  display: block;
}
.author-bio__bio,
.author-bio-card__bio {
  font-size: 0.9rem; color: #7A7870; line-height: 1.7; margin: 0;
}
.author-bio__text { display: flex; flex-direction: column; gap: 0.35rem; }

/* ── RELATED POSTS ── */
.related-posts {
  padding: 5rem 0 6rem;
  border-top: 1px solid #1E1E1A;
}
.related-posts__header {
  margin-bottom: 2.5rem;
}
.related-posts__title,
.related-posts__heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 300; color: #E8E4DC;
  margin-top: 0.5rem;
}
.related-posts__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}

/* ── POST NAVIGATION ── */
.post-navigation {
  max-width: 660px; margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex; justify-content: space-between; gap: 2rem;
  border-top: 1px solid #1E1E1A;
}
.nav-previous, .nav-next { flex: 1; }
.nav-next { text-align: right; }
.nav-previous a, .nav-next a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; color: #E8E4DC;
  text-decoration: none; line-height: 1.4;
}
.nav-previous .meta-nav, .nav-next .meta-nav {
  display: block; font-family: 'Inter', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: #C4956A; margin-bottom: 0.4rem;
}

/* ── COMMENTS ── */
.comments-area {
  max-width: 760px; margin: 0 auto;
  padding: 4rem 5% 6rem;
  border-top: 1px solid #1E1E1A;
}
.comments-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 300; color: #E8E4DC;
  margin-bottom: 3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #1E1E1A;
}

/* Comment list */
.comment-list {
  list-style: none; padding: 0; margin: 0 0 3.5rem;
}
.comment {
  padding: 2rem 0;
  border-bottom: 1px solid #1E1E1A;
}
.comment:last-child { border-bottom: none; }
.children {
  list-style: none;
  padding-left: 2rem;
  border-left: 2px solid #1E1E1A;
  margin-top: 1.5rem;
}

/* Comment meta */
.comment-meta {
  display: flex; align-items: center;
  gap: 1rem; margin-bottom: 1.25rem;
}
.comment-author .fn {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; font-weight: 600; color: #E8E4DC;
  font-style: normal;
}
.comment-author .avatar {
  border-radius: 50%; filter: grayscale(30%);
  border: 1px solid #2A2A25;
}
.comment-metadata {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; color: #4A4A44;
}
.comment-metadata a { color: #4A4A44; text-decoration: none; }
.comment-metadata a:hover { color: #7A7870; }

/* Comment body text */
.comment-body p,
.comment-content p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem; color: #B8B4AB; line-height: 1.85;
  margin-bottom: 1rem;
}
.comment-content p:last-child { margin-bottom: 0; }
.comment-reply-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #4A4A44;
  text-decoration: none; display: inline-block;
  margin-top: 0.75rem;
  transition: color 0.3s;
}
.comment-reply-link:hover { color: #C4956A; }

/* Comment form */
.comment-respond {
  background: #0F0F0D;
  border: 1px solid #1E1E1A;
  border-radius: 12px;
  padding: 2.5rem;
  margin-top: 3rem;
}
.comment-reply-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 300; color: #E8E4DC;
  margin-bottom: 2rem;
}
.comment-form .comment-notes {
  font-size: 0.82rem; color: #4A4A44;
  margin-bottom: 1.5rem;
}
.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
  margin-bottom: 1.5rem;
}
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: #7A7870;
  margin-bottom: 0.5rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  background: #141412; border: 1px solid #2A2A25; border-radius: 6px;
  color: #E8E4DC; font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.85rem 1rem; width: 100%;
  transition: border-color 0.3s;
}
.comment-form input:focus, .comment-form textarea:focus {
  border-color: rgba(196,149,106,0.5); outline: none;
  background: #1a1a17;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.form-submit { margin-top: 0.5rem; }
.submit {
  background: #C4956A; color: #09090A; border: none;
  padding: 0.85rem 2.5rem; border-radius: 6px;
  font-family: 'Inter', sans-serif; font-size: 0.78rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; font-weight: 600;
  transition: background 0.3s;
}
.submit:hover { background: #F5F0E8; }

/* ── TALE HERO (story posts) ── */
.tale-hero {
  padding: calc(68px + 4rem) 5% 3rem;
}
.tale-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300; color: #E8E4DC; line-height: 1.05;
}

/* ── MOBILE ── */
@media (max-width: 767px) {
  .post-hero { min-height: 70vh; }
  .post-hero__content { padding: 0 1.25rem 2.5rem; max-width: 100%; }
  .post-hero__title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .article-wrap { padding: 3rem 0; }
  .article-body { font-size: 1.05rem; }
  .article-wrap, .post-bottom, .post-footer,
  .related-posts, .post-navigation, .comments-area,
  .author-bio, .author-bio-card { padding-left: 1.25rem; padding-right: 1.25rem; }
  .related-posts { padding: 3rem 0 4rem; }
  .related-posts__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .post-navigation { flex-direction: column; }
  .nav-next { text-align: left; }
  .author-bio, .author-bio-card { flex-direction: column; }
}

} /* @layer components */
