/* ===================================================================
   FindSeniorDating.com - Editorial Blog Hub Stylesheet
   Design System: DESIGN.md (Warm Paper Canvas & Newsreader Editorial)
   Harmonized with local.css clean card & compact hero architecture
   =================================================================== */

.blog-page-main {
  padding-top: 0;
  padding-bottom: 0;
}

.hub-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================================
   1. Blog Hub Hero: Compact Warm Editorial Masthead + Quick Category Pills
   (Harmonized with .local-compact-hero in local.css)
   =================================================================== */

.hub-hero-banner {
  background:
    radial-gradient(circle at 18% 20%, rgba(200, 109, 81, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 82% 25%, rgba(29, 92, 99, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #F3E8DC 0%, #FAF6F0 100%);
  padding: 52px 24px 42px;
  border-bottom: 1px solid #EAE0D2;
  text-align: center;
}

.hub-hero-inner {
  max-width: 980px;
  margin: 0 auto;
}

.hub-folio-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--color-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hub-folio-line {
  width: 28px;
  height: 1.5px;
  background: rgba(200, 109, 81, 0.45);
}

.hub-hero-banner h1 {
  margin: 0 auto 14px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.2vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

.hub-deck {
  max-width: 820px;
  margin: 0 auto 28px;
  color: var(--color-text-muted);
  font-size: 1.02rem;
  line-height: 1.62;
  text-wrap: balance;
}

/* Category Quick Pills in Hero Banner (Matching .local-quick-pill) */
.hub-quick-pills {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hub-quick-pills .hub-tile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #FFFFFF;
  border: 1px solid #E2D6C5;
  border-radius: 30px;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(27, 40, 46, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.hub-quick-pills .hub-tile:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  box-shadow: 0 6px 16px rgba(200, 109, 81, 0.12);
}

.hub-quick-pills .hub-tile[aria-pressed="true"] {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(14, 90, 100, 0.25);
}

.hub-pill-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #F4EBE1;
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: background 0.18s ease, color 0.18s ease;
}

.hub-quick-pills .hub-tile[aria-pressed="true"] .hub-pill-num {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

/* Focus Visible Accessibility */
.hub-quick-pills .hub-tile:focus-visible,
.hub-start-card:focus-visible,
.hub-featured-link:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* ===================================================================
   2. Main Content Body & Situation Cards
   =================================================================== */

.hub-body-section {
  padding: 44px 0 64px;
}

.hub-start {
  margin-bottom: 44px;
  padding: 36px 36px 40px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}

.hub-start-intro {
  margin-bottom: 24px;
}

.hub-start-kicker {
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hub-start-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.2rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0;
}

.hub-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hub-start-card {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  background: #FFFFFF;
  border: 1px solid #E4DDD3;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(27, 40, 46, 0.03);
}

.hub-start-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3.5px;
  background: transparent;
  transition: background 0.2s ease;
}

.hub-start-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(14, 90, 100, 0.1);
}

.hub-start-card:hover::before {
  background: var(--color-accent);
}

.hub-start-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hub-start-card:hover h3 {
  color: var(--color-primary);
}

.hub-start-arrow {
  display: inline-block;
  margin-left: 6px;
  color: var(--color-accent);
  transition: transform 0.2s ease;
  font-weight: 400;
  font-family: var(--font-body);
}

.hub-start-card:hover .hub-start-arrow {
  transform: translateX(4px);
}

.hub-start-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--color-text-muted);
}

/* ===================================================================
   3. Search & Count Stream Toolbar
   =================================================================== */

.hub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 0 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.hub-count {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

.hub-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  background: var(--color-surface);
  padding: 7px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-search:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 90, 100, 0.12);
}

.hub-search-icon {
  width: 15px;
  height: 15px;
  color: var(--color-text-light);
  flex-shrink: 0;
}

.hub-search-input {
  width: 240px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-text);
  outline: none;
}

.hub-search-input::placeholder {
  color: var(--color-text-light);
}

.hub-search-clear {
  border: none;
  background: transparent;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s ease;
}

.hub-search-clear:hover {
  color: var(--color-text);
}

.hub-search-clear[hidden] {
  display: none;
}

/* ---------- 2-Column Results Layout ---------- */
.hub-results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.hub-results-main {
  min-width: 0;
  padding-bottom: 48px;
}

/* ---------- Featured Flagship Card ---------- */
.hub-featured {
  margin-bottom: 36px;
  padding: 36px 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(34, 32, 30, 0.04);
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-featured:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 24px rgba(34, 32, 30, 0.07);
}

.hub-featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hub-featured-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-accent);
  color: #FAF8F5;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
}

.hub-featured-time {
  font-size: 0.82rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.hub-featured-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.7vw, 2.3rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.018em;
}

.hub-featured-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.18s ease;
}

.hub-featured-title a:hover {
  color: var(--color-primary);
}

.hub-featured-snippet {
  margin: 0 0 20px;
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--color-text-muted);
}

.hub-featured-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.18s ease;
}

.hub-featured-link:hover {
  color: var(--color-accent);
}

/* ---------- Stream Article Cards ---------- */
.hub-stream {
  display: flex;
  flex-direction: column;
}

.hub-row {
  padding: 30px 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: all 0.2s ease;
}

.hub-row:first-child {
  padding-top: 0;
}

.hub-row[hidden] {
  display: none !important;
}

.hub-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.hub-cat {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hub-read-time {
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.hub-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 2.1vw, 1.68rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.hub-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.18s ease;
}

.hub-title a:hover {
  color: var(--color-primary);
}

.hub-snippet {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* Progressive Pagination */
.hub-more {
  margin-top: 36px;
  text-align: center;
}

.btn-hub-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  background-color: #FFFFFF;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(14, 90, 100, 0.08);
}

.btn-hub-more:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(14, 90, 100, 0.22);
}

.btn-hub-more:active {
  transform: translateY(0);
}

/* Empty Search Result */
.hub-empty {
  padding: 48px 32px;
  text-align: center;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin: 24px 0;
}

.hub-empty p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.hub-reset-link {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.hub-reset-link:hover {
  color: var(--color-accent);
}

/* ---------- Sidebar Modules ---------- */
.hub-results-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 96px;
}

.hub-sidebar-block {
  padding: 28px 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(34, 32, 30, 0.03);
}

.hub-sidebar-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.hub-sidebar-tiles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-sidebar-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.hub-sidebar-tile:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hub-sidebar-tile[aria-pressed="true"] {
  background: var(--color-primary);
  color: #FAF8F5;
  border-color: var(--color-primary);
}

/* Editorial Principles Card */
.hub-safety-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hub-safety-item {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.hub-safety-icon {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- FAQ Section ---------- */
.blog-faq-section {
  padding: 64px 0 32px;
  margin-top: 48px;
  border-top: 1px solid var(--color-border);
}

.blog-faq-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.blog-faq-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.65rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.blog-faq-intro {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--color-text-muted);
}

.blog-faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.blog-faq-item[open] {
  border-color: var(--color-primary);
  background: var(--color-surface);
}

.blog-faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--color-text);
  line-height: 1.4;
  list-style: none;
  user-select: none;
}

.blog-faq-summary::-webkit-details-marker {
  display: none;
}

.blog-faq-summary:hover {
  color: var(--color-primary);
}

.blog-faq-icon {
  color: var(--color-text-light);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.blog-faq-item[open] .blog-faq-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.blog-faq-answer {
  padding: 0 24px 22px;
}

.blog-faq-answer p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.76;
  color: var(--color-text-muted);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 960px) {
  .hub-start-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-results-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-results-sidebar {
    position: static;
    margin-top: 36px;
  }
}

@media (max-width: 640px) {
  .hub-hero-banner {
    padding: 32px 16px 24px;
  }

  /* Single-row horizontal swipeable pill bar */
  .hub-quick-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 4px 16px 8px;
    margin: 0 -16px;
    gap: 8px;
    scroll-snap-type: x proximity;
  }

  .hub-quick-pills::-webkit-scrollbar {
    display: none;
  }

  .hub-quick-pills .hub-tile {
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 0.82rem;
    scroll-snap-align: start;
  }

  .hub-pill-num {
    width: 18px;
    height: 18px;
    font-size: 0.68rem;
  }

  /* Compact Horizontal Snap Carousel for Situation Cards */
  .hub-start {
    padding: 20px 16px 22px;
    margin-bottom: 28px;
  }

  .hub-start-intro {
    margin-bottom: 14px;
  }

  .hub-start-intro h2 {
    font-size: 1.38rem;
  }

  .hub-start-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 12px;
    padding: 4px 16px 12px;
    margin: 0 -16px;
  }

  .hub-start-grid::-webkit-scrollbar {
    display: none;
  }

  .hub-start-card {
    flex: 0 0 78%;
    min-width: 240px;
    max-width: 280px;
    padding: 16px 18px;
    scroll-snap-align: start;
    box-shadow: 0 2px 10px rgba(27, 40, 46, 0.05);
  }

  .hub-start-card h3 {
    font-size: 0.96rem;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .hub-start-card p {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .hub-featured {
    padding: 24px 20px;
  }

  .hub-results-main {
    padding-bottom: 72px;
  }

  .hub-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .hub-search-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .hub-search {
    flex: 1;
  }

  .hub-search-input {
    width: 100%;
  }
}
