/* === Архивные страницы === */

/* Hero меньше для архивов */
.archive .post-hero,
.category .post-hero,
.tag .post-hero,
.date .post-hero {
  height: 120px;
  min-height: 120px;
  padding: 20px 0;
}

/* H1 выравнивание по краю main-column внутри hero */
.archive .post-hero .container,
.category .post-hero .container,
.tag .post-hero .container,
.date .post-hero .container {
  max-width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: center;
}

.archive .post-hero .post-title,
.category .post-hero .post-title,
.tag .post-hero .post-title,
.date .post-hero .post-title {
  text-align: left !important;
  max-width: none;
  margin: 0;
  padding: 0;
}

.archive .post-hero h1,
.category .post-hero h1,
.tag .post-hero h1,
.date .post-hero h1 {
  text-align: left !important;
}

.archive .post-subtitle,
.category .post-subtitle,
.tag .post-subtitle,
.date .post-subtitle {
  font-size: 16px;
  margin-top: 10px;
}

/* Сетка постов на архивной странице */
.archive-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

/* Стилизация текста анонса в карточках архива */
.archive-posts-grid .excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 12px 0 0;
}

/* Footer карточки архива с выравниванием по краям */
.archive-posts-grid .slider-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Стилизация кнопки "Читать далее" в карточках архива */
.archive-posts-grid .read-btn {
  display: inline-block !important;
  background: linear-gradient(90deg, #FFD700 0%, #FFC107 100%) !important;
  color: var(--color-text) !important;
  padding: 10px 24px !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
  margin-left: auto;
}

.archive-posts-grid .read-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.archive-posts-grid .read-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.45) !important;
  background: linear-gradient(90deg, #FFD700 0%, #FFC107 100%) !important;
  color: var(--color-text) !important;
  text-decoration: none !important;
}

.archive-posts-grid .read-btn:hover::before {
  left: 100%;
}

/* Субтитл в hero архива */
.post-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 15px;
  max-width: 800px;
}

/* Пагинация */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
  background: rgba(255, 215, 0, 0.2);
  color: var(--color-text);
  transform: translateY(-2px);
}

.pagination .page-numbers.current {
  background: #FFD700;
  color: var(--color-text);
}

.pagination .page-numbers.dots {
  background: transparent;
  color: var(--color-text);
}

/* Адаптивность */
@media (max-width: 768px) {
  .archive .post-hero,
  .category .post-hero,
  .tag .post-hero,
  .date .post-hero {
    height: 100px;
    min-height: 100px;
    padding: 15px 0;
  }
  
  .archive .post-hero .container,
  .category .post-hero .container,
  .tag .post-hero .container,
  .date .post-hero .container {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .archive-posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .post-subtitle {
    font-size: 14px;
  }
  
  .pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .archive-posts-grid {
    gap: 15px;
  }
  
  .pagination {
    gap: 6px;
    margin: 30px 0;
  }
  
  .pagination .page-numbers {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }
}

