/* Challenge Page Styles */

/* Hero Section */
.challenge-hero {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255,255,255,0.8) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 4rem;
}

.challenge-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-family: var(--font-condensed);
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 500;
}

/* Countdown Timer */
.countdown-container {
  margin: 2rem 0;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.countdown.active {
  background: linear-gradient(135deg, #089289 0%, #066f6a 100%);
  color: white;
}

.countdown.evaluation {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
}

.countdown-element {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.countdown-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.countdown-status {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.countdown.active ~ .countdown-status,
.countdown.evaluation ~ .countdown-status {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 3rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(8, 146, 137, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 146, 137, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  border-radius: 3rem;
}

.btn-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  position: relative;
}

.btn-disabled:hover {
  transform: none !important;
  box-shadow: 0 4px 14px rgba(8, 146, 137, 0.3) !important;
}

/* Sections */
.challenge-section {
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.challenge-section h2 {
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-family: var(--font-condensed);
  font-weight: 600;
}

.challenge-section p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* Schmankerl Examples */
.schmankerl-examples {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.schmankerl-examples li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.schmankerl-examples li:before {
  content: "✨";
  position: absolute;
  left: 0;
  top: 0;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 3rem;
  margin: 2rem 0;
}

.timeline:before {
  content: '';
  position: absolute;
  left: 17px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:before {
  content: '';
  position: absolute;
  left: -40px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--primary);
  box-sizing: border-box;
}

.timeline-item.highlight:before {
  width: 25px;
  height: 25px;
  left: -42px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(8, 146, 137, 0.2);
}

.timeline-date {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-content h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Prizes */
.prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.prize-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.prize-card:hover {
  transform: translateY(-5px);
}

.prize-card.gold {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
}

.prize-card.silver {
  background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
  color: #333;
}

.prize-card.bronze {
  background: linear-gradient(135deg, #cd7f32 0%, #e6a355 100%);
  color: white;
}

.prize-rank {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.prize-amount {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-condensed);
}

.prizes-note {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 1.5rem;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.step-card {
  position: relative;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.step-number {
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.step-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  margin-top: 1rem;
}

.step-card p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.step-card a {
  color: var(--primary);
  text-decoration: underline;
}

.step-card a:hover {
  color: var(--primary-dark);
}

/* Criteria */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.criterion-card {
  padding: 1.5rem;
  background: var(--background-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.criterion-card h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.criterion-card p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Requirements */
.requirements-section {
  background: var(--background-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin: 3rem 0;
}

.requirements-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.requirement {
  padding: 1rem;
  background: white;
  border-radius: var(--radius);
  font-size: 1.05rem;
  line-height: 1.5;
}

.requirement strong {
  color: var(--primary-dark);
  margin-right: 0.5rem;
}

.requirement a {
  color: var(--primary);
  text-decoration: underline;
}

.requirement a:hover {
  color: var(--primary-dark);
}

/* CTA Section */
.challenge-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255,255,255,0.9) 100%);
  border-radius: var(--radius-lg);
  margin: 4rem 0 2rem;
}

.challenge-cta h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.challenge-cta p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Breadcrumb */
.breadcrumb-nav {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.breadcrumb-link {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: var(--text-secondary);
}

.breadcrumb-current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .challenge-hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .countdown {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
  }

  .countdown-number {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-item:before {
    left: -24px;
  }

  .timeline-item.highlight:before {
    left: -24px;
    height: 20px;
    width: 20px;
  }

  .prizes-grid,
  .steps-grid,
  .criteria-grid {
    grid-template-columns: 1fr;
  }

  .challenge-section h2 {
    font-size: 1.8rem;
  }
}