/* Custom Archive Template Styles */

/* Archive Header with Background */
.archive-page-header {
  position: relative;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  margin-bottom: 40px;
  overflow: hidden;
}

.archive-header-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.archive-page-header .container {
  position: relative;
  z-index: 2;
}

/* Breadcrumb Styles */
.archive-breadcrumb {
  margin-bottom: 30px;
}

.breadcrumb-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
}

.breadcrumb-wrapper a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

.breadcrumb-wrapper a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 4px;
}

.breadcrumb-current {
  color: #ffffff;
  font-weight: 600;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Archive Header Content */
.archive-header-content {
  text-align: center;
  color: #ffffff;
}

.archive-title {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.archive-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.archive-stats {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* Archive Posts Grid */
.tp-archive-posts-wrapper {
  margin-bottom: 30px;
}

.tp-archive-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

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

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

/* Post Card Styles */
.tp-blog-post-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: fit-content;
}

.tp-blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.tp-blog-post-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.tp-blog-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.tp-blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tp-blog-post-card:hover .tp-blog-post-image img {
  transform: scale(1.05);
}

.tp-blog-post-content {
  padding: 20px;
}

.tp-blog-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tp-blog-post-date {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.tp-blog-post-category a {
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.tp-blog-post-category a:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.tp-blog-post-title {
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

.tp-blog-post-title a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-blog-post-title a:hover {
  color: #2563eb;
}

.tp-blog-post-excerpt {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 16px;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-blog-post-footer {
  margin-top: auto;
}

.tp-blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.tp-blog-read-more:hover {
  color: #1d4ed8;
  gap: 12px;
}

.tp-blog-read-more i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.tp-blog-read-more:hover i {
  transform: translateX(2px);
}

/* Pagination Styles */
.tp-archive-pagination {
  display: flex;
  justify-content: center;
}

.tp-archive-pagination .page-numbers {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tp-archive-pagination .page-numbers li {
  margin: 0;
}

.tp-archive-pagination .page-numbers a,
.tp-archive-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.tp-archive-pagination .page-numbers a {
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.tp-archive-pagination .page-numbers a:hover {
  color: var(--tp-primary);
  background: #eff6ff;
  border-color: #bfdbfe;
}

.tp-archive-pagination .page-numbers .current {
  color: #ffffff;
  background: var(--tp-primary);
  border: 1px solid var(--tp-primary);
}

.tp-archive-pagination .page-numbers .prev,
.tp-archive-pagination .page-numbers .next {
  padding: 8px 16px;
}

/* No Posts Found */
.tp-archive-no-posts {
  text-align: center;
  padding: 80px 20px;
}

.tp-no-posts-content h2 {
  font-size: 2rem;
  color: #374151;
  margin-bottom: 16px;
}

.tp-no-posts-content p {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.tp-no-posts-content .button {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.tp-no-posts-content .button:hover {
  background: #1d4ed8;
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .archive-page-header {
    padding: 60px 0 40px;
    margin-bottom: 30px;
    background-attachment: scroll;
  }

  .archive-title {
    font-size: 2.2rem;
  }

  .archive-description {
    font-size: 1rem;
  }

  .breadcrumb-wrapper {
    font-size: 0.85rem;
  }

  .archive-header-content {
    text-align: center;
  }

  .tp-archive-posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tp-blog-post-content {
    padding: 16px;
  }

  .tp-archive-pagination .page-numbers {
    gap: 4px;
  }

  .tp-archive-pagination .page-numbers a,
  .tp-archive-pagination .page-numbers span {
    min-width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }
}

/* Tablet Responsive */
@media (max-width: 991px) and (min-width: 768px) {
  .archive-page-header {
    padding: 70px 0 50px;
  }

  .archive-title {
    font-size: 2.5rem;
  }

  .breadcrumb-wrapper {
    justify-content: center;
  }
}
