/* assets/css/pages/category_documents.css */
/* ==========================================================================
   TERFIUI v5 - DERS DÖKÜMANLARI MODÜLER SAYFA STİLLERİ (gd-*)
   ========================================================================== */

/* Page Body Spacing & Structure (Kural 20 Uyumlu - quick_facts.php 1:1 Birebir Aynı) */
.gd-doc-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px !important;
    width: 100%;
}

.gd-page-header {
    margin-bottom: 0 !important;
}

/* Kompakt Dökümanlar Hero Kartı (Kompakt İnce Görünüm) */
.gd-doc-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-doc-hero-compact .gd-page-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fef2f2;
    color: #f45037;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

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

/* ── ARAMA VE FİLTRELEME ÇUBUĞU (mevzuat.css / quick_facts.css 1:1 AYNI) ──────────── */
.gd-mev-controls {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    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: #94a3b8;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.gd-mev-search-input {
    width: 100%;
    height: 44px;
    padding: 10px 16px 10px 42px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

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

.gd-mev-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
}

.gd-mev-filter-btn {
    border: none;
    background: transparent;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gd-mev-filter-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.gd-mev-filter-btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

.gd-mev-filter-btn.active:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .gd-mev-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        gap: 12px;
    }

    .gd-mev-search-box {
        width: 100%;
    }

    .gd-mev-filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .gd-mev-filter-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 12.5px;
    }
}

.gd-doc-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Paywall Blur Effect */
.gd-doc-blurred {
    filter: blur(12px) grayscale(40%);
    pointer-events: none;
    user-select: none;
    transition: filter 0.5s ease;
}

/* --------------------------------------------------------------------------
   1. HERO BANNER & SEARCH BAR
   -------------------------------------------------------------------------- */
.gd-doc-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    border-radius: 20px;
    padding: 28px 32px;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gd-doc-hero::after {
    content: '';
    position: absolute;
    right: -10%;
    bottom: -20%;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.gd-doc-hero-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gd-doc-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gd-doc-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: #ffffff;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gd-doc-hero-subtitle {
    font-size: 0.98rem;
    opacity: 0.92;
    margin: 0;
    max-width: 680px;
    line-height: 1.5;
}

/* Search Box */
.gd-doc-search-box {
    position: relative;
    width: 100%;
}

.gd-doc-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    outline: none;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

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

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

/* Tab Filters */
.gd-doc-filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.gd-doc-filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.gd-doc-filter-btn:hover {
    border-color: #cbd5e1;
    color: #1e293b;
}

.gd-doc-filter-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* --------------------------------------------------------------------------
   2. CATEGORY LISTING GRID (cat = 0)
   -------------------------------------------------------------------------- */
.gd-doc-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.gd-doc-list-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

.gd-doc-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.12);
    border-color: #bfdbfe;
}

.gd-doc-list-card-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.gd-doc-list-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.gd-doc-list-card:hover .gd-doc-list-card-icon {
    background: #2563eb;
    color: #ffffff;
    transform: scale(1.05);
}

.gd-doc-list-card-info {
    flex: 1;
    min-width: 0;
}

.gd-doc-list-card-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.4;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gd-doc-list-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gd-doc-tag {
    font-size: 11px;
    font-weight: 750;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gd-doc-tag-blue {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

.gd-doc-tag-green {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}

.gd-doc-list-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gd-doc-list-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.gd-doc-list-progress-bg {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.gd-doc-list-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}

.gd-doc-list-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    transition: all 0.2s ease;
}

.gd-doc-list-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gd-doc-list-card:hover .gd-doc-list-action-btn {
    color: #1e3a8a;
}

.gd-doc-completed-badge {
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
}

/* Empty State */
.gd-doc-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.gd-doc-empty-icon {
    color: #94a3b8;
    opacity: 0.5;
    margin-bottom: 4px;
}

.gd-doc-empty-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.gd-doc-empty-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* --------------------------------------------------------------------------
   3. CATEGORY DETAIL VIEW (cat > 0)
   -------------------------------------------------------------------------- */
.gd-doc-detail-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.gd-doc-cat-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.98rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.gd-doc-cat-trigger:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

.gd-doc-cat-trigger-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Progress Container for Detail View */
.gd-doc-progress-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gd-doc-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.gd-doc-progress-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gd-doc-progress-percent {
    font-weight: 800;
}

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

.gd-doc-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 10px;
    transition: width 0.5s ease-out;
}

.gd-doc-progress-meta {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

/* Detail Documents Grid */
.gd-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
}

.gd-doc-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

.gd-doc-card:hover {
    box-shadow: 0 10px 18px -6px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
    border-color: #bfdbfe;
}

.gd-doc-card-icon {
    width: 44px;
    height: 44px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.gd-doc-card-icon.is-read {
    background: #dcfce7 !important;
    color: #16a34a !important;
}

.gd-doc-card-info {
    flex: 1;
    min-width: 0;
}

.gd-doc-card-name {
    font-size: 0.98rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.4;
    margin: 0 0 4px 0;
}

.gd-doc-card-meta {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gd-doc-cat-badge {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. MODALS (Category Switcher & Hybrid Paywall)
   -------------------------------------------------------------------------- */
/* Switcher Overlay */
.gd-doc-switcher-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.gd-doc-switcher-modal {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;
    animation: gdModalSlideUp 0.3s ease-out;
    box-sizing: border-box;
}

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

.gd-doc-switcher-header {
    padding: 20px 24px 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.gd-doc-switcher-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
}

.gd-doc-switcher-close {
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: all 0.2s ease;
}

.gd-doc-switcher-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.gd-doc-switcher-search-wrapper {
    padding: 0 24px 14px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.gd-doc-switcher-search-box {
    position: relative;
    width: 100%;
}

.gd-doc-switcher-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

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

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

.gd-doc-switcher-list {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gd-doc-switcher-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: #334155;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    gap: 12px;
}

.gd-doc-switcher-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    color: #2563eb;
}

.gd-doc-switcher-item.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
}

.gd-doc-switcher-item-icon {
    margin-right: 8px;
    opacity: 0.6;
    display: inline-flex;
    align-items: center;
}

.gd-doc-switcher-item-name {
    flex: 1;
    min-width: 0;
}

.gd-doc-switcher-count {
    font-size: 11px;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.gd-doc-switcher-item.active .gd-doc-switcher-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Paywall Countdown Bar */
.gd-doc-paywall-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    display: none;
    align-items: center;
    gap: 14px;
    z-index: 99998;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
    width: auto;
    max-width: 90%;
}

.gd-doc-timer-circle {
    width: 32px;
    height: 32px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    animation: gdDocPulse 1s infinite;
    flex-shrink: 0;
}

@keyframes gdDocPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.gd-doc-paywall-bar-msg {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

.gd-doc-paywall-bar-btn {
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Paywall Overlay */
.gd-doc-paywall-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.gd-doc-paywall-modal {
    background: rgba(255, 255, 255, 0.98);
    padding: 4px;
    border-radius: 22px;
    width: 100%;
    max-width: 530px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: gdModalSlideUp 0.4s ease-out;
    position: relative;
    box-sizing: border-box;
}

.gd-doc-paywall-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.06);
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    transition: all 0.2s ease;
}

.gd-doc-paywall-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

.gd-doc-paywall-cta-wrapper {
    margin: -25px 0;
}

/* Premium Lock Overlay for logged-in free users */
.gd-doc-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 50;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.gd-doc-lock-box {
    width: 100%;
    max-width: 550px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE BREAKPOINTS (480px, 768px, 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .gd-doc-list-grid,
    .gd-doc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gd-doc-hero {
        padding: 20px;
        border-radius: 16px;
    }

    .gd-doc-hero-title {
        font-size: 1.35rem;
    }

    .gd-doc-hero-subtitle {
        font-size: 0.88rem;
    }

    .gd-doc-paywall-bar {
        width: calc(100% - 30px);
        bottom: 15px;
        padding: 10px 15px;
        border-radius: 16px;
        gap: 10px;
    }

    .gd-doc-paywall-bar-msg-desktop {
        display: none;
    }

    .gd-doc-paywall-bar-msg-mobile {
        display: inline;
    }

    .gd-doc-timer-circle {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
}

@media (min-width: 769px) {
    .gd-doc-paywall-bar-msg-mobile {
        display: none;
    }

    .gd-doc-paywall-bar-msg-desktop {
        display: inline;
    }
}

/* --------------------------------------------------------------------------
   6. PROGRESS BAR CONTAINER (cat > 0 Detail View)
   -------------------------------------------------------------------------- */
.gd-doc-progress-container {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 20px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gd-doc-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.gd-doc-progress-label-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gd-doc-progress-val {
    font-size: 14px;
    font-weight: 800;
    color: #2563eb;
}

.gd-doc-progress-val.complete {
    color: #10b981;
}

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

.gd-doc-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 10px;
    transition: width 0.5s ease-out;
}

.gd-doc-progress-sub {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. DETAIL VIEW TOOLBAR & CARDS (cat > 0)
   -------------------------------------------------------------------------- */
.gd-doc-toolbar {
    margin-bottom: 12px;
}

.gd-doc-cat-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.gd-doc-cat-trigger:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #2563eb;
}

.gd-doc-cat-trigger-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gd-doc-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.gd-doc-card:hover {
    box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
    border-color: #bfdbfe;
}

.gd-doc-card-icon {
    width: 44px;
    height: 44px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.gd-doc-card-icon.is-read {
    background: #dcfce7 !important;
    color: #16a34a !important;
}

.gd-doc-card-info {
    flex: 1;
    min-width: 0;
}

.gd-doc-card-name {
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.4;
    margin: 0 0 4px 0;
}

.gd-doc-card-meta {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gd-doc-card-cat-badge {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.gd-doc-card-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
}

/* ── RENKLİ MİNİ NAVİGASYON VE AKSİYON BUTONLARI (Kural 3 Uyumlu) ─────────── */
.gd-btn-xs-purple {
    background: #8b5cf6 !important;
    color: #ffffff !important;
    border-color: #8b5cf6 !important;
}
.gd-btn-xs-purple:hover {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
    transform: translateY(-1px);
}

.gd-btn-xs-info {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}
.gd-btn-xs-info:hover {
    background: #0369a1 !important;
    border-color: #0369a1 !important;
    transform: translateY(-1px);
}

.gd-btn-xs-primary {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}
.gd-btn-xs-primary:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    transform: translateY(-1px);
}

.gd-btn-xs-success {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}
.gd-btn-xs-success:hover {
    background: #059669 !important;
    border-color: #059669 !important;
    transform: translateY(-1px);
}

.gd-btn-xs-warning {
    background: #f59e0b !important;
    color: #ffffff !important;
    border-color: #f59e0b !important;
}
.gd-btn-xs-warning:hover {
    background: #d97706 !important;
    border-color: #d97706 !important;
    transform: translateY(-1px);
}

.gd-btn-xs-neutral {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}
.gd-btn-xs-neutral:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    transform: translateY(-1px);
}
