/**
 * Category Page Styles (Cumhuriyet Style Layout)
 * 
 * Sadece kategori sayfalarındaki slider altı listeyi etkiler.
 * Slider'ın stilini bozmaz.
 */

/* ============================================
   MAIN LAYOUT: Content + Sidebar Grid
   ============================================ */

.yv-category-page .vatan-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 20px;
}

/* Sidebar içeriği taşmasını engelle */
.yv-category-page .sidebar-column {
    max-width: 100%;
    overflow: hidden;
}

.yv-category-page .sidebar-column .sidebar-box,
.yv-category-page .sidebar-column .sidebar-content,
.yv-category-page .sidebar-column .fixture-box,
.yv-category-page .sidebar-column .fixture-box .sidebar-content {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: auto;
    box-sizing: border-box;
}

/* Fikstür tablosu ve içeriği için özel kurallar */
.yv-category-page .sidebar-column .fixture-box .sidebar-content,
.yv-category-page .sidebar-column .fixture-box table,
.yv-category-page .sidebar-column .fixture-box iframe,
.yv-category-page .sidebar-column .fixture-box img,
.yv-category-page .sidebar-column .fixture-box div {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Fikstür tablosu için özel */
.yv-category-page .sidebar-column .fixture-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto;
    word-wrap: break-word;
}

.yv-category-page .sidebar-column .fixture-table th,
.yv-category-page .sidebar-column .fixture-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

@media (max-width: 992px) {
    .yv-category-page .vatan-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .yv-category-page .sidebar-column {
        order: 2;
    }
}

/* ============================================
   NEWS LIST (Cumhuriyet Style)
   ============================================ */

.yv-category-news-list {
    width: 100%;
}

/* News Row (Horizontal Card) */
.yv-category-news-row {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    align-items: flex-start;
}

.yv-category-news-row:last-child {
    border-bottom: none;
}

/* Image Column */
.yv-news-row-image {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
}

.yv-news-row-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.yv-news-row-image .yv-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yv-placeholder-image {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yv-placeholder-icon {
    font-size: 32px;
    opacity: 0.3;
}

/* Content Column */
.yv-news-row-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.yv-news-row-title {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.yv-news-row-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yv-news-row-title a:hover {
    color: #d32f2f;
}

.yv-news-row-excerpt {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yv-news-row-meta {
    margin-top: auto;
}

.yv-news-date {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    color: #999;
}

/* ============================================
   AD SLOTS
   ============================================ */

.yv-ad-slot {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.yv-ad-slot:empty {
    display: none; /* Reklam yoksa gizle */
}

/* Top Leaderboard (Slider altı, liste üstü) */
.yv-ad-slot[data-ad-slot="ad_top_leaderboard"] {
    margin-top: 0;
    margin-bottom: 30px;
}

/* Infeed Ads */
.yv-ad-slot[data-ad-slot="ad_infeed_1"],
.yv-ad-slot[data-ad-slot="ad_infeed_2"] {
    margin: 30px 0;
}

/* ============================================
   PAGINATION
   ============================================ */

.yv-category-pagination {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

/* ============================================
   NO POSTS
   ============================================ */

.yv-no-posts-found {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

@media (max-width: 768px) {
    .yv-news-row-image {
        width: 120px;
        height: 90px;
    }
    
    .yv-news-row-title {
        font-size: 16px;
    }
    
    .yv-news-row-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    
    .yv-category-news-row {
        gap: 15px;
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .yv-news-row-image {
        width: 100px;
        height: 75px;
    }
    
    .yv-news-row-title {
        font-size: 15px;
    }
    
    .yv-news-row-excerpt {
        font-size: 12px;
    }
}

