/* =========================================
   BLOG STİL DOSYASI (PREMIUM EDITORIAL)
   ========================================= */

/* --- 1. BLOG LİSTELEME (INDEX) - Ufak Dokunuşlarla İyileştirildi --- */
.blog-hero {
    padding: 8rem 0 5rem;
    text-align: center;
    background: linear-gradient(to bottom, #f8fafc 0%, rgba(255,255,255,0) 100%);
}

.blog-hero .etiket {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    padding-bottom: 8rem;
}

/* Kart Tasarımı */
.blog-karti {
    background: white;
    border: none;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Kartı "yokmuş" gibi gösterip hover'da ortaya çıkarma efekti */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.blog-karti:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1);
}

.blog-gorsel {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 1.5rem; /* Görsel köşelerini de yuvarla */
    margin: 1rem 1rem 0 1rem; /* İçeriden boşluk */
}

.blog-gorsel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.blog-karti:hover .blog-gorsel img { transform: scale(1.08); }

.blog-tarih {
    position: absolute; top: 1rem; left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem; border-radius: 0.8rem;
    font-size: 0.75rem; font-weight: 700; color: var(--text-dark);
}

.blog-icerik {
    padding: 2rem 1.5rem;
    display: flex; flex-direction: column; flex-grow: 1;
}

.blog-icerik h3 {
    font-size: 1.4rem; font-weight: 800; line-height: 1.3;
    margin-bottom: 1rem; letter-spacing: -0.5px;
}

.blog-icerik h3 a {
    color: var(--text-dark); text-decoration: none; transition: color 0.2s;
}

.blog-icerik h3 a:hover { color: var(--primary-color); }

.blog-icerik p {
    color: #64748b; font-size: 1rem; line-height: 1.7;
    margin-bottom: 1.5rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.blog-footer {
    margin-top: auto; padding-top: 1.5rem;
    border-top: 1px dashed #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
}

.yazar-bilgi { display: flex; align-items: center; gap: 0.8rem; font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }
.yazar-avatar {
    width: 32px; height: 32px; background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: var(--text-dark); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}

.blog-oku-link {
    color: var(--primary-color); font-weight: 700; font-size: 0.9rem;
    text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
    transition: transform 0.2s;
}
.blog-oku-link:hover { transform: translateX(5px); }


/* --- 2. BLOG DETAY SAYFASI (PREMIUM TASARIM) --- */

.makale-wrapper {
    padding-bottom: 8rem;
    background-color: #fff;
}

/* Makale Header (Başlık Alanı) */
.makale-header {
    text-align: center;
    max-width: 850px;
    margin: 4rem auto 3rem;
    padding: 0 1.5rem;
}

.makale-meta {
    display: inline-flex; flex-wrap: wrap; justify-content: center;
    gap: 1.5rem; color: #64748b; font-size: 0.95rem; font-weight: 500;
    margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px;
}
.makale-meta i { color: var(--primary-color); margin-right: 0.5rem; }

.makale-baslik {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
}

/* Ana Görsel (Sinematik) */
.makale-gorsel-container {
    width: 100%;
    max-width: 1100px; /* İçerikten daha geniş */
    margin: 0 auto 5rem;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.2);
    position: relative;
}

.makale-gorsel-container img {
    width: 100%; height: auto; display: block;
}

/* --- İÇERİK ALANI (TİPOGRAFİ ODAKLI) --- */
.makale-icerik {
    max-width: 700px; /* İdeal okuma genişliği */
    margin: 0 auto;
    font-size: 1.25rem; /* 20px - Büyük ve Okunaklı */
    line-height: 1.8;
    color: #334155;
    font-family: 'Georgia', 'Cambria', serif; /* Makale hissi için serif (veya site fontu kalabilir) */
    font-family: var(--font-main); /* Site fontunu korumak isterseniz bunu açın */
}

/* Paragraflar */
.makale-icerik p {
    margin-bottom: 2rem;
}

/* İç Başlıklar */
.makale-icerik h2 {
    font-size: 2.2rem; font-weight: 800; color: #0f172a;
    margin-top: 4rem; margin-bottom: 1.5rem;
    letter-spacing: -0.5px; position: relative;
}

.makale-icerik h3 {
    font-size: 1.6rem; font-weight: 700; color: #1e293b;
    margin-top: 3rem; margin-bottom: 1rem;
}

/* Listeler */
.makale-icerik ul, .makale-icerik ol {
    margin-bottom: 2.5rem; padding-left: 1.5rem;
}
.makale-icerik li {
    margin-bottom: 1rem; padding-left: 0.5rem;
    position: relative;
}
/* Özel Bullet Points */
.makale-icerik ul li::marker { color: var(--primary-color); font-size: 1.2em; }

/* Alıntılar (Blockquote) */
.makale-icerik blockquote {
    border: none; /* Standart çizgiyi kaldır */
    position: relative;
    padding: 2rem 3rem;
    margin: 3rem 0;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 1.5rem;
    font-style: italic;
    font-size: 1.4rem;
    color: #475569;
    text-align: center;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,1);
}

.makale-icerik blockquote::before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: -2rem; left: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: serif;
}

/* --- KOD BLOKLARI (Yazılım Blogu İçin Kritik) --- */
.makale-icerik pre {
    background: #1e293b; /* Koyu tema */
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 1rem;
    overflow-x: auto;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    margin: 2rem 0;
    border: 1px solid #334155;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
}

.makale-icerik code {
    font-family: 'Fira Code', monospace;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-dark);
    padding: 0.2rem 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.9em;
}
.makale-icerik pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Görseller (İçerik İçi) */
.makale-icerik img {
    max-width: 100%; height: auto;
    border-radius: 1rem; margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* --- YAZAR KUTUSU (Minimalist & Modern) --- */
.yazar-kutusu {
    max-width: 800px;
    margin: 6rem auto 0;
    padding: 3rem;
    background: #fff;
    border-radius: 2rem;
    display: flex; align-items: center; gap: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
}

.yazar-img {
    width: 100px; height: 100px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white; font-size: 2.5rem; font-weight: 700;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.yazar-bilgi-detay h4 {
    font-size: 1.4rem; color: #0f172a; margin-bottom: 0.8rem;
}
.yazar-bilgi-detay p {
    font-size: 1rem; color: #64748b; line-height: 1.6; margin: 0;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .blog-hero { padding-top: 6rem; }
    .blog-grid { grid-template-columns: 1fr; padding: 0 1rem; }
    
    .makale-baslik { font-size: 2.2rem; }
    .makale-gorsel-container { border-radius: 1rem; }
    .makale-icerik { font-size: 1.1rem; padding: 0 1rem; }
    
    .yazar-kutusu { flex-direction: column; text-align: center; padding: 2rem; }
}
.makale-wrapper {
    padding-top: 50px !important;
}
/* =========================================
   BLOG DETAY: SIDEBAR DÜZENİ
   ========================================= */

/* Izgara Yapısı (Sol: İçerik, Sağ: Sidebar) */
.blog-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr; /* Sol geniş, sağ dar */
    gap: 4rem;
    padding-bottom: 6rem;
    align-items: start; /* Yukarı hizala */
}

/* Sol Taraf İyileştirmesi */
.makale-ana-bolum {
    min-width: 0; /* Grid taşmasını önler */
}

/* Makale İçeriği (Sidebar geldiği için genişliği fulledik) */
.makale-icerik {
    max-width: 100%; 
    font-size: 1.15rem;
}

/* --- SIDEBAR TASARIMI --- */
.blog-sidebar {
    position: relative;
    margin-top: 2rem;
}

/* Sticky Özelliği: Kaydırdıkça takip eder */
.sidebar-sticky {
    position: sticky;
    top: 120px; /* Header'ın altında duracağı mesafe */
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-baslik {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

/* Sidebar Liste ve Kartlar */
.sidebar-liste {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-kart {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    align-items: center;
    group: hover;
    transition: transform 0.2s;
}

.sidebar-kart:hover {
    transform: translateX(5px);
}

.sidebar-gorsel {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 0.8rem;
    overflow: hidden;
}

.sidebar-gorsel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.sidebar-bilgi {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-bilgi h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.sidebar-kart:hover h5 {
    color: var(--primary-color);
}

.sidebar-bilgi .tarih {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Sidebar CTA Kutusu */
.sidebar-cta {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid #cbd5e1;
}

.sidebar-cta h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.sidebar-cta p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
        gap: 3rem;
    }

    .blog-sidebar {
        margin-top: 0;
        border-top: 1px solid #e2e8f0;
        padding-top: 3rem;
    }
    
    .sidebar-sticky {
        position: static; /* Mobilde sticky özelliğini kapat */
    }
}