/*
Theme Name: kuzaten
Theme URI: https://kuzaten.com.tr
Author: kuzaten
Description: Basit, mobil uyumlu, SEO dostu tema.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: kuzaten
*/

/* === Genel === */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* === Header === */
.site-header {
    background: #333;
    color: white;
    padding: 15px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-slogan {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header .logo img {
    width: 200px !important;
    height: 50px !important;
    object-fit: contain;
    display: block;
}

.site-header .logo a {
    font-size: 1.4em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.slogan {
    font-size: 0.95em;
    opacity: 0.9;
}

.main-menu ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu a {
    color: white;
    text-decoration: none;
}

/* === Ana İçerik Layout (Sticky Reklam Düzenlemesi) === */
.layout-with-ads {
    display: flex;
    align-items: flex-start; /* Sticky özelliğinin çalışması için ŞART */
    gap: 20px;
    margin-top: 20px;
}

.ad-column {
    width: 160px;
    flex-shrink: 0;
    position: -webkit-sticky;
    position: sticky;
    top: 20px; /* Sayfa inerken tepeden bırakılacak boşluk */
    z-index: 10;
}

.ad-placeholder {
    background: #fff;
    border: 1px dashed #ccc;
    text-align: center;
    padding: 15px 5px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: #999;
}

.main-content {
    flex: 1;
    min-width: 0; /* İçeriğin taşmasını önler */
}

/* === Post Item (Yazı Listesi) === */
.post-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.post-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.post-image {
    flex: 0 0 340px;
}

.post-image img {
    width: 100%;
    height: 192px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.post-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.post-text h2 {
    font-size: 1.35em;
    margin: 0 0 10px;
    line-height: 1.35;
}

.post-text h2 a {
    color: #222;
    text-decoration: none;
}

.post-text p {
    color: #555;
    margin: 0;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.post-meta-left {
    display: flex;
    gap: 12px;
    font-size: 0.87em;
    color: #777;
}

.btn-read-more {
    display: inline-block;
    background: #0073aa;
    color: white !important;
    padding: 6px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.92em;
    transition: background 0.2s;
}

.btn-read-more:hover {
    background: #005a87;
}

/* === Footer === */
.site-footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* === İletişim Sayfası === */
.contact-form-wrapper {
    margin-top: 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.contact-success { background: #d4edda; color: #155724; padding: 10px; border-radius: 6px; margin-bottom: 15px; }
.contact-error { background: #f8d7da; color: #721c24; padding: 10px; border-radius: 6px; margin-bottom: 15px; }

/* === Mobil Uyumluluk === */
@media (max-width: 1100px) {
    /* Reklamlar için yeterli alan kalmadığında onları gizleyebiliriz */
    .ad-column {
        display: none;
    }
}

@media (max-width: 768px) {
    .layout-with-ads {
        flex-direction: column;
    }

    .post-row {
        flex-direction: column;
    }

    .post-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .post-image img {
        height: auto;
        max-height: 250px;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .read-more-button {
        align-self: flex-end;
    }

    .site-header .container {
        flex-direction: column;
    }
}

/* === ANA SAYFA DÜZELTMELERİ (EK GÜVENLİK) === */
.read-more-button {
    margin-top: 8px;
}