/* ========================================
// COMPLETELY NEW QUIZ STYLES
// ======================================== */

/* Quiz Container */
#newQuizContainer {
    min-height: 500px;
    font-family: 'Outfit', sans-serif;
}

/* Welcome Step */
.quiz-welcome {
    text-align: center;
    padding: 2rem;
}

.quiz-header {
    margin-bottom: 3rem;
}

.quiz-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

.quiz-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00C896, #4A90E2, #2E7D32);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.quiz-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features */
.quiz-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 200, 150, 0.2);
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 200, 150, 0.15);
}

.feature-icon {
    font-size: 2rem;
}

.feature-text {
    font-weight: 600;
    color: #334155;
}

/* Start Button */
.quiz-start-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, #00C896, #4A90E2);
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 200, 150, 0.3);
}

.quiz-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 200, 150, 0.4);
}

.btn-arrow {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.quiz-start-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Progress Bar */
.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 200, 150, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00C896, #4A90E2);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Quiz Options */
.quiz-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 2px solid transparent;
    border-radius: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.quiz-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-option:hover::before {
    opacity: 1;
}

/* Color Variants */
.quiz-option-blue {
    border-color: rgba(59, 130, 246, 0.3);
}

.quiz-option-blue:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

.quiz-option-green {
    border-color: rgba(34, 197, 94, 0.3);
}

.quiz-option-green:hover {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.2);
}

.quiz-option-purple {
    border-color: rgba(168, 85, 247, 0.3);
}

.quiz-option-purple:hover {
    border-color: #a855f7;
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(168, 85, 247, 0.2);
}

.quiz-option-orange {
    border-color: rgba(251, 146, 60, 0.3);
}

.quiz-option-orange:hover {
    border-color: #fb923c;
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(251, 146, 60, 0.2);
}

.option-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.option-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}

.option-arrow {
    font-size: 1.5rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.quiz-option:hover .option-arrow {
    transform: translateX(4px);
    color: #00C896;
}

/* Back Button */
.quiz-back-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-back-btn:hover {
    border-color: #00C896;
    color: #00C896;
    background: rgba(0, 200, 150, 0.1);
}

/* Results */
.quiz-results {
    text-align: center;
    padding: 2rem;
}

.success-animation {
    margin-bottom: 2rem;
}

.success-icon {
    font-size: 4rem;
    animation: celebrate 1s ease-out;
}

.result-header {
    margin-bottom: 2rem;
}

.result-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.result-header p {
    color: #64748b;
    font-size: 1.125rem;
}

.result-test-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.test-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.test-category {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.test-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00C896;
}

.test-description {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.test-details {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.detail-icon {
    font-size: 1rem;
}

.test-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    padding: 0.5rem 1rem;
    background: rgba(0, 200, 150, 0.1);
    color: #00C896;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.result-action-secondary {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-action-secondary:hover {
    border-color: #00C896;
    color: #00C896;
    background: rgba(0, 200, 150, 0.1);
}

.result-action-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00C896, #4A90E2);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 200, 150, 0.3);
}

.result-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 200, 150, 0.4);
}

/* Error State */
.quiz-error {
    text-align: center;
    padding: 3rem;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.quiz-error h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 1rem;
}

.quiz-error p {
    color: #64748b;
    margin-bottom: 2rem;
}

.quiz-restart-btn {
    padding: 1rem 2rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-restart-btn:hover {
    background: #b91c1c;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes celebrate {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-title {
        font-size: 2rem;
    }
    
    .quiz-subtitle {
        font-size: 1rem;
    }
    
    .quiz-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quiz-option {
        padding: 1rem;
        gap: 1rem;
    }
    
    .option-icon {
        font-size: 2rem;
    }
    
    .option-title {
        font-size: 1.125rem;
    }
    
    .test-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .test-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-action-secondary,
    .result-action-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quiz-welcome,
    .quiz-results,
    .quiz-error {
        padding: 1rem;
    }
    
    .quiz-title {
        font-size: 1.5rem;
    }
    
    .quiz-start-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .quiz-option {
        padding: 0.75rem;
    }
    
    .result-test-card {
        padding: 1rem;
    }
}
