/* categories.css */
.archive-hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  color: white;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.archive-hero h1 {
  font-size: 3.8rem;
  margin-bottom: 1rem;
}

.archive-hero p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

.search-wrapper {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.search-wrapper i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
}

#searchInput {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  color: white;
  transition: all 0.3s;
}

#searchInput::placeholder { color: rgba(255,255,255,0.7); }
#searchInput:focus { background: rgba(255,255,255,0.3); outline: none; }

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 3rem;
}

.category-badge {
  padding: 10px 20px;
  background: var(--bg-secondary);
  color: var(--text-light);
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.category-badge:hover,
.category-badge.active {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.category-badge .count {
  margin-left: 6px;
  opacity: 0.8;
  font-weight: 400;
}

.posts-archive {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .posts-archive {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .posts-archive {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card.large {
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
}

.post-card.large:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.post-card.large .post-img {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.post-card.large .post-content {
  padding: 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-card.large h3 a {
  color: var(--text);
  transition: color 0.3s;
  font-size: 1.4rem;
  margin: 0.5rem 0 1rem;
  line-height: 1.4;
}

.post-card.large h3 a:hover {
  color: var(--primary);
}

.post-card.large p {
  flex-grow: 1;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

