/* ============================
   BLOG.CSS – Diseño para entradas de blog (artículos, posts)
   Hereda variables de style.css
   Layout: imagen cinematográfica + artículo centrado + sidebar derecho
============================ */

/* ── HERO DEL POST ── */
.post-hero {
  position: relative;
  padding: 130px 0 56px;
  background: var(--shiba-warm);
  border-bottom: 1px solid var(--border);
  margin-top: 64px;
  overflow: hidden;
}
.post-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--shiba-orange), var(--shiba-amber), var(--shiba-gold));
}
.post-hero-kanji {
  position: absolute;
  left: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", "Noto Serif JP", serif;
  font-size: clamp(10rem, 20vw, 20rem);
  font-weight: 700;
  color: var(--shiba-orange);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.post-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.post-hero-inner .page-breadcrumb {
  color: var(--text-muted);
}
.post-hero-inner .page-breadcrumb a { color: var(--text-muted); }
.post-hero-inner .page-breadcrumb a:hover { color: var(--shiba-orange); }
.post-hero-inner .page-breadcrumb .sep { color: var(--border); }
.post-hero-inner .page-breadcrumb .current { color: var(--text); }
.post-hero-inner .page-tag {
  background: var(--shiba-orange);
  border: none;
  color: #fff;
}
.post-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
}
.post-hero .page-jp-sub {
  color: var(--shiba-orange);
  opacity: 0.7;
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.post-meta-item {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.post-meta-sep {
  color: var(--border);
  font-size: 0.82rem;
}

/* ── IMAGEN DESTACADA ── */
.post-featured-img {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  background: var(--ink);
}
.post-featured-img img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

/* ── LAYOUT PRINCIPAL ── */
.post-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}

/* ── CUERPO DEL ARTÍCULO ── */
.post-body {
  min-width: 0;
}
.post-intro {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 36px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--border);
  font-style: italic;
}
.post-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
  margin: 48px 0 16px;
  position: relative;
  padding-top: 16px;
}
.post-body h2::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--shiba-orange), var(--shiba-amber));
  border-radius: 2px;
}
.post-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 28px 0 12px;
}
.post-body p {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 20px;
}
.post-body strong { color: var(--ink); }
.post-body a {
  color: var(--shiba-orange);
  text-decoration: underline;
  text-decoration-color: rgba(200,90,42,0.3);
  transition: text-decoration-color 0.2s;
}
.post-body a:hover { text-decoration-color: var(--shiba-orange); }
.post-body ul,
.post-body ol {
  padding-left: 22px;
  margin-bottom: 20px;
}
.post-body li {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 8px;
  list-style: disc;
}
.post-body ol li { list-style: decimal; }

/* ── IMAGEN EN ARTÍCULO ── */
.post-body figure {
  margin: 36px -24px;
}
.post-body figure img {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  display: block;
}
.post-body figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
  padding: 0 24px;
}
.post-body .img-inline {
  margin: 28px 0;
}
.post-body .img-inline img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ── PULL QUOTE ── */
.post-pullquote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--shiba-orange);
  border: none;
  padding: 28px 32px;
  margin: 40px 0;
  background: var(--shiba-warm);
  border-radius: var(--radius);
  position: relative;
  line-height: 1.6;
}
.post-pullquote::before {
  content: '「';
  font-family: var(--font-jp);
  font-size: 3rem;
  color: var(--shiba-orange);
  opacity: 0.25;
  position: absolute;
  top: 8px; left: 16px;
  line-height: 1;
}

/* ── CAJA NOTA ── */
.post-body .note-box {
  background: rgba(200,90,42,0.07);
  border-left: 4px solid var(--shiba-orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* ── CAJA AUTOR ── */
.post-author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--shiba-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 56px 0 0;
}
.post-author-avatar {
  width: 56px; height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: var(--shiba-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-jp);
  font-size: 1.4rem;
  color: #fff;
}
.post-author-name {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.post-author-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── POSTS RELACIONADOS ── */
.page-related {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.page-related-title {
  font-family: var(--font-jp);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--shiba-orange);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.page-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.page-related-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.25s;
  box-shadow: var(--shadow-soft);
}
.page-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--shiba-orange);
}
.rel-kanji {
  font-family: var(--font-jp);
  font-size: 1.8rem;
  color: var(--shiba-orange);
  margin-bottom: 8px;
  opacity: 0.7;
}
.page-related-card h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.page-related-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}
.page-related-card span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--shiba-orange);
}

/* ── SIDEBAR ── */
.post-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .post-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px 60px;
  }
  .post-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .post-featured-img img { height: 320px; }
  .post-body figure { margin: 28px 0; }
  .post-body figure img { border-radius: var(--radius); }
  .page-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .post-hero { padding: 110px 0 44px; }
  .post-hero h1 { font-size: 1.7rem; }
  .post-featured-img img { height: 220px; }
  .post-sidebar { grid-template-columns: 1fr; }
  .post-author-box { flex-direction: column; }
  .post-pullquote { padding: 20px 20px 20px 28px; }
}
