/**
 * Blog Archive Styles
 *
 * Styles pour la page d'archive du blog et les composants d'articles
 *
 * @package Dioqa_UI_Kit
 */

/* ============================================
   Archive Section
   ============================================ */

.blog-archive-section {
  padding: 5rem 0;
}

/* Archive Header */
.archive-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.archive-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: var(--text-3xl, 40px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--bs-primary, #002baa);
  margin-bottom: 1rem;
}

.archive-description {
  font-family: var(--font-body, 'Work Sans', sans-serif);
  font-size: var(--text-lg, 18px);
  line-height: 1.6;
  color: var(--text-gray, #6b687d);
}

/* ============================================
   Posts Grid
   ============================================ */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

/* ============================================
   Post Card
   ============================================ */

.post-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Image */
.post-card-image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bs-gray-200, #e9ecef);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content */
.post-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Categories */
.post-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.category-badge {
  font-family: var(--font-body, 'Work Sans', sans-serif);
  font-size: var(--text-xs, 12px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.75rem;
  background: var(--bs-primary, #002baa);
  color: white;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease;
}

/* Title */
.post-card-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: var(--text-xl, 24px);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.post-card-title a {
  color: var(--bs-dark, #212529);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card-title a:hover {
  color: var(--bs-primary, #002baa);
}

/* Meta */
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-body, 'Work Sans', sans-serif);
  font-size: var(--text-sm, 14px);
  color: var(--text-gray, #6b687d);
}

.post-card-meta svg {
  width: 16px;
  height: 16px;
  margin-right: 0.25rem;
  opacity: 0.6;
}

.post-card-separator {
  opacity: 0.5;
}

.post-card-date,
.post-card-author {
  display: flex;
  align-items: center;
}

/* Excerpt */
.post-card-excerpt {
  font-family: var(--font-body, 'Work Sans', sans-serif);
  font-size: var(--text-base, 16px);
  line-height: 1.6;
  color: var(--text-gray, #6b687d);
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Link */
.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body, 'Work Sans', sans-serif);
  font-size: var(--text-base, 16px);
  font-weight: 600;
  color: var(--bs-primary, #002baa);
  text-decoration: none;
  margin-top: auto;
}

.post-card-link .btn-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.post-card-link:hover .btn-link-icon {
  transform: translateX(0.25rem);
}

.post-card-link .btn-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

/* ============================================
   Pagination
   ============================================ */

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 1rem;
  font-family: var(--font-body, 'Work Sans', sans-serif);
  font-size: var(--text-base, 16px);
  font-weight: 500;
  color: var(--bs-dark, #212529);
  background: white;
  border: 1px solid var(--bs-gray-300, #dee2e6);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-pagination .page-numbers:hover {
  background: var(--bs-primary, #002baa);
  color: white;
  border-color: var(--bs-primary, #002baa);
}

.blog-pagination .page-numbers.current {
  background: var(--bs-primary, #002baa);
  color: white;
  border-color: var(--bs-primary, #002baa);
}

.blog-pagination .page-numbers svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   No Posts Message
   ============================================ */

.no-posts {
  text-align: center;
  padding: 4rem 2rem;
}

.no-posts h2 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: var(--text-2xl, 32px);
  font-weight: 600;
  color: var(--bs-dark, #212529);
  margin-bottom: 1rem;
}

.no-posts p {
  font-family: var(--font-body, 'Work Sans', sans-serif);
  font-size: var(--text-lg, 18px);
  color: var(--text-gray, #6b687d);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 991.98px) {
  .blog-archive-section {
    padding: 4rem 0;
  }

  .archive-header {
    margin-bottom: 3rem;
  }

  .archive-title {
    font-size: var(--text-2xl, 32px);
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
  }

  .post-card-title {
    font-size: var(--text-lg, 20px);
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .blog-archive-section {
    padding: 3rem 0;
  }

  .archive-header {
    margin-bottom: 2rem;
  }

  .archive-title {
    font-size: var(--text-xl, 28px);
  }

  .archive-description {
    font-size: var(--text-base, 16px);
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .post-card-content {
    padding: 1.5rem;
  }

  .post-card-title {
    font-size: var(--text-lg, 18px);
  }

  .post-card-meta {
    font-size: var(--text-xs, 12px);
  }
}

/* Small Mobile */
@media (max-width: 575.98px) {
  .blog-archive-section {
    padding: 2rem 0;
  }

  .post-card-content {
    padding: 1.25rem;
  }
}
