/* Archive Page Styles */

.archive-page {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Archive Header */
.archive-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.archive-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.archive-description {
  font-size: 16px;
  color: #b0b0b0;
  line-height: 1.6;
}

/* Posts Grid */
.archive-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default 3 columns */
  gap: 30px;
  margin-bottom: 40px;
}

/* Post Card */
.post-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.post-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-card-image {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1); /* Placeholder */
}

.post-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.post-card-content {
  padding: 15px;
}

.post-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #e0e0e0;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit title to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.post-card:hover .post-card-title {
  color: var(--primary-color); /* Accent color on hover */
}

/* Pagination */
.pagination-container {
  margin-top: 40px;
  text-align: center;
}

.page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #b0b0b0;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
  background-color: var(--primary-color);
  color: #120d1c;
  border-color: var(--primary-color);
}

.page-numbers.dots {
  border: none;
  background: none;
  color: #b0b0b0;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .archive-posts-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    gap: 20px;
  }
  .archive-title {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .archive-posts-grid {
    grid-template-columns: 1fr; /* 1 column for mobile */
    gap: 20px;
  }
  .archive-title {
    font-size: 24px;
  }
  .post-card-title {
    font-size: 16px;
  }
}

/* No Results */
.no-results .page-title {
  color: #fff;
}
.no-results .page-content p {
  color: #b0b0b0;
  margin-bottom: 20px;
}
.no-results .search-form input[type="search"] {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px;
  border-radius: 4px;
}
.no-results .search-form input[type="submit"] {
  background-color: var(--primary-color);
  color: #120d1c;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 5px;
}
