﻿/* Test sayfası için stillemeler */
.question-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.question-title {
    font-weight: bold;
    font-size: 1.3rem;
}

.question-image {
    max-width: 100%;
    overflow: hidden;
}

    .question-image img {
        max-width: 100%;
        border-radius: 8px;
    }

.option-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

    .option-item:hover {
        border-color: #dee2e6;
        background: #f1f3f5;
    }

.option-content {
    display: flex;
    align-items: center;
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
}

.option-radio-dot {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.option-text {
    flex-grow: 1;
}

/* Seçilen seçenek stilleri */
.option-selected {
    background: #d4edda;
    border-color: #28a745;
}

    .option-selected .option-radio:after {
        content: '';
        position: absolute;
        width: 10px;
        height: 10px;
        background: #28a745;
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

/* Quiz için doğru/yanlış stilleri */
.quiz-option.option-correct {
    background: #d4edda !important; /* Yeşil arka plan - !important ile zorla */
    border-color: #28a745 !important; /* Yeşil kenar çizgisi */
    pointer-events: none;
}

.quiz-option.option-incorrect {
    background: #f8d7da !important; /* Kırmızı arka plan */
    border-color: #dc3545 !important; /* Kırmızı kenar çizgisi */
    pointer-events: none;
}

.quiz-option.option-correct .option-radio:after,
.personality-option.option-selected .option-radio:after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #28a745; /* Yeşil nokta */
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.quiz-option.option-incorrect .option-radio:after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #dc3545; /* Kırmızı nokta */
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Sonuç bölümü stilleri */
#result-section {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 40px;
    margin-bottom: 40px;
}

.result-warning {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px 20px;
    border-radius: 4px;
}

.result-content {
    text-align: center;
}

.result-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.result-image {
    width: 600px;
    margin: 0 auto 30px;
    border-radius: 10px;
    overflow: hidden;
}

    .result-image img {
        width: 100%;
        height: auto;
    }

.result-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 20px;
}

.result-score {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #28a745;
}

/* İlgili testler stilleri */
.related-tests {
    margin-top: 40px;
}

    .related-tests h4 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

.related-test-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 15px;
}

.related-test-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

    .related-test-link:hover .related-test-card {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.related-test-card .row {
    min-height: 100px; /* Minimum yükseklik ekleyelim */
}

.related-test-card .col-4 img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.related-test-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 600;
}

.related-test-button {
    font-size: 0.9rem; /* Font boyutunu artıralım */
    color: #6c757d;
    margin-top: 10px;
}

@media (min-width: 992px) {
    .related-tests .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Sağdaki önerilen testler stilleri */
.recommended-tests-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

    .recommended-tests-card .card-header {
        background-color: #f8f9fa;
        padding: 15px 20px;
        border-bottom: 1px solid #e9ecef;
    }

.recommended-test-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.recommended-test-item {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

    .recommended-test-item:hover {
        background-color: #f8f9fa;
    }

.recommended-test-content {
    padding: 8px 12px;
}

    .recommended-test-content h6 {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0;
    }

/* Personality testi seçilmiş şık stilini düzenle */
.personality-option.option-selected {
    background: #d4edda; /* Yeşil arka plan */
    border-color: #28a745; /* Yeşil kenar çizgisi */
}

    .personality-option.option-selected .option-radio-dot {
        content: '';
        position: absolute;
        width: 10px;
        height: 10px;
        background: #28a745; /* Yeşil nokta */
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* Hover efektini devre dışı bırak */
    .personality-option.option-selected:hover {
        background: #d4edda;
        border-color: #28a745;
    }

.quiz-option.option-correct .option-radio-dot {
    background: #28a745;
}

.quiz-option.option-incorrect .option-radio-dot {
    background: #dc3545;
}

/* Comment section styles */
.comments-section {
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
}

.comment-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
}

    .comment-item:hover {
        background-color: #f1f3f5;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

.comment-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

.comment-text {
    margin: 10px 0 0;
    word-break: break-word;
}

.add-comment-section {
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
}

.comment-form textarea {
    resize: vertical;
}