/* --------------------------------------------------------------
  投稿ページ用スタイル（Post Page Styles）
  説明：投稿本文・アイキャッチ・関連記事・ページネーション等を装飾
  対象：WordPressやブログプラットフォームなど
-------------------------------------------------------------- */

/* === 投稿ページ全体 === */
.gutenberg-blocks {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--spacing-large) var(--spacing-small);
}

/* === 投稿タイトル === */
.post-title {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-xl);
  color: var(--color-main);
  margin-bottom: var(--spacing-small);
  position: relative;
}

/* タイトル下のアニメーション付き下線 */
.post-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin-top: 0.5rem;
  animation: underline-slide-in 0.6s ease forwards;
}

@keyframes underline-slide-in {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

/* === メタ情報（投稿日・カテゴリなど） === */
.post-meta {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  margin-bottom: var(--spacing-medium);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-meta strong {
  font-weight: 600;
}

/* === アイキャッチ画像 === */
.post-thumbnail {
  margin-bottom: 1.5rem;
  text-align: center; /* 画像を中央揃え */
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  max-width: 1200px; /* 最大幅制限 */
  aspect-ratio: 16 / 9; /* 比率を16:9に固定 */
  object-fit: cover; /* トリミング時もきれいに */
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.post-thumbnail img:hover,
.post-thumbnail img:focus {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* === 投稿本文 === */
.post-content {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: var(--spacing-large);
  margin-bottom: var(--spacing-small);
  color: var(--color-main);
}

.post-content p {
  margin-bottom: var(--spacing-small);
}

/* === ページネーション === */
.post-pagination {
  margin-top: var(--spacing-large);
  text-align: center;
}

.post-pagination span {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--color-line);
  border-radius: var(--border-radius, 6px);
}

/* === SNSシェアボタン（外部関数で出力を想定） === */
/* ex. isshin_ippo_output_post_share_buttons にて制御 */

/* === 関連記事セクション === */
.related-posts {
  margin-top: var(--spacing-large);
  padding-top: var(--spacing-large);
  border-top: 1px solid var(--color-line);
}

.related-posts h2 {
  font-size: var(--font-size-lg);
  color: var(--color-main);
  margin-bottom: var(--spacing-medium);
}

.related-posts ul {
  list-style: none; /* デフォルトの・を消す */
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-small);
}

.related-posts li {
  background-color: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--border-radius, 8px);
  padding: var(--spacing-small);
  transition: box-shadow 0.3s ease;
}

.related-posts li:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.related-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--border-radius, 4px);
  background-color: #000; /* ローディング中に黒背景 */
}

.related-thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--border-radius, 4px);
  background-color: #000;
}

.related-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}




.related-posts a {
  display: block;
  color: var(--color-main);
  font-weight: 500;
  text-decoration: none;
}

.related-posts a:hover {
  color: var(--color-accent);
}

/* === レスポンシブ対応：スマホ用（600px以下） === */
@media screen and (max-width: 600px) {
  .post-thumbnail img {
    max-width: 100%;
    border-radius: 4px;
  }
}


/* === 目次コンテナ全体 ================================================================== */
/* ========================
   目次コンテナ全体
======================== */
.post-toc {
  background-color: var(--color-bg, #141414);
  border: 1px solid var(--color-line, #3a3a3a);
  border-radius: var(--border-radius, 8px);
  padding: var(--spacing-md, 1rem);
  margin-bottom: var(--spacing-lg, 2rem);
  font-size: var(--font-size-base, 1rem);
  line-height: 1.6;
  color: var(--color-text-dark, #b0b0b0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

/* ========================
   目次タイトル
======================== */
.post-toc > h2 {
  font-size: var(--font-size-lg, 1.5rem);
  line-height: var(--line-height-lg, 1.4);
  font-weight: 700;
  margin-bottom: var(--spacing-sm, 0.5rem);
  color: var(--color-main, #121212);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================
   トグルボタン
======================== */
#toc-toggle {
  display: inline-block;
  margin-bottom: 0.5em;
  background-color: var(--color-accent, #1e75e0);
  color: var(--color-text-light, #e0e0e0);
  padding: 0.5em 1em;
  border: none;
  border-radius: var(--border-radius, 8px);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#toc-toggle:hover,
#toc-toggle:focus-visible {
  background-color: var(--color-accent-light, #5499ff);
  transform: translateY(-2px);
  outline: none;
}
.toc-toggle {
  font-size: 0.50em;
}
/* ========================
   目次リスト全体
======================== */
.post-toc ul {
  list-style: none;
  padding-left: 1em;
  margin: 0;
}

/* ========================
   リストアイテム
======================== */
.post-toc ul li {
  margin: 0.75rem 0;
}

/* ========================
   リンク
======================== */
.post-toc ul li a {
  color: var(--color-accent, #1e75e0);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: color 0.3s ease;
}

.post-toc ul li a:hover,
.post-toc ul li a:focus {
  color: var(--color-accent-dark, #0a3c7b);
  text-decoration: underline;
  outline: none;
}

/* ========================
   アクティブリンク
======================== */
#toc-list a.active {
  font-weight: 700;
  text-decoration: underline;
  color: var(--color-accent, #1e75e0);
}

/* ========================
   ネスト階層の見た目調整
======================== */
.post-toc ul ul {
  padding-left: 0.75rem;
  font-size: 0.95em;
}
.post-toc ul ul ul {
  padding-left: 1rem;
  font-size: 0.9em;
}
.post-toc ul ul ul ul {
  padding-left: 1.25rem;
  font-size: 0.85em;
}
.post-toc ul ul ul ul ul {
  padding-left: 1.5rem;
  font-size: 0.8em;
}

/* ========================
   モバイル対応（600px以下）
======================== */
@media screen and (max-width: 600px) {
  .post-toc {
    padding: 0.75em;
    font-size: 0.95rem;
  }

  .post-toc > h2 {
    font-size: calc(var(--font-size-lg, 1.5rem) * 0.85);
    line-height: calc(var(--line-height-lg, 1.4) * 0.85);
    margin-bottom: calc(var(--spacing-sm, 0.5rem) * 0.75);
  }

  .post-toc ul {
    line-height: 1.4;
  }

  .post-toc ul li {
    margin: 0.5rem 0;
  }

  .post-toc ul ul {
    padding-left: 0.5rem;
    font-size: 0.9em;
  }
  .post-toc ul ul ul {
    padding-left: 0.75rem;
    font-size: 0.85em;
  }
  .post-toc ul ul ul ul {
    padding-left: 1rem;
    font-size: 0.8em;
  }
  .post-toc ul ul ul ul ul {
    padding-left: 1.25rem;
    font-size: 0.75em;
  }
}





/* ========== 共通ナビゲーションボタンスタイル ============================================================= */
.nav-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5em;
  font-weight: 600;
  font-size: 14px;
  color: #0073aa;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  box-sizing: border-box;
  transition: background-color 0.3s, color 0.3s;
  width: 100%;
}

.nav-icon:hover,
.nav-icon:focus-visible {
  background-color: #0073aa;
  color: #fff;
  outline: none;
}

.nav-icon .icon {
  font-size: 1.3em;
  line-height: 1;
  margin-bottom: 0.2em;
}

.nav-icon .label {
  font-size: 0.75em;
  line-height: 1.2;
  text-align: center;
  user-select: none;
}

/* CTAボタン */
.nav-icon.nav-cta {
  background-color: #0073aa;
  color: #fff;
}

.nav-icon.nav-cta:hover,
.nav-icon.nav-cta:focus-visible {
  background-color: #005f8c;
}

/* 無効化状態 */
.nav-icon.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

/* ========== スクロール進捗バー ========== */
.scroll-progress-bar {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5em 0;
  flex-shrink: 0;
}

.scroll-fill {
  height: 100%;
  width: 0%;
  background: #0073e6;
  border-radius: 4px;
  transition: width 0.1s linear;
  display: block;
}

/* 俺庭カラーテーマ変数セット（:root）を先に定義してる前提 */

/* メインコンテンツ左マージン */


.nav-section-title {
  text-align: center;
}

main {
  margin-left: 220px; /* サイドバー分の余白 */
}
@media (max-width: 768px) {
  main {
    margin-left: 0 !important;
  }
}

/* ========== 共通ナビゲーションボタンスタイル ========== */
.nav-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-accent);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
  width: 100%;
  letter-spacing: 0.03em;
}

.nav-icon:hover,
.nav-icon:focus-visible {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  outline: none;
  border-color: var(--color-accent-light);
  box-shadow: 0 0 8px var(--color-accent-light);
}

.nav-icon .icon {
  font-size: 1.4em;
  line-height: 1;
  margin-bottom: 0.3em;
}

.nav-icon .label {
  font-size: 0.75em;
  line-height: 1.2;
  text-align: center;
  user-select: none;
}

/* ========== スクロール進捗バー ========== */
.scroll-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--color-line);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5em 0;
  flex-shrink: 0;
}

.scroll-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent-light), var(--color-accent-dark));
  border-radius: 4px;
  transition: width 0.15s linear;
  display: block;
  box-shadow: 0 0 8px var(--color-accent-light);
}

/* ========== 俺庭カスタム サイドバー（左固定） ========== */
.left-sidebar-nav {
  position: fixed;
  top: 80px; /* ヘッダー高さ */
  left: 0;
  height: calc(100vh - 60px);
  width: 200px;
   border-right: 1px solid var(--color-line);
  backdrop-filter: blur(6px);
  box-shadow: 3px 0 15px rgba(0, 0, 0, 0.7);
  padding: 1.2em 1em;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  overflow-y: auto;
  font-size: 14px;
  user-select: none;
 background-color: black;
  z-index: 9999;
  letter-spacing: 0.03em;
  color: var(--color-text-light);
}

/* 本文に左マージンを加える */
body.single-post main {
  margin-left: 220px; /* サイドバー分 */
}

/* ========== モバイル用下部ナビ ========== */
.nav-icons-mobile {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0 6px;
}

/* ========== メディアクエリ（スマホ対応） ========== */
@media (max-width: 768px) {
  /* サイドバー非表示 */
  .left-sidebar-nav {
    display: none;
  }

  /* 本文の左マージンを解除しつつ下の固定ナビのために余白を追加 */
  body.single-post main {
    margin-left: 0 !important;
    padding-left: 1em;
    padding-bottom: 96px; /* sticky-nav(48px) + nav-icons-mobile(48px) の高さ分余白確保 */
  }

  /* ===== スマホ用ナビを画面下に固定 ===== */
  .sticky-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 16px;
    background: var(--color-main);
    border-top: 1px solid var(--color-line);
    border-bottom: none;
    position: fixed;
    bottom: 48px;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    color: var(--color-accent-light);
  }

  /* ナビアイコンエリアを画面最下部に固定 */
  .nav-icons-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background: var(--color-bg);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.7);
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-top: 1px solid var(--color-line);
    padding: 4px 8px;
    color: var(--color-text-light);
  }

  .nav-icons-mobile .nav-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 11px;
    color: var(--color-text-dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-line);
    background: var(--color-sub);
    cursor: pointer;
    white-space: nowrap;
    min-width: 60px;
    transition: all 0.3s ease;
  }

  .nav-icons-mobile .nav-icon:hover,
  .nav-icons-mobile .nav-icon:focus-visible {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 10px var(--color-accent-light);
  }

  /* 無効化されたアイコンは今回使っていないので削除 */

  /* アイコン本体 */
  .nav-icons-mobile .nav-icon .icon {
    font-size: 20px;
    margin-bottom: 4px;
  }

  /* ラベル */
  .nav-icons-mobile .nav-icon .label {
    font-size: 10px;
    user-select: none;
    line-height: 1.2;
    text-align: center;
  }

  /* スクロール進捗バー */
  .scroll-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--color-line);
    margin-top: 8px;
    border-radius: 4px;
    overflow: hidden;
  }

  .scroll-fill {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, var(--color-accent-light), var(--color-accent-dark));
    transition: width 0.3s ease;
  }
}

/* ========== PC表示では非表示 ========== */
@media (min-width: 769px) {
  .sticky-nav {
    display: none;
  }
}

/* 目次スマホ時閉じる */
@media (max-width: 768px) {
  .post-toc .toc-list {
    display: none;
  }
}

/* サイドバーの右側にマージンを追加 */
.left-sidebar-nav {
  margin-right: 20px; /* サイドバーとメインコンテンツの間に20pxの余白 */
}

/* 検索フォームカスタム */
.nav-icon.search-form {
  cursor: auto;
  gap: 6px;
  width: 100%;
}

.nav-icon.search-form input[type="search"] {
  font-size: 13px;
  padding: 4px 6px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-line);
  width: 100%;
  background: var(--color-bg);
  color: var(--color-text-light);
  transition: border-color 0.3s ease, background-color 0.3s ease;
  box-sizing: border-box;
}

.nav-icon.search-form input[type="search"]:focus {
  border-color: var(--color-accent);
  outline: none;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}



/* 見出し */
.post-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #444;
  padding-bottom: 0.5rem;
}

/* メタ情報 */
.post-meta {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 2rem;
}

.post-meta div {
  margin-bottom: 0.4rem;
}

.post-meta a {
  color: #00b7ff;
  text-decoration: underline;
}

.post-meta a:hover {
  text-decoration: none;
}

/* アイキャッチ画像 */
.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 2rem;
}

/* 本文 */
.post-content {
  font-size: 1rem;
  margin-bottom: 3rem;
}

.post-content h2,
.post-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
  border-left: 5px solid #00b7ff;
  padding-left: 0.75rem;
}

.post-content h2 {
  font-size: 1.5rem;
}

.post-content h3 {
  font-size: 1.2rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content a {
  color: #56caff;
  text-decoration: underline;
}

.post-content a:hover {
  text-decoration: none;
}

/* 投稿者情報 */
.post-author-info {
  border-top: 1px solid #444;
  margin-top: 4rem;
  padding-top: 2rem;
}

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: #1a1a1a;
  padding: 1rem;
  border-radius: 8px;
}

.author-avatar img {
  border-radius: 50%;
}

.author-details {
  flex: 1;
}

.author-name {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.author-description {
  font-size: 0.95rem;
  color: #bbb;
}

/* 関連記事 */
.related-posts {
  margin-top: 4rem;
}

.related-posts h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-left: 4px solid #00b7ff;
  padding-left: 0.6rem;
}

.related-post-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  padding: 0;
  list-style: none;
}

.related-post-item {
  background-color: #1e1e1e;
  padding: 0.8rem;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.related-post-item:hover {
  transform: translateY(-3px);
}

.related-post-link {
  display: block;
  text-decoration: none;
  color: #ccc;
}

.related-post-link:hover {
  color: #00b7ff;
}

.related-thumbnail img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.related-post-title {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ページネーション */
.post-pagination {
  margin-top: 2rem;
  text-align: center;
}

.post-pagination span {
  display: inline-block;
  margin: 0 4px;
  padding: 0.3rem 0.6rem;
  background: #222;
  color: #ddd;
  border-radius: 4px;
}

.post-pagination span.current {
  background-color: #00b7ff;
  color: #fff;
}

/* 目次ブロック例（generate_tocが出力するID/クラスに応じて調整） */
#toc {
  background: #1e1e1e;
  padding: 1rem;
  border-left: 4px solid #00b7ff;
  margin-bottom: 2rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

#toc ul {
  list-style: none;
  padding-left: 1rem;
}

#toc a {
  color: #56caff;
  text-decoration: none;
}

#toc a:hover {
  text-decoration: underline;
}
/* ==============================
   🎯 SINGLE POST PAGE STYLES
   ============================== */



/* Gutenberg全体ラッパー */
.gutenberg-blocks {
  max-width: 800px;
  margin: 0 auto;

  padding: var(--spacing-lg) var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: 0 0 12px rgba(0,0,0,0.04);
}

/* タイトル */
.post-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.01em;
}

/* メタ情報 */
.post-meta {
  font-size: 0.95rem;
  color: var(--color-subtle);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}
.post-meta strong {
  color: var(--color-text);
}
.post-meta a {
  color: var(--color-accent);
  text-decoration: none;
}
.post-meta a:hover {
  text-decoration: underline;
}

/* アイキャッチ */
.post-thumbnail {
  margin: var(--spacing-lg) 0;
  text-align: center;
}
.post-thumbnail img {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 0 12px rgba(0,0,0,0.06);
}

/* 本文 */
.post-content {
  font-size: 1.06rem;
  line-height: 1.9;
  color: var(--color-text);
}
.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}
.post-content p {
  margin-bottom: var(--spacing-md);
}
.post-content ul,
.post-content ol {
  margin: var(--spacing-md) 0;
  padding-left: 1.4em;
}
.post-content blockquote {
  margin: var(--spacing-md) 0;
  padding: 1em;
  background: #f9f9f9;
  border-left: 4px solid var(--color-accent);
  font-style: italic;
  color: #333;
}

/* 投稿者セクション */
.post-author-info {
  margin-top: var(--spacing-xl);
  border-top: 1px solid #ddd;
  padding-top: var(--spacing-lg);
  text-align: left;
}
.author-box {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}
.author-avatar img {
  border-radius: 50%;
}
.author-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}
.author-description {
  font-size: 0.95rem;
  color: var(--color-subtle);
}

/* 関連記事 */
.related-posts {
  margin-top: var(--spacing-xl);
}
.related-post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  padding: 0;
  list-style: none;
}
.related-post-item {
  background: #fafafa;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.related-post-item:hover {
  transform: translateY(-4px);
}
.related-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.related-thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--border-radius, 4px);
  background-color: #000;
}

.related-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-post-title {
  padding: var(--spacing-sm);
  font-size: 1rem;
  font-weight: 500;
}

/* ページネーション */
.post-pagination {
  margin-top: var(--spacing-lg);
  text-align: center;
}
.post-pagination span {
  display: inline-block;
  margin: 0 4px;
  padding: 0.4em 0.8em;
  border-radius: 4px;
  background-color: var(--color-accent);
  color: #fff;
  font-weight: 600;
}
/* ──────────────────────────────
   KunioPress Single Post Styles
   ────────────────────────────── */

.single-post main {
  background-color: var(--color-bg);
  color: var(--color-text);
  padding: var(--spacing-xl) var(--spacing-md);
  line-height: var(--line-height-base);
  font-family: var(--font-family-base);
}

.single-post .post-title {
  font-size: var(--font-size-xl);
  font-family: var(--font-family-heading);
  margin-bottom: var(--spacing-sm);
  color: var(--color-strong-philosophy);
}

.single-post .post-meta {
  font-size: var(--font-size-sm);
  color: var(--color-subtle);
  margin-bottom: var(--spacing-lg);
}

.single-post .post-meta time,
.single-post .post-meta .category,
.single-post .post-meta .tags,
.single-post .post-meta .author {
  display: block;
  margin-bottom: var(--spacing-xs);
}

.single-post .post-meta a {
  color: var(--color-muted);
  text-decoration: none;
}

.single-post .post-meta a:hover {
  text-decoration: underline;
  color: var(--color-accent);
}

.single-post .post-thumbnail {
  margin: var(--spacing-lg) 0;
  text-align: center;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.single-post .post-content {
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: var(--line-height-base);
  margin-top: var(--spacing-lg);
}

.single-post .post-content h2,
.single-post .post-content h3 {
  font-family: var(--font-family-heading);
  color: var(--color-strong-default);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.single-post .post-content a {
  color: var(--color-accent);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.single-post .post-content a:hover {
  color: var(--color-accent-dark);
}

.single-post .post-author-info {
  background-color: var(--color-bg-dark);
  color: var(--color-text);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-glow-pink);
}

.single-post .author-box {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.single-post .author-avatar img {
  border-radius: 50%;
  width: 96px;
  height: 96px;
}

.single-post .author-details {
  flex: 1;
}

.single-post .author-name a {
  font-family: var(--font-family-heading);
  color: var(--color-strong-energy);
  font-size: var(--font-size-lg);
  text-decoration: none;
}

.single-post .author-description {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

.single-post .related-posts {
  margin-top: var(--spacing-xl);
}

.single-post .related-posts h2 {
  font-family: var(--font-family-heading);
  color: var(--color-strong-structure);
  margin-bottom: var(--spacing-md);
}

.single-post .related-post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
}

.single-post .related-post-item {
  background: var(--color-bg-dark);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.single-post .related-post-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.single-post .related-post-link {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--spacing-sm);
}

.single-post .related-post-title {
  display: block;
  font-size: var(--font-size-sub);
  margin-top: var(--spacing-xs);
  color: var(--color-strong-default);
}

.single-post .post-pagination {
  margin-top: var(--spacing-lg);
  text-align: center;
}

.single-post .post-pagination span {
  margin: 0 var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: var(--color-accent-dark);
  color: var(--color-text-light);
  border-radius: var(--btn-border-radius);
  display: inline-block;
}

@media (max-width: 768px) {
  .single-post .author-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .single-post .related-post-list {
    grid-template-columns: 1fr;
  }
}
