/* Problem Section - Minimal overrides for Pico CSS */

/* Section spacing handled by common.css */

.problem-section header {
  margin-bottom: 3rem;
}

/* Challenges Table Container */
.challenges-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 3rem;
}

/* Table column widths */
.challenges-table-container table {
  table-layout: fixed;
}

.challenges-table-container th:nth-child(1),
.challenges-table-container td:nth-child(1) { width: 25%; }
.challenges-table-container th:nth-child(2),
.challenges-table-container td:nth-child(2) { width: 35%; }
.challenges-table-container th:nth-child(3),
.challenges-table-container td:nth-child(3) { width: 25%; }
.challenges-table-container th:nth-child(4),
.challenges-table-container td:nth-child(4) { width: 15%; text-align: center; }

/* Challenge rows animation */
.challenge-row {
  transition: transform var(--transition-fast);
}

.challenge-row:hover {
  transform: translateX(4px);
}

/* Challenge header layout */
.challenge-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Challenge icon - Theme colors only */
.challenge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  background: var(--academic-warning);
  color: var(--primary-inverse);
  flex-shrink: 0;
  font-size: 1.125rem;
}

/* Metric styling */
.metric-cell {
  white-space: nowrap;
}

.metric-value {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background: var(--academic-surface);
  color: var(--academic-warning);
  font-weight: 600;
  font-size: 0.875rem;
}

.challenge-row:hover .metric-value {
  background: var(--academic-warning);
  color: var(--primary-inverse);
}


/* Animation classes */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.challenge-row {
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
  
  .challenges-table-container table {
    min-width: 500px;
  }
  
  .challenge-icon {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .challenge-row {
    animation: none;
    opacity: 1;
  }
  
  .challenge-row:hover,
  .challenge-row:hover .metric-value {
    transform: none;
  }
}