/* --- YONCA EDEBİYAT - YAZILAR SAYFASI STİLLERİ --- */

:root {
    --yonca-yesili: #1b4d2e;
    --koyu-yesil: #0a2515;
    --krem: #fdfcf8;
    --kart-arkaplan: #f9f9f6; /* Beyaz üstüne beyazı önlemek için */
    --cerceve-rengi: #e0e0d5;
}

/* --- BANNER (HERO) TASARIMI --- */
/* --- YAZILAR SAYFASI - PINTEREST TEMALI BANNER --- */
.yazilar-hero {
    height: 480px; /* Fotoğrafın o harika atmosferi iyice görünsün */
    /* ÖNEMLİ: Görselin üzerine, soldan sağa açılan koyu yeşil bir pus (overlay) bindirdim*/
    background: linear-gradient(135deg, rgba(10, 37, 21, 0.95) 0%, rgba(27, 77, 46, 0.7) 100%), 
                url('../fotograflar/yazilar-banner.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Sayfayı kaydırırken resim arkada yavaş aksın (Parallaks efekti) */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    color: white;
    z-index: 2;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

.hero-content h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    margin: 20px 0;
    font-weight: 700;
}

.hero-content p {
    font-size: 1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* --- YAZI LİSTESİ KONTEYNIR --- */
.yazilar-container {
    padding: 80px 20px; /* Mobilde kenara yapışmayı engeller */
    max-width: 1100px;
    margin: 0 auto;
}

.yazilar-liste {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- OVAL YAZI KARTLARI --- */
.yazi-row {
    display: flex;
    background: var(--kart-arkaplan);
    text-decoration: none;
    color: inherit;
    border-radius: 35px; /* Oval yapı */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--cerceve-rengi);
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

.yazi-row:hover {
    background: white;
    transform: translateY(-8px);
    border-color: var(--yonca-yesili);
    box-shadow: 0 20px 40px rgba(27, 77, 46, 0.12);
}

/* Kart Resim Alanı */
.yazi-resim {
    width: 35%;
    min-height: 280px;
    overflow: hidden;
}

.yazi-resim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.yazi-row:hover .yazi-resim img {
    transform: scale(1.08);
}

/* Kart Detay Alanı */
.yazi-detay {
    width: 65%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.yazi-kategori {
    color: var(--yonca-yesili);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.yazi-detay h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #222;
}

.yazi-detay p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
}

.yazi-alt-bilgi {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 850px) {
    .yazi-row {
        flex-direction: column; /* Resim üste, yazı alta */
        border-radius: 25px;
    }

    .yazi-resim {
        width: 100%;
        height: 220px;
        min-height: auto;
    }

    .yazi-detay {
        width: 100%;
        padding: 30px;
    }

    .yazilar-hero {
        height: 320px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}

/* Gece Modu Ayarı (body.dark-mode varsa) */
body.dark-mode .yazi-row {
    background: #1e1e1e;
    border-color: #333;
}

body.dark-mode .yazi-detay h2 {
    color: #eee;
}

body.dark-mode .yazi-detay p {
    color: #bbb;
}

body.dark-mode .yazi-row:hover {
    background: #252525;
    border-color: var(--yonca-yesili);
}

