/* Project Showcase Styles */
.project-showcase {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.project-header {
  text-align: center;
  margin-bottom: 3rem;
}

.project-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.project-intro {
  font-size: 1.1rem;
  color: var(--secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Filter and Search Section */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: var(--code-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.filter-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.filter-group select,
.search-group input {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--theme);
  color: var(--primary);
  font-size: 0.9rem;
}

.search-group {
  flex: 1;
  min-width: 250px;
}

.search-group input {
  width: 100%;
  margin-top: 1.75rem;
}

/* Featured Projects Section */
.featured-projects {
  margin-bottom: 4rem;
}

.featured-projects h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.featured-card {
  background: var(--theme);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

/* All Projects Section */
.all-projects h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--theme);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

/* Card Components */
.card-header {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.project-card:hover .card-header img,
.featured-card:hover .card-header img {
  transform: scale(1.05);
}

.status-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-production {
  background: #10B981;
  color: white;
}

.status-beta {
  background: #F59E0B;
  color: white;
}

.status-development {
  background: #6366F1;
  color: white;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.2rem;
}

.card-content h3 a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.card-content h3 a:hover {
  color: var(--secondary);
}

.project-summary {
  color: var(--secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background: var(--code-bg);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.tech-more {
  color: var(--secondary);
  font-size: 0.75rem;
  font-style: italic;
}

.project-meta {
  font-size: 0.8rem;
  color: var(--secondary);
  margin-top: 0.5rem;
}

.card-actions {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: var(--theme);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: var(--code-bg);
  border-color: var(--primary);
}

.btn-icon {
  padding: 0.5rem;
  color: var(--secondary);
  transition: all 0.3s ease;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-icon:hover {
  color: var(--primary);
  background: var(--code-bg);
}

/* Project Statistics */
.project-stats {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.project-stats h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--code-bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-showcase {
    padding: 1rem;
  }

  .project-header h1 {
    font-size: 2rem;
  }

  .project-filters {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-group,
  .search-group {
    min-width: unset;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

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

  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .project-header h1 {
    font-size: 1.8rem;
  }

  .card-content {
    padding: 1rem;
  }

  .card-actions {
    padding: 0 1rem 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Dark mode adjustments */
[data-theme="dark"] .project-card,
[data-theme="dark"] .featured-card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .project-card:hover,
[data-theme="dark"] .featured-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Animation for project loading */
.project-card,
.featured-card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for multiple cards */
.project-card:nth-child(1),
.featured-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2),
.featured-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3),
.featured-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4),
.featured-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5),
.featured-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6),
.featured-card:nth-child(6) { animation-delay: 0.6s; }
