/**
 * assets/quiz.css
 * Quiz Bankası — Frontend test alanı stilleri
 * Temiz, modern, mobil uyumlu tasarım
 */

/* ============================================================
   TEMEL WRAPPER
   ============================================================ */
.qb-wrapper {
    max-width: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
}

.qb-ekran { animation: qb-fade-in .25s ease; }

@keyframes qb-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   EKRAN 1: FİLTRE EKRANI
   ============================================================ */
.qb-baslik-alani {
    text-align: center;
    padding: 32px 20px 24px;
}
.qb-ana-baslik {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a2e;
}
.qb-alt-baslik {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.qb-filtre-form {
    background: #fff;
    border: 1px solid #e8e8f0;
    border-radius: 16px;
    padding: 28px 32px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}

.qb-filtre-grup {
    margin-bottom: 20px;
}
.qb-filtre-grup:last-child { margin-bottom: 0; }

.qb-filtre-etiket {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.qb-zorunlu   { color: #e53e3e; }
.qb-opsiyonel { color: #999; font-weight: 400; font-size: 12px; text-transform: none; letter-spacing: 0; }

.qb-select {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    border: 2px solid #e8e8f0;
    border-radius: 10px;
    background: #fafafa;
    color: #1a1a2e;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.qb-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
    background-color: #fff;
}
.qb-select:disabled {
    opacity: .55;
    cursor: not-allowed;
    background-color: #f3f3f3;
}

.qb-buton-grup { text-align: center; margin-top: 10px; }

.qb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.qb-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.qb-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79,70,229,.35);
}
.qb-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79,70,229,.45);
}
.qb-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}
.qb-btn-secondary:hover { background: #e9ecef; }

.qb-btn-outline {
    background: transparent;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}
.qb-btn-outline:hover { background: #f0f0ff; }

.qb-btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.qb-btn-ikon { font-size: 14px; }

/* ============================================================
   YÜKLENİYOR
   ============================================================ */
.qb-yukleniyor {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}
.qb-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e8e8f0;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: qb-spin .7s linear infinite;
    margin: 0 auto 16px;
}
@keyframes qb-spin { to { transform: rotate(360deg); } }

/* ============================================================
   EKRAN 2: TEST EKRANI
   ============================================================ */
.qb-test-ust-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 10px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}
.qb-sure-gosterge {
    background: #f3f4f6;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    color: #374151;
}

.qb-progress-bar-container {
    height: 6px;
    background: #e8e8f0;
    border-radius: 6px;
    margin-bottom: 24px;
    overflow: hidden;
}
.qb-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 6px;
    transition: width .4s cubic-bezier(.4,0,.2,1);
}

/* ─── SORU KARTI ─── */
.qb-soru-kart {
    background: #fff;
    border: 1px solid #e8e8f0;
    border-radius: 16px;
    padding: 28px 32px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

.qb-soru-metin {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 24px;
    color: #1a1a2e;
}

/* ─── ŞIKLAR ─── */
.qb-siklar { display: flex; flex-direction: column; gap: 10px; }

.qb-sik {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid #e8e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all .18s;
    background: #fafafa;
}
.qb-sik:hover {
    border-color: #c7d2fe;
    background: #f0f0ff;
    transform: translateX(3px);
}

.qb-sik-harf {
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8f0;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    flex-shrink: 0;
    transition: all .18s;
}

.qb-sik-metin {
    font-size: 15px;
    line-height: 1.5;
    color: #374151;
    align-self: center;
}

/* Seçili şık */
.qb-sik.qb-secili {
    border-color: #4f46e5;
    background: #eef2ff;
}
.qb-sik.qb-secili .qb-sik-harf {
    background: #4f46e5;
    color: #fff;
}

/* ============================================================
   EKRAN 3: SONUÇ EKRANI
   ============================================================ */
.qb-sonuc-kart {
    background: #fff;
    border: 1px solid #e8e8f0;
    border-radius: 16px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    margin-bottom: 24px;
}

.qb-sonuc-baslik {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1a1a2e;
}
.qb-sonuc-sure {
    color: #888;
    font-size: 14px;
    margin-bottom: 28px;
}

.qb-sonuc-ozet {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.qb-sonuc-rakam {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 28px;
    border-radius: 12px;
    min-width: 100px;
}
.qb-rakam-sayi {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}
.qb-rakam-label { font-size: 13px; font-weight: 600; }

.qb-dogru  { background: #dcfce7; color: #166534; }
.qb-yanlis { background: #fee2e2; color: #991b1b; }
.qb-bos    { background: #f3f4f6; color: #374151; }

.qb-sonuc-yuzde { margin-bottom: 28px; }
.qb-yuzde-bar {
    height: 10px;
    background: #e8e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}
.qb-yuzde-dolu {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 10px;
    transition: width .8s cubic-bezier(.4,0,.2,1);
}
.qb-yuzde-text { font-size: 15px; font-weight: 700; color: #166534; }

.qb-sonuc-butonlar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ─── SORU İNCELEME ─── */
#qb-inceleme-bolumu { margin-top: 24px; }
#qb-inceleme-bolumu h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #1a1a2e;
    text-align: left;
}

.qb-inceleme-soru {
    background: #fff;
    border-left: 4px solid #e8e8f0;
    border-radius: 0 10px 10px 0;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    text-align: left;
}

.qb-inceleme-dogru  { border-left-color: #22c55e; background: #f0fdf4; }
.qb-inceleme-yanlis { border-left-color: #ef4444; background: #fff5f5; }
.qb-inceleme-bos    { border-left-color: #94a3b8; background: #f8fafc; }

.qb-inceleme-baslik {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.qb-inceleme-ikon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}
.qb-inceleme-dogru  .qb-inceleme-ikon { background: #22c55e; color: #fff; }
.qb-inceleme-yanlis .qb-inceleme-ikon { background: #ef4444; color: #fff; }
.qb-inceleme-bos    .qb-inceleme-ikon { background: #94a3b8; color: #fff; }

.qb-inceleme-no { font-size: 13px; color: #666; font-weight: 600; }
.qb-inceleme-metin { font-size: 15px; color: #1a1a2e; margin-bottom: 12px; line-height: 1.6; }

.qb-inceleme-siklar { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }

.qb-inceleme-sik {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 14px;
}
.qb-dogru-sik  { background: #dcfce7; font-weight: 600; }
.qb-yanlis-sik { background: #fee2e2; text-decoration: line-through; }

.qb-inceleme-sik .qb-sik-harf {
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8f0;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    flex-shrink: 0;
}
.qb-dogru-sik  .qb-sik-harf { background: #22c55e; color: #fff; }
.qb-yanlis-sik .qb-sik-harf { background: #ef4444; color: #fff; }

.qb-aciklama {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
}

/* ============================================================
   MOBİL UYUM
   ============================================================ */
@media (max-width: 600px) {
    .qb-filtre-form  { padding: 20px; }
    .qb-soru-kart    { padding: 20px; }
    .qb-sonuc-kart   { padding: 24px 20px; }
    .qb-sonuc-ozet   { gap: 12px; }
    .qb-sonuc-rakam  { padding: 14px 20px; min-width: 80px; }
    .qb-rakam-sayi   { font-size: 30px; }
    .qb-sonuc-butonlar { flex-direction: column; align-items: stretch; }
    .qb-btn          { justify-content: center; }
    .qb-soru-metin   { font-size: 15px; }
}

/* ============================================================
   LAYOUT: TARLA (SOL) + QUIZ (SAĞ)
   ============================================================ */
.qb-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.qb-layout-farm {
    flex: 0 0 52%;
    min-width: 0;
    max-width: 52%;
    box-sizing: border-box;
    position: sticky;
    top: 20px;
}

.qb-layout-quiz {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .qb-layout {
        flex-direction: column;
    }
    .qb-layout-farm {
        flex: none;
        max-width: 100%;
        width: 100%;
        position: static;
    }
}

/* ============================================================
   FARM MİNİ WİDGET — Test sırasında header altında
   ============================================================ */
.qb-farm-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0faf0;
    border: 1px solid #b8e0b8;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    transition: box-shadow 0.2s ease;
}

.qb-farm-mini--pulse {
    box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.45);
    animation: qb-farm-pulse 0.55s ease;
}

@keyframes qb-farm-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(92, 184, 92, 0.7); }
    60%  { box-shadow: 0 0 0 8px rgba(92, 184, 92, 0.0); }
    100% { box-shadow: 0 0 0 0   rgba(92, 184, 92, 0.0); }
}

.qb-farm-mini__icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.qb-farm-mini__info {
    flex: 1;
    min-width: 0;
}

.qb-farm-mini__label {
    display: block;
    font-size: 0.72rem;
    color: #4a7a4a;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qb-farm-mini__bar {
    height: 5px;
    background: rgba(0,0,0,0.08);
    border-radius: 3px;
    margin-top: 4px;
    overflow: hidden;
}

.qb-farm-mini__fill {
    height: 100%;
    background: linear-gradient(90deg, #5cb85c, #7edd6a);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qb-farm-mini__stat {
    font-size: 0.75rem;
    color: #4a7a4a;
    font-weight: 700;
    white-space: nowrap;
}

/* ============================================================
   FARM SONUÇ PANELİ — Sonuç ekranında
   ============================================================ */
.qb-farm-result {
    background: #f6fbf6;
    border: 1px solid #c3e6c3;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 0.85rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.qb-farm-result__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #2d6a2d;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.qb-farm-result__grown {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5cb85c;
    background: rgba(92, 184, 92, 0.12);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(92, 184, 92, 0.3);
}

.qb-farm-result__detail {
    color: #3a5a3a;
}

.qb-farm-result__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: #4a7a4a;
}

.qb-farm-result__progress {
    margin-top: 4px;
}

.qb-farm-result__bar {
    height: 7px;
    background: rgba(0,0,0,0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.qb-farm-result__fill {
    height: 100%;
    background: linear-gradient(90deg, #5cb85c, #7edd6a);
    border-radius: 4px;
    transition: width 0.7s ease;
}

.qb-farm-result__pct {
    font-size: 0.75rem;
    color: #4a7a4a;
}

.qb-farm-result__cta {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.qb-farm-result__cta--levelup {
    background: rgba(255, 208, 96, 0.15);
    border: 1px solid rgba(255, 208, 96, 0.5);
    color: #7a5a00;
}
.qb-farm-result__cta--levelup a {
    color: #9a7000;
    text-decoration: underline;
}

.qb-farm-result__cta--warn {
    background: rgba(217, 83, 79, 0.08);
    border: 1px solid rgba(217, 83, 79, 0.3);
    color: #8a2020;
}

/* ============================================================
   FILTRE SATIRI (shortcode.php yeni layout için)
   ============================================================ */
.qb-filtre-satir {
    margin-bottom: 14px;
}
.qb-filtre-satir label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}
.qb-filtre-satir select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fff;
}

/* ════════════════════════════════════════════════════════════════
   YENİ SORU TİPLERİ — v3.2
   ════════════════════════════════════════════════════════════════ */

/* ─── DOĞRU / YANLIŞ ─── */
.qb-sik-dy,
.tp-qz-dy {
    min-width: 200px;
    padding: 16px 24px !important;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
.tp-qz-dy {
    background: #f9fafb;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
    color: #374151;
}
.tp-qz-dy:hover:not(:disabled) {
    border-color: #2271b1;
    background: #f0f6ff;
    color: #2271b1;
    transform: translateY(-1px);
}
.tp-qz-dy-icon {
    font-size: 1.4rem;
    line-height: 1;
}
.tp-qz-dy-label {
    letter-spacing: .5px;
}
.tp-qz-siklar > .tp-qz-dy {
    flex: 1;
    max-width: 300px;
}
.qb-tip-dogru_yanlis .qb-siklar,
.tp-qz-tip-dogru_yanlis .tp-qz-siklar {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── KISA CEVAP ─── */
.qb-text-grup,
.tp-qz-text-grup {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-top: 12px;
    flex-wrap: wrap;
}
.qb-text-input,
.tp-qz-text-input {
    flex: 1;
    min-width: 220px;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color .15s;
    background: #fff;
}
.qb-text-input:focus,
.tp-qz-text-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,.15);
}
.qb-text-input:disabled,
.tp-qz-text-input:disabled {
    background: #f9fafb;
    cursor: not-allowed;
}
.qb-text-input.qb-text--dogru,
.tp-qz-text-input.tp-qz-text--dogru {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #166534;
    font-weight: 600;
}
.qb-text-input.qb-text--yanlis,
.tp-qz-text-input.tp-qz-text--yanlis {
    border-color: #dc2626;
    background: #fef2f2;
    color: #991b1b;
    font-weight: 600;
}

.qb-submit-text,
.tp-qz-submit-text {
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}
.qb-submit-text:hover:not(:disabled),
.tp-qz-submit-text:hover:not(:disabled) {
    background: #155a8a;
    transform: translateY(-1px);
}
.qb-submit-text:disabled,
.tp-qz-submit-text:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ─── BOŞLUK DOLDURMA ─── */
.qb-bosluk-input,
.tp-qz-bosluk-input {
    display: inline-block;
    min-width: 100px;
    width: auto;
    max-width: 300px;
    padding: 4px 10px;
    margin: 0 4px;
    font-size: inherit;
    font-family: inherit;
    border: none;
    border-bottom: 2px solid #2271b1;
    background: #f0f6ff;
    border-radius: 4px 4px 0 0;
    transition: all .15s;
}
.qb-bosluk-input:focus,
.tp-qz-bosluk-input:focus {
    outline: none;
    background: #dbeafe;
    border-bottom-color: #1e40af;
    box-shadow: 0 2px 0 #1e40af;
}
.qb-bosluk-input:disabled,
.tp-qz-bosluk-input:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}
.qb-bosluk-input.qb-bosluk--dogru,
.tp-qz-bosluk-input.tp-qz-bosluk--dogru {
    background: #dcfce7;
    border-bottom-color: #16a34a;
    color: #166534;
    font-weight: 700;
}
.qb-bosluk-input.qb-bosluk--yanlis,
.tp-qz-bosluk-input.tp-qz-bosluk--yanlis {
    background: #fee2e2;
    border-bottom-color: #dc2626;
    color: #991b1b;
    font-weight: 700;
    text-decoration: line-through;
    text-decoration-color: #dc2626;
}
.qb-bosluk-grup,
.tp-qz-bosluk-grup {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
}
.qb-bosluk-ipucu,
.tp-qz-bosluk-ipucu {
    font-size: .82rem;
    color: #6b7280;
    font-style: italic;
}

/* ─── DOĞRU CEVAP İPUCU (yanlış sonrası) ─── */
.qb-dogru-cevap-hint,
.tp-qz-dogru-cevap-hint {
    margin-top: 10px;
    padding: 8px 14px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
    font-size: .88rem;
    color: #166534;
    display: inline-block;
}
.qb-dogru-cevap-hint strong,
.tp-qz-dogru-cevap-hint strong {
    color: #14532d;
}

/* ─── SORU KART TİP ROZETİ ─── */
.qb-soru-kart[data-tip],
.tp-qz-soru-kart[data-tip] {
    position: relative;
}
.qb-soru-kart[data-tip]::before,
.tp-qz-soru-kart[data-tip]::before {
    content: attr(data-tip);
    position: absolute;
    top: 8px;
    right: 12px;
    padding: 2px 8px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-radius: 10px;
    background: #e0f2fe;
    color: #075985;
    opacity: .75;
}
.qb-soru-kart[data-tip="dogru_yanlis"]::before,
.tp-qz-soru-kart[data-tip="dogru_yanlis"]::before {
    content: "D / Y";
    background: #fef3c7;
    color: #92400e;
}
.qb-soru-kart[data-tip="kisa_cevap"]::before,
.tp-qz-soru-kart[data-tip="kisa_cevap"]::before {
    content: "Kısa Cevap";
    background: #ede9fe;
    color: #6d28d9;
}
.qb-soru-kart[data-tip="bosluk_doldurma"]::before,
.tp-qz-soru-kart[data-tip="bosluk_doldurma"]::before {
    content: "Boşluk Doldurma";
    background: #fce7f3;
    color: #9d174d;
}
.qb-soru-kart[data-tip="coktan_secmeli"]::before,
.tp-qz-soru-kart[data-tip="coktan_secmeli"]::before {
    display: none;
}

/* ════════════════════════════════════════════════════════════════
   DERS VİDEOLARI
   ════════════════════════════════════════════════════════════════ */
.qb-ders-videolari-ust {
    margin: 0 0 24px 0;
}
.qb-video-bolum {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}
.qb-video-baslik {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #111827;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
}
.qb-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.qb-video-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}
.qb-video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,.08);
}
.qb-video-oynatici {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}
.qb-video-oynatici video,
.qb-video-oynatici iframe,
.qb-video-oynatici embed,
.qb-video-oynatici object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}
.qb-video-bilgi {
    padding: 12px 16px 14px;
}
.qb-video-baslik-kart {
    font-size: .95rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #1f2937;
    line-height: 1.35;
}
.qb-video-aciklama {
    font-size: .82rem;
    color: #6b7280;
    margin: 0 0 8px 0;
    line-height: 1.5;
}
.qb-video-sure {
    display: inline-block;
    font-size: .75rem;
    color: #4b5563;
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 10px;
}
.qb-video-bos,
.qb-video-hata {
    text-align: center;
    padding: 30px;
    color: #9ca3af;
    font-size: .9rem;
    background: #f9fafb;
    border-radius: 8px;
}

/* ════════════════════════════════════════════════════════════════
   KAYIT FORMU
   ════════════════════════════════════════════════════════════════ */
.qb-kayit-wrap {
    margin: 0 0 24px 0;
}
.qb-kayit-form {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .08);
}
.qb-kayit-header {
    text-align: center;
    margin-bottom: 18px;
}
.qb-kayit-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #1e3a8a;
}
.qb-kayit-header p {
    font-size: .9rem;
    color: #3730a3;
    margin: 0;
    opacity: .8;
}
.qb-kayit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.qb-kayit-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.qb-kayit-field-full {
    grid-column: 1 / -1;
    margin-top: 12px;
}
.qb-kayit-field label {
    font-size: .82rem;
    font-weight: 600;
    color: #1e40af;
}
.qb-req {
    color: #dc2626;
}
.qb-kayit-field input[type="text"],
.qb-kayit-field input[type="email"],
.qb-kayit-field input[type="tel"],
.qb-kayit-field textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: .92rem;
    border: 1.5px solid #c7d2fe;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.qb-kayit-field input:focus,
.qb-kayit-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.qb-kayit-field textarea {
    resize: vertical;
    min-height: 80px;
}
.qb-kayit-submit-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.qb-kayit-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: .95rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
    letter-spacing: .3px;
}
.qb-kayit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(29, 78, 216, .3);
}
.qb-kayit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.qb-kayit-feedback {
    font-size: .88rem;
    padding: 6px 12px;
    border-radius: 6px;
    flex: 1;
    min-width: 200px;
}
.qb-kayit-feedback.qb-kayit-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}
.qb-kayit-feedback.qb-kayit-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Mobil uyum */
@media (max-width: 640px) {
    .qb-kayit-form { padding: 18px 16px; }
    .qb-kayit-header h3 { font-size: 1.15rem; }
    .qb-video-grid { grid-template-columns: 1fr; }
    .qb-text-grup,
    .tp-qz-text-grup { flex-direction: column; }
    .qb-text-input,
    .tp-qz-text-input { min-width: 100%; }
    .qb-submit-text,
    .tp-qz-submit-text { width: 100%; }
    .tp-qz-dy { width: 100%; max-width: 100%; }
}
