/* ============================================================
   ARCHIVE & SEARCH — category, tag, author, date, search
   Re-skins the legacy archive, category, tag and search
   heroes and the shared .post-card grid into the current world:
   near-black canvas, Bricolage display, rose accent.
   Loaded after clone-home.css. Visual only.
   ============================================================ */

body.archive, body.category, body.tag, body.author, body.search,
.category-archive-page, .archive-page, .tag-archive-page {
  background: #0a0a0a !important;
  color: #fff;
}

/* Fixed pill-nav clearance */
.category-archive-page, .archive-page, .tag-archive-page { padding: 150px 0 0 !important; }
body.search .search-hero { padding-top: 150px !important; }
@media (max-width: 767px) {
  .category-archive-page, .archive-page, .tag-archive-page { padding-top: 124px !important; }
  body.search .search-hero { padding-top: 124px !important; }
}

/* Heroes: unboxed + centered (kills navy cards, purple icon boxes, rules) */
.category-hero, .archive-hero, .tag-hero, .search-hero {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 0 48px !important;
  margin: 0 !important;
}
.category-hero::before, .archive-hero::before, .tag-hero::before, .search-hero::before { display: none !important; }
.category-hero-content, .archive-hero-content, .tag-hero-content, .search-hero-content { text-align: center !important; }
.category-icon, .archive-icon, .tag-icon, .search-icon, .no-results-icon { display: none !important; }

.category-title, .archive-title, .tag-title, .search-title {
  font-family: "Bricolage Grotesque", sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  color: #fff !important;
  font-size: clamp(2rem, 5vw, 3.2rem) !important;
  line-height: 1.05 !important;
  margin: 0 0 14px !important;
  text-align: center !important;
}
.category-title::before, .archive-title::before, .tag-title::before { display: none !important; }
.category-count, .archive-count, .tag-count {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: #DD2A7B !important;
  margin-bottom: 14px !important;
}
.category-description, .archive-description, .tag-description {
  color: rgba(255, 255, 255, 0.55) !important;
  font-weight: 300 !important;
  font-size: 1.05rem !important;
  max-width: 560px !important;
  margin: 0 auto !important;
  text-align: center !important;
}
.category-description p, .archive-description p, .tag-description p { color: inherit !important; }

/* Search form */
.hero-search-form { margin: 0 auto 8px !important; max-width: 520px !important; }
.hero-search-form .search-field,
.hero-search-form input[type="search"] {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  color: #fff !important;
  padding: 14px 20px !important;
}
.hero-search-form .search-field::placeholder { color: rgba(255, 255, 255, 0.4) !important; }
.hero-search-form .search-submit,
.hero-search-form button,
.hero-search-form input[type="submit"] {
  background: #fff !important;
  color: #0a0a0a !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 14px 24px !important;
  margin-top: 10px !important;
  cursor: pointer;
}

/* Cards grid (shared by all four templates) */
.posts-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  padding-bottom: 88px !important;
}
@media (max-width: 1099px) { .posts-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 639px) { .posts-grid { grid-template-columns: 1fr !important; } }

.post-card {
  background: rgba(23, 23, 23, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  transform: none !important;
  transition: border-color 0.25s ease, background 0.25s ease !important;
}
.post-card:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: none !important;
  box-shadow: none !important;
}
.post-card-image {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  background: #141414 !important;
}
.post-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: grayscale(0.15);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.04); filter: grayscale(0); }
.post-card-category {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0a0a0a !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 5px 14px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}
.post-card-content { padding: 18px !important; }
.post-card-meta { color: rgba(255, 255, 255, 0.4) !important; font-size: 0.8rem !important; margin-bottom: 8px !important; }
.post-card-meta i { color: #DD2A7B !important; }
.post-card-title {
  font-family: "Bricolage Grotesque", sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  font-size: 1.05rem !important;
  line-height: 1.3 !important;
  margin: 0 0 10px !important;
}
.post-card-title a { color: #fff !important; text-decoration: none !important; }
.post-card-title a:hover { color: #F06292 !important; }
.post-card-excerpt {
  color: rgba(255, 255, 255, 0.55) !important;
  font-weight: 300 !important;
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
  margin: 0 0 12px !important;
}
.post-card-footer { color: rgba(255, 255, 255, 0.5) !important; font-size: 0.82rem !important; }
.read-more-btn { color: #F06292 !important; text-decoration: none !important; font-weight: 600 !important; }

/* Empty / no-results states */
.no-posts-message, .no-results-message { color: rgba(255, 255, 255, 0.55) !important; text-align: center !important; }
.no-results-suggestions { color: rgba(255, 255, 255, 0.45) !important; }

/* Pagination */
.pagination-wrapper { text-align: center !important; padding-bottom: 64px; }
.pagination-wrapper a, .pagination-wrapper span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  margin: 0 3px;
}
.pagination-wrapper .current { background: #fff !important; border-color: #fff !important; color: #0a0a0a !important; font-weight: 600; }
