/* Project Listing Page Styles */
.projects-list {
  padding: 2rem 0;
}

.projects-header {
  margin-bottom: 2rem;
  text-align: center;
}

.projects-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.content-description {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.6;
}

/* Filter Styles */
.project-filters {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-section {
  margin-bottom: 1rem;
}

.filter-label {
  font-weight: 600;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.search-input {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.filter-controls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.filter-dropdown {
  display: flex;
  flex-direction: column;
}

.filter-select {
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  font-size: 0.9rem;
}

.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-category {
  padding: 0.5rem 1rem;
  background-color: #f1f1f1;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-category:hover {
  background-color: #e0e0e0;
}

.filter-category.active {
  background-color: #333;
  color: white;
}

/* Category Section Styles */
.category-section {
  margin-bottom: 3rem;
}

.category-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f1f1;
}

/* Project Grid Styles */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Project Card Styles */
.project-card {
  border: 1px solid #eaeaea;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background-color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #d0d0d0;
}

.project-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
  width: 100%;
}

.title-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.project-icon {
  font-size: 2rem;
  margin-right: 0.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  width: auto;
}

.project-title a {
  color: #333;
  text-decoration: none;
  display: inline-block;
}

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

.project-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  width: 100%;
}

.project-category {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  background-color: #e6f2ff;
  color: #0066cc;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.project-category:hover {
  background-color: #cce5ff;
}

.project-description {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
  font-size: 0.95rem;
}

/* Project Meta Info Styles */
.project-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  padding: 0.75rem 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.project-repo a, .project-website a {
  display: flex;
  align-items: center;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-repo a:hover, .project-website a:hover {
  color: #0066cc;
}

.project-repo svg, .project-website svg {
  margin-right: 0.4rem;
}

.github-stars {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.45rem;
  background-color: #f1f7ff;
  color: #0066cc;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-difficulty {
  color: #555;
  display: flex;
  align-items: center;
}

.project-difficulty::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.project-difficulty.beginner {
  color: #28a745;
}

.project-difficulty.beginner::before {
  background-color: #28a745;
}

.project-difficulty.intermediate {
  color: #fd7e14;
}

.project-difficulty.intermediate::before {
  background-color: #fd7e14;
}

.project-difficulty.advanced {
  color: #dc3545;
}

.project-difficulty.advanced::before {
  background-color: #dc3545;
}

.difficulty-label, .update-label {
  font-weight: 500;
  color: #333;
}

.project-updated {
  color: #555;
  display: flex;
  align-items: center;
}

.project-updated::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #999;
  margin-right: 6px;
}

/* Project Footer Styles */
.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-grow: 1;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background-color: #f5f5f5;
  border-radius: 4px;
  color: #555;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.tag:hover {
  background-color: #e0e0e0;
}

.tag.more {
  background-color: transparent;
  color: #777;
  cursor: default;
}

.view-project {
  font-size: 0.9rem;
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.view-project:hover {
  color: #004c99;
}

.view-project::after {
  content: '\2192';
  margin-left: 4px;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.view-project:hover::after {
  transform: translateX(3px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  }

  .filter-controls {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .featured-projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .projects-header h1 {
    font-size: 2rem;
  }

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

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .filter-categories {
    justify-content: center;
  }

  .project-content {
    padding: 1.25rem;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .project-meta-info {
    flex-direction: column;
    gap: 0.75rem;
  }

  .project-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .view-project {
    align-self: flex-end;
    margin-top: 0.75rem;
  }
}

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

  .filter-categories {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .filter-category {
    white-space: nowrap;
  }

  .project-title {
    font-size: 1.25rem;
  }

  .project-icon {
    font-size: 1.5rem;
  }
}

/* No Results Message */
#no-results {
  text-align: center;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-top: 1rem;
}

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

.featured-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.featured-project-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: white;
  border: 2px solid #f0f0f0;
  height: 100%;
}

.featured-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: #e0e0e0;
}

.featured-project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-project-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.featured-title-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.featured-project-icon {
  font-size: 2.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.featured-project-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  width: auto;
}

.featured-project-title a {
  color: #333;
  text-decoration: none;
}

.featured-project-title a:hover {
  color: #0066cc;
}

.featured-project-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.featured-project-category {
  font-size: 0.9rem;
  padding: 0.3rem 1rem;
  background-color: #e6f2ff;
  color: #0066cc;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
}

.featured-project-category:hover {
  background-color: #cce5ff;
}

.featured-project-description {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1.1rem;
  flex-grow: 1;
}

.featured-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.featured-project-repo a {
  display: flex;
  align-items: center;
  color: #555;
  text-decoration: none;
  font-weight: 500;
}

.featured-project-repo a:hover {
  color: #0066cc;
}

.featured-project-repo svg {
  margin-right: 0.5rem;
}

.featured-project-difficulty {
  color: #555;
  font-weight: 500;
}

.featured-project-difficulty.beginner {
  color: #28a745;
}

.featured-project-difficulty.intermediate {
  color: #fd7e14;
}

.featured-project-difficulty.advanced {
  color: #dc3545;
}

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

.featured-tag {
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  background-color: #f1f1f1;
  border-radius: 4px;
  color: #555;
  text-decoration: none;
}

.featured-tag:hover {
  background-color: #e0e0e0;
}

.featured-view-project {
  font-size: 1.1rem;
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
  text-align: right;
}

.featured-view-project:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .featured-projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Suggested Projects Section */
.suggested-projects-section {
  margin-top: 4rem;
  margin-bottom: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #eaeaea;
}

.suggested-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.suggested-description {
  color: #666;
  margin-bottom: 2rem;
}

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

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

@media (max-width: 768px) {
  .suggested-projects-section {
    margin-top: 3rem;
    padding-top: 2rem;
  }

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