/* ===== PERSONALIZE QUIZ STYLES (MOBILE OPTIMIZED) ===== */

.personalize-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #001429 0%, #001f3f 100%);
  padding: 100px 20px 80px;
}

.personalize-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* PROGRESS BAR */
.progress-bar {
  width: 100%;
  max-width: 600px;
  height: 8px;
  background: rgba(232, 105, 51, 0.2);
  border-radius: 10px;
  margin: 0 auto 15px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #E86933, #ff7f50);
  border-radius: 10px;
  transition: width 0.5s ease;
  width: 33.33%;
}

.progress-text {
  text-align: center;
  color: #e0e0e0;
  font-size: 16px;
  margin-bottom: 40px;
}

/* QUESTION PAGES */
.question-page {
  display: none;
  animation: fadeIn 0.5s ease;
}

.question-page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-page h2 {
  font-size: 42px;
  color: #E86933;
  text-align: center;
  margin-bottom: 15px;
}

.question-subtitle {
  text-align: center;
  color: #e0e0e0;
  font-size: 18px;
  margin-bottom: 40px;
}

/* SELECTION COUNTER */
.selection-counter {
  text-align: center;
  font-size: 20px;
  color: #E86933;
  font-weight: bold;
  margin-bottom: 30px;
  padding: 15px;
  background: rgba(232, 105, 51, 0.1);
  border-radius: 10px;
  border: 2px solid rgba(232, 105, 51, 0.3);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CATEGORIES GRID (PAGE 1) */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.category-card {
  background: #002952;
  border: 3px solid rgba(232, 105, 51, 0.3);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.category-card:hover {
  border-color: #E86933;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(232, 105, 51, 0.3);
}

.category-card.selected {
  background: linear-gradient(135deg, #E86933, #ff7f50);
  border-color: #ff7f50;
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(232, 105, 51, 0.5);
}

.category-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.category-emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 15px;
}

.category-card h3 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 8px;
}

.category-card p {
  color: #e0e0e0;
  font-size: 13px;
}

.category-card.selected h3,
.category-card.selected p {
  color: white;
}

.category-checkmark {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #E86933;
  font-weight: bold;
}

.category-card.selected .category-checkmark {
  display: flex;
}

/* SUBCATEGORIES CONTAINER (PAGE 2) */
.subcategories-container {
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.subcategory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  justify-content: center;
}

.subcategory-chip {
  background: #002952;
  border: 2px solid rgba(232, 105, 51, 0.3);
  padding: 12px 20px;
  border-radius: 50px;
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.subcategory-chip:hover {
  border-color: #E86933;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(232, 105, 51, 0.3);
}

.subcategory-chip.selected {
  background: #E86933;
  border-color: #ff7f50;
  color: white;
  transform: translateY(-3px);
}

.subcategory-chip input[type="checkbox"] {
  display: none;
}

.chip-checkmark {
  display: none;
  font-size: 14px;
}

.subcategory-chip.selected .chip-checkmark {
  display: inline;
}

/* OPTIONS GRID (PAGE 3) */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.option-card {
  background: #002952;
  border: 3px solid rgba(232, 105, 51, 0.3);
  border-radius: 15px;
  padding: 40px 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option-card:hover {
  border-color: #E86933;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(232, 105, 51, 0.3);
}

.option-card.selected {
  background: linear-gradient(135deg, #E86933, #ff7f50);
  border-color: #ff7f50;
}

.option-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.option-card h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 10px;
}

.option-card p {
  color: #e0e0e0;
  font-size: 14px;
}

.option-card.selected h3,
.option-card.selected p {
  color: white;
}

.hidden-checkbox {
  display: none;
}

/* NAVIGATION BUTTONS */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-next,
.btn-back,
.btn-skip {
  padding: 18px 50px;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-next {
  background: linear-gradient(135deg, #E86933, #ff7f50);
  color: white;
  box-shadow: 0 10px 30px rgba(232, 105, 51, 0.4);
}

.btn-next:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(232, 105, 51, 0.6);
}

.btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-back {
  background: transparent;
  color: #E86933;
  border: 2px solid #E86933;
}

.btn-back:hover {
  background: #E86933;
  color: white;
}

.btn-skip {
  background: transparent;
  color: #e0e0e0;
  border: 2px solid #e0e0e0;
}

.btn-skip:hover {
  color: white;
  border-color: white;
}

/* AI ANALYSIS */
.ai-analysis {
  text-align: center;
  padding: 40px;
  background: #002952;
  border-radius: 15px;
  margin-bottom: 40px;
  border: 2px solid rgba(232, 105, 51, 0.3);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.ai-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.ai-analysis p {
  font-size: 20px;
  color: #ffffff;
  line-height: 1.6;
}

/* RESULTS ACTIONS */
.results-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.results-actions .btn-primary,
.results-actions .btn-secondary {
  padding: 18px 50px;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.results-actions .btn-primary {
  background: #E86933;
  color: white;
}

.results-actions .btn-primary:hover {
  background: #ff7f50;
  transform: translateY(-3px);
}

.results-actions .btn-secondary {
  background: transparent;
  color: #E86933;
  border: 2px solid #E86933;
}

.results-actions .btn-secondary:hover {
  background: #E86933;
  color: white;
}

/* TOP MATCH BADGE */
.top-match-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  z-index: 10;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.5);
}

/* MOBILE RESPONSIVE */
@media(max-width: 768px) {
  .personalize-section {
    padding: 90px 15px 60px;
  }

  .question-page h2 {
    font-size: 26px;
  }

  .question-subtitle {
    font-size: 16px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .category-card {
    padding: 25px 15px;
  }

  .category-emoji {
    font-size: 40px;
  }

  .category-card h3 {
    font-size: 16px;
  }

  .category-card p {
    font-size: 12px;
  }

  .subcategory-chip {
    padding: 10px 15px;
    font-size: 14px;
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .option-card {
    padding: 30px 20px;
  }

  .option-icon {
    font-size: 40px;
  }

  .btn-next,
  .btn-back,
  .btn-skip {
    padding: 15px 30px;
    font-size: 16px;
    width: 100%;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .ai-icon {
    font-size: 60px;
  }

  .ai-analysis p {
    font-size: 16px;
  }

  .results-actions {
    flex-direction: column;
  }

  .results-actions .btn-primary,
  .results-actions .btn-secondary {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
  }
}

@media(max-width: 480px) {
  .question-page h2 {
    font-size: 22px;
  }

  .selection-counter {
    font-size: 16px;
    padding: 12px;
  }

  .category-emoji {
    font-size: 36px;
  }
}