/* ═══════════════════════════════════════════════════════════
   Puget Sound Moving — Blog Archive CSS
═══════════════════════════════════════════════════════════ */

/* ─── ARCHIVE HERO ────────────────────────────────────────── */
.archive-hero {
  background: var(--navy); padding: 100px 0 80px;
  position: relative; overflow: hidden;
}
.archive-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;
}
.archive-hero-inner { position: relative; z-index: 2; text-align: center; }
.archive-hero .section-eyebrow { justify-content: center; }
.archive-hero .section-eyebrow::before { display: none; }
.archive-hero-desc { font-size: 18px; color: rgba(255,255,255,0.55); max-width: 560px; margin: 18px auto 0; line-height: 1.7; }

/* ─── CATEGORY FILTER BAR ─────────────────────────────────── */
.archive-filter-bar { background: var(--off-white); border-bottom: 2px solid #E5E3DA; padding: 16px 5%; }
.archive-filter-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-label { font-family: 'Bebas Neue', sans-serif; font-size: 13px; letter-spacing: 4px; color: var(--text-light); flex-shrink: 0; }
.filter-chip {
  display: inline-flex; padding: 7px 18px; background: transparent;
  border: 1.5px solid #D8D5CC; font-size: 13px; font-weight: 600;
  color: var(--text-mid); text-decoration: none; transition: all 0.2s;
  clip-path: polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%);
}
.filter-chip:hover, .filter-chip.active {
  background: var(--navy); border-color: var(--navy); color: var(--gold-light);
}

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

/* ─── POST CARDS ──────────────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* Featured first post — full width */
.post-card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); overflow: hidden; }
.post-card-featured .post-card-image { height: 100%; min-height: 320px; }
.post-card-featured .post-card-body { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.post-card-featured .post-card-title { font-size: clamp(24px, 3vw, 36px); color: var(--white); }
.post-card-featured .post-card-excerpt { color: rgba(255,255,255,0.6); }
.post-card-featured .post-card-meta span { color: rgba(255,255,255,0.4); }
.post-card-featured .post-read-more { color: var(--gold-light); }
.post-card-featured .post-card-cat { background: var(--gold); color: var(--navy); }

/* Standard cards */
.post-card {
  background: var(--white); border: 1.5px solid #E5E3DA; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column;
}
.post-card:hover {
  transform: translateY(-5px); box-shadow: 0 20px 60px rgba(13,31,74,0.1);
  border-color: var(--gold);
}

.post-card-image {
  height: 220px; overflow: hidden; background: var(--gray-bg); position: relative;
  flex-shrink: 0;
}
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-image-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: 4px;
  color: rgba(255,255,255,0.12);
}

.post-card-cat {
  position: absolute; top: 16px; left: 0;
  background: var(--navy); color: var(--gold);
  font-family: 'Bebas Neue', sans-serif; font-size: 12px; letter-spacing: 2px;
  padding: 4px 14px 4px 12px;
  clip-path: polygon(0 0,100% 0,calc(100% - 6px) 100%,0 100%);
}

.post-card-body { padding: 24px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.post-card-meta span { font-size: 12px; color: var(--text-light); letter-spacing: 0.5px; }
.post-card-meta .meta-sep { color: #D8D5CC; }

.post-card-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px;
  color: var(--navy); line-height: 1.1; margin-bottom: 12px;
  transition: color 0.2s;
}
.post-card-title a { text-decoration: none; color: inherit; }
.post-card:hover .post-card-title { color: var(--navy-mid); }
.post-card-featured:hover .post-card-title { color: var(--gold-light); }

.post-card-excerpt { font-size: 14px; color: var(--text-mid); line-height: 1.7; flex: 1; margin-bottom: 20px; }

.post-read-more {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); text-decoration: none; display: flex; align-items: center; gap: 6px;
  transition: gap 0.2s, color 0.2s; margin-top: auto;
}
.post-read-more:hover { gap: 10px; }
.post-read-more::after { content: '→'; }

/* ─── PAGINATION ──────────────────────────────────────────── */
.archive-pagination { margin-top: 56px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; font-family: 'Bebas Neue', sans-serif; font-size: 18px;
  letter-spacing: 1px; color: var(--text-mid); text-decoration: none;
  border: 1.5px solid #E5E3DA; transition: all 0.2s;
}
.page-numbers:hover, .page-numbers.current {
  background: var(--navy); color: var(--gold); border-color: var(--navy);
}
.page-numbers.dots { border: none; color: var(--text-light); }
.page-numbers.prev, .page-numbers.next { width: auto; padding: 0 20px; font-size: 14px; letter-spacing: 2px; }

/* ─── SIDEBAR ─────────────────────────────────────────────── */
.archive-sidebar { position: sticky; top: 96px; }
.sidebar-widget { margin-bottom: 40px; }
.sidebar-widget-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 3px;
  color: var(--navy); margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-pale); position: relative;
}
.sidebar-widget-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background: var(--gold); }

/* Recent posts widget */
.sidebar-recent-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.sidebar-recent-item { display: flex; gap: 14px; align-items: flex-start; }
.sidebar-recent-thumb { width: 72px; height: 60px; object-fit: cover; flex-shrink: 0; background: var(--gray-bg); }
.sidebar-recent-title { font-weight: 600; font-size: 14px; line-height: 1.4; color: var(--text-dark); text-decoration: none; display: block; margin-bottom: 4px; }
.sidebar-recent-title:hover { color: var(--gold); }
.sidebar-recent-date { font-size: 12px; color: var(--text-light); }

/* Categories widget */
.sidebar-cat-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.sidebar-cat-list li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; border-bottom: 1px solid #ECEAE3; font-size: 14px;
  color: var(--text-mid); text-decoration: none; transition: color 0.2s, padding-left 0.2s;
}
.sidebar-cat-list li a:hover { color: var(--gold); padding-left: 6px; }
.sidebar-cat-count { font-size: 12px; color: var(--text-light); }

/* CTA widget */
.sidebar-cta {
  background: var(--navy); padding: 28px 24px; position: relative; overflow: hidden;
}
.sidebar-cta::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.sidebar-cta h4 { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 2px; color: var(--white); margin-bottom: 10px; }
.sidebar-cta p  { font-size: 14px; color: rgba(255,255,255,0.55); margin-bottom: 20px; line-height: 1.6; }
.sidebar-cta .btn-primary { width: 100%; text-align: center; clip-path: none; }

/* Search widget */
.sidebar-search { display: flex; gap: 0; }
.sidebar-search input {
  flex: 1; padding: 11px 16px; border: 1.5px solid #E5E3DA;
  font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none;
  background: var(--off-white); transition: border-color 0.2s;
}
.sidebar-search input:focus { border-color: var(--gold); background: var(--white); }
.sidebar-search button {
  background: var(--navy); color: var(--gold); border: none; padding: 0 18px;
  cursor: pointer; font-family: 'Bebas Neue', sans-serif; font-size: 16px;
  letter-spacing: 2px; transition: background 0.2s;
}
.sidebar-search button:hover { background: var(--navy-mid); }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .archive-layout { grid-template-columns: 1fr; }
  .archive-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-card-featured { grid-template-columns: 1fr; }
  .post-card-featured .post-card-image { height: 260px; }
}
@media (max-width: 600px) {
  .archive-sidebar { grid-template-columns: 1fr; }
  .archive-filter-inner { gap: 8px; }
}

/* ─── HIDE DEFAULT WP WIDGETS in archive sidebar ─────────── */
/* We render our own Recent Posts and Categories — suppress defaults */
.archive-sidebar .widget_recent_entries,
.archive-sidebar .widget_recent_comments,
.archive-sidebar .widget_categories,
.archive-sidebar .widget_archive,
.archive-sidebar .widget_meta { display: none; }

/* Style any other WP widgets that appear */
.archive-sidebar .widget { margin-bottom: 32px; }
.archive-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;
}
.archive-sidebar h2.widget-title::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 40px; height: 2px; background: var(--gold);
}

/* ─── SIDEBAR RECENT THUMB — no-image fix ─────────────────── */
/* When post has no featured image, show a clean branded block */
.sidebar-recent-thumb {
  width: 72px; height: 60px; object-fit: cover; flex-shrink: 0;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
}
.sidebar-recent-item { align-items: flex-start; }

/* ─── POST CARD no-image state in archive grid ────────────── */
.post-card-image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
}
/* Override the old text-only placeholder */
.post-card-image-placeholder::before {
  content: ''; /* reset any inherited content */
}
