/* Quiz-specific styles */
.quiz-hero {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.quiz-header {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.quiz-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.quiz-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.quiz-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.quiz-container {
    padding: 3rem 0;
    background: #f9fafb;
}

.quiz-progress {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #6b7280;
    font-weight: 500;
    display: block;
}

.quiz-content {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.quiz-question {
    text-align: center;
}

.question-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1f2937;
    line-height: 1.4;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 1rem;
    line-height: 1.5;
}

.option:hover {
    border-color: #6366f1;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.option.selected {
    border-color: #6366f1;
    background: #f0f4ff;
    box-shadow: 0 4px 6px -1px rgb(99 102 241 / 0.1);
}

.option-text {
    font-weight: 500;
    color: #1f2937;
}

.option-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Results Styles */
.quiz-results {
    text-align: center;
}

.results-header {
    margin-bottom: 3rem;
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.results-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
}

.primary-need {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.need-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.need-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.need-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.need-score {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    display: inline-block;
}

.score-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-right: 0.5rem;
}

.score-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.needs-breakdown {
    margin-bottom: 2rem;
    text-align: left;
}

.needs-breakdown h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
}

.needs-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.need-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.need-label {
    min-width: 100px;
    font-weight: 500;
    color: #374151;
}

.bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bar-fill {
    height: 20px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    border-radius: 10px;
    transition: width 1s ease;
    min-width: 0;
}

.bar-value {
    min-width: 40px;
    font-weight: 600;
    color: #374151;
    text-align: right;
}

.recommendations {
    margin-bottom: 2rem;
    text-align: left;
}

.recommendations h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
}

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item {
    background: #f9fafb;
    border-left: 4px solid #6366f1;
    padding: 1rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.recommendation-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.recommendation-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-primary {
    background: #6366f1;
    color: white;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.btn-accent {
    background: #ec4899;
    color: white;
}

.btn-accent:hover {
    background: #db2777;
    transform: translateY(-2px);
}

.related-tools {
    padding: 3rem 0;
    background: white;
}

.related-tools .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.related-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-tools .tool-card {
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-title {
        font-size: 2rem;
    }
    
    .quiz-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quiz-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .question-title {
        font-size: 1.25rem;
    }
    
    .option {
        padding: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .needs-chart {
        gap: 0.75rem;
    }
    
    .need-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .need-label {
        min-width: auto;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .quiz-hero {
        padding: 2rem 0;
    }
    
    .quiz-title {
        font-size: 1.75rem;
    }
    
    .quiz-content {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .primary-need {
        padding: 1.5rem;
    }
    
    .need-icon {
        font-size: 2.5rem;
    }
    
    .need-title {
        font-size: 1.25rem;
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scale-in {
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
