@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Rajdhani:wght@600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

:root {
    --header-bg: #111827;
    --bg-body: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --accent: #111827;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

/* =========================================
   HEADER & NAV 
========================================= */
.site-header {
    background-color: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

    .site-logo span {
        color: #6b7280;
    }

.site-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    transition: 0.3s;
}

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: #fff;
        transition: width 0.3s ease;
    }

    .nav-link:hover {
        color: #fff;
    }

        .nav-link:hover::after {
            width: 100%;
        }

/* --- Panele Dön Butonu Düzeltmesi (Mor Rengi Siler) --- */
.btn-panel {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

    .btn-panel:hover {
        color: #fff;
    }


/* =========================================
   ANA YERLEŞİM VE KATEGORİ MENÜSÜ
========================================= */
.main-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* --- SİDEBAR DÜZENLEME --- */
.sidebar-box {
    /* Buradaki border-top: 2px solid #000; satırını sildik */
    padding: 0; /* Boşlukları sıfırladık */
    margin-bottom: 30px;
}

.sidebar-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Tek ve şık bir çizgi için sadece başlığın üzerine ekliyoruz */
    border-top: 3px solid #111827;
    padding-top: 15px;
    display: block;
    color: #111827;
}

/* --- SİDEBAR LİNK DÜZENLEME --- */
.cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 15px; /* İç boşluğu artırdık */
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-bottom: 5px;
}

    /* Üzerine gelince (Hover) durumu */
    .cat-link:hover {
        background-color: #111827 !important; /* Koyu Arka Plan */
        color: #ffffff !important; /* BEYAZ YAZI - Sorunu çözen satır */
        padding-left: 20px; /* Hafif kayma efekti */
    }

        /* Kategori sayılarının (span) hover rengi */
        .cat-link:hover span {
            color: #9ca3af; /* Sayılar hoverda hafif gri kalsın ki şık dursun */
        }


/* =========================================
   PROFESYONEL GÖNDERİ KARTLARI
========================================= */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

    .post-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.06);
        border-color: #000;
    }

.post-img-wrapper {
    overflow: hidden;
    height: 200px;
}

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

.post-card:hover .post-img {
    transform: scale(1.08);
}

.post-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #000;
    text-decoration: none;
    margin-bottom: 15px;
    line-height: 1.4;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    content: "";
    z-index: 1;
}

.post-summary {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .read-more::after {
        content: '→';
        transition: transform 0.3s ease;
    }

.post-card:hover .read-more::after {
    transform: translateX(5px);
}


/* =========================================
   PROFESYONEL SAYFALAMA (ORTALI)
========================================= */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    gap: 15px;
    border-top: 1px solid #f3f4f6;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 20px;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: 0.3s;
    letter-spacing: 1px;
}

    .page-btn:hover {
        background: #000;
        color: #fff;
    }

.page-info {
    font-family: 'Rajdhani';
    font-weight: 700;
    font-size: 1.2rem;
    color: #111827;
    padding: 0 20px;
}


/* =========================================
   MAKALE OKUMA SAYFASI (READ.CSHTML)
========================================= */
.article-read-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 60px 20px;
}

.article-read-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-read-meta {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.article-read-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #000;
    margin-top: 15px;
    line-height: 1.3;
}

.article-read-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.article-read-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #374151;
    text-align: left;
}

    .article-read-content p {
        margin-bottom: 25px;
    }

    .article-read-content h2,
    .article-read-content h3 {
        color: #000;
        margin-top: 40px;
        margin-bottom: 15px;
        font-weight: 800;
    }

.article-read-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.back-to-home {
    font-weight: 800;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.2s;
}

    .back-to-home:hover {
        color: var(--text-muted);
    }

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

@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   LOGO TASARIMI (Tam Beyaz & .com Küçük)
========================================= */
.site-logo, .footer-logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff; /* Ana metin beyaz */
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: baseline;
}

    .site-logo small, .footer-logo small {
        font-size: 0.95rem; /* .com kısmı daha küçük */
        color: #ffffff; /* Gri yerine SAF BEYAZ */
        font-weight: 600;
        text-transform: lowercase;
        margin-left: 2px;
        opacity: 0.9; /* Çok hafif bir şeffaflık, tamamen beyaz kalarak derinlik katar */
    }

/* =========================================
   KLASİK SİTE FOOTER TASARIMI
========================================= */
.site-footer {
    background-color: #111827; /* Header ile aynı koyu ton */
    color: #9ca3af;
    padding: 60px 0 20px 0;
    margin-top: 80px;
    border-top: 1px solid #1f2937;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Bölüm genişlikleri */
    gap: 40px;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

    .footer-section ul li {
        margin-bottom: 10px;
    }

        .footer-section ul li a {
            color: #9ca3af;
            text-decoration: none;
            font-size: 0.9rem;
            transition: 0.3s;
        }

            .footer-section ul li a:hover {
                color: #fff;
                padding-left: 5px;
            }

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #1f2937;
    font-size: 0.8rem;
    color: #4b5563;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section ul li a:hover {
        padding-left: 0;
    }
}