/*
 * ═══════════════════════════════════════════════════════════════
 * DOKÜMAN ARŞİVİ HERO KARTI (FORUM STANDARDI & AMBER VURGU)
 * ═══════════════════════════════════════════════════════════════
 */

.documents-page-container {
    width: min(calc(100% - 2rem), var(--mk-container, 1220px)) !important;
    max-width: var(--mk-container, 1220px) !important;
    margin: 1.25rem auto 3rem !important;
    padding-inline: 0 !important;
    box-sizing: border-box !important;
}

.documents-page-container .documents-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 1.5rem !important;
    padding: 1.6rem 2rem !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #0b0f19 0%, #111827 50%, #0f172a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .18) !important;
    box-sizing: border-box;
}

.documents-page-container .documents-hero::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--mk-brand, #8f1d1d) !important;
    content: "";
}

.documents-page-container .documents-hero::after {
    position: absolute;
    right: -70px;
    bottom: -110px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(245, 158, 11, .25) !important;
    border-radius: 50%;
    content: "";
    opacity: .35;
    pointer-events: none;
}

.documents-page-container .documents-hero .hero-bg-pattern {
    display: none;
}

.documents-page-container .documents-hero .hero-content {
    position: relative;
    z-index: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.25rem !important;
    width: 100% !important;
}

.documents-page-container .documents-hero .hero-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.documents-page-container .documents-hero .hero-title {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 .25rem !important;
    color: #ffffff !important;
    font-size: 1.85rem !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.022em !important;
}

.documents-page-container .documents-hero .hero-title span {
    background: linear-gradient(135deg, #fbbf24 0%, #e5b65a 50%, #fef08a 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.documents-page-container .documents-hero .hero-title svg {
    color: #fbbf24 !important;
    filter: drop-shadow(0 2px 6px rgba(251, 191, 36, .35));
}

.documents-page-container .documents-hero .hero-subtitle {
    margin: 0 !important;
    color: #cbd5e1 !important;
    font-size: .98rem !important;
    line-height: 1.6 !important;
    letter-spacing: -0.005em !important;
}

.documents-page-container .documents-hero .hero-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: .65rem !important;
    margin-left: auto !important;
}

.documents-page-container .documents-hero .hero-stats-grid {
    display: flex !important;
    align-items: center !important;
    gap: .55rem !important;
}

.documents-page-container .documents-hero .hero-stat-card {
    min-width: 100px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    gap: .55rem !important;
    padding: .45rem .85rem !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, .07) !important;
    box-shadow: none !important;
}

.documents-page-container .documents-hero .stat-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    color: #fbbf24 !important;
}

.documents-page-container .documents-hero .stat-icon svg {
    width: 18px !important;
    height: 18px !important;
}

.documents-page-container .documents-hero .stat-data {
    display: flex !important;
    flex-direction: column !important;
}

.documents-page-container .documents-hero .stat-value {
    color: #ffffff !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    letter-spacing: -0.015em !important;
}

.documents-page-container .documents-hero .stat-label {
    margin-top: .15rem !important;
    color: #cbd5e1 !important;
    font-size: .74rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

.documents-page-container .documents-hero .documents-hero-actions {
    display: flex !important;
    align-items: center !important;
}

.documents-page-container .documents-hero .btn-upload {
    display: inline-flex !important;
    align-items: center !important;
    gap: .45rem !important;
    min-height: 42px !important;
    padding: .65rem 1.05rem !important;
    border-radius: 8px !important;
    background: #ea580c !important;
    color: #ffffff !important;
    font-size: .86rem !important;
    font-weight: 750 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, .3) !important;
    transition: all .16s ease !important;
}

.documents-page-container .documents-hero .btn-upload:hover {
    background: #c2410c !important;
    transform: translateY(-1px) !important;
}

/*
 * ═══════════════════════════════════════════════════════════════
 * DOKÜMAN ARŞİVİ KATEGORİ ÇERÇEVELERİ VE İNCE SATIR DÜZENİ (VİTRİN & HİYERARŞİ STİLİ)
 * ═══════════════════════════════════════════════════════════════
 */

.documents-page-container .category-section {
    position: relative;
    margin: 1.75rem 0 2.25rem;
    padding: 1.35rem 1.5rem;
    background: #ffffff !important;
    border: 1px solid rgba(220, 38, 38, .18) !important;
    border-radius: 20px !important;
    box-shadow: 0 6px 24px -6px rgba(220, 38, 38, .09), 0 2px 10px -2px rgba(0, 0, 0, .04) !important;
    overflow: hidden;
}

.documents-page-container .category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626 0%, #f59e0b 50%, #dc2626 100%);
}

/* Ana Kategori Başlık Kartı (Belirgin Klasman Paneli) */
.documents-page-container .category-header-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1.25rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-left: 5px solid #dc2626;
    border-radius: 14px;
    text-decoration: none;
    transition: all .2s ease;
}

.documents-page-container .category-header-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
    border-color: rgba(220, 38, 38, .3);
    box-shadow: 0 4px 12px rgba(220, 38, 38, .08);
}

.documents-page-container .category-header-left {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    flex: 1;
}

.documents-page-container .category-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: 1px solid #b91c1c;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(220, 38, 38, .3);
}

.documents-page-container .category-icon-badge svg {
    width: 22px;
    height: 22px;
}

.documents-page-container .category-header-content {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.documents-page-container .category-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--mk-ink, #18181b);
    line-height: 1.3;
}

.documents-page-container .category-description {
    margin: 0;
    font-size: .84rem;
    font-weight: 450;
    color: var(--mk-muted, #64748b);
    line-height: 1.45;
}

.documents-page-container .category-count-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .4rem .85rem;
    font-size: .82rem;
    font-weight: 600;
    border-radius: 10px;
    background: #ffffff;
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, .2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .03);
}

/* ─── ALT KATEGORİ LİSTESİ (İÇERİDE GİRİNTİLİ & KILAVUZ ÇİZGİLİ) ─── */
.documents-page-container .subcategories-container {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-left: 1.5rem;
    padding-left: 1.15rem;
    border-left: 2px dashed rgba(220, 38, 38, .25);
}

.documents-page-container .document-category-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.1rem;
    background: #fbfbfb;
    border: 1px solid var(--mk-line, #f0ebe1);
    border-radius: 12px;
    transition: all .2s ease;
}

.documents-page-container .document-category-card:hover {
    background: #ffffff;
    border-color: rgba(220, 38, 38, .3);
    box-shadow: 0 4px 14px -2px rgba(220, 38, 38, .1);
    transform: translateX(4px);
}

.documents-page-container .document-subcat-left {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    flex: 1;
}

.documents-page-container .document-subcat-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all .15s ease;
}

.documents-page-container .document-category-card:hover .document-subcat-icon-badge {
    background: #fef2f2;
    border-color: rgba(220, 38, 38, .25);
    color: #dc2626;
}

.documents-page-container .document-subcat-icon-badge svg {
    width: 18px;
    height: 18px;
}

.documents-page-container .document-subcat-info-content {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
    flex: 1;
}

.documents-page-container .document-subcat-title-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .98rem;
    font-weight: 800;
    color: var(--mk-ink, #18181b);
    text-decoration: none;
    transition: color .15s ease;
}

.documents-page-container .document-subcat-title-link:hover {
    color: #dc2626;
}

.documents-page-container .document-subcat-desc-text {
    margin: 0;
    font-size: .8rem;
    color: var(--mk-muted, #64748b);
    line-height: 1.35;
}

.documents-page-container .document-subcat-pills-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-top: .15rem;
}

.documents-page-container .document-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .15rem .5rem;
    font-size: .72rem;
    font-weight: 800;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.documents-page-container .document-subcat-right {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 240px;
    max-width: 320px;
    flex-shrink: 0;
}

.documents-page-container .last-document-box {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    width: 100%;
    padding: .4rem .65rem;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
}

.documents-page-container .last-doc-title-link {
    display: block;
    font-size: .82rem;
    font-weight: 800;
    color: var(--mk-ink, #18181b);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .15s ease;
}

.documents-page-container .last-doc-title-link:hover {
    color: #dc2626;
}

.documents-page-container .last-doc-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .74rem;
    color: var(--mk-muted, #64748b);
}

.documents-page-container .last-doc-uploader {
    font-weight: 800;
    text-decoration: none;
}

.documents-page-container .last-doc-uploader:hover {
    text-decoration: underline;
}

.documents-page-container .no-subcategories-card,
.documents-page-container .no-documents-section {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem;
    margin-left: 1.5rem;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--mk-muted, #64748b);
    font-size: .85rem;
    font-weight: 600;
}

@media (max-width: 860px) {
    .documents-page-container .category-section {
        padding: 1rem .9rem;
        border-radius: 14px;
    }

    .documents-page-container .subcategories-container {
        margin-left: .65rem;
        padding-left: .65rem;
    }

    .documents-page-container .no-subcategories-card,
    .documents-page-container .no-documents-section {
        margin-left: .65rem;
    }

    .documents-page-container .document-category-card {
        flex-direction: column;
        align-items: flex-start;
        gap: .65rem;
    }

    .documents-page-container .document-subcat-left {
        width: 100%;
    }

    .documents-page-container .document-subcat-right {
        width: 100%;
        max-width: none;
        padding-top: .5rem;
        border-top: 1px dashed var(--mk-line, #f0ebe1);
    }
}

/* ═══════════════════════════════════════════════════════════════
 * EN POPÜLER DOKÜMANLAR SHOWCASE (Alt Alta İnce Satır Düzeni)
 * ═══════════════════════════════════════════════════════════════ */

.documents-popular-showcase {
    position: relative;
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 1.4rem;
    background: #ffffff;
    border: 1px solid rgba(220, 38, 38, .18);
    border-radius: 18px;
    box-shadow: 0 4px 20px -4px rgba(220, 38, 38, .08), 0 2px 8px -2px rgba(0, 0, 0, .04);
    overflow: hidden;
}

.documents-popular-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626 0%, #f59e0b 50%, #dc2626 100%);
}

.popular-showcase-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mk-line, #f1ece4);
}

.popular-showcase-title-group {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.popular-showcase-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    border: 1px solid rgba(220, 38, 38, .2);
    color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, .12);
}

.popular-showcase-icon-badge svg {
    width: 22px;
    height: 22px;
}

.popular-showcase-titles {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.popular-showcase-heading {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--mk-ink, #18181b);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.popular-showcase-subtext {
    margin: 0;
    font-size: .8rem;
    font-weight: 450;
    color: var(--mk-muted, #64748b);
}

/* Spinner / Limit Seçici */
.popular-limit-selector {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #f8fafc;
    padding: .3rem .45rem;
    border-radius: 12px;
    border: 1px solid var(--mk-line, #e2e8f0);
}

.popular-limit-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--mk-muted, #64748b);
    padding: 0 .25rem;
}

.popular-limit-buttons {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.popular-limit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 .5rem;
    font-size: .8rem;
    font-weight: 800;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--mk-muted, #64748b);
    cursor: pointer;
    transition: all .18s ease;
}

.popular-limit-btn:hover {
    background: #ffffff;
    color: var(--mk-ink, #18181b);
    border-color: #cbd5e1;
}

.popular-limit-btn.is-active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 2px 6px rgba(220, 38, 38, .25);
}

/* ─── ALT ALTA İNCE SATIR LİSTESİ (LEADERBOARD ROWS) ─── */
.popular-docs-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-top: 1rem;
}

.popular-doc-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.1rem;
    background: #fbfbfb;
    border: 1px solid var(--mk-line, #f0ebe1);
    border-radius: 12px;
    transition: all .2s ease;
}

.popular-doc-row.is-hidden {
    display: none !important;
}

.popular-doc-rank-name {
    opacity: .85;
    font-size: .8em;
    font-weight: 700;
}

.popular-doc-row:hover {
    background: #ffffff;
    border-color: rgba(220, 38, 38, .3);
    box-shadow: 0 4px 14px -2px rgba(220, 38, 38, .1);
    transform: translateX(3px);
}

.popular-doc-left {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    flex: 1;
}

.popular-doc-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 9px;
    font-size: .84rem;
    font-weight: 900;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.popular-doc-row.rank-1 .popular-doc-rank {
    background: linear-gradient(135deg, #fef08a 0%, #eab308 100%);
    color: #713f12;
    border-color: #ca8a04;
    box-shadow: 0 2px 8px rgba(234, 179, 8, .35);
}

.popular-doc-row.rank-2 .popular-doc-rank {
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    color: #334155;
    border-color: #94a3b8;
}

.popular-doc-row.rank-3 .popular-doc-rank {
    background: linear-gradient(135deg, #ffedd5 0%, #fdba74 100%);
    color: #7c2d12;
    border-color: #fb923c;
}

.popular-doc-content {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 0;
    flex: 1;
}

.popular-doc-title-link {
    display: inline-block;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--mk-ink, #18181b);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .15s ease;
}

.popular-doc-title-link:hover {
    color: #dc2626;
}

.popular-doc-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    font-size: .78rem;
    color: var(--mk-muted, #64748b);
}

.popular-doc-category-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .15rem .55rem;
    font-size: .72rem;
    font-weight: 800;
    border-radius: 6px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid rgba(22, 101, 52, .18);
    text-decoration: none;
    transition: all .15s ease;
}

.popular-doc-category-badge:hover {
    background: #dcfce7;
    border-color: #16a34a;
}

.popular-doc-uploader {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-weight: 800;
    text-decoration: none;
}

.popular-doc-uploader:hover {
    text-decoration: underline;
}

.popular-doc-date {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: var(--mk-muted, #94a3b8);
}

.popular-doc-right {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}

.popular-doc-downloads {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-weight: 800;
    font-size: .8rem;
    color: #dc2626;
    background: #fff5f5;
    padding: .35rem .65rem;
    border-radius: 8px;
    border: 1px solid rgba(220, 38, 38, .18);
}

.popular-doc-downloads svg {
    width: 14px;
    height: 14px;
}

.popular-doc-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35rem .75rem;
    font-size: .8rem;
    font-weight: 800;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    transition: all .15s ease;
}

.popular-doc-view-btn:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

/* Mobil Düzen */
@media (max-width: 768px) {
    .documents-popular-showcase {
        padding: 1rem .9rem;
        border-radius: 14px;
    }

    .popular-showcase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }

    .popular-limit-selector {
        width: 100%;
        justify-content: space-between;
    }

    .popular-limit-buttons {
        flex: 1;
        justify-content: flex-end;
    }

    .popular-doc-row {
        flex-direction: column;
        align-items: flex-start;
        gap: .65rem;
        padding: .85rem .95rem;
    }

    .popular-doc-left {
        width: 100%;
    }

    .popular-doc-title-link {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .popular-doc-right {
        width: 100%;
        justify-content: space-between;
        padding-top: .5rem;
        border-top: 1px dashed var(--mk-line, #f0ebe1);
    }
}

/* ═══════════════════════════════════════════════════════════════
 * FAVORİLER & DOKÜMAN BİLDİRİM KUTULARI (Hero Altı Çerçeveli)
 * ═══════════════════════════════════════════════════════════════ */

.favorites-feedback-alert,
.document-feedback-alert {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.4;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}

.favorites-feedback-alert.alert-success,
.document-feedback-alert.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.favorites-feedback-alert.alert-danger,
.document-feedback-alert.alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.favorites-feedback-alert .alert-icon,
.document-feedback-alert .alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.favorites-feedback-alert .alert-icon svg,
.document-feedback-alert .alert-icon svg {
    width: 20px;
    height: 20px;
}

/*
 * ═══════════════════════════════════════════════════════════════
 * KATEGORİ VİTRİNİ & PREMİUM DOKÜMAN KARTLARI (2026 TASARIM STANDARDI)
 * ═══════════════════════════════════════════════════════════════
 */

/* ─── 1. Kategori Vitrini (En Çok İndirilenler) ─── */
.document-category-page .top-documents-showcase {
    position: relative;
    margin: 1.5rem 0 2rem !important;
    padding: 1.4rem 1.6rem !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02) !important;
    overflow: hidden;
}

.document-category-page .top-documents-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626 0%, #f59e0b 50%, #dc2626 100%);
}

.document-category-page .top-documents-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid rgba(241, 245, 249, 0.95) !important;
}

.document-category-page .top-documents-kicker {
    display: inline-flex !important;
    align-items: center !important;
    gap: .4rem !important;
    padding: .25rem .7rem !important;
    background: rgba(220, 38, 38, 0.08) !important;
    color: #dc2626 !important;
    border-radius: 999px !important;
    font-size: .74rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
}

.document-category-page .top-documents-kicker svg {
    width: 14px;
    height: 14px;
}

.document-category-page .top-documents-head h2 {
    margin: .35rem 0 .2rem !important;
    color: #0f172a !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

.document-category-page .top-documents-head p {
    margin: 0 !important;
    color: #64748b !important;
    font-size: .88rem !important;
}

.document-category-page .top-documents-head > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: .4rem !important;
    min-height: 36px !important;
    padding: 0 1rem !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-size: .84rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all .18s ease !important;
}

.document-category-page .top-documents-head > a:hover {
    background: #fef2f2 !important;
    border-color: rgba(220, 38, 38, 0.3) !important;
    color: #dc2626 !important;
    transform: translateY(-1px) !important;
}

.document-category-page .top-documents-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
}

.document-category-page .top-document-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: .85rem !important;
    padding: 1.15rem 1.15rem !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.document-category-page .top-document-card:hover {
    border-color: rgba(220, 38, 38, 0.35) !important;
    box-shadow: 0 12px 28px -4px rgba(220, 38, 38, 0.12), 0 4px 10px rgba(0, 0, 0, 0.03) !important;
    transform: translateY(-3px) !important;
}

.document-category-page .top-doc-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .5rem !important;
}

.document-category-page .top-document-rank {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

.document-category-page .top-document-card.rank-gold .top-document-rank {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.35) !important;
}

.document-category-page .top-document-card.rank-silver .top-document-rank {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(100, 116, 139, 0.3) !important;
}

.document-category-page .top-document-card.rank-bronze .top-document-rank {
    background: linear-gradient(135deg, #b45309 0%, #78350f 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(180, 83, 9, 0.3) !important;
}

.document-category-page .top-document-card.rank-default .top-document-rank {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

.document-category-page .top-document-icon-box {
    display: inline-flex !important;
    align-items: center !important;
    gap: .35rem !important;
    padding: .3rem .6rem !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    font-size: .74rem !important;
    font-weight: 800 !important;
}

.document-category-page .top-document-icon-box svg {
    width: 14px !important;
    height: 14px !important;
}

.document-category-page .top-document-body {
    min-width: 0 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: .45rem !important;
}

.document-category-page .top-document-body strong {
    color: #0f172a !important;
    font-size: .95rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color .15s ease !important;
}

.document-category-page .top-document-card:hover .top-document-body strong {
    color: #dc2626 !important;
}

.document-category-page .top-doc-metrics {
    display: flex !important;
    align-items: center !important;
    gap: .45rem !important;
    font-size: .78rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
    margin-top: auto !important;
}

.document-category-page .top-doc-metrics svg {
    width: 13px !important;
    height: 13px !important;
}

.document-category-page .top-document-go {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    color: #94a3b8 !important;
    position: absolute !important;
    right: .9rem !important;
    bottom: .9rem !important;
    transition: all .18s ease !important;
}

.document-category-page .top-document-card:hover .top-document-go {
    background: #dc2626 !important;
    color: #ffffff !important;
    transform: translateX(2px) !important;
}

/* ─── 2. Normal Doküman Listesi & Kartlar ─── */
.document-category-page .documents-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.15rem !important;
    margin-top: 1.5rem !important;
}

.document-category-page .document-card {
    position: relative !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 1.4rem !important;
    align-items: center !important;
    padding: 1.35rem 1.6rem !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02) !important;
    transition: all .22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.document-category-page .document-card:hover {
    border-color: rgba(220, 38, 38, 0.4) !important;
    box-shadow: 0 16px 36px -4px rgba(220, 38, 38, 0.12), 0 6px 14px -2px rgba(15, 23, 42, 0.04) !important;
    transform: translateY(-2px) !important;
}

.document-category-page .document-card.is-pinned {
    border-left: 4px solid #dc2626 !important;
    background: linear-gradient(135deg, #fffcfc 0%, #ffffff 100%) !important;
}

.document-category-page .doc-pinned-badge {
    position: absolute !important;
    top: 1rem !important;
    right: 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: .35rem !important;
    padding: .25rem .7rem !important;
    border-radius: 999px !important;
    background: #fef2f2 !important;
    border: 1px solid rgba(220, 38, 38, 0.25) !important;
    color: #dc2626 !important;
    font-size: .74rem !important;
    font-weight: 800 !important;
}

.document-category-page .doc-pinned-badge svg {
    width: 13px !important;
    height: 13px !important;
}

/* Dosya İkon Kutusu */
.document-category-page .doc-icon-wrapper {
    width: 60px !important;
    height: 60px !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    border: 1px solid transparent !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.document-category-page .doc-type-icon svg {
    width: 22px !important;
    height: 22px !important;
}

.document-category-page .doc-type-label {
    font-size: .65rem !important;
    font-weight: 800 !important;
    letter-spacing: .05em !important;
}

/* Doküman İçerik Alanı */
.document-category-page .doc-info {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.document-category-page .doc-title {
    margin: 0 0 .35rem !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.015em !important;
}

.document-category-page .doc-title a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color .15s ease !important;
}

.document-category-page .doc-title a:hover {
    color: #dc2626 !important;
}

.document-category-page .doc-description {
    margin: 0 0 .65rem !important;
    color: #475569 !important;
    font-size: .88rem !important;
    line-height: 1.55 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.document-category-page .doc-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: .75rem !important;
    font-size: .82rem !important;
    color: #64748b !important;
}

.document-category-page .doc-author {
    display: inline-flex !important;
    align-items: center !important;
    gap: .3rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.document-category-page .doc-author svg {
    width: 14px !important;
    height: 14px !important;
}

.document-category-page .doc-meta-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: .35rem !important;
    padding: .2rem .6rem !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    border: 1px solid #eef2f6 !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

.document-category-page .doc-meta-item svg {
    width: 14px !important;
    height: 14px !important;
    color: #94a3b8 !important;
}

/* Sağ Eylem & İstatistikler */
.document-category-page .doc-actions-side {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: .65rem !important;
    flex-shrink: 0 !important;
    min-width: 130px !important;
}

.document-category-page .doc-download-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: .35rem !important;
    padding: .35rem .75rem !important;
    border-radius: 999px !important;
    background: rgba(220, 38, 38, 0.07) !important;
    border: 1px solid rgba(220, 38, 38, 0.16) !important;
    color: #b91c1c !important;
    font-size: .78rem !important;
    font-weight: 700 !important;
}

.document-category-page .doc-download-pill svg {
    width: 13px !important;
    height: 13px !important;
    color: #dc2626 !important;
}

.document-category-page .doc-download-pill .pill-num {
    font-weight: 800 !important;
    font-size: .86rem !important;
    color: #dc2626 !important;
}

.document-category-page .btn-download-premium {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .45rem !important;
    min-height: 42px !important;
    padding: .65rem 1.45rem !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    font-size: .88rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
}

.document-category-page .btn-download-premium:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(220, 38, 38, 0.45) !important;
    color: #ffffff !important;
}

.document-category-page .btn-download-premium:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3) !important;
}

.document-category-page .btn-download-premium svg {
    width: 16px !important;
    height: 16px !important;
}

/* ─── 3. Mobil Uyumluluk ─── */
@media (max-width: 900px) {
    .document-category-page .top-documents-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .document-category-page .top-documents-showcase {
        padding: 1.15rem 1.1rem !important;
    }

    .document-category-page .top-documents-head {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: .75rem !important;
    }

    .document-category-page .top-documents-head > a {
        width: 100% !important;
        justify-content: center !important;
    }

    .document-category-page .top-documents-grid {
        grid-template-columns: 1fr !important;
        gap: .75rem !important;
    }

    .document-category-page .document-card {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 1.15rem !important;
    }

    .document-category-page .doc-actions-side {
        width: 100% !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-top: .85rem !important;
        border-top: 1px dashed #e2e8f0 !important;
    }

    .document-category-page .btn-download-premium {
        padding: .55rem 1.25rem !important;
    }
}

