/**
 * 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: 15px 0 0 0;
    background: #fff;
    margin: 0 0 20px 0;
}

/* 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: 3px;
}

.blog-actions .like-button,
.blog-actions .favorite-button {
    padding: 2px 4px;
    font-size: 11px;
    min-width: auto;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-actions .like-button svg,
.blog-actions .favorite-button svg {
    width: 12px;
    height: 12px;
}

.blog-actions .like-button .like-text,
.blog-actions .favorite-button .favorite-text {
    display: none;
}

/* ========================================
   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;
    }
}

/* ========================================
   DARK MODE
   ======================================== */

body.dark-mode .category-section.category-blog-layout {
    background: var(--dark-bg-primary, #121212);
}

body.dark-mode .blog-list-item {
    background: var(--dark-bg-primary, #121212);
    border-bottom-color: var(--dark-border, #2a2a2a);
}

body.dark-mode .blog-item-title {
    color: var(--dark-text-primary, #e8e8e8);
}

body.dark-mode .blog-list-item:hover .blog-item-title {
    color: var(--dark-accent, #FF6B35);
}

body.dark-mode .blog-item-excerpt {
    color: var(--dark-text-secondary, #999);
}

body.dark-mode .blog-category-badge {
    background: #FF6B35;
    color: #fff;
}

body.dark-mode .blog-views,
body.dark-mode .blog-comments {
    color: var(--dark-text-secondary, #999);
}

body.dark-mode .blog-views i,
body.dark-mode .blog-comments i {
    color: var(--dark-text-secondary, #999);
}

body.dark-mode .blog-actions .like-button,
body.dark-mode .blog-actions .favorite-button {
    background: var(--dark-bg-tertiary, #2a2a2a);
    border-color: var(--dark-border, #2a2a2a);
}

body.dark-mode .blog-actions .like-button:hover,
body.dark-mode .blog-actions .favorite-button:hover {
    background: var(--dark-bg-secondary, #1e1e1e);
}

body.dark-mode .blog-tabs-widget {
    background: var(--dark-bg-secondary, #1e1e1e);
    border-color: var(--dark-border, #2a2a2a);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .blog-tabs-header {
    background: var(--dark-bg-tertiary, #2a2a2a);
    border-bottom-color: var(--dark-border, #2a2a2a);
}

body.dark-mode .blog-tab-btn {
    color: var(--dark-text-secondary, #999);
}

body.dark-mode .blog-tab-btn:hover,
body.dark-mode .blog-tab-btn.active {
    color: var(--dark-accent, #FF6B35);
    background: var(--dark-bg-secondary, #1e1e1e);
}

body.dark-mode .blog-tab-btn.active::after {
    background: var(--dark-accent, #FF6B35);
}

body.dark-mode .blog-tab-pane {
    background: var(--dark-bg-secondary, #1e1e1e);
}

body.dark-mode .blog-tab-item {
    border-bottom-color: var(--dark-border, #2a2a2a);
}

body.dark-mode .blog-tab-item:hover {
    background: var(--dark-bg-tertiary, #2a2a2a);
}

body.dark-mode .blog-tab-title {
    color: var(--dark-text-primary, #e8e8e8);
}

body.dark-mode .blog-tab-item:hover .blog-tab-title {
    color: var(--dark-accent, #FF6B35);
}

body.dark-mode .blog-tab-date {
    color: var(--dark-text-secondary, #999);
}

body.dark-mode .blog-item-image,
body.dark-mode .blog-tab-image {
    background: var(--dark-bg-tertiary, #2a2a2a);
}