/* Test-specific styles */
.test-main {
    margin-top: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding-top: 72px;
}

/* Test Header */
.test-header {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.test-header h1 {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.test-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.test-level span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.test-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

/* Test Content */
.test-content {
    padding: 3rem 0;
}

.test-screen {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.test-screen.active {
    display: block;
}

/* Welcome Screen */
.welcome-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.welcome-content h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

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

.test-description p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
}

.test-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.detail-item {
    text-align: center;
}

.detail-item strong {
    display: block;
    color: #333;
    margin-bottom: 0.5rem;
}

.detail-item span {
    color: #667eea;
    font-weight: 600;
}

.instructions {
    text-align: left;
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.instructions h3 {
    color: #333;
    margin-bottom: 1rem;
}

.instructions ul {
    list-style: none;
    padding: 0;
}

.instructions li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #666;
}

.instructions li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Question Screen */
.question-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.question-header {
    text-align: center;
    margin-bottom: 3rem;
}

.question-header h2 {
    color: #333;
    font-size: 1.5rem;
    line-height: 1.6;
    font-weight: 500;
}

.question-options {
    margin-bottom: 3rem;
}

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

.option-item {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-item:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.option-item.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.option-item.selected .option-radio {
    border-color: white;
}

.option-item.selected .option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.option-text {
    font-size: 1rem;
    font-weight: 500;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Loading Screen */
.loading-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.loading-content h2 {
    color: #333;
    margin-bottom: 1rem;
}

.loading-content p {
    color: #666;
    margin-bottom: 2rem;
}

.loading-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-text {
    font-size: 0.9rem;
    color: #666;
}

/* Results Screen */
.results-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.results-header h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.personality-level span {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
}

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

.trait-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.trait-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
}

.trait-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.trait-score {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.trait-description {
    color: #666;
    font-size: 0.9rem;
}

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

.results-description h3 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.personality-description {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.personality-description p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .test-info {
        flex-direction: column;
        gap: 1rem;
    }

    .test-progress {
        flex-direction: column;
        gap: 0.5rem;
    }

    .progress-bar {
        width: 250px;
    }

    .welcome-content,
    .question-container,
    .loading-content,
    .results-content {
        padding: 2rem;
        margin: 0 1rem;
    }

    .test-details {
        grid-template-columns: 1fr;
    }

    .loading-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .trait-scores {
        grid-template-columns: 1fr;
    }

    .results-actions {
        flex-direction: column;
        align-items: center;
    }

    .results-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .test-header h1 {
        font-size: 2rem;
    }

    .welcome-content h2,
    .results-header h2 {
        font-size: 1.5rem;
    }

    .question-header h2 {
        font-size: 1.2rem;
    }

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

    .question-navigation .btn {
        width: 100%;
    }
}
