/* ========================================
   ARCHIVE PROJECT STYLES
   ======================================== */

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Archive Hero Section */
.archive-hero {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.archive-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.archive-title .accent {
  color: #ffd700;
}

.archive-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Projects Section */
.projects-section {
  padding: 60px 0;
  background: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* Project Card */
.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

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

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}

.placeholder-image i {
  font-size: 3rem;
  margin-bottom: 10px;
}

.placeholder-image span {
  font-size: 0.9rem;
}

/* Project Overlay */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-actions {
  text-align: center;
}

.btn-view {
  display: inline-block;
  padding: 12px 24px;
  background: #ffd700;
  color: #1e3c72;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-view:hover {
  background: #ffed4e;
  transform: scale(1.05);
}

/* Project Chip */
.project-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 215, 0, 0.9);
  color: #1e3c72;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

/* Status Badge */
.status-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.status-badge.sold-out {
  background: #dc3545;
}

.status-badge.almost-sold {
  background: #fd7e14;
}

/* Project Content */
.project-content {
  padding: 24px;
}

.project-title {
  margin: 0 0 16px 0;
  font-size: 1.4rem;
  line-height: 1.3;
}

.project-title a {
  color: #1e3c72;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-title a:hover {
  color: #ffd700;
}

/* Project Meta */
.project-meta {
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #6c757d;
  font-size: 0.9rem;
}

.meta-item i {
  color: #ffd700;
  width: 16px;
}

/* Project Stats */
.project-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 4px;
}

.stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e3c72;
}

/* Project Excerpt */
.project-excerpt {
  color: #6c757d;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* No Projects */
.no-projects {
  text-align: center;
  padding: 80px 20px;
  color: #6c757d;
}

.no-projects i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #dee2e6;
}

.no-projects h3 {
  margin: 0 0 16px 0;
  color: #495057;
}

.no-projects p {
  margin: 0;
  font-size: 1.1rem;
}

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

.pagination {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.pagination li {
  margin: 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 44px;
  text-align: center;
}

.pagination a {
  background: #f8f9fa;
  color: #495057;
  border: 2px solid transparent;
}

.pagination a:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.pagination .current {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.pagination .prev,
.pagination .next {
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .archive-title {
    font-size: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .archive-hero {
    padding: 60px 0;
  }

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

  .projects-section {
    padding: 40px 0;
  }

  .project-content {
    padding: 20px;
  }
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 576px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card {
    margin: 0 10px;
  }
}
