/**
 * Blog Layout CSS - Görsele göre birebir tasarım
 * Sol: Büyük görsel | Sağ: Başlık, yazar, özet, meta bilgileri
 */

.category-section.category-blog-layout {
    padding: 10px 0 !important;
    background: #f5f5f5;
    margin: 0 !important;
}

/* Kategori Başlığı - Cinema Layout ile aynı */
.blog-section-header {
    margin-bottom: 15px;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.blog-section-header::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--membership-primary, #e74c3c);
}

.blog-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.blog-section-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-section-title a:hover {
    color: var(--membership-primary, #e74c3c);
}

/* Grid Layout - Sol liste + Sağ widget */
.blog-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* ========================================
   SOL: HABER LİSTESİ
   ======================================== */

.blog-layout-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-list-item {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 15px;
}

.blog-list-item:last-child {
    border-bottom: none;
}

.blog-list-item:hover {
    transform: translateX(2px);
}

.blog-item-wrapper {
    display: flex;
    gap: 15px;
}

.blog-item-wrapper a {
    text-decoration: none !important;
}

/* Büyük Görsel */
.blog-item-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
    display: block;
}

.blog-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-list-item:hover .blog-item-image img {
    transform: scale(1.05);
}

/* İçerik */
.blog-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-item-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.blog-item-title a {
    text-decoration: none !important;
    color: inherit;
    border-bottom: none !important;
}

.blog-item-title a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
}

.blog-list-item:hover .blog-item-title {
    color: #FF6B35;
}

/* Özet */
.blog-item-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta Bilgileri */
.blog-item-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: auto;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-meta-left,
.blog-meta-right {
    display: contents;
}

.blog-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #FF6B35;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 3px;
    text-transform: uppercase;
}

.blog-category-badge i {
    font-size: 10px;
}

.blog-views,
.blog-comments {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
}

.blog-views i,
.blog-comments i {
    color: #999;
}

.blog-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-actions .like-button,
.blog-actions .favorite-button {
    padding: 4px 8px !important;
    font-size: 14px !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    color: #666 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.blog-actions .like-button:hover,
.blog-actions .favorite-button:hover {
    background: var(--membership-primary, #ff6b6b) !important;
    color: #fff !important;
    border-color: var(--membership-primary, #ff6b6b) !important;
}

.blog-actions .like-button.liked {
    background: var(--membership-primary, #ff6b6b) !important;
    color: #fff !important;
    border-color: var(--membership-primary, #ff6b6b) !important;
}

.blog-actions .favorite-button.favorited {
    background: #ffd700 !important;
    color: #fff !important;
    border-color: #ffd700 !important;
}

.blog-actions .like-button i,
.blog-actions .favorite-button i {
    font-size: 14px !important;
    display: inline-block !important;
}

.blog-actions .like-count,
.blog-actions .favorite-text {
    display: none !important;
}

/* ========================================
   SAĞ: TABBED WIDGET
   ======================================== */

.blog-layout-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.blog-tabs-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

/* BİZE KATILIN widget'ı için üst boşluk */
.blog-layout-sidebar .sidebar-widget {
    margin-top: 20px;
}

.blog-tabs-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.blog-tab-btn {
    flex: 1;
    padding: 12px 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.blog-tab-btn:hover {
    color: #FF6B35;
    background: #fff;
}

.blog-tab-btn.active {
    color: #FF6B35;
    background: #fff;
}

.blog-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #FF6B35;
}

.blog-tabs-content {
    position: relative;
}

.blog-tab-pane {
    display: none;
    padding: 15px;
}

.blog-tab-pane.active {
    display: block;
}

.blog-tab-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.blog-tab-item:first-child {
    padding-top: 0;
}

.blog-tab-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-tab-item:hover {
    background: #f8f9fa;
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 4px;
}

.blog-tab-link {
    display: flex;
    gap: 12px;
    text-decoration: none !important;
    color: inherit;
    width: 100%;
}

.blog-tab-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
}

.blog-tab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-tab-item:hover .blog-tab-image img {
    transform: scale(1.05);
}

.blog-tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.blog-tab-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.blog-tab-title a {
    text-decoration: none !important;
    color: inherit;
    border-bottom: none !important;
}

.blog-tab-title a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
}

.blog-tab-item:hover .blog-tab-title {
    color: #FF6B35;
}

.blog-tab-date {
    font-size: 12px;
    color: #999;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .blog-layout-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 25px;
    }
    
    .blog-item-image {
        width: 180px;
        height: 135px;
    }
    
    .blog-item-title {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .category-section.category-blog-layout {
        padding: 0;
    }
    
    .blog-layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-layout-sidebar {
        position: static;
    }
    
    /* BİZE KATILIN widget'ı için mobilde üst boşluk */
    .blog-layout-sidebar .sidebar-widget {
        margin-top: 20px;
    }
    
    .blog-item-wrapper {
        gap: 12px;
    }
    
    .blog-item-image {
        width: 150px;
        height: 110px;
    }
    
    .blog-item-title {
        font-size: 16px;
    }
    
    .blog-item-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .blog-layout-main {
        gap: 12px;
    }
    
    .blog-item-wrapper {
        flex-direction: column;
    }
    
    .blog-item-image {
        width: 100%;
        height: 200px;
    }
    
    .blog-item-title {
        font-size: 16px;
        -webkit-line-clamp: 2;
    }
    
    .blog-item-excerpt {
        -webkit-line-clamp: 3;
    }
    
    .blog-item-meta {
        gap: 8px;
    }
    
    .blog-tabs-header {
        flex-direction: row;
    }
    
    .blog-tab-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .blog-tab-pane {
        padding: 12px;
    }
    
    .blog-tab-image {
        width: 70px;
        height: 55px;
    }
    
    .blog-tab-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .blog-section-header {
        margin-bottom: 10px;
        gap: 10px;
    }
    
    .blog-section-header::after {
        display: block;
    }
    
    .blog-section-title {
        font-size: 18px;
    }
}

/* ============================================
   DARK MODE - Blog Layout
   ============================================ */

/* Section background */
html[data-theme="dark"] .category-section.category-blog-layout {
    background: transparent;
}

/* Header dark mode */
html[data-theme="dark"] .blog-section-header::after {
    background: var(--membership-primary, #e74c3c);
}

html[data-theme="dark"] .blog-section-title {
    color: #ffffff;
}

html[data-theme="dark"] .blog-section-title a {
    color: #ffffff;
}

html[data-theme="dark"] .blog-section-title a:hover {
    color: var(--membership-primary, #e74c3c);
}

/* Liste itemleri */
html[data-theme="dark"] .blog-list-item {
    background: #1a1a1a;
    border-bottom-color: #2a2a2a;
}

/* Görsel arka planı */
html[data-theme="dark"] .blog-item-image {
    background: #404040 !important;
}

/* Başlık ve içerik */
html[data-theme="dark"] .blog-item-title {
    color: #ffffff;
}

html[data-theme="dark"] .blog-list-item:hover .blog-item-title {
    color: var(--membership-primary, #FF6B35);
}

html[data-theme="dark"] .blog-item-excerpt {
    color: #b0b0b0;
}

/* Meta bilgileri */
html[data-theme="dark"] .blog-category-badge {
    background: var(--membership-primary, #FF6B35);
    color: #ffffff;
}

html[data-theme="dark"] .blog-views,
html[data-theme="dark"] .blog-comments {
    color: #808080;
}

html[data-theme="dark"] .blog-views i,
html[data-theme="dark"] .blog-comments i {
    color: #808080;
}

/* Action buttons */
html[data-theme="dark"] .blog-actions .like-button,
html[data-theme="dark"] .blog-actions .favorite-button {
    background: #2a2a2a !important;
    border-color: #3a3a3a !important;
    color: #aaa !important;
}

html[data-theme="dark"] .blog-actions .like-button:hover,
html[data-theme="dark"] .blog-actions .favorite-button:hover {
    background: var(--membership-primary, #ff6b6b) !important;
    color: #fff !important;
    border-color: var(--membership-primary, #ff6b6b) !important;
}

html[data-theme="dark"] .blog-actions .like-button.liked {
    background: var(--membership-primary, #ff6b6b) !important;
    color: #fff !important;
    border-color: var(--membership-primary, #ff6b6b) !important;
}

html[data-theme="dark"] .blog-actions .favorite-button.favorited {
    background: #ffd700 !important;
    color: #fff !important;
    border-color: #ffd700 !important;
}

/* Tabbed Widget */
html[data-theme="dark"] .blog-tabs-widget {
    background: #1a1a1a;
    border-color: #2a2a2a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

html[data-theme="dark"] .blog-tabs-header {
    background: #222222;
    border-bottom-color: #2a2a2a;
}

html[data-theme="dark"] .blog-tab-btn {
    color: #aaa;
}

html[data-theme="dark"] .blog-tab-btn:hover {
    color: var(--membership-primary, #FF6B35);
    background: #1a1a1a;
}

html[data-theme="dark"] .blog-tab-btn.active {
    color: var(--membership-primary, #FF6B35);
    background: #1a1a1a;
}

html[data-theme="dark"] .blog-tab-btn.active::after {
    background: var(--membership-primary, #FF6B35);
}

/* Tab içeriği */
html[data-theme="dark"] .blog-tab-item {
    border-bottom-color: #2a2a2a;
}

html[data-theme="dark"] .blog-tab-item:hover {
    background: #222222;
}

html[data-theme="dark"] .blog-tab-image {
    background: #404040 !important;
}

html[data-theme="dark"] .blog-tab-title {
    color: #ffffff;
}

html[data-theme="dark"] .blog-tab-item:hover .blog-tab-title {
    color: var(--membership-primary, #FF6B35);
}

html[data-theme="dark"] .blog-tab-date {
    color: #808080;
}
