/* Kompakt Doğru/Yanlış Hero Kartı (Kompakt İnce Görünüm) */
.gd-tf-hero-compact {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0 !important;
}

.gd-tf-hero-compact .gd-page-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gd-tf-hero-compact .gd-page-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.gd-tf-hero-compact .gd-page-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* ── KURAL 23: STANDART ARAMA VE SEGMENTED FİLTRELEME ÇUBUĞU ───────────────── */
.gd-mev-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.gd-mev-search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.gd-mev-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    display: flex;
    pointer-events: none;
}

.gd-mev-search-input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.gd-mev-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.gd-mev-filter-group {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}

.gd-mev-filter-btn {
    padding: 7px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gd-mev-filter-btn.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ── 1. ANA KÜTÜPHANE KATEGORİ GRID YAPISI ───────────────────────────────── */
.gd-tf-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gd-tf-cat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.gd-tf-cat-card:hover {
    transform: translateY(-2px);
    border-color: #2563eb;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.1);
}

.gd-tf-cat-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.gd-tf-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gd-tf-cat-info {
    flex: 1;
}

.gd-tf-cat-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 4px;
}

.gd-tf-cat-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
}

.gd-tf-cat-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gd-tf-cat-prog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.gd-tf-cat-prog-bg {
    height: 8px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
}

.gd-tf-cat-prog-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #10b981);
    border-radius: 6px;
}

.gd-tf-cat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #2563eb;
    transition: all 0.2s ease;
}

.gd-tf-cat-card:hover .gd-tf-cat-btn {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* ── 2. ÜST NAVİGASYON VE KONTROL BARI (Mevzuat 1:1 Birebir) ─────────────── */
.hub-nav-bar {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 10px;
    box-shadow: none;
}

.nav-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.gd-leg-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gd-leg-top-btn {
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.15s ease;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.gd-leg-top-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.gd-leg-top-btn.btn-back:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.gd-leg-top-btn.btn-questions {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.gd-leg-top-btn.btn-questions:hover {
    background: #dbeafe;
    color: #1e40af;
}

.gd-leg-top-btn.btn-facts {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.gd-leg-top-btn.btn-facts:hover {
    background: #fef3c7;
    color: #92400e;
}

.gd-leg-top-btn.btn-reset {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.gd-leg-top-btn.btn-reset:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.font-controls-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.font-btn-compact {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.font-btn-compact:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* KATEGORİ TETİKLEYİCİ ÇUBUĞU */
.hub-cat-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
}

.hub-cat-trigger:hover {
    background: #f8fafc;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.hub-cat-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hub-cat-title-text {
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f172a;
}

/* ── 3. MEVZUAT 1:1 İLERLEME KARTI & SEGMENTED PİLLER ─────────────────────── */
.overall-progress-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.overall-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.overall-progress-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #1e293b;
}

.gd-leg-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gd-leg-filter-pills {
    display: inline-flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 10px;
    gap: 3px;
}

.gd-leg-filter-pill {
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    border-radius: 7px;
    transition: all 0.15s ease;
}

.gd-leg-filter-pill:hover {
    color: #0f172a;
}

.gd-leg-filter-pill.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.overall-progress-value {
    font-weight: 900;
    font-size: 1.1rem;
    color: #2563eb;
}

.overall-progress-bar-bg {
    height: 10px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.overall-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #10b981);
    border-radius: 10px;
    transition: width 0.4s ease-out;
}

.gd-leg-progress-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

/* ── 4. MEVZUAT 1:1 CANLI ARAMA KUTUSU ─────────────────────────────────── */
.leg-search-box {
    margin-bottom: 20px;
}

.leg-search-input-wrapper {
    position: relative;
    width: 100%;
}

.gd-leg-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    display: flex;
    pointer-events: none;
}

.leg-search-input {
    width: 100%;
    padding: 12px 16px 12px 46px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    font-size: 0.92rem;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.leg-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* LİSTE / SORU KARTLARI (2'Lİ GRID DÜZENİ) */
.gd-tf-list-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.gd-tf-list-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.gd-tf-list-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.gd-tf-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gd-tf-list-idx {
    font-size: 0.8rem;
    font-weight: 800;
    color: #2563eb;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.gd-tf-list-statement {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
    transition: font-size 0.15s ease;
    flex: 1;
}

.gd-tf-actions-row {
    width: 100%;
    display: flex;
    gap: 12px;
}

.gd-tf-action-btn {
    flex: 1;
    height: 46px;
    border-radius: 12px;
    border: none;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.gd-tf-btn-false {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.gd-tf-btn-true {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.gd-tf-btn-false:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.gd-tf-btn-true:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.gd-tf-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

.gd-tf-action-btn.selected-correct {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    opacity: 1 !important;
}

.gd-tf-action-btn.selected-wrong {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    opacity: 1 !important;
}

.gd-tf-list-reveal {
    padding: 18px 20px;
    background: #f8fafc;
    border-radius: 0 14px 14px 0;
    font-size: 0.92rem;
    animation: gdSlideUp 0.3s ease-out;
}

@keyframes gdSlideUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.gd-tf-admin-edit,
.gd-tf-admin-del {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.gd-tf-admin-edit {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.gd-tf-admin-del {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.gd-tf-admin-edit:hover { background: #2563eb; color: #ffffff; }
.gd-tf-admin-del:hover { background: #ef4444; color: #ffffff; }

/* ZİPPİ MODAL (Kategori & Onay Modalları) */
.gd-tf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gd-tf-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.gd-tf-modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gd-tf-modal-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f172a;
}

.gd-tf-modal-close {
    border: none;
    background: none;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 8px;
}

.gd-tf-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.gd-tf-modal-search {
    padding: 14px 22px;
    border-bottom: 1px solid #f1f5f9;
}

.gd-tf-search-box {
    position: relative;
}

.gd-tf-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: flex;
}

.gd-tf-search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    font-size: 0.88rem;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.gd-tf-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.gd-tf-cat-list {
    padding: 14px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gd-tf-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.15s ease;
}

.gd-tf-cat-item:hover {
    background: #f8fafc;
    border-color: #2563eb;
    color: #2563eb;
}

.gd-tf-cat-item.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.gd-tf-cat-count {
    opacity: 0.75;
    font-size: 0.78rem;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .gd-tf-category-grid,
    .gd-tf-list-wrap {
        grid-template-columns: 1fr;
    }

    .nav-top-row {
        gap: 10px;
    }

    .gd-leg-top-btn {
        height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }

    .hub-cat-trigger {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .gd-tf-list-card {
        padding: 18px 16px;
    }

    .gd-tf-list-statement {
        font-size: 1.05rem;
    }

    .gd-tf-actions-row {
        max-width: 100%;
    }
}
