/* Стили для квиза */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.progress-container {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9b59b6 0%, #8e44ad 50%, #7d3c98 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    color: #b8b8d4;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Карточки вопросов */
.question-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    backdrop-filter: blur(15px);
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

.question-card.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.question-card.show {
    animation: slideInUp 0.3s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-content {
    text-align: center;
}

.question-number {
    font-size: 0.9rem;
    color: #9b59b6;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-title {
    font-family: 'Cormorant', serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 40px;
    line-height: 1.3;
    background: linear-gradient(135deg, #ffffff 0%, #e6e6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.question-subtitle {
    font-size: 1.1rem;
    color: #b8b8d4;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Мистические символы */
.mystical-symbols {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.symbol {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.symbol:nth-child(2) {
    animation-delay: 1s;
}

.symbol:nth-child(3) {
    animation-delay: 2s;
}

/* Ответы */
.answers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.answer-btn {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1rem;
    font-weight: 400;
    backdrop-filter: blur(10px);
}

.answer-btn:hover {
    background: rgba(155, 89, 182, 0.1);
    border-color: rgba(155, 89, 182, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.2);
}

.answer-btn.selected {
    background: rgba(155, 89, 182, 0.2);
    border-color: #9b59b6;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.4);
}

.answer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.answer-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    border-radius: 50%;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
}

.answer-text {
    flex: 1;
    line-height: 1.4;
}

/* Кнопки */
.next-button {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 50%, #7d3c98 100%);
    border: none;
    border-radius: 50px;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.3);
    position: relative;
    overflow: hidden;
}

.next-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(155, 89, 182, 0.5);
}

.next-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.next-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.next-button:hover::before {
    left: 100%;
}

/* Анимация завершения */
.completion-animation {
    margin: 30px 0;
}

.mystical-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border: 2px solid #9b59b6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 3s linear infinite;
    box-shadow: 0 0 30px rgba(155, 89, 182, 0.5);
}

.inner-circle {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Загрузочные точки */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: #9b59b6;
    border-radius: 50%;
    animation: loadingDots 1.5s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDots {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .quiz-container {
        padding: 15px;
    }
    
    .question-card {
        padding: 25px 20px;
    }
    
    .question-title {
        font-size: 1.8rem;
    }
    
    .answer-btn {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
    
    .answer-letter {
        width: 30px;
        height: 30px;
        margin-right: 15px;
    }
    
    .mystical-symbols {
        gap: 20px;
    }
    
    .symbol {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .question-title {
        font-size: 1.5rem;
    }
    
    .question-subtitle {
        font-size: 1rem;
    }
    
    .answer-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .next-button {
        padding: 15px 40px;
        font-size: 1.1rem;
    }
    
    .mystical-circle {
        width: 100px;
        height: 100px;
    }
    
    .inner-circle {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
}

/* Переходы между вопросами */
.question-card.fade-out {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.15s ease;
}

.question-card.fade-in {
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Состояние выбранного ответа */
.answer-btn.selecting {
    background: rgba(155, 89, 182, 0.3);
    transform: scale(0.98);
    transition: all 0.1s ease;
}

/* Анимация прогресс-бара */
.progress-fill.animate {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект появления карточек */
.question-card.slide-in {
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
         }
} 