/* PROJECTS PAGE */

.page-projects {
  padding: 3rem 0;
}

.projects-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2.2rem;
  margin-top: 2.2rem;
}

.glass-surface {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

.section-header-sm {
  margin-bottom: 1.5rem;
}

.section-title-sm {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtext.small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Filters */
.project-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.project-filters .btn {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.project-filters .btn.active {
  background: rgba(147, 51, 234, 0.2);
  border-color: rgba(147, 51, 234, 0.5);
}

/* Project Cards */
.project-card-list {
  display: grid;
  gap: 1.5rem;
  max-height: 600px;
  overflow-y: auto;
}

.project-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(147, 51, 234, 0.3);
  transform: translateY(-2px);
}

.project-card.completed {
  opacity: 0.8;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.project-header h4 {
  font-size: 1.1rem;
  margin: 0;
  flex: 1;
}

.project-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.project-status {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
}

.project-status.active {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.project-status.completed {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
}

.subtext {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

/* Progress */
.project-progress {
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Actions */
.project-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.project-actions .btn {
  flex: 1;
  font-size: 0.85rem;
  padding: 0.5rem;
}

/* Ratings */
.project-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.rating-stars {
  color: #fbbf24;
  font-size: 1rem;
}

.rating-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.chip {
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.chip-gradient {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(147, 51, 234, 0.3));
  color: #a78bfa;
  border: 1px solid rgba(147, 51, 234, 0.3);
}

.chip-green-gradient {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(74, 222, 128, 0.3));
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.chip-blue-gradient {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(96, 165, 250, 0.3));
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.chip-purple { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.chip-green { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.chip-blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.chip-orange { background: rgba(251, 146, 60, 0.2); color: #fb923c; }

/* Feature Grid */
.milestone-feature-grid {
  display: grid;
  gap: 1.5rem;
}

.project-card .feature-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

.project-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.project-card .btn {
  margin-top: auto;
  width: 100%;
}

/* Quick Actions */
.quick-actions-grid {
  display: grid;
  gap: 1rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
  cursor: pointer;
}

.action-card:hover {
  border-color: rgba(147, 51, 234, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.action-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.action-card h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.action-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* No Projects Placeholder */
.no-projects-placeholder {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.link-primary {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

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

/* Responsive */
@media (max-width: 900px) {
  .projects-grid-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-filters {
    justify-content: center;
  }

  .project-actions {
    flex-direction: column;
  }

  .milestone-feature-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .glass-surface {
    padding: 1.5rem;
  }

  .project-card-list {
    max-height: 400px;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .project-meta {
    align-items: flex-start;
  }
}