/* Quiz Ana Kapsayıcı */
.entry-content .duke-quiz-wrapper,
.post-content .duke-quiz-wrapper,
.single-post .duke-quiz-wrapper {
    width: auto !important;
    max-width: 750px;
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    clear: both;
    font-family: "Segoe UI", sans-serif;
}

/* 🔹 Tema: Dark */
.duke-quiz-wrapper[data-theme="dark"] {
    background: #1f2937;
    color: #f3f4f6;
}
.duke-quiz-wrapper[data-theme="dark"] h2 {
    background: #111827;
    color: #f3f4f6;
}
.duke-quiz-wrapper[data-theme="dark"] .duke-question {
    border-color: #374151;
}
.duke-quiz-wrapper[data-theme="dark"] label {
    background: #374151;
    color: #f9fafb;
}

/* Başlık */
.duke-quiz-wrapper h2 {
    font-size: 24px;
    font-weight: 700;
    padding: 20px;
    margin: 0;
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
    text-align: center;
    color: #2c3e50;
}

/* Soru Kartı */
.duke-question {
    margin: 0;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

/* Soru Başlığı */
.duke-question p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* Görsel */
.duke-question img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Seçenek Kutuları */
.duke-question label {
    display: block;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #fafafa;
}

/* Radyo butonunu gizle */
.duke-question input[type="radio"] {
    display: none;
}

/* Hover efekti */
.duke-question label:hover {
    background: #f0f8ff;
    border-color: #888;
}

/* Seçili kutu */
.duke-question input[type="radio"]:checked + span {
    background: #eaf3ff;
    border: 2px solid #3b82f6;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 16px;
    display: block;
}

/* Yanlış seçilen şık */
.duke-question label.selected-wrong {
    background: #ffe5e5 !important;
    border: 2px solid #ef4444 !important;
    color: #b91c1c;
    font-weight: 600;
}

/* Doğru seçilen şık */
.duke-question label.selected-correct {
    background: #e6fbe6 !important;
    border: 2px solid #22c55e !important;
    color: #166534;
    font-weight: 600;
}

/* Doğru şık gösterimi */
.duke-question label.show-correct {
    background: #f0fff4 !important;
    border: 2px dashed #22c55e !important;
    color: #166534;
}

/* 🔹 Gönder Butonu */
.duke-submit {
    color: #fff;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    margin: 20px auto;
    display: block;
    width: 220px;
    text-align: center;
    transition: background 0.3s ease;
}

/* Buton stilleri */
.duke-quiz-wrapper[data-button-style="blue"] .duke-submit {
    background: #3b82f6;
}
.duke-quiz-wrapper[data-button-style="blue"] .duke-submit:hover {
    background: #2563eb;
}
.duke-quiz-wrapper[data-button-style="green"] .duke-submit {
    background: #10b981;
}
.duke-quiz-wrapper[data-button-style="green"] .duke-submit:hover {
    background: #059669;
}
.duke-quiz-wrapper[data-button-style="gradient"] .duke-submit {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.duke-quiz-wrapper[data-button-style="gradient"] .duke-submit:hover {
    opacity: 0.9;
}

/* Sonuç Kartı */
.duke-quiz-wrapper .duke-result-card {
    margin: 20px;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    text-align: center;
}
.duke-quiz-wrapper .duke-result-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

/* Yüzde Barı */
.duke-quiz-wrapper .duke-bar {
    width: 100%;
    height: 20px;
    background: #eee;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
}
.duke-quiz-wrapper .duke-bar-fill {
    height: 100%;
    background: #3b82f6;
    transition: width 0.5s ease;
}
.duke-quiz-wrapper .duke-percent {
    font-weight: bold;
    color: #333;
    margin-top: 8px;
}

/* 🔹 Sosyal Paylaşım */
.duke-share {
    margin-top: 15px;
}
.duke-share a {
    display: inline-block;
    margin: 0 8px;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}
.duke-share a[href*="twitter"] {
    background: #1da1f2;
}
.duke-share a[href*="whatsapp"] {
    background: #25d366;
}

/* 🔹 Hata Mesajı (zorunlu sorular doldurulmazsa) */
.duke-error {
    color: #dc2626; /* kırmızı */
    background: #fee2e2; /* hafif kırmızı arkaplan */
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 15px auto;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    max-width: 500px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Masaüstü İçin */
@media (min-width: 992px) {
    .entry-content .duke-quiz-wrapper,
    .post-content .duke-quiz-wrapper,
    .single-post .duke-quiz-wrapper {
        max-width: 750px;
    }
}

.duke-q-image {
  margin: 10px 0;
  text-align: center;
}
.duke-q-image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

