/* Kategori Sayfası Yeni Tasarım */

/* ========================================
   GENEL AYARLAR
   ======================================== */

.category-page {
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* ========================================
   KATEGORİ BAŞLIĞI
   ======================================== */

.category-header {
    background: #fff;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 3px solid #d10505;
}

.category-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -0.5px;
}

.category-header h1::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: #d10505;
    margin-right: 12px;
    vertical-align: middle;
}

/* ========================================
   MANŞET BÖLÜMÜ (Hero Section - Tam Genişlik)
   ======================================== */

.category-hero-full {
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    height: 470px;
    overflow: visible;
    background: #fff;
}

.category-hero-full.module-category-cuff {
    position: relative;
}

/* AutoHeight override - Sabit yükseklik için */
.category-hero-full .swiper-wrapper {
    height: 420px !important;
}

.category-hero-full .swiper-container {
    height: 100%;
}

.category-hero-full .swiper-slide {
    position: relative;
    height: 420px;
}

.category-hero-full .swiper-slide a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.category-hero-full .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero-full .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
}

.category-hero-full .hero-badge {
    display: inline-block;
    background: #d10505;
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.category-hero-full .hero-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-hero-full .hero-date {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

/* Pagination - Numaralı Tasarım (Alt Beyaz Alan) */
.category-hero-full .swiper-pagination {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: center;
    z-index: 10;
}

.category-hero-full .swiper-pagination .swiper-pagination-bullet {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    border-radius: 50% !important;
    background: #e0e0e0 !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    margin: 0 5px !important;
    transition: all 0.3s ease;
    display: inline-block !important;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
}

.category-hero-full .swiper-pagination .swiper-pagination-bullet:hover {
    background: #ccc !important;
}

.category-hero-full .swiper-pagination .swiper-pagination-bullet-active {
    background: #d10505 !important;
    color: #fff !important;
}

/* Navigation Butonları */
.category-hero-full .swiper-button-prev,
.category-hero-full .swiper-button-next {
    width: 44px !important;
    height: 44px !important;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    z-index: 10;
    top: 50% !important;
    margin-top: -22px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute !important;
}

.category-hero-full .swiper-button-prev:hover,
.category-hero-full .swiper-button-next:hover {
    background: #d10505 !important;
}

/* Ok işaretleri - Manuel */
.category-hero-full .swiper-button-prev::after {
    content: '' !important;
    width: 10px;
    height: 10px;
    border-left: 3px solid #333;
    border-bottom: 3px solid #333;
    transform: rotate(45deg);
    margin-left: 4px;
}

.category-hero-full .swiper-button-next::after {
    content: '' !important;
    width: 10px;
    height: 10px;
    border-right: 3px solid #333;
    border-top: 3px solid #333;
    transform: rotate(45deg);
    margin-right: 4px;
}

.category-hero-full .swiper-button-prev:hover::after {
    border-left-color: #fff;
    border-bottom-color: #fff;
}

.category-hero-full .swiper-button-next:hover::after {
    border-right-color: #fff;
    border-top-color: #fff;
}

.category-hero-full .swiper-button-prev {
    left: 15px !important;
}

.category-hero-full .swiper-button-next {
    right: 15px !important;
}

/* Swiper container */
.category-hero-full .swiper-container {
    overflow: hidden;
    position: relative;
    height: 100%;
}

/* ========================================
   HABER GRID (Kartlar)
   ======================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.news-card {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    overflow: hidden;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

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

.news-card .card-image-wrap {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.news-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-image {
    transform: scale(1.05);
}

.news-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #d10505;
    color: #fff;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.news-card .card-content {
    padding: 15px;
}

.news-card .card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 67px;
    transition: color 0.2s ease;
}

.news-card:hover .card-title {
    color: #d10505;
}

.news-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.news-card .card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card .card-date::before {
    content: '';
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.5-13H11v6l5.2 3.2.8-1.3-4.5-2.7V7z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* ========================================
   HABER LİSTESİ
   ======================================== */

.category-list {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.category-list .list-header {
    padding: 15px 20px;
    border-bottom: 2px solid #d10505;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
}

.category-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list .list-item {
    border-bottom: 1px solid #eee;
}

.category-list .list-item:last-child {
    border-bottom: none;
}

.category-list .list-item a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.category-list .list-item a:hover {
    background: #fafafa;
}

.category-list .list-item a:hover .list-title {
    color: #d10505;
}

.category-list .list-image {
    width: 120px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 15px;
}

.category-list .list-content {
    flex: 1;
    min-width: 0;
}

.category-list .list-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.category-list .list-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-list .list-date {
    font-size: 12px;
    color: #999;
}

/* ========================================
   DAHA FAZLA YÜKLE / INFINITE SCROLL
   ======================================== */

.load-more-wrap {
    text-align: center;
    padding: 30px 0;
}

.load-more-btn {
    display: inline-block;
    padding: 12px 40px;
    background: #d10505;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.load-more-btn:hover {
    background: #b10404;
}

/* ========================================
   RESPONSIVE TASARIM
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .category-hero-full {
        height: 400px;
    }
    
    .category-hero-full .swiper-wrapper {
        height: 350px !important;
    }
    
    .category-hero-full .swiper-slide {
        height: 350px;
    }
    
    .category-hero-full .hero-title {
        font-size: 24px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Mobil Landscape */
@media (max-width: 768px) {
    .category-header h1 {
        font-size: 22px;
    }
    
    .category-hero-full {
        height: 280px;
        overflow: hidden;
    }
    
    .category-hero-full .swiper-wrapper {
        height: 280px !important;
    }
    
    .category-hero-full .swiper-slide {
        height: 280px;
    }
    
    .category-hero-full .swiper-button-prev,
    .category-hero-full .swiper-button-next {
        display: none !important;
    }
    
    .category-hero-full .swiper-pagination {
        display: none !important;
    }
    
    .category-hero-full .hero-content {
        padding: 20px;
    }
    
    .category-hero-full .hero-title {
        font-size: 20px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .news-card .card-image-wrap {
        height: 140px;
    }
    
    .news-card .card-content {
        padding: 12px;
    }
    
    .news-card .card-title {
        font-size: 14px;
        min-height: 59px;
    }
    
    .category-list .list-item a {
        padding: 12px 15px;
    }
    
    .category-list .list-image {
        width: 100px;
        height: 70px;
    }
    
    .category-list .list-title {
        font-size: 14px;
    }
    
    .category-list .list-desc {
        display: none;
    }
}

/* Mobil Portrait */
@media (max-width: 480px) {
    .category-header {
        padding: 15px 0;
    }
    
    .category-header h1 {
        font-size: 18px;
    }
    
    .category-header h1::before {
        width: 3px;
        height: 18px;
        margin-right: 10px;
    }
    
    .category-hero-full {
        height: 220px;
        overflow: hidden;
    }
    
    .category-hero-full .swiper-wrapper {
        height: 220px !important;
    }
    
    .category-hero-full .swiper-slide {
        height: 220px;
    }
    
    .category-hero-full .hero-content {
        padding: 15px;
    }
    
    .category-hero-full .hero-title {
        font-size: 18px;
    }
    
    .category-hero-full .hero-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-card .card-image-wrap {
        height: 180px;
    }
    
    .news-card .card-title {
        font-size: 16px;
        min-height: auto;
        -webkit-line-clamp: 2;
    }
    
    .category-list .list-image {
        width: 90px;
        height: 65px;
        margin-right: 12px;
    }
    
    .category-list .list-title {
        font-size: 13px;
    }
}

/* ========================================
   SKELETON LOADING
   ======================================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   EK STİLLER
   ======================================== */

/* Video ikonu */
.news-card .video-icon,
.category-hero-main .video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(209, 5, 5, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card .video-icon::after,
.category-hero-main .video-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 14px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 4px;
}

/* Galeri ikonu */
.news-card .gallery-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-card .gallery-icon i {
    font-size: 12px;
}

/* Yorum sayısı */
.news-card .comment-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-card .comment-count::before {
    content: '';
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
