/*
Theme Name: Medium Minimalist
Author: Senin Adın
Description: Medium tarzı, okuma odaklı, şık ve responsive tema.
Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

:root {
    --bg-color: #ffffff;
    --text-main: #242424; /* Medium siyahı */
    --text-meta: #6b6b6b;
    --accent-color: #1a8917; /* Medium yeşili */
    --border-color: #f2f2f2;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Source Serif 4', serif;
    --card-gap: 40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 19px; /* İdeal okuma boyutu */
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #111;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 15px;
    letter-spacing: -0.02em; /* Modern sıkı harf aralığı */
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
a:hover { color: var(--accent-color); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER */
header.site-header {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    z-index: 1000;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.site-title { font-family: var(--font-heading); font-weight: 800; font-size: 26px; letter-spacing: -1px; color: #000; }
.main-nav ul { list-style: none; display: flex; gap: 25px; }
.main-nav a { font-family: var(--font-heading); font-size: 15px; color: var(--text-meta); font-weight: 500; }
.main-nav a:hover { color: #000; }

/* ANASAYFA GRID */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px; /* Dikey boşluk 48, yatay 32 */
    margin: 60px 0;
}

.post-card { display: flex; flex-direction: column; height: 100%; }

.post-thumbnail-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 6px; /* Hafif yuvarlatılmış köşeler */
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    position: relative;
}

.post-thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail-wrap img { transform: scale(1.03); }

.post-card h2 { font-size: 22px; margin-bottom: 10px; }
.post-card h2 a { color: #111; }
.post-excerpt { font-size: 16px; color: var(--text-meta); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 15px; line-height: 1.5; font-family: var(--font-body); }
.post-meta { font-family: var(--font-heading); font-size: 13px; font-weight: 500; color: #757575; text-transform: uppercase; letter-spacing: 0.5px; margin-top: auto; }

/* SINGLE (TEKİL YAZI) */
.single-header { text-align: center; max-width: 840px; margin: 60px auto 40px; }
.single-title { font-size: 46px; line-height: 1.15; margin-bottom: 15px; color: #111; }
.single-meta-top { font-family: var(--font-heading); color: var(--text-meta); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }

.single-featured-image { margin-bottom: 50px; }
.single-featured-image img { width: 100%; height: auto; border-radius: 6px; }

.entry-content { max-width: 720px; margin: 0 auto; font-size: 20px; color: #292929; }
.entry-content p { margin-bottom: 32px; }
.entry-content h2, .entry-content h3 { margin-top: 50px; margin-bottom: 20px; }
.entry-content blockquote { border-left: 3px solid #000; padding-left: 20px; font-style: italic; color: #444; margin: 40px 0; }

/* YAZAR KUTUSU & ALT KISIM */
.entry-footer-area { max-width: 720px; margin: 80px auto; }
.tag-cloud { margin-bottom: 40px; }
.tag-cloud a { background: #f2f2f2; padding: 6px 14px; border-radius: 20px; font-size: 14px; margin-right: 8px; font-family: var(--font-heading); color: #555; }
.tag-cloud a:hover { background: #e5e5e5; }

.author-box {
    display: flex;
    align-items: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 40px;
}
.author-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-details { margin-left: 25px; }
.author-name { font-size: 20px; margin: 0 0 5px; }
.author-desc { font-size: 15px; color: #555; margin: 0; line-height: 1.5; }

/* FOOTER */
.site-footer { background: #fcfcfc; border-top: 1px solid #eee; padding-top: 70px; margin-top: 80px; }
.footer-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-bottom: 70px; }
.footer-title { font-size: 16px; border-bottom: 1px solid #ddd; padding-bottom: 15px; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }

.footer-post-list { list-style: none; }
.footer-post-list li { margin-bottom: 18px; border-bottom: 1px solid rgba(0,0,0,0.03); padding-bottom: 18px; }
.footer-post-list li:last-child { border: none; }
.footer-post-list a { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-heading); font-weight: 500; font-size: 15px; color: #333; }
.footer-post-list span.count { color: #ccc; font-weight: 800; font-style: italic; margin-right: 15px; font-family: var(--font-body); }
.footer-meta-date { font-size: 12px; color: #999; margin-left: 10px; white-space: nowrap; }

.site-info { text-align: center; padding: 30px 0; border-top: 1px solid #eee; color: #999; font-size: 13px; font-family: var(--font-heading); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .posts-grid { grid-template-columns: 1fr; gap: 50px; }
    .single-title { font-size: 32px; }
    .footer-widgets { grid-template-columns: 1fr; gap: 40px; }
    
    /* Mobil için daha şık listeleme */
    .post-card h2 { font-size: 24px; }
    .post-thumbnail-wrap { aspect-ratio: 16/9; }
    .author-box { flex-direction: column; text-align: center; }
    .author-details { margin-left: 0; margin-top: 15px; }
}
/* --- MOBİL OKUNABİLİRLİK DÜZELTMESİ --- */

/* 1. Tekil Yazı İçeriği için Kenar Boşlukları */
.entry-content {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* 2. Mobil Cihazlar İçin Özel Ayarlar (768px altı) */
@media (max-width: 768px) {
    
    /* Genel kapsayıcıların kenarlarını aç */
    .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    /* Başlık ve üst bilgi kısmını da hizala */
    .single-header {
        padding-left: 24px;
        padding-right: 24px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Yazar kutusu ve etiketlerin olduğu alt kısım */
    .entry-footer-area {
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;
    }

    /* Eğer resimler ekrana sıfır yapışık kalsın ama yazılar içeride olsun istersen 
       bu kısmı kullanma. Ama resimlerin de kenarlardan boşluğu olsun dersen: */
    .single-featured-image {
        padding-left: 24px;
        padding-right: 24px;
    }
}