/* ============================================================
   PROFILOVÝ DOTAZNÍK – SPECIFICKÉ STYLY A MIKRO-ANIMACE
   /vyber-stredni-skoly/assets/css/questionnaire.css
   ============================================================ */

/* Přechod mezi kroky */
.step-container {
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.step-enter {
  opacity: 0;
  transform: translateY(12px) scale(0.99);
}
.step-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.step-exit {
  opacity: 0;
  transform: translateY(-12px) scale(0.99);
  pointer-events: none;
}

/* Interaktivní výběrové karty */
.quiz-card {
  position: relative;
  transition: all 0.22s cubic-bezier(0.2, 0, 0, 1);
  cursor: pointer;
  user-select: none;
  border-width: 2px;
  -webkit-tap-highlight-color: transparent;
}
.quiz-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(45, 109, 168, 0.12), 0 8px 10px -6px rgba(45, 109, 168, 0.08);
}
.quiz-card:active {
  transform: scale(0.98);
}

/* Aktivní stav vybrané karty */
.quiz-card.is-selected {
  border-color: #2D6DA8 !important;
  background: linear-gradient(135deg, rgba(234, 243, 252, 0.9) 0%, rgba(244, 248, 255, 0.95) 100%) !important;
  box-shadow: 0 0 0 1px #2D6DA8, 0 12px 28px -6px rgba(45, 109, 168, 0.22) !important;
}

.quiz-card.is-selected .card-check {
  opacity: 1;
  transform: scale(1);
}

/* Ikona v kartě s mikro-zvětšením */
.quiz-card .card-icon {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.quiz-card:hover .card-icon {
  transform: scale(1.12);
}
.quiz-card.is-selected .card-icon {
  transform: scale(1.18);
}

/* Čekací indikátor v kartě */
.card-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background-color: #2D6DA8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.4);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(45, 109, 168, 0.35);
}

/* Pill tagy (Q5 Oblíbené předměty a Q6 Neoblíbené) */
.subject-pill {
  transition: all 0.18s ease;
  user-select: none;
  cursor: pointer;
  border-width: 2px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.subject-pill:hover {
  transform: translateY(-1px);
}
.subject-pill:active {
  transform: scale(0.96);
}

/* Kladný výběr (Q5) */
.subject-pill.is-positive-selected {
  border-color: #2D6DA8 !important;
  background-color: #2D6DA8 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(45, 109, 168, 0.28);
}

/* Záporný výběr (Q6) */
.subject-pill.is-negative-selected {
  border-color: #dc2626 !important;
  background-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.28);
}

/* Stylování range sliderů (Q8) */
input[type="range"].custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 9999px;
  background: #e2e8f0;
  outline: none;
  transition: background 0.15s ease;
}

input[type="range"].custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: #2D6DA8;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(45, 109, 168, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
input[type="range"].custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 14px rgba(45, 109, 168, 0.5);
}
input[type="range"].custom-slider::-webkit-slider-thumb:active {
  transform: scale(1.22);
  background: #1b4b7a;
}

input[type="range"].custom-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: #2D6DA8;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(45, 109, 168, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

/* Autocomplete našeptávač (Q10) */
.autocomplete-dropdown {
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.autocomplete-item {
  transition: background-color 0.15s ease;
}
.autocomplete-item:hover,
.autocomplete-item.is-active {
  background-color: #f1f5f9;
}

/* Výpočetní animace */
@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spin-slow 2.4s linear infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.animate-pulse-ring {
  animation: pulse-ring 2s infinite ease-in-out;
}
