/* Ana Değişkenler */
:root { 
    --p: #004aad; 
    --d: #002d6a; 
    --bg: #f4f7fa; 
    --txt: #334155; 
}

/* Genel Sıfırlama */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg); 
    color: var(--txt); 
    line-height: 1.6; 
    overflow-x: hidden; /* Yatay kaymayı engeller */
}

/* Konteyner Yapısı */
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 15px; 
    width: 100%; 
}

/* Header ve Navigasyon */
header { 
    background: var(--d); 
    padding: 15px 0; 
    color: white; 
}

.flex-h { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    font-size: 24px; 
    font-weight: 800; 
    color: white; 
    text-decoration: none; 
}

.logo span { color: #5799ff; }

nav { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

nav a { 
    color: white; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 14px; 
}

.btn-acc { 
    background: var(--p); 
    padding: 8px 20px; 
    border-radius: 50px; 
}

/* Ana İçerik ve Sidebar Düzeni */
.wrapper { 
    display: flex; 
    gap: 30px; 
    margin-top: 30px; 
}

.content { 
    flex: 3; 
    min-width: 0; 
}

.sidebar { 
    flex: 1; 
    min-width: 280px; 
}

/* Blog Kartları Grid Yapısı */
.grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
}

.box { 
    background: white; 
    padding: 20px; 
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
    margin-bottom: 20px; 
}

.card { 
    background: white; 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid #e2e8f0; 
    text-decoration: none; 
    color: inherit; 
    display: flex; 
    flex-direction: column; 
}

.card-img { 
    height: 180px; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
}

.card-placeholder { 
    height: 180px; 
    background: var(--d); 
    color: white; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 40px; 
    font-weight: 800; 
}

.tag { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    background: var(--p); 
    color: white; 
    padding: 3px 10px; 
    border-radius: 4px; 
    font-size: 10px; 
    font-weight: bold; 
}

.card-body { 
    padding: 15px; 
    flex-grow: 1; 
}

.card-body h3 { 
    font-size: 16px; 
    margin-bottom: 8px; 
}

.card-body p { 
    font-size: 13px; 
    color: #64748b; 
    margin-bottom: 10px; 
}

.btn-read { 
    display: block; 
    text-align: center; 
    border: 1.5px solid var(--p); 
    color: var(--p); 
    padding: 8px; 
    border-radius: 6px; 
    font-weight: bold; 
}

/* Sidebar Linkleri */
.side-links { list-style: none; }
.side-links a { 
    text-decoration: none; 
    color: #475569; 
    display: block; 
    padding: 10px 0; 
    border-bottom: 1px solid #f1f5f9; 
}

.ad-area { 
    min-height: 250px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #f8fafc; 
    border: 2px dashed #cbd5e1; 
    color: #94a3b8; 
}

/* Footer */
footer { 
    background: #001529; 
    color: white; 
    padding: 40px 0; 
    margin-top: 50px; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}

.f-col a { 
    color: #94a3b8; 
    text-decoration: none; 
    display: block; 
    margin-bottom: 8px; 
}

/* ======================================================
   MOBİL VE TABLET DÜZELTMELERİ (RESPONSIVE)
   ====================================================== */

@media (max-width: 850px) {
    .wrapper { 
        flex-direction: column !important; 
    }

    .sidebar { 
        min-width: 100% !important; 
        order: 2; /* Kategoriler alta iner */
    }

    .content { 
        width: 100% !important; 
        order: 1; /* Makaleler üste çıkar */
    }

    .grid { 
        grid-template-columns: 1fr !important; /* Kartlar tek sütun */
    }

    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
}

@media (max-width: 500px) {
    header .flex-h { 
        flex-direction: column; 
        gap: 15px; 
    }

    nav { 
        flex-wrap: wrap; 
        justify-content: center; 
    }

    .logo { font-size: 20px; }
}