

/* =========================================
   CATEGORY.BLADE.PHP İÇİN GEREKLİ STİLLER
   ========================================= */

/* 1. Global Font ve Link Ayarları (Temel) */
h1, h2, h3, h4, h5, .logo-font { 
    font-family: 'Rajdhani', sans-serif; 
    text-transform: uppercase; 
    font-weight: 700; 
}
a { text-decoration: none; color: inherit; transition: 0.2s; }
a:hover { color: var(--primary); }

/* 2. Başlıklar (Hem Sidebar'da hem Ana İçerikte kullanılıyor) */
.pixel-heading { 
    position: relative; 
    border-bottom: 2px solid var(--line-gray); 
    margin-bottom: 20px; 
    height: 46px; 
    display: flex; 
    align-items: flex-end; 
}
.pixel-heading h5 { 
    margin: 0; 
    padding-bottom: 12px; 
    font-family: 'Rajdhani', sans-serif; 
    font-weight: 800; 
    text-transform: uppercase; 
    font-size: 1.1rem; 
    color: var(--text-main); 
    position: relative; 
    letter-spacing: 0.5px; 
}
.pixel-heading h5::after { 
    content: ''; 
    position: absolute; 
    bottom: -2px; 
    left: 0; 
    width: 100%; 
    height: 2px; 
    background-color: var(--heading-color, var(--primary)); 
    box-shadow: 0 0 10px var(--heading-color); 
    z-index: 10; 
}

/* 3. Sidebar (Platform Listesi ve Widgetlar) */
.sidebar-widget { background: transparent; border: none; box-shadow: none; margin-bottom: 30px; }

.cat-sidebar-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 0; 
    border-bottom: 1px solid var(--border-color); 
    color: var(--text-muted); 
    font-weight: 600; 
    font-size: 0.95rem; 
    transition: 0.2s; 
}
.cat-sidebar-item:hover { color: var(--primary); padding-left: 5px; }
.cat-sidebar-item.active { color: var(--text-main); font-weight: 800; }

.cat-count-badge { 
    background-color: rgba(0,0,0,0.05); 
    color: var(--text-muted); 
    font-size: 0.75rem; 
    padding: 2px 8px; 
    border-radius: 10px; 
    font-weight: 700; 
}
[data-theme="dark"] .cat-count-badge { background-color: #222; }

/* 4. Reklam Alanları (Sidebar ve Liste içi reklamlar) */
.ad-slot-wrapper {
    width: 100%;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.02);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.ad-fallback-simple { display: none; text-align: center; padding: 15px; }
.actual-ad { width: 100%; display: flex; justify-content: center; }

/* 5. Filtreleme Alanı (Üst Bar) */
.category-filter-wrapper { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 0; 
    margin-bottom: 30px; 
    border-top: 1px solid var(--border-color); 
    border-bottom: 1px solid var(--border-color); 
}
.filter-left-info { 
    font-family: 'Rajdhani', sans-serif; 
    font-weight: 700; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    color: var(--text-muted); 
}
.filter-right-actions { display: flex; align-items: center; gap: 25px; }

/* Dropdown (Sıralama Menüsü) */
.custom-filter-dropdown .dropdown-toggle { 
    background: none; 
    border: none; 
    padding: 0; 
    font-family: 'Rajdhani', sans-serif; 
    font-weight: 800; 
    font-size: 0.9rem; 
    color: var(--text-main); 
    text-transform: uppercase; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
    transition: 0.2s; 
}
.custom-filter-dropdown .dropdown-toggle::after { display: none; }
.custom-filter-dropdown:hover .dropdown-toggle { color: var(--primary); }
.custom-filter-dropdown .dropdown-menu { 
    background-color: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    padding: 10px 0; 
    min-width: 190px; 
    z-index: 1050; 
}
.custom-filter-dropdown .dropdown-item { 
    color: var(--text-main); 
    font-family: 'Rajdhani', sans-serif; 
    font-weight: 700; 
    font-size: 0.85rem; 
    padding: 10px 20px; 
    text-transform: uppercase; 
    transition: all 0.2s ease; 
}
.custom-filter-dropdown .dropdown-item:hover, 
.custom-filter-dropdown .dropdown-item.active { 
    background-color: var(--primary); 
    color: #fff; 
}

/* Görünüm Değiştirici (Grid/List İkonları) */
.view-mode-switcher { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    border-left: 1px solid var(--border-color); 
    padding-left: 20px; 
    margin-left: 5px; 
}
.mode-btn { 
    background: none; 
    border: none; 
    padding: 0; 
    color: #ccc; 
    font-size: 1.1rem; 
    cursor: pointer; 
    transition: 0.3s; 
}
.mode-btn.active { color: var(--primary); }
.mode-btn:hover:not(.active) { color: var(--text-main); }

/* 6. İçerik Kartları (Patch Grid Card) - EN ÖNEMLİ KISIM */
.patch-grid-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
    top: 0; 
}
.patch-grid-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    border-color: var(--primary); 
    z-index: 10; 
}
[data-theme="dark"] .patch-grid-card:hover { 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6) !important; 
    background-color: #1a1a1a !important; 
}

/* Kart Resim ve Badge */
.patch-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.patch-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.patch-grid-card:hover .patch-thumb img { transform: scale(1.1); }
.platform-badge { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background: rgba(0,0,0,0.8); 
    color: #fff; 
    font-size: 0.65rem; 
    font-weight: 800; 
    padding: 4px 8px; 
    border-radius: 4px; 
    text-transform: uppercase; 
    backdrop-filter: blur(4px); 
}

/* Kart İçerik */
.patch-body { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.patch-title { 
    font-size: 1rem; 
    font-weight: 700; 
    margin-bottom: 5px; 
    line-height: 1.3; 
    color: var(--text-main); 
    font-family: 'Rajdhani', sans-serif; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}
.patch-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 15px; }
.patch-btn { 
    margin-top: auto; 
    width: 100%; 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    border: 1px solid var(--border-color); 
    padding: 8px; 
    border-radius: 6px; 
    font-size: 0.8rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    transition: 0.2s; 
    text-align: center; 
}
.patch-grid-card:hover .patch-btn { 
    background-color: var(--primary); 
    color: #fff; 
    border-color: var(--primary); 
}

/* 7. Liste Görünümü Modu (JS ile .list-mode eklenince çalışır) */
#patch-container.list-mode .item-col { width: 100%; }
#patch-container.list-mode .patch-grid-card { flex-direction: row; height: 180px; }
#patch-container.list-mode .patch-thumb { width: 320px; height: 100%; aspect-ratio: auto; }
#patch-container.list-mode .patch-body { padding: 20px; justify-content: center; }
#patch-container.list-mode .patch-title { font-size: 1.3rem; -webkit-line-clamp: 1; }
#patch-container.list-mode .patch-btn { width: 150px; margin-top: 10px; }
@media (max-width: 768px) { .view-switcher { display: none !important; } }

/* 8. Sayfalama (Pagination) */
.pagination { display: flex; gap: 5px; justify-content: center; margin-top: 40px; }
.page-link { 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 8px; 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    color: var(--text-main); 
    font-weight: 700; 
    transition: 0.2s; 
}
.page-link:hover, .page-link.active { 
    background: var(--primary); 
    color: #fff; 
    border-color: var(--primary); 
}

/* 9. Dark Mode Düzeltmeleri */
[data-theme="dark"] .patch-meta small,
[data-theme="dark"] .patch-meta i { color: #e0e0e0 !important; }
[data-theme="dark"] .patch-title a { color: #e0e0e0 !important; }
[data-theme="dark"] .patch-title a:hover { color: #ffb400 !important; }

