/* Shared Challenges Page - App-like styling */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

.shared-challenge-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  min-height: 100vh;
}

/* Header Section - Orange gradient like the app */
.challenge-header {
  background: linear-gradient(135deg, #ff8c42 0%, #e76f3c 100%);
  color: white;
  padding: 1.5rem 1rem 2rem 1rem;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 20px 20px;
}

.challenge-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: white;
  text-align: center;
  line-height: 1.3;
}

.challenge-meta {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
}

.challenge-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.challenge-meta-label {
  font-weight: 400;
}

.challenge-description {
  display: none;
}

/* Progress Info - Green success banner like the app */
.progress-info {
  background: linear-gradient(135deg, #d4f1dd 0%, #c8eddb 100%);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid rgba(52, 199, 89, 0.2);
}

.progress-info .status {
  font-size: 1.1rem;
  font-weight: 600;
  color: #34c759;
  margin-bottom: 0.25rem;
}

.progress-info .count {
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
}

/* Submissions Grid */
.submissions-section {
  margin-top: 0;
  padding: 0 1rem 1rem 1rem;
}

.submissions-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  padding-left: 0;
}

.submissions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

/* Individual Submission Card - More compact like the app */
.submission-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submission-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Status Header - Green for approved, Red for rejected */
.submission-status-approved {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #34c759;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
}

.submission-status-rejected {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #ff3b30;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Brand and Model Title */
.submission-title {
  padding: 0.75rem 0.75rem 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.submission-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: #e0e0e0;
}

.submission-details {
  padding: 0.75rem;
}

.submission-license-plate {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.submission-properties {
  display: grid;
  gap: 0.35rem;
}

.property-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0;
  gap: 0.5rem;
}

.property-label {
  color: #666;
  font-weight: 400;
  flex-shrink: 0;
}

.property-value {
  color: #000;
  font-weight: 500;
  text-align: right;
}

/* Empty State */
.empty-state {
  background: white;
  border-radius: 12px;
  padding: 3rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 0 1rem;
}

.empty-state p {
  color: #666;
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .challenge-header h1 {
    font-size: 1.5rem;
  }
  
  .submissions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .submission-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (min-width: 601px) {
  .shared-challenge-container {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .challenge-header {
    border-radius: 0;
  }
}

/* Checkmark icon for completed challenges */
.status-icon {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.25rem;
  vertical-align: middle;
}
