/* ================================================== */
/* HABERLER ÖZEL STİLLERİ (haberler.css)              */
/* ================================================== */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    font-family: 'Inter', sans-serif;
}

/* 1. SAYFA BAŞLIĞI (Index.cshtml) */
.page-header {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-color: var(--bg-light); /* Arka plan güncellendi */
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
    text-align: center; /* Ortalandı */
}

.page-title {
    font-size: calc(1.375rem + 1.5vw);
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}
@media (min-width: 1200px) {
    .page-title { font-size: 2.5rem; }
}

.page-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* 2. BREADCRUMB (Details.cshtml) */
.breadcrumb-bar {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.breadcrumb-item {
    padding-left: 0.5rem;
}
.breadcrumb-item.active {
    color: var(--primary-color);
}
.breadcrumb-item a {
    text-decoration: none;
    color: var(--text-muted);
}
.breadcrumb-item a:hover {
    color: var(--primary-color);
}

/* 3. İÇERİK BÖLÜMÜ (Her iki sayfada) */
.content-section {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* 4. HABER LİSTESİ (Index.cshtml) */
.news-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.news-list-item {
    width: 100%;
}
@media (min-width: 768px) {
    .news-list-item {
        width: calc((100% - 1rem) / 2);
    }
}
@media (min-width: 992px) {
    .news-list-item {
        width: 100%;
    }
}

.news-card {
    background-color: var(--bg-white);
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.news-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}
@media (min-width: 992px) {
    .news-card {
        flex-direction: row;
    }
    .news-card-image {
        width: 320px;
        height: auto;
        object-fit: cover;
        border-radius: 0.375rem 0 0 0.375rem;
    }
    .news-card-body {
        flex: 1;
    }
}
.news-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 0.375rem 0.375rem 0 0;
}
.news-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-card-date {
    color: var(--text-muted);
    font-size: 0.875em;
    margin-bottom: 0.5rem;
}
.news-card-date i {
    margin-right: 0.25rem;
}
.news-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}
.news-card-excerpt {
    color: #495057;
    margin-bottom: 1rem;
    flex-grow: 1; 
}
.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-card-link {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 50rem;
    transition: all 0.2s;
    margin-top: 0.5rem;
    align-self: flex-start;
}
.news-card-link i {
    font-size: 0.75em;
    margin-left: 0.25rem;
}
.news-card-link:hover {
    color: var(--bg-white);
    background-color: var(--primary-color);
}
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}
.no-content-message {
    background-color: #cff4fc;
    border: 1px solid #b6effb;
    color: #055160;
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    border-radius: 0.375rem;
}
.no-content-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.no-content-heading i {
    margin-right: 0.5rem;
}

/* 5. HABER DETAY (Details.cshtml - DÜZELTİLDİ) */
/* .detail-content-wrapper kaldırıldı, Bootstrap .row kullanılacak */

.detail-content {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
@media (min-width: 992px) {
    .detail-content {
        padding: 3rem; 
    }
}
.detail-title {
    font-size: calc(1.375rem + 1.5vw);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
@media (min-width: 1200px) {
    .detail-title { font-size: 2.5rem; }
}
.detail-meta {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}
.detail-meta-item {
    font-weight: 500;
    font-size: 0.9rem;
}
.detail-meta-item i {
    margin-right: 0.25rem;
}
.detail-image {
    margin-bottom: 1.5rem;
    width: 100%;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.detail-text {
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.8;
}
.detail-text p { margin-bottom: 1.5rem; }
.detail-text h2, .detail-text h3, .detail-text h4 { font-weight: 600; margin-top: 2rem; margin-bottom: 1rem; }
.detail-text ul, .detail-text ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.detail-text li { margin-bottom: 0.5rem; }

.detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.share-links {
    display: flex;
    align-items: center;
}
.share-label {
    display: none;
    color: var(--text-muted);
    font-weight: 700;
    margin-right: 1rem;
}
@media (min-width: 576px) {
    .share-label {
        display: inline;
    }
}
.share-button {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    text-decoration: none;
    margin-right: 0.25rem;
    transition: all 0.2s;
}
.share-button:hover {
    color: var(--bg-white);
    background-color: var(--secondary-color);
}
.back-button {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-white);
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 50rem;
    text-decoration: none;
    transition: all 0.2s;
}
.back-button i {
    margin-right: 0.5rem;
    font-size: 0.8em;
}
.back-button:hover {
    opacity: 0.9;
}


/* === 6. YENİ KENAR ÇUBUĞU (SIDEBAR) STİLLERİ === */
.sidebar-widget {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
}
.sidebar-widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-post-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
/* anasayfa.css'deki .news-card-small stilini taklit eder */
.sidebar-post-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    background-color: var(--bg-white);
    border-radius: 0.3rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}
.sidebar-post-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.sidebar-post-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 0.3rem 0 0 0.3rem;
}
.sidebar-post-body {
    padding: 0.75rem 1rem;
}
.sidebar-post-body .sidebar-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0.25rem;
}
.sidebar-post-body .sidebar-post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}