/* Challenge Page Specific Styles */

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: 0.25rem;
  margin-right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0.25rem;
  backdrop-filter: blur(10px);
}

.lang-btn {
  padding: 0.4rem 0.8rem;
  border: none;
  background: transparent;
  color: var(--color-gray-600);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 16px;
  transition: all 0.3s ease;
  font-family: var(--font-family-primary);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-gray-900);
}

.lang-btn.active {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

@media (max-width: 768px) {
  /* Mobile uses same button styling as desktop - no overrides */
}

/* Challenge Hero */
.challenge-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 50%, #74b9ff 100%);
  padding: 120px 0 80px;
}

.challenge-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.challenge-hero .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s ease-in-out infinite;
}

.challenge-hero .shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.5) 100%);
  top: -100px;
  right: -100px;
}

.challenge-hero .shape-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #00B894 0%, #00CEC9 100%);
  bottom: 10%;
  left: -50px;
}

.challenge-hero .shape-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #E17055 0%, #FDCB6E 100%);
  top: 40%;
  right: 20%;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(30px) rotate(240deg); }
}

.challenge-hero .hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.challenge-hero .hero-text {
  color: white;
}

.challenge-hero .hero-greeting {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.challenge-hero .hero-greeting::before {
  content: none;
}

.challenge-hero .hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.challenge-hero .hero-title .highlight {
  background: linear-gradient(135deg, #FDCB6E 0%, #E17055 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.challenge-hero .hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
  font-weight: 600;
}

.challenge-hero .hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.challenge-hero .hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.challenge-hero .stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem 1.5rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.challenge-hero .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: white;
}

.challenge-hero .stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.challenge-hero .hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.challenge-hero .btn-primary {
  background: linear-gradient(135deg, #E17055 0%, #FDCB6E 100%);
  box-shadow: 0 10px 30px rgba(225, 112, 85, 0.3);
}

.challenge-hero .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(225, 112, 85, 0.4);
}

.challenge-hero .btn-outline {
  border-color: white;
  color: white;
}

.challenge-hero .btn-outline:hover {
  background: white;
  color: #6C5CE7;
}

.challenge-hero .hero-image .image-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.challenge-hero .hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* Registration Form Styling */
.registration-container {
  max-width: 600px;
  margin: 0 auto;
}

.challenge-form {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.challenge-form .form-group {
  margin-bottom: 1.5rem;
}

.challenge-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-gray-700);
}

.challenge-form .input-wrapper {
  position: relative;
}

.challenge-form .input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-400);
  pointer-events: none;
  z-index: 1;
}

.challenge-form .input-wrapper input,
.challenge-form .input-wrapper select {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--color-gray-200);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  box-sizing: border-box;
}

.challenge-form .input-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
  cursor: pointer;
}

.challenge-form .input-wrapper input:focus,
.challenge-form .input-wrapper select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* Pricing Card Wrapper */
.pricing-card-wrapper {
  display: flex;
  justify-content: center;
}

.pricing-card {
  max-width: 400px;
  text-align: center;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 15px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-gray-800);
  text-align: left;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--color-gray-50);
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--color-primary);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* Final CTA Section */
.final-cta {
  background: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 100%);
  padding: 80px 0;
  text-align: center;
}

.final-cta .cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.final-cta h2 {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.final-cta .btn-primary {
  background: linear-gradient(135deg, #E17055 0%, #FDCB6E 100%);
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
}

.final-cta .cta-guarantee {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .challenge-hero .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .challenge-hero .hero-stats {
    justify-content: center;
  }
  
  .challenge-hero .hero-buttons {
    justify-content: center;
  }
  
  .challenge-hero .hero-image {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .challenge-hero {
    padding: 100px 0 60px;
  }
  
  .challenge-hero .hero-stats {
    flex-direction: row;
    gap: 1rem;
  }
  
  .challenge-hero .stat {
    padding: 0.75rem 1rem;
  }
  
  .challenge-form {
    padding: 1.5rem;
  }
  
  .challenge-form .input-wrapper input,
  .challenge-form .input-wrapper select {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 0.9rem 0.9rem 0.9rem 2.5rem;
  }
  
  .challenge-form .input-wrapper select {
    padding-left: 0.9rem;
  }
  
  .challenge-form .input-wrapper i {
    left: 0.8rem;
    font-size: 1rem;
  }
  
  .challenge-hero .stat-number {
    font-size: 1.5rem;
  }
  
  .challenge-form {
    padding: 1.5rem;
  }
  
  .final-cta {
    padding: 60px 0;
  }
}
