/* Стилі для відображення тестів на сайті */

.psy-test-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Заголовок тесту */
.psy-test-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.psy-test-title {
    margin: 0 0 15px 0;
    font-size: 28px;
    color: #2c3e50;
}

.psy-test-description {
    color: #6c757d;
    line-height: 1.6;
}

/* Форма тесту */
.psy-test-form {
    display: block;
}

/* Питання */
.psy-test-question {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.psy-test-question:hover {
    background: #e9ecef;
}

.psy-question-number {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 10px;
    background: #007bff;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.psy-question-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Відповіді */
.psy-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.psy-answer-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.psy-answer-option:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.psy-answer-option input[type="radio"] {
    margin: 0 15px 0 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.psy-answer-option input[type="radio"]:checked + .psy-answer-text {
    font-weight: 600;
    color: #007bff;
}

.psy-answer-text {
    flex: 1;
    font-size: 16px;
    color: #495057;
    line-height: 1.5;
}

/* Кнопка відправки */
.psy-test-submit {
    margin-top: 30px;
    text-align: center;
}

.psy-test-submit-btn {
    padding: 15px 40px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.psy-test-submit-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.psy-test-submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Результат */
.psy-test-result {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 5px solid #28a745;
}

.psy-result-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.psy-result-title {
    margin: 0;
    font-size: 24px;
    color: #28a745;
}

.psy-result-content {
    margin-bottom: 25px;
}

.psy-result-stats {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.psy-result-stats h4 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #2c3e50;
}

.psy-letter-count {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.psy-letter-item {
    text-align: center;
}

.psy-letter {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}

.psy-count {
    font-size: 18px;
    color: #6c757d;
}

.psy-letter-item.winner .psy-letter {
    color: #28a745;
    font-size: 32px;
}

.psy-points-display {
    text-align: center;
    padding: 20px;
    font-size: 28px;
    font-weight: 700;
    color: #007bff;
}

.psy-result-description h4 {
    margin: 20px 0 10px 0;
    font-size: 22px;
    color: #2c3e50;
}

.psy-result-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
}

/* Кнопка повтору */
.psy-test-restart-btn {
    padding: 12px 30px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.psy-test-restart-btn:hover {
    background: #0056b3;
}

/* Повідомлення про помилку */
.psy-test-error {
    padding: 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
}

/* Мобільна адаптивність */
@media (max-width: 768px) {
    .psy-test-container {
        padding: 20px;
    }
    
    .psy-test-title {
        font-size: 24px;
    }
    
    .psy-question-text {
        font-size: 16px;
    }
    
    .psy-answer-text {
        font-size: 14px;
    }
    
    .psy-test-submit-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .psy-letter-count {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .psy-letter-item {
        flex: 0 0 45%;
    }
}
