/* ============================================
   BLOG CATEGORY OVERVIEW
   FlirtMastery Child Theme
   ============================================ */

/* ---- RESET & VARS ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #F4F1ED;
  --bg-light: #F9F7F5;
  --bg-card: #FFFFFF;
  --header-bg: #B72B2B;
  --header-dark: #9A2222;
  --text: #1F1F1F;
  --text-mid: #555555;
  --text-light: #999999;
  --accent: #B72B2B;
  --accent-hover: #9A2222;
  --accent-soft: #FDF2F2;
  --border: #EBEBEB;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --max-w: 1280px;
  --sidebar-w: 340px;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ============ CATEGORY HERO ============ */
.category-hero {
  background: var(--header-bg);
  padding: 0 24px 64px;
  text-align: center;
}
.category-hero-inner {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 36px;
}
.breadcrumbs {
  font-family: var(--display);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.breadcrumbs a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: rgba(255,255,255,0.8); }
.breadcrumbs .sep { margin: 0 6px; }

.category-label {
  display: inline-block;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
}
.category-hero h1 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.category-hero .desc {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto;
}
.category-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}
.category-stat {
  font-family: var(--display);
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.category-stat strong {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
}

/* ============ MAIN LAYOUT ============ */
.archive-wrapper {
  max-width: var(--max-w);
  margin: -32px auto 0;
  padding: 0 24px 80px;
  position: relative;
  z-index: 5;
}
.archive-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 32px;
  align-items: start;
}

/* ============ FEATURED POST ============ */
.featured-post {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
  transition: box-shadow 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.featured-post:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1), 0 0 1px rgba(0,0,0,0.08);
}
.featured-post-img {
  background: linear-gradient(135deg, #E0D0C4 0%, #D5C0B0 50%, #CBBAA8 100%);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.featured-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.featured-post-img .ph {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  color: rgba(0,0,0,0.15);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: white;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}
.featured-post-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-post-body .tag {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.featured-post-body h2 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.featured-post-body .excerpt {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-post-body .meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 13px;
  color: var(--text-light);
}

/* ============ FILTER BAR ============ */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 2px;
}
.filter-bar .results-count {
  font-family: var(--display);
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

/* ============ POST CARDS ============ */
.post-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 0 1px rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: 260px 1fr;
  margin-bottom: 16px;
  transition: box-shadow 0.25s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.post-card-img {
  background: linear-gradient(135deg, #E0D0C4 0%, #D5C0B0 50%, #CBBAA8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.post-card-img .ph {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  color: rgba(0,0,0,0.14);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.post-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-card-body .tag {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.post-card-body h3 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.post-card-body .excerpt {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-body .meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 12px;
  color: var(--text-light);
}
.meta-row .sep {
  width: 3px;
  height: 3px;
  background: var(--text-light);
  border-radius: 50%;
  opacity: 0.4;
}
.read-more {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: gap 0.2s;
}
.post-card:hover .read-more { gap: 8px; }

/* ============ PAGINATION ============ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}
.pagination a,
.pagination span.page-numbers {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-mid);
  transition: all 0.2s;
  padding: 0 10px;
}
.pagination a:hover { background: var(--bg-card); color: var(--accent); }
.pagination .current {
  background: var(--accent);
  color: white;
}
.pagination .dots { color: var(--text-light); pointer-events: none; }
.pagination .prev,
.pagination .next {
  padding: 0 14px;
  font-size: 13px;
}
.pagination .prev:hover,
.pagination .next:hover { background: var(--accent-soft); color: var(--accent); }

/* ============ SIDEBAR ============ */
.sidebar { position: relative; }
.sidebar-sticky-wrap {
  position: sticky;
  top: 24px;
}
.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.sidebar-box h4 {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  color: var(--text);
}
.sidebar-newsletter {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: 8px;
  padding: 24px 20px;
  margin-bottom: 16px;
  text-align: center;
  color: white;
  box-shadow: 0 2px 12px rgba(183,43,43,0.2);
}
.sidebar-newsletter h4 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
  border: none;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
  color: white;
}
.sidebar-newsletter p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  line-height: 1.45;
}
.sidebar-newsletter input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  color: white;
  font-family: var(--body);
  font-size: 14px;
  outline: none;
  margin-bottom: 8px;
}
.sidebar-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.sidebar-newsletter input:focus { border-color: rgba(255,255,255,0.5); }
.sidebar-newsletter button {
  width: 100%;
  padding: 10px;
  background: white;
  color: var(--accent);
  border: none;
  border-radius: 6px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.sidebar-newsletter button:hover { opacity: 0.9; }
.sidebar-newsletter .micro {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
}
.sidebar-box ul { list-style: none; }
.sidebar-box li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-box li a:hover { color: var(--accent); }
.sidebar-box .count {
  font-size: 12px;
  color: var(--text-light);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 600;
}
.sidebar-box .sub {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}
.sidebar-box li.active a { color: var(--accent); font-weight: 700; }
.sidebar-box li.active .count { background: var(--accent-soft); color: var(--accent); }

.sidebar-search { margin-bottom: 16px; }
.sidebar-search input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--body);
  font-size: 14px;
  outline: none;
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' stroke='%23999' stroke-width='2' fill='none'/%3E%3C/svg%3E") 12px center no-repeat;
  transition: border-color 0.2s;
}
.sidebar-search input:focus { border-color: var(--accent); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .category-hero { padding-bottom: 48px; }
  .category-hero-inner { padding-top: 24px; }
  .category-hero h1 { font-size: 28px; }
  .category-stats { gap: 20px; }

  .archive-wrapper { padding: 0 0 48px; margin-top: -24px; }
  .archive-layout { grid-template-columns: 1fr; gap: 0; }

  .featured-post {
    grid-template-columns: 1fr;
    margin: 0 12px 16px;
  }
  .featured-post-img { min-height: 180px; }

  .post-card {
    grid-template-columns: 1fr;
    margin: 0 12px 12px;
  }
  .post-card-img { min-height: 160px; }

  .filter-bar { padding: 0 16px; margin-bottom: 16px; }
  .pagination { margin-top: 24px; }

  .sidebar { padding: 16px 12px; }
  .sidebar-sticky-wrap { position: static; }

  .category-subtitle {
  font-size: 15px;
  color: white !important;
  line-height: 1.6;
  max-width: 520px;
  margin: 8px auto 0;
}
}