/* Projects Page Styles */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.project-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

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

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: block;
}

.project-image:not([src]) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-content {
  padding: 1.5rem;
}

.project-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.project-icon i {
  font-size: 1.2rem;
}

.project-info {
  flex: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.project-type {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

.project-description {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-description p {
  margin: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #d1d5db;
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

.btn-link.disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-link.disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn-link i {
  font-size: 0.8rem;
}

/* Project Categories */
.project-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.category-item {
  text-align: center;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease;
}

.category-item:hover {
  transform: translateY(-3px);
}

.category-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.category-icon i {
  font-size: 1.5rem;
}

.category-item h4 {
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.category-item p {
  color: #6b7280;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-card {
    padding: 1.25rem;
  }
  
  .project-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .project-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .project-categories {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .category-item {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .project-tags {
    justify-content: center;
  }
  
  .project-links {
    justify-content: center;
    flex-direction: column;
  }
  
  .btn-link {
    justify-content: center;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .project-card {
    background: #1f2937;
    border-color: #374151;
  }
  
  .project-title {
    color: #f9fafb;
  }
  
  .project-type {
    color: #9ca3af;
  }
  
  .project-description {
    color: #d1d5db;
  }
  
  .tag {
    background: #374151;
    color: #d1d5db;
    border-color: #4b5563;
  }
  
  .category-item {
    background: #1f2937;
    border-color: #374151;
  }
  
  .category-item h4 {
    color: #f9fafb;
  }
  
  .category-item p {
    color: #9ca3af;
  }
}