/* ============================================
   ⭐ BLOG SAYFASI - TAM ÇÖZÜM V3
   ============================================ */

/* ============================================
   HEADER ALTI BOŞLUK
   ============================================ */
body.blog .header-container,
body.archive .header-container,
body.single-post .header-container {
    margin-bottom: 200px !important;
}

/* CONTAINER & ORTALAMA */
body.blog,
body.archive,
body.single-post {
    width: 100% !important;
    max-width: 100% !important;
}

body.blog .site,
body.archive .site,
body.single-post .site {
    width: 100% !important;
    max-width: 100% !important;
}

body.blog #primary,
body.archive #primary,
body.single-post #primary {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

body.blog .ast-container,
body.archive .ast-container,
body.single-post .ast-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* ÜSTTEN BOŞLUK - AZALTILMIŞ */
body.blog .site-content,
body.archive .site-content,
body.single-post .site-content {
    padding-top: 150 !important;
}

/* ASTRA LAYOUT TEMİZLEME */
.ast-separate-container .ast-article-post,
.ast-separate-container #primary,
.ast-separate-container .site-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* BLOG GRID - 3 SÜTUN */
.ast-row,
.ast-archive-post {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin: 200px auto 40px !important; /* Üstten 20px boşluk */
    width: 100% !important;
    max-width: 1200px !important;
    padding: 0 !important;
}

/* BLOG KARTLARI */
article.post {
    background: white !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

article.post:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* GÖRSEL */
.post-thumb,
.post-thumb-img-content {
    width: 100% !important;
    height: 250px !important;
    overflow: hidden !important;
    margin: 0 !important;
}

.post-thumb img,
.post-thumb-img-content img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

article.post:hover .post-thumb img,
article.post:hover .post-thumb-img-content img {
    transform: scale(1.1) !important;
}

/* İÇERİK ALANI */
.ast-post-format-,
.blog-layout-1 {
    padding: 25px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

/* KATEGORİ */
.cat-links {
    display: inline-block !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 6px 15px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    margin: 0 0 15px 0 !important;
}

.cat-links a {
    color: white !important;
    text-decoration: none !important;
}

/* BAŞLIK */
.entry-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.4 !important;
}

.entry-title a {
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
}

.entry-title a:hover {
    color: #667eea !important;
}

/* ÖZET */
.entry-content,
.entry-summary {
    color: #666 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    margin: 0 0 20px 0 !important;
    flex: 1 !important;
}

/* META BİLGİLER */
.entry-meta {
    display: flex !important;
    gap: 15px !important;
    font-size: 13px !important;
    color: #999 !important;
    padding-top: 15px !important;
    margin-top: auto !important;
    border-top: 1px solid #eee !important;
}

.posted-on a,
.byline a {
    color: #999 !important;
    text-decoration: none !important;
}

.posted-on a:hover,
.byline a:hover {
    color: #667eea !important;
}

/* ============================================
   DARK MODE
   ============================================ */
body.dark-mode article.post {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .entry-title a {
    color: #fff !important;
}

body.dark-mode .entry-title a:hover {
    color: #a78bfa !important;
}

body.dark-mode .entry-content,
body.dark-mode .entry-summary {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-mode .entry-meta {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .posted-on a,
body.dark-mode .byline a {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.dark-mode .cat-links {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%) !important;
}

/* ============================================
   TABLET - 2 SÜTUN
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .ast-row,
    .ast-archive-post {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

/* ============================================
   MOBİL - 1 SÜTUN
   ============================================ */
@media (max-width: 768px) {
    body.blog .header-container,
    body.archive .header-container,
    body.single-post .header-container {
        margin-bottom: 20px !important;
    }
    
    body.blog #primary,
    body.archive #primary,
    body.single-post #primary,
    body.blog .ast-container,
    body.archive .ast-container,
    body.single-post .ast-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .ast-row,
    .ast-archive-post {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 10px !important;
    }
    
    .entry-title {
        font-size: 20px !important;
    }
    
    .post-thumb,
    .post-thumb-img-content {
        height: 200px !important;
    }
}