/* ═══════════════════════════════════════════════════════════
   Puget Sound Moving — Single Post CSS
═══════════════════════════════════════════════════════════ */

/* ─── POST HERO ───────────────────────────────────────────── */
.single-hero {
  background: var(--navy); padding: 96px 0 72px;
  position: relative; overflow: hidden;
}
.single-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(201,148,42,0.04) 1px,transparent 1px),
                    linear-gradient(90deg,rgba(201,148,42,0.04) 1px,transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.single-hero-inner { position: relative; z-index: 2; max-width: 860px; }
.single-hero-cat {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,148,42,0.15); border: 1px solid rgba(201,148,42,0.3);
  padding: 5px 16px; font-family: 'Bebas Neue', sans-serif; font-size: 12px;
  letter-spacing: 3px; color: var(--gold); margin-bottom: 20px;
}
.single-hero-title {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(36px,5vw,68px);
  letter-spacing: 1px; line-height: 1.0; color: var(--white); margin-bottom: 24px;
}
.single-hero-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.single-hero-meta span { font-size: 13px; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 6px; }
.single-hero-meta .meta-author { color: var(--gold-light); font-weight: 600; }
.single-hero-meta .meta-sep { color: rgba(255,255,255,0.15); }

/* ─── FEATURED IMAGE ──────────────────────────────────────── */
.single-featured-img {
  width: 100%; max-height: 520px; object-fit: cover; display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* ─── SINGLE LAYOUT ───────────────────────────────────────── */
.single-body { padding: 72px 0 96px; background: var(--white); }
.single-layout { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }

/* ─── POST CONTENT ────────────────────────────────────────── */
.post-content { max-width: 720px; }
.post-content h2, .post-content h3, .post-content h4 {
  font-family: 'Bebas Neue', sans-serif; color: var(--navy); margin: 36px 0 14px; letter-spacing: 1px;
}
.post-content h2 { font-size: clamp(26px,3vw,38px); line-height: 1.0; }
.post-content h3 { font-size: clamp(22px,2.5vw,30px); line-height: 1.05; }
.post-content h4 { font-size: 22px; }
.post-content p  { font-size: 17px; color: var(--text-mid); line-height: 1.85; margin-bottom: 22px; }
.post-content a  { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--gold); }
.post-content ul, .post-content ol { margin: 0 0 24px 20px; }
.post-content li { font-size: 17px; color: var(--text-mid); line-height: 1.75; margin-bottom: 8px; }
.post-content blockquote {
  border-left: 4px solid var(--gold); margin: 32px 0; padding: 20px 28px;
  background: var(--off-white); position: relative;
}
.post-content blockquote p { font-family: 'Playfair Display', serif; font-style: italic; font-size: 20px; color: var(--navy); margin: 0; line-height: 1.6; }
.post-content img { max-width: 100%; height: auto; margin: 28px 0; }
.post-content hr { border: none; border-top: 2px solid var(--gray-bg); margin: 40px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 15px; }
.post-content table th { background: var(--navy); color: var(--gold); padding: 12px 16px; text-align: left; font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; }
.post-content table td { padding: 11px 16px; border-bottom: 1px solid #ECEAE3; color: var(--text-mid); }
.post-content table tr:hover td { background: var(--off-white); }

/* Callout box */
.post-content .callout {
  background: var(--navy); color: var(--white); padding: 28px 32px; margin: 32px 0;
  border-left: 4px solid var(--gold); position: relative;
}
.post-content .callout p { color: rgba(255,255,255,0.8); margin: 0; }

/* ─── TAGS ────────────────────────────────────────────────── */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0; padding-top: 32px; border-top: 1px solid #ECEAE3; }
.post-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-mid); text-decoration: none; padding: 6px 14px;
  border: 1.5px solid #D8D5CC; transition: all 0.2s;
  clip-path: polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%);
}
.post-tag:hover { border-color: var(--gold); color: var(--gold); }

/* ─── AUTHOR BOX ──────────────────────────────────────────── */
.author-box {
  background: var(--off-white); padding: 28px 28px; display: flex; gap: 20px;
  align-items: flex-start; margin: 48px 0; border-left: 4px solid var(--gold);
}
.author-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); flex-shrink: 0; overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; color: var(--navy); margin-bottom: 6px; }
.author-bio  { font-size: 14px; color: var(--text-mid); line-height: 1.65; }

/* ─── RELATED POSTS ───────────────────────────────────────── */
.related-posts { padding: 72px 0; background: var(--off-white); }
.related-posts-heading { margin-bottom: 36px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* Reuse post-card styles from blog.css */

/* ─── SIDEBAR (same as archive) ───────────────────────────── */
.single-sidebar { position: sticky; top: 96px; }

/* Table of contents (if using a plugin) */
.toc-widget { background: var(--off-white); padding: 24px; border-left: 3px solid var(--gold); margin-bottom: 36px; }
.toc-widget h4 { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 2px; color: var(--navy); margin-bottom: 14px; }
.toc-widget ol { padding-left: 18px; }
.toc-widget li { font-size: 14px; color: var(--text-mid); margin-bottom: 6px; }
.toc-widget li a { text-decoration: none; color: inherit; transition: color 0.2s; }
.toc-widget li a:hover { color: var(--gold); }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .single-sidebar { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  .post-content p, .post-content li { font-size: 16px; }
}

/* ─── POST NAV ────────────────────────────────────────────── */
.post-nav {
  display: flex; justify-content: space-between; align-items: stretch;
  gap: 2px; margin-top: 48px; padding-top: 40px; border-top: 1px solid #ECEAE3;
  background: #D8D5CC;
}
.post-nav-link {
  flex: 1; background: var(--white); padding: 20px 22px;
  text-decoration: none; display: flex; flex-direction: column; gap: 6px;
  transition: background .2s;
}
.post-nav-link:hover { background: var(--off-white); }
.post-nav-next { align-items: flex-end; text-align: right; }
.post-nav-dir {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 6px;
}
.post-nav-next .post-nav-dir { flex-direction: row-reverse; }
.post-nav-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 17px; letter-spacing: 1px;
  color: var(--navy); line-height: 1.2; transition: color .2s;
}
.post-nav-link:hover .post-nav-title { color: var(--gold); }
.post-nav-icon-flip { transform: scaleX(-1); }

/* ─── SHARE BUTTONS ───────────────────────────────────────── */
.sidebar-share-links { display: flex; flex-direction: column; gap: 8px; }
.sidebar-share-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 13px; font-weight: 700; letter-spacing: .5px;
  text-decoration: none; border: 1.5px solid #E5E3DA; transition: all .2s;
  color: var(--text-mid);
}
.sidebar-share-fb:hover { background: #1877F2; border-color: #1877F2; color: var(--white); }
.sidebar-share-tw:hover { background: #1DA1F2; border-color: #1DA1F2; color: var(--white); }
.sidebar-share-li:hover { background: #0A66C2; border-color: #0A66C2; color: var(--white); }

/* ─── ARTICLE LIST (replaces sidebar-recent-list) ────────── */
.sidebar-article-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.sidebar-article-item { border-bottom: 1px solid #ECEAE3; }
.sidebar-article-item:last-child { border-bottom: none; }
.sidebar-article-link {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; text-decoration: none; transition: opacity .2s;
}
.sidebar-article-link:hover { opacity: .8; }
.sidebar-article-link:hover .sidebar-article-title { color: var(--gold); }

.sidebar-article-thumb {
  width: 68px; height: 54px; flex-shrink: 0; overflow: hidden; background: var(--navy);
}
.sidebar-article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-article-thumb-placeholder {
  width: 100%; height: 100%; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}

.sidebar-article-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sidebar-article-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); display: block;
}
.sidebar-article-title {
  font-size: 13.5px; font-weight: 600; color: var(--text-dark);
  line-height: 1.4; display: block; transition: color .2s;
  /* Truncate to 2 lines */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-article-date { font-size: 11px; color: var(--text-light); display: block; }

/* ─── NO-IMAGE POST CARD ──────────────────────────────────── */
.post-card-no-image {
  width: 100%; height: 100%;
  background: linear-gradient(
    135deg,
    hsl(var(--card-hue, 210), 70%, 14%) 0%,
    hsl(var(--card-hue, 210), 60%, 20%) 100%
  );
  display: flex; align-items: center; justify-content: center;
}
.post-card-no-image-inner {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.post-card-no-image-label {
  font-family: 'Bebas Neue', sans-serif; font-size: 11px;
  letter-spacing: 4px; color: rgba(255,255,255,.12);
}

/* ─── HIDE DEFAULT WP WIDGETS in sidebar ─────────────────── */
/* We output our own Recent Posts / Categories above, so hide WP defaults */
.single-sidebar .widget_recent_entries,
.single-sidebar .widget_recent_comments,
.single-sidebar .widget_categories,
.single-sidebar .widget_search,
.single-sidebar .widget_archive,
.single-sidebar .widget_meta { display: none; }

/* Style any other WP widgets that DO appear */
.single-sidebar .widget { margin-bottom: 32px; }
.single-sidebar .widget-title,
.single-sidebar h2.widget-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 3px;
  color: var(--navy); margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-pale); position: relative;
}
.single-sidebar h2.widget-title::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 40px; height: 2px; background: var(--gold);
}

/* ─── RELATED POSTS NO-IMAGE responsive ──────────────────── */
@media (max-width: 860px) {
  .post-nav { flex-direction: column; }
  .post-nav-next { align-items: flex-start; text-align: left; }
  .post-nav-next .post-nav-dir { flex-direction: row; }
  .sidebar-share-links { flex-direction: row; }
  .sidebar-share-btn { flex: 1; justify-content: center; }
}
@media (max-width: 600px) {
  .sidebar-share-links { flex-direction: column; }
  .sidebar-share-btn { flex: none; }
}
