/* Kategori Sayfası CSS */
:root {
    --category-title-color: #333;
    --category-border-color: #eee;
    --category-bg-color: #fff;
    --category-hover-color: #f9f9f9;
    --pagination-active-bg: #e30613;
    --pagination-active-color: #fff;
    --pagination-hover-bg: #f5f5f5;
    --filter-select-border: #ddd;
    --filter-select-bg: #fff;
    --button-bg-color: rgba(255, 255, 255, 0.2);
    --button-hover-bg-color: rgba(255, 255, 255, 0.3);
}

body.dark-theme {
    --category-title-color: #e0e0e0;
    --category-border-color: #333;
    --category-bg-color: #222;
    --category-hover-color: #2a2a2a;
    --pagination-active-bg: #e30613;
    --pagination-active-color: #fff;
    --pagination-hover-bg: #333;
    --filter-select-border: #444;
    --filter-select-bg: #333;
    --button-bg-color: rgba(255, 255, 255, 0.2);
    --button-hover-bg-color: rgba(255, 255, 255, 0.3);
}

/* Breadcrumb Stili */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.breadcrumb-item {
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #343a40;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    padding: 0 10px;
    color: #6c757d;
}

.breadcrumb-item.active {
    color: #343a40;
    font-weight: 500;
}

/* Kategori Başlık Alanı */
.category-section {
    padding: 20px 0 50px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-bottom: 10px;
}

.category-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #e30613;
}

.category-filter {
    display: flex;
    align-items: center;
}

.filter-label {
    font-size: 14px;
    color: #6c757d;
    margin-right: 10px;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    color: #495057;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Kategori İçerik Alanı */
.category-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.category-main {
    flex: 1;
}

.category-sidebar {
    width: 300px;
}

/* Öne Çıkan Haber */
.featured-news {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-news:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.featured-news a {
    text-decoration: none;
    color: inherit;
}

.featured-news-image {
    position: relative;
    height: 400px;
}

.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-news-details {
    padding: 20px;
    background-color: #fff;
}

.featured-news-details h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #212529;
}

.featured-news-details p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Haber Listesi */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.news-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-item-image {
    position: relative;
    height: 200px;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e30613;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.news-item-details {
    padding: 15px;
}

.news-item-details h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #212529;
    line-height: 1.3;
}

.news-item-details p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #adb5bd;
}

.news-date,
.news-views {
    display: flex;
    align-items: center;
}

.news-date i,
.news-views i {
    margin-right: 5px;
}

/* Lazy Load Stili */
.lazy-load-container {
    margin-top: 30px;
    text-align: center;
}

.btn-load-more {
    background-color: #1f1a1a;
    ;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-load-more:hover {
    background-color: rgba(0, 0, 0, 0.158);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-load-more.loading .load-text {
    display: none;
}

.btn-load-more.loading .loader {
    display: block;
}

.btn-load-more.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Sidebar Widget */
.sidebar-widget {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.widget-header {
    padding: 15px;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.widget-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 15px;
    width: 50px;
    height: 3px;
    background-color: #e30613;
}

/* Popüler Haberler Widget */
.popular-posts {
    padding: 15px;
}

.popular-post {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.popular-post:last-child {
    border-bottom: none;
}

.popular-post-number {
    width: 30px;
    height: 30px;
    background-color: #e30613;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
}

.popular-post-content {
    flex-grow: 1;
}

.popular-post-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px;
    line-height: 1.3;
}

.popular-post-content h4 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s;
}

.popular-post-content h4 a:hover {
    color: #e30613;
}

.post-meta {
    font-size: 12px;
    color: #adb5bd;
}

.ad-widget {
    margin-bottom: 30px;
}

.ad-content {
    width: 100%;
    text-align: center;
}

.ad-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Kategori Renkleri için Header Stilleri */
body.category-gundem .top-bar,
body.category-gundem .main-header {
    background-color: #e30613;
}

body.category-ekonomi .top-bar,
body.category-ekonomi .main-header {
    background-color: #2e7d32;
}

body.category-spor .top-bar,
body.category-spor .main-header {
    background-color: #1565c0;
}

body.category-teknoloji .top-bar,
body.category-teknoloji .main-header {
    background-color: #6200ea;
}

body.category-saglik .top-bar,
body.category-saglik .main-header {
    background-color: #d81b60;
}

body.category-egitim .top-bar,
body.category-egitim .main-header {
    background-color: #f57c00;
}

body.category-siyaset .top-bar,
body.category-siyaset .main-header {
    background-color: #6a1b9a;
}

body.category-dunya .top-bar,
body.category-dunya .main-header {
    background-color: #0277bd;
}

body.category-magazin .top-bar,
body.category-magazin .main-header {
    background-color: #c2185b;
}

body.category-kultur .top-bar,
body.category-kultur .main-header {
    background-color: #00695c;
}

body.category-son-dakika .top-bar,
body.category-son-dakika .main-header {
    background-color: #d50000;
}

body.category-akis .top-bar,
body.category-akis .main-header {
    background-color: #4527a0;
}

body.category-galeriler .top-bar,
body.category-galeriler .main-header {
    background-color: #283593;
}

body.category-ilanlar .top-bar,
body.category-ilanlar .main-header {
    background-color: #00838f;
}

/* Ana menü için kategori renklerini kaldır */
body[class*="category-"] .main-nav {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

body[class*="category-"] .nav-menu li a {
    color: var(--text-color);
}

body[class*="category-"] .nav-menu li a:hover {
    color: var(--primary-color);
}

/* Kategori renkli header için metin rengi ayarlamaları */
body[class*="category-"] .top-bar,
body[class*="category-"] .main-header {
    color: #fff;
}

body[class*="category-"] .top-bar a,
body[class*="category-"] .main-header a,
body[class*="category-"] .breaking-news,
body[class*="category-"] .currency-info span,
body[class*="category-"] .weather,
body[class*="category-"] .search-box input::placeholder,
body[class*="category-"] .header-buttons .btn-icon {
    color: #fff;
}

body[class*="category-"] .search-box input {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

body[class*="category-"] .search-box button {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

body[class*="category-"] .menu-toggle i,
body[class*="category-"] .theme-switch i {
    color: #fff;
}

body[class*="category-"] .currency-info .rate-change.up {
    color: #8effb5;
}

body[class*="category-"] .currency-info .rate-change.down {
    color: #ff8e8e;
}

/* Kategori sayfasında breadcrumb rengini de değiştirelim */
body.category-gundem .breadcrumb-item.active {
    color: #e30613;
}

body.category-ekonomi .breadcrumb-item.active {
    color: #2e7d32;
}

body.category-spor .breadcrumb-item.active {
    color: #1565c0;
}

body.category-teknoloji .breadcrumb-item.active {
    color: #6200ea;
}

body.category-saglik .breadcrumb-item.active {
    color: #d81b60;
}

body.category-egitim .breadcrumb-item.active {
    color: #f57c00;
}

body.category-siyaset .breadcrumb-item.active {
    color: #6a1b9a;
}

body.category-dunya .breadcrumb-item.active {
    color: #0277bd;
}

body.category-magazin .breadcrumb-item.active {
    color: #c2185b;
}

body.category-kultur .breadcrumb-item.active {
    color: #00695c;
}

body.category-son-dakika .breadcrumb-item.active {
    color: #d50000;
}

body.category-akis .breadcrumb-item.active {
    color: #4527a0;
}

body.category-galeriler .breadcrumb-item.active {
    color: #283593;
}

body.category-ilanlar .breadcrumb-item.active {
    color: #00838f;
}

/* Kategori başlığının altındaki çizgi rengini de değiştirelim */
body.category-gundem .category-title::after {
    background-color: #e30613;
}

body.category-ekonomi .category-title::after {
    background-color: #2e7d32;
}

body.category-spor .category-title::after {
    background-color: #1565c0;
}

body.category-teknoloji .category-title::after {
    background-color: #6200ea;
}

body.category-saglik .category-title::after {
    background-color: #d81b60;
}

body.category-egitim .category-title::after {
    background-color: #f57c00;
}

body.category-siyaset .category-title::after {
    background-color: #6a1b9a;
}

body.category-dunya .category-title::after {
    background-color: #0277bd;
}

body.category-magazin .category-title::after {
    background-color: #c2185b;
}

body.category-kultur .category-title::after {
    background-color: #00695c;
}

body.category-son-dakika .category-title::after {
    background-color: #d50000;
}

body.category-akis .category-title::after {
    background-color: #4527a0;
}

body.category-galeriler .category-title::after {
    background-color: #283593;
}

body.category-ilanlar .category-title::after {
    background-color: #00838f;
}

/* Responsive Ayarlar */
@media (max-width: 992px) {
    .category-container {
        grid-template-columns: 1fr;
    }

    .news-list {
        grid-template-columns: 1fr;
    }

    .featured-news-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-filter {
        margin-top: 15px;
    }

    .featured-news-image {
        height: 250px;
    }

    .featured-news-details h2 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .featured-news-image {
        height: 200px;
    }

    .news-item-image {
        height: 180px;
    }
}

/* Kategori renkli header için buton stilleri */
body[class*="category-"] .header-buttons .btn-dark {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

body[class*="category-"] .header-buttons .btn-dark:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

body[class*="category-"] .header-buttons .btn-icon {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

body[class*="category-"] .header-buttons .btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

body[class*="category-"] .header-buttons .btn-icon.active {
    background-color: #fff;
    color: var(--primary-color);
}

body[class*="category-"] .badge {
    background-color: #fff;
    color: var(--primary-color);
}

/* Kategori renkli header için logo stilleri */
body[class*="category-"] .logo span {
    color: #fff;
}

/* Mobil Görünüm */
@media screen and (max-width: 768px) {
    .category-section {
        padding: 15px 0;
    }

    .category-header {
        padding: 15px;
    }

    .category-title {
        font-size: 24px;
    }

    .category-description {
        font-size: 14px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .news-card {
        margin-bottom: 15px;
    }

    .news-image {
        height: 200px;
    }

    .news-title {
        font-size: 16px;
    }

    .news-excerpt {
        font-size: 14px;
    }

    .sidebar {
        margin-top: 20px;
    }

    .widget {
        margin-bottom: 15px;
        padding: 15px;
    }

    .widget-title {
        font-size: 18px;
    }

    .popular-post {
        padding: 10px 0;
    }

    .popular-post-title {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .category-title {
        font-size: 20px;
    }

    .category-description {
        font-size: 12px;
    }

    .news-image {
        height: 180px;
    }

    .news-title {
        font-size: 14px;
    }

    .news-excerpt {
        font-size: 12px;
    }

    .widget-title {
        font-size: 16px;
    }

    .popular-post-title {
        font-size: 12px;
    }
}

/* Dark Theme Uyumlaştırması */
body.dark-theme .breadcrumb {
    background-color: #1a1a1a;
    border-bottom-color: #333;
}

body.dark-theme .breadcrumb-item {
    color: #aaa;
}

body.dark-theme .breadcrumb-item a {
    color: #aaa;
}

body.dark-theme .breadcrumb-item a:hover {
    color: #fff;
}

body.dark-theme .breadcrumb-item.active {
    color: #fff;
}

body.dark-theme .category-header {
    border-bottom-color: #333;
}

body.dark-theme .category-title {
    color: #fff;
}

body.dark-theme .filter-label {
    color: #aaa;
}

body.dark-theme .filter-select {
    background-color: #333;
    border-color: #444;
    color: #ddd;
}

body.dark-theme .featured-news {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-theme .featured-news:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

body.dark-theme .featured-news-details {
    background-color: #222;
}

body.dark-theme .featured-news-details h2 {
    color: #fff;
}

body.dark-theme .featured-news-details p {
    color: #bbb;
}

body.dark-theme .news-item {
    background-color: #222;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-theme .news-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

body.dark-theme .news-item-details {
    background-color: #222;
}

body.dark-theme .news-item-details h3 {
    color: #fff;
}

body.dark-theme .news-item-details p {
    color: #bbb;
}

body.dark-theme .news-meta {
    color: #999;
}

body.dark-theme .btn-load-more {
    background-color: var(--button-bg-color);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

body.dark-theme .btn-load-more:hover {
    background-color: var(--button-hover-bg-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

body.dark-theme .sidebar-widget {
    background-color: #222;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-theme .widget-header {
    color: #fff;
    border-bottom-color: #333;
}

body.dark-theme .popular-post {
    border-bottom-color: #333;
}

body.dark-theme .popular-post-number {
    background-color: #333;
    color: #fff;
}

body.dark-theme .popular-post-content h4 a {
    color: #ddd;
}

body.dark-theme .popular-post-content h4 a:hover {
    color: #fff;
}

body.dark-theme .post-meta {
    color: #999;
}

body.dark-theme .ad-widget {
    background-color: #222;
}