/* Project-specific styles */
/* Showcase/portfolio style with visual emphasis */

/* ============================================
   Project Listing Page Styles
   ============================================ */

.projects-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.projects-intro {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.project-filters {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.project-filters label {
  font-weight: 600;
  margin-right: 10px;
  color: #333;
}

.project-filters select {
  padding: 8px 12px;
  border: 2px solid #667eea;
  border-radius: 5px;
  font-size: 15px;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.project-filters select:hover {
  border-color: #764ba2;
}

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

.project-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
  border-color: #667eea;
}

.project-card-header {
  margin-bottom: 15px;
}

.project-card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.project-card-title a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.2s;
}

.project-card-title a:hover {
  color: #764ba2;
}

.project-card-date {
  font-size: 14px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.project-card-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.project-card-technologies {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  display: inline-block;
  padding: 5px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
}

.project-card-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.project-card-link:hover {
  color: #764ba2;
}

/* ============================================
   Individual Project Page Styles
   ============================================ */

.project {
  max-width: 900px;
  margin: 0 auto;
}

.project-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 50px 30px;
  margin: -40px -20px 40px -20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 15px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.project-date {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-content {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
}

.project-content p {
  margin-bottom: 1.5em;
}

.project-content h1 {
  font-size: 34px;
  font-weight: 700;
  margin-top: 50px;
  margin-bottom: 20px;
  color: #667eea;
  position: relative;
  padding-bottom: 12px;
}

.project-content h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.project-content h2 {
  font-size: 28px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 18px;
  color: #764ba2;
}

.project-content h3 {
  font-size: 23px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #555;
}

.project-content a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid rgba(102, 126, 234, 0.3);
  transition: all 0.2s ease;
}

.project-content a:hover {
  border-bottom-color: #667eea;
  background-color: rgba(102, 126, 234, 0.05);
}

.project-content ul,
.project-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.project-content li {
  margin-bottom: 10px;
}

.project-content li::marker {
  color: #667eea;
  font-weight: 600;
}

.project-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 35px auto;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0e0e0;
}

.project-content code {
  background-color: #f5f3ff;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Monaco', 'Courier New', monospace;
  color: #667eea;
  border: 1px solid #e0d7ff;
}

.project-content pre {
  background-color: #2d2d2d;
  color: #f8f8f2;
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 25px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-content pre code {
  background-color: transparent;
  padding: 0;
  border: none;
  color: #f8f8f2;
}

.project-content blockquote {
  border-left: 4px solid #667eea;
  padding: 15px 25px;
  margin: 30px 0;
  background: linear-gradient(to right, rgba(102, 126, 234, 0.05), transparent);
  border-radius: 0 5px 5px 0;
  color: #555;
}

.project-technologies {
  margin-top: 40px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.project-technologies strong {
  font-weight: 700;
  color: #667eea;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 15px;
}

.project-technologies .technology {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 25px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-technologies .technology:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

/* Mobile responsive */
@media screen and (max-width: 600px) {
  /* Project listing page mobile styles */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Individual project page mobile styles */
  .project-header {
    padding: 35px 20px;
    margin: -40px -20px 30px -20px;
  }

  .project-title {
    font-size: 30px;
  }

  .project-content {
    font-size: 16px;
  }

  .project-content h1 {
    font-size: 26px;
  }

  .project-content h2 {
    font-size: 22px;
  }

  .project-content h3 {
    font-size: 19px;
  }

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