/* ==================================================== */
/* ============ VIEW TOGGLE =========================== */
/* ==================================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.view-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: 10px;
}

.view-toggle-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 600;
    padding: 0 8px 0 12px;
}

.view-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--gray-500);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn:hover {
    color: var(--primary);
    background: rgba(38, 94, 167, 0.08);
}

.view-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ==================================================== */
/* ============ LIST VIEW ============================= */
/* ==================================================== */

#newsContainer.view-list .news-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#newsContainer.view-list .news-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 160px;
    border-radius: var(--radius);
}

#newsContainer.view-list .news-image {
    width: 260px;
    height: auto;
    min-height: 160px;
    flex-shrink: 0;
}

#newsContainer.view-list .news-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 24px;
}

#newsContainer.view-list .news-body h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

#newsContainer.view-list .news-body p {
    font-size: 0.9rem;
    margin-bottom: 12px;
    flex: 1;
}

#newsContainer.view-list .news-footer {
    margin-top: auto;
}

/* Hover'da hafif sağa kaysın */
#newsContainer.view-list .news-card:hover {
    transform: translateX(6px);
}
#newsContainer.view-list .news-image .news-badge {
    top: 12px;
    left: 12px;
}

/* ==================================================== */
/* ============ RESPONSIVE ============================ */
/* ==================================================== */

@media (max-width: 768px) {
    .view-toggle-label {
        display: none;
    }
    
    .view-btn {
        width: 34px;
        height: 34px;
    }
    
    #newsContainer.view-list .news-card {
        flex-direction: column;
    }
    
    #newsContainer.view-list .news-image {
        width: 100%;
        height: 180px;
        min-height: 180px;
    }
    
    #newsContainer.view-list .news-body {
        padding: 16px;
    }
    
    #newsContainer.view-list .news-body h4 {
        font-size: 1rem;
    }
}
/* ==================================================== */
/* ============ PAGINATION =========================== */
/* ==================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.pagination .page-link:hover {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(50, 155, 214, 0.35);
}

.pagination .page-item.active .page-link {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(50, 155, 214, 0.35);
    cursor: default;
}

.pagination .page-item.disabled .page-link {
    background: var(--gray-100);
    color: var(--gray-500);
    border-color: var(--gray-200);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.pagination .page-item.disabled .page-link:hover {
    background: var(--gray-100);
    color: var(--gray-500);
    transform: none;
    box-shadow: none;
}

/* İlk / Son / Önceki / Sonraki butonları için özel stil */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-weight: 700;
    color: var(--primary);
}

.pagination .page-item:first-child .page-link:hover,
.pagination .page-item:last-child .page-link:hover {
    color: var(--white);
}

/* Aktif sayfa etrafında parlama efekti */
.pagination .page-item.active .page-link {
    position: relative;
}

.pagination .page-item.active .page-link::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 12px;
    background: var(--gradient);
    opacity: 0.2;
    z-index: -1;
    filter: blur(8px);
}

/* Mobil */
@media (max-width: 576px) {
    .pagination {
        gap: 6px;
    }
    
    .pagination .page-link {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    
    /* Mobilde First/Last gizle, sadece Prev/Next kalsın */
    .pagination .page-item:first-child,
    .pagination .page-item:last-child {
        display: none;
    }
}
/* ============ CATEGORY HEADER ============ */
.category-hero {
    background: var(--gradient);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.category-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.category-hero p {
    font-size: 0.9rem;
    opacity: 0.85;
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.category-hero .category-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 16px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.category-hero .category-count i {
    color: var(--gold);
}

@media (max-width: 768px) {
    .category-hero {
        padding: 24px;
    }
    .category-hero h1 {
        font-size: 1.4rem;
    }
}