/* ============================================================
   Hair Trail — Archive & Category Pages
   Modern Professional Design
   ============================================================ */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ht-pink: #F7649A;
  --ht-pink-deep: #D4276F;
  --ht-dark: #2D0A1E;
  --ht-cream: #FFF5F9;
  --ht-blush: #FFE0EF;
  --ht-text: #1E0A14;
  --ht-text-light: #7A3D5A;
  --ht-white: #FFFFFF;
  --ht-border: #FFCCE3;
  --ht-font-head: 'Playfair Display', 'Georgia', serif;
  --ht-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ============================================================
   ARCHIVE PAGE CONTAINER
   ============================================================ */

.ht-archive-page {
  font-family: var(--ht-font-body);
  background: var(--ht-white);
}

/* ============================================================
   ARCHIVE HEADER
   ============================================================ */

.ht-archive-header {
  position: relative;
  background: linear-gradient(135deg, #FFF9F5 0%, #FFE0EF 100%);
  padding: 100px 0 80px;
  border-bottom: 3px solid var(--ht-pink);
  overflow: hidden;
}

.ht-archive-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(247, 100, 154, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 39, 111, 0.06) 0%, transparent 50%);
  z-index: 0;
}

.ht-archive-header-content {
  position: relative;
  z-index: 1;
}

/* Container */
.ht-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Breadcrumb */
.ht-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
}

.ht-breadcrumb a {
  color: var(--ht-text-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.ht-breadcrumb a:hover {
  color: var(--ht-pink-deep);
}

.ht-breadcrumb svg {
  flex-shrink: 0;
}

.ht-separator {
  color: var(--ht-text-light);
  opacity: 0.5;
}

.ht-current {
  color: var(--ht-text);
  font-weight: 600;
}

/* Archive Info */
.ht-archive-info {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.ht-archive-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ht-white);
  color: var(--ht-pink-deep);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
  border: 2px solid var(--ht-pink);
  box-shadow: 0 4px 16px rgba(247, 100, 154, 0.15);
}

.ht-archive-label svg {
  flex-shrink: 0;
}

.ht-archive-title {
  font-family: var(--ht-font-head);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ht-text);
  margin: 0 0 20px;
  letter-spacing: -1px;
}

.ht-archive-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ht-text-light);
  margin: 0 0 24px;
}

.ht-archive-description p {
  margin: 0;
}

.ht-archive-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ht-post-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ht-text);
  border: 1px solid var(--ht-border);
}

.ht-post-count svg {
  color: var(--ht-pink);
  flex-shrink: 0;
}

/* ============================================================
   ARCHIVE CONTENT
   ============================================================ */

.ht-archive-content {
  padding: 80px 0;
}

/* ============================================================
   ARCHIVE GRID
   ============================================================ */

.ht-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

/* Archive Card */
.ht-archive-card {
  background: var(--ht-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(212, 39, 111, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(212, 39, 111, 0.08);
  display: flex;
  flex-direction: column;
}

.ht-archive-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(212, 39, 111, 0.18);
}

/* Featured Image */
.ht-archive-card-image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--ht-cream);
}

.ht-archive-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ht-archive-card:hover .ht-archive-thumb {
  transform: scale(1.08);
}

.ht-archive-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ht-cream), var(--ht-blush));
}

.ht-archive-thumb-placeholder svg {
  color: var(--ht-pink);
  opacity: 0.3;
}

.ht-archive-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(247, 100, 154, 0.9), rgba(212, 39, 111, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ht-archive-card:hover .ht-archive-overlay {
  opacity: 1;
}

.ht-archive-overlay svg {
  color: var(--ht-white);
  transform: translateX(-10px);
  transition: transform 0.4s ease;
}

.ht-archive-card:hover .ht-archive-overlay svg {
  transform: translateX(0);
}

/* Card Content */
.ht-archive-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Meta Top */
.ht-archive-card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ht-archive-category {
  display: inline-block;
  background: var(--ht-blush);
  color: var(--ht-pink-deep);
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.ht-archive-category:hover {
  background: var(--ht-pink-deep);
  color: var(--ht-white);
}

.ht-archive-date {
  font-size: 13px;
  color: var(--ht-text-light);
  font-weight: 500;
}

/* Title */
.ht-archive-card-title {
  margin: 0 0 12px;
  font-family: var(--ht-font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.ht-archive-card-title a {
  color: var(--ht-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.ht-archive-card-title a:hover {
  color: var(--ht-pink-deep);
}

/* Excerpt */
.ht-archive-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ht-text-light);
  margin: 0 0 20px;
  flex: 1;
}

/* Meta Bottom */
.ht-archive-card-meta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ht-border);
}

.ht-archive-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ht-archive-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--ht-border);
}

.ht-archive-author span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ht-text);
}

.ht-archive-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ht-read-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ht-text-light);
  font-weight: 500;
}

.ht-read-time svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.ht-archive-pagination {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.ht-archive-pagination .pagination,
.ht-archive-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ht-archive-pagination .page-numbers,
.ht-archive-pagination a,
.ht-archive-pagination span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  background: var(--ht-white);
  border: 2px solid var(--ht-border);
  border-radius: 10px;
  color: var(--ht-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  justify-content: center;
}

.ht-archive-pagination a:hover {
  background: var(--ht-pink);
  border-color: var(--ht-pink);
  color: var(--ht-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 100, 154, 0.3);
}

.ht-archive-pagination .current,
.ht-archive-pagination .page-numbers.current {
  background: var(--ht-pink-deep);
  border-color: var(--ht-pink-deep);
  color: var(--ht-white);
  cursor: default;
}

.ht-archive-pagination .prev,
.ht-archive-pagination .next {
  padding: 0 20px;
}

.ht-archive-pagination svg {
  flex-shrink: 0;
}

.ht-archive-pagination .dots {
  border: none;
  background: transparent;
  color: var(--ht-text-light);
}

/* ============================================================
   NO POSTS FOUND
   ============================================================ */

.ht-no-posts {
  text-align: center;
  padding: 80px 40px;
  max-width: 600px;
  margin: 0 auto;
}

.ht-no-posts-icon {
  margin-bottom: 32px;
  opacity: 0.3;
}

.ht-no-posts-icon svg {
  color: var(--ht-pink);
}

.ht-no-posts h2 {
  font-family: var(--ht-font-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--ht-text);
  margin: 0 0 16px;
}

.ht-no-posts p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ht-text-light);
  margin: 0 0 32px;
}

.ht-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--ht-pink), var(--ht-pink-deep));
  color: var(--ht-white);
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(247, 100, 154, 0.3);
}

.ht-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(247, 100, 154, 0.4);
}

.ht-btn-primary svg {
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
  .ht-container {
    padding: 0 24px;
  }
  
  .ht-archive-header {
    padding: 60px 0 50px;
  }
  
  .ht-breadcrumb {
    font-size: 13px;
    margin-bottom: 24px;
  }
  
  .ht-archive-title {
    font-size: 32px;
  }
  
  .ht-archive-description {
    font-size: 16px;
  }
  
  .ht-archive-content {
    padding: 60px 0;
  }
  
  .ht-archive-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .ht-archive-card-content {
    padding: 20px;
  }
  
  .ht-archive-card-title {
    font-size: 20px;
  }
  
  .ht-archive-card-meta-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .ht-archive-pagination {
    margin-top: 40px;
  }
  
  .ht-archive-pagination .page-numbers,
  .ht-archive-pagination a,
  .ht-archive-pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .ht-container {
    padding: 0 16px;
  }
  
  .ht-archive-header {
    padding: 48px 0 40px;
  }
  
  .ht-archive-title {
    font-size: 28px;
  }
  
  .ht-archive-label {
    font-size: 11px;
    padding: 6px 16px;
  }
  
  .ht-archive-content {
    padding: 48px 0;
  }
  
  .ht-archive-grid {
    gap: 20px;
  }
  
  .ht-no-posts {
    padding: 60px 20px;
  }
  
  .ht-no-posts h2 {
    font-size: 28px;
  }
}
