/**
 * Project Card Component
 * Individual project card styling
 */

.projects-section {
  padding: var(--space-12) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-3);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--frost-tertiary);
  max-width: 60ch;
  margin: 0 auto;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.project-card {
  background: var(--midnight-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(230, 232, 235, 0.1);
  overflow: hidden;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(134, 192, 255, 0.3),
              0 8px 24px rgba(134, 192, 255, 0.15);
}

.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--midnight-elevated) 0%, var(--midnight-card) 100%);
  border: 2px solid rgba(240, 198, 116, 0.2);
}

.project-card__image {
  aspect-ratio: 16 / 9;
  background: var(--midnight-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.project-card.featured .project-card__image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-4);
  transition: transform var(--duration-base) var(--ease-out);
}

.project-card:hover .project-card__image img {
  transform: scale(1.05);
}

.project-card__content {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.project-card__title {
  font-size: var(--text-2xl);
  color: var(--frost-white);
  margin: 0;
}

.project-card.featured .project-card__title {
  font-size: var(--text-3xl);
}

.status-badge {
  font-family: var(--font-code);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25em 0.5em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  white-space: nowrap;
}

.status-active {
  background: rgba(95, 179, 179, 0.2);
  color: var(--variable-teal);
}

.status-beta {
  background: rgba(240, 198, 116, 0.2);
  color: var(--syntax-gold);
}

.status-archived {
  background: rgba(101, 115, 126, 0.2);
  color: var(--comment-gray);
}

.status-maintenance {
  background: rgba(134, 192, 255, 0.2);
  color: var(--function-blue);
}

.project-card__tagline {
  font-size: var(--text-lg);
  color: var(--syntax-gold);
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.project-card__description {
  color: var(--frost-secondary);
  margin-bottom: var(--space-3);
  line-height: 1.6;
  flex-grow: 1;
}

.project-card__highlights {
  list-style: none;
  margin-bottom: var(--space-3);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-2);
}

.project-card__highlights li {
  font-size: var(--text-sm);
  color: var(--frost-tertiary);
  padding-left: var(--space-3);
  position: relative;
}

.project-card__highlights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--function-blue);
}

.project-card__technologies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.tech-badge {
  font-family: var(--font-code);
  font-size: var(--text-xs);
  background: rgba(134, 192, 255, 0.1);
  color: var(--function-blue);
  padding: 0.35em 0.6em;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(134, 192, 255, 0.2);
  font-weight: 500;
}

.project-card__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--function-blue);
  color: var(--midnight-canvas);
  border-color: var(--function-blue);
}

.btn-primary:hover {
  background: var(--syntax-gold);
  border-color: var(--syntax-gold);
  color: var(--midnight-canvas);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 198, 116, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--frost-white);
  border-color: rgba(230, 232, 235, 0.2);
}

.btn-secondary:hover {
  background: var(--midnight-elevated);
  border-color: var(--function-blue);
  color: var(--function-blue);
}

.btn-tertiary {
  background: transparent;
  color: var(--frost-tertiary);
  border: none;
  padding: var(--space-2);
}

.btn-tertiary:hover {
  color: var(--syntax-gold);
}

/* Responsive */
@media (max-width: 1024px) {
  .projects-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .project-card.featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .projects-container {
    grid-template-columns: 1fr;
  }
  
  .project-card__actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}
