/* ==================================================================
   SANA UYGUN MOTORU BUL SAYFASI STİLLERİ (GÜNCELLEME)
   ================================================================== */

#quiz-section, #results-section {
    max-width: 1000px;
    margin: 0 auto;
}

/* --- Quiz Türü Seçim Kartı Stilleri --- */
.quiz-mode-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.quiz-mode-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.2);
}
.quiz-mode-icon { width: 56px; height: 56px; color: var(--primary); margin: 0 auto 1.5rem auto; }
.quiz-mode-title { font-family: 'Oswald', sans-serif; font-size: 2rem; color: white; margin-bottom: 0.75rem; }
.quiz-mode-description { color: var(--text-dark); line-height: 1.6; margin-bottom: 2rem; }
.quiz-mode-button { display: inline-block; font-weight: 700; color: var(--primary); font-size: 1.1rem; }

/* --- İlerleme Çubuğu --- */
#progress-bar-container { display: flex; align-items: flex-start; justify-content: space-between; }
.progress-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; flex-grow: 1; }
.progress-step-circle { width: 40px; height: 40px; border-radius: 50%; background-color: var(--bg-light); border: 3px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--text-dark); transition: all 0.4s ease; z-index: 2; }
.progress-step::before { content: ''; position: absolute; top: 20px; right: 50%; width: 100%; height: 4px; background-color: var(--border-color); transform: translateY(-50%); z-index: 1; }
.progress-step:first-child::before { display: none; }
.progress-step.completed::before { background-color: var(--primary); }
.progress-step.completed .progress-step-circle { cursor: pointer; background-color: var(--primary); border-color: var(--primary); color: white; }
.progress-step.active .progress-step-circle { border-color: var(--primary); color: var(--primary); transform: scale(1.1); }

/* --- Soru Kartları ve Animasyonlar --- */
.question-card {
    position: absolute;
    width: 100%;
    backface-visibility: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s 0.4s;
}
.question-card.forward { transform: translateX(50px); }
.question-card.backward { transform: translateX(-50px); }
.question-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: opacity 0.4s ease 0.1s, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s, visibility 0s 0s;
}
.question-card.exit-forward { opacity: 0; transform: translateX(-50px); }
.question-card.exit-backward { opacity: 0; transform: translateX(50px); }

.question-title { font-size: 1.5rem; font-size: 1.75rem; font-weight: 700; color: var(--text-light); text-align: center; margin-bottom: 2.5rem; }
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
@media (min-width: 768px) { .options-grid { gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.option-box { background-color: var(--bg-light); border: 2px solid var(--border-color); border-radius: 1rem; padding: 1.5rem 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; transition: all 0.3s ease; }
.option-box:hover { transform: translateY(-5px); border-color: var(--primary); }
.option-box.selected { border-color: var(--primary); background-color: rgba(var(--primary-rgb), 0.1); transform: translateY(-5px); box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.2); }
.option-icon { width: 40px; height: 40px; color: var(--primary); margin-bottom: 1rem; }
.option-text { font-size: 1rem; font-weight: 600; color: var(--text-light); }

/* --- Sonuç Kartları --- */
.result-card {
    display: block;
    background-color: var(--bg-light);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative; /* <-- BU SATIRI EKLEYİN */
}
.result-card:hover { transform: scale(1.03); box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.2); }
.result-card-image-wrapper { width: 100%; padding-top: 75%; position: relative; }
.result-card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.result-card-content { padding: 1rem; display: flex; flex-direction: column; flex-grow: 1; }
.result-card-details { margin-bottom: 1rem; }
.result-card-brand { font-size: 0.75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; }
.result-card-title { font-family: 'Oswald', sans-serif; font-size: 1.5rem; font-weight: 600; color: var(--text-light); line-height: 1.3; transition: color 0.3s ease; }
.match-reasons-list { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--border-color); }
.match-reasons-title { font-size: 0.8rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.5rem; }
.match-reasons-list ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.match-reasons-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }
.match-reasons-list li i { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }

/* ==================================================================
   DİNAMİK YÜKSEKLİK İÇİN GEÇİŞ EFEKTİ
   ================================================================== */
#questions-wrapper {
    transition: height 0.4s ease-in-out;
}

/* ==================================================================
   YENİ: Mobil'de 2 veya 3 Şıklı Soruları Yan Yana Hizalama
   ================================================================== */

@media (max-width: 767px) { /* Sadece mobil cihazlar için geçerli */

    .options-grid.grid-condensed {
        /* Izgarayı 3 sütuna böl */
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem; /* Kartlar arası boşluğu biraz azalt */
    }

    .options-grid.grid-condensed .option-box {
        padding: 1rem 0.5rem; /* İç boşlukları daraltarak sığdır */
        min-height: 120px; /* Tüm kartların aynı yükseklikte olmasını sağla */
    }

    .options-grid.grid-condensed .option-icon {
        width: 32px; /* İkonları küçült */
        height: 32px;
        margin-bottom: 0.5rem;
    }

    .options-grid.grid-condensed .option-text {
        font-size: 0.8rem; /* Yazı boyutunu küçült */
        line-height: 1.3;
    }
    /* YENİ: Test seçim kartlarını mobil için küçült */
    .quiz-mode-card {
        padding: 1.5rem 1rem; /* İç boşlukları küçült */
        border-radius: 1rem;
    }
    .quiz-mode-icon {
        width: 32px; /* İkonu küçült */
        height: 32px;
        margin-bottom: 1rem; /* Alt boşluğu azalt */
    }
    .quiz-mode-title {
        font-size: 1.25rem; /* Başlığı küçült */
        margin-bottom: 0.5rem;
    }
    .quiz-mode-description {
        font-size: 0.875rem; /* Açıklamayı küçült */
        line-height: 1.5;
        margin-bottom: 1rem; /* Alt boşluğu azalt */
    }
    .quiz-mode-button {
        font-size: 0.9rem; /* Buton yazısını küçült */
    }
}

/* ==================================================================
   YENİ: Sonuç Kartı - Marka Logosu Stilleri
   ================================================================== */


/* Eğer bir logo bulunamazsa, eski marka yazısının stilini koru */
.result-card-brand {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}
/* ==================================================================
   GÜNCELLENDİ: Sonuç Kartı - Marka Logosu Stilleri (Sol Üst Köşe)
   ================================================================== */

.result-card-brand-logo-wrapper {
    position: absolute;
    top: 0.75rem; /* 12px */
    left: 0.75rem; /* 12px */
    z-index: 10;
    background-color: rgba(13, 17, 23, 0.7); /* yarı şeffaf koyu arkaplan */
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.5rem; /* 4px 8px */
    border-radius: 0.375rem; /* 6px */
    height: auto; /* Yüksekliği içeriğe göre ayarla */
}

.result-card-brand-logo {
    display: block;
    height: 24px; /* Logo yüksekliği */
    width: auto;
    object-fit: contain;
}

/* Logo yukarı taşındığı için başlığın üstündeki boşluğu ayarla */
.result-card-title {
    margin-top: 0; 
}