/**
 * Haberler Modülü Stilleri
 * Üst: Haber Manşetleri (ana sayfa gibi), Alt: Diğer Haberler grid
 */

#mainContent:has(.haberler-page) {
    min-height: auto;
}

.haberler-page {
    padding-top: 130px;
    min-height: 0;
    background: linear-gradient(180deg, #f8f9ff 0%, #fff 12%, #fafbff 100%);
}

.haberler-container {
    max-width: 1600px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

/* Sayfa başlığı */
.haberler-header {
    text-align: center;
    margin-bottom: 3rem;
}

.haberler-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fecb15, #e6b500);
    color: #1a237e;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.haberler-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1a237e;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    background: linear-gradient(120deg, #1a237e, #3949ab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.haberler-subtitle {
    font-size: 1.1rem;
    color: #5c6bc0;
    margin: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Bölüm başlıkları */
.haber-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.5rem 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a237e;
}

.haber-section-title i {
    color: #fecb15;
    font-size: 1.2rem;
}

/* Haber Manşetleri bölümü (anasayfa news-section ile uyumlu) */
.haber-manset-section {
    margin-bottom: 4rem;
}

.haber-manset-section .news-showcase {
    gap: 1.5rem;
}

.haber-manset-section .news-main-display {
    min-height: 420px;
    border-radius: 20px;
}

/* Diğer Haberler - grid */
.haber-list-section {
    margin-bottom: 3rem;
}

.haber-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.haber-list-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(26, 35, 126, 0.08);
    border: 1px solid rgba(26, 35, 126, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}

.haber-list-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(26, 35, 126, 0.15);
    border-color: rgba(254, 203, 21, 0.4);
}

.haber-list-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8eaf6;
}

.haber-list-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.haber-list-card:hover .haber-list-card-image img {
    transform: scale(1.06);
}

.haber-list-card-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: rgba(26, 35, 126, 0.85);
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
}

.haber-list-card-date i {
    font-size: 0.75rem;
}

.haber-list-card-content {
    padding: 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.haber-list-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a237e;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.haber-list-card-excerpt {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.haber-list-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a237e;
    margin-top: 0.25rem;
    transition: gap 0.25s ease, color 0.25s ease;
}

.haber-list-card:hover .haber-list-card-link {
    color: #fecb15;
    gap: 0.75rem;
}

.haber-list-card-link i {
    font-size: 0.8rem;
    transition: transform 0.25s ease;
}

.haber-list-card:hover .haber-list-card-link i {
    transform: translateX(4px);
}

/* Boş / bilgi mesajları */
.haberler-no-data,
.haberler-no-more {
    text-align: center;
    color: #6b7280;
    padding: 2rem;
    font-size: 1rem;
}

/* ===== DETAY SAYFASI ===== */

.haberler-detail-page {
    background: #f4f6fb;
    padding-top: 130px;
    padding-bottom: 60px;
    min-height: 100vh;
}

/* İç sarmalayıcı: geniş ama ortalanmış */
.haber-detail-wrapper {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Breadcrumb */
.haber-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.87rem;
    margin-bottom: 1.5rem;
    padding: 0.7rem 1rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(26, 35, 126, 0.08);
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.05);
}

.haber-breadcrumb a {
    color: #1a237e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.haber-breadcrumb a:hover { color: #fecb15; }

.haber-breadcrumb-sep {
    color: #cbd5e1;
    font-size: 0.65rem;
}

.haber-breadcrumb-current {
    color: #6b7280;
}

/* Makale kartı — tam genişlikte */
.haber-detail {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(26, 35, 126, 0.1);
    border: 1px solid rgba(26, 35, 126, 0.07);
    margin-bottom: 2.5rem;
}

/* Hero görseli */
.haber-detail-image {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    background: #e8eaf6;
    display: block;
}

.haber-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 480px;
}

/* Başlık alanı */
.haber-detail-header {
    padding: 2rem 2.5rem 1.5rem;
}

.haber-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.haber-detail-date,
.haber-detail-views {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1a237e;
    background: rgba(26, 35, 126, 0.07);
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
}

.haber-detail-views {
    color: #5c6bc0;
    background: rgba(92, 107, 192, 0.09);
}

.haber-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.haber-detail-excerpt {
    font-size: 1.08rem;
    color: #5c6bc0;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
    border-left: 4px solid #fecb15;
    padding-left: 1rem;
    background: rgba(254, 203, 21, 0.05);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 0 8px 8px 0;
}

/* İçerik */
.haber-detail-body {
    padding: 1.75rem 2.5rem 2rem;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #374151;
    border-top: 1px solid rgba(26, 35, 126, 0.07);
}

.haber-detail-body p { margin-bottom: 1.25rem; }
.haber-detail-body p:last-child { margin-bottom: 0; }

.haber-detail-body h2,
.haber-detail-body h3 {
    color: #1a237e;
    margin: 1.75rem 0 0.75rem;
    font-weight: 700;
}

.haber-detail-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.25rem 0;
    display: block;
}

.haber-detail-body ul,
.haber-detail-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.haber-detail-body li { margin-bottom: 0.4rem; }

.haber-detail-body a {
    color: #1a237e;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.haber-detail-body a:hover { color: #fecb15; }

/* Footer: geri + paylaş */
.haber-detail-footer {
    padding: 1.25rem 2.5rem 1.75rem;
    border-top: 1px solid rgba(26, 35, 126, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(26, 35, 126, 0.02);
}

.haber-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a237e;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.35rem;
    border-radius: 50px;
    background: rgba(26, 35, 126, 0.09);
    transition: all 0.25s;
    text-decoration: none;
}

.haber-back-link:hover {
    background: #1a237e;
    color: #fff;
}

/* Paylaşım */
.haber-share {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.haber-share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
    margin-right: 0.25rem;
}

.haber-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 0.95rem;
    text-decoration: none;
    color: #fff !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.haber-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.haber-share-twitter  { background: #111; }
.haber-share-facebook { background: #1877f2; }
.haber-share-linkedin { background: #0a66c2; }
.haber-share-whatsapp { background: #25d366; }

/* Diğer Haberler (altta) */
.haber-related {
    margin-bottom: 2.5rem;
}

.haber-related-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a237e;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid #fecb15;
}

.haber-related-title i { color: #fecb15; }

.haber-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.haber-related-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(26, 35, 126, 0.07);
    border: 1px solid rgba(26, 35, 126, 0.06);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.haber-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(26, 35, 126, 0.13);
}

.haber-related-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8eaf6;
}

.haber-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.haber-related-card:hover .haber-related-img img {
    transform: scale(1.07);
}

.haber-related-content {
    padding: 1rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.haber-related-date {
    font-size: 0.78rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.haber-related-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a237e;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.haber-related-card:hover .haber-related-content h3 { color: #fecb15; }

.haber-related-content p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.haber-related-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #3949ab;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
    transition: gap 0.2s;
}

.haber-related-card:hover .haber-related-link { gap: 0.6rem; }

/* Responsive */
@media (max-width: 1200px) {
    .haber-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 900px) {
    .haber-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .haberler-page {
        padding-top: 90px;
    }

    .haberler-container {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .haberler-header {
        margin-bottom: 2rem;
    }

    .haberler-title {
        font-size: 1.75rem;
    }

    .haberler-subtitle {
        font-size: 1rem;
    }

    .haber-section-title {
        font-size: 1.15rem;
        margin-bottom: 1.25rem;
    }

    .haber-manset-section {
        margin-bottom: 3rem;
    }

    .haber-manset-section .news-main-display {
        min-height: 380px;
    }

    .haber-list-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .haber-list-card-content {
        padding: 1.25rem 1.25rem;
    }

    .haber-detail-header,
    .haber-detail-body,
    .haber-detail-footer {
        padding-left: 1.35rem;
        padding-right: 1.35rem;
    }

    .haber-detail-title { font-size: 1.5rem; }

    .haber-detail-image img { max-height: 300px; }

    .haber-detail-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .haber-related-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .haberler-title { font-size: 1.5rem; }

    .haber-section-title {
        flex-wrap: wrap;
        font-size: 1.05rem;
    }

    .haber-detail-wrapper { padding: 0 14px; }

    .haber-detail-header {
        padding: 1.25rem 1.1rem 1rem;
    }

    .haber-detail-body {
        padding: 1.1rem;
        font-size: 1rem;
    }

    .haber-detail-footer {
        padding: 0.9rem 1.1rem 1.25rem;
    }

    .haber-detail-title { font-size: 1.25rem; }

    .haber-detail-image img { max-height: 220px; }

    .haber-breadcrumb { font-size: 0.78rem; }

    .haberler-detail-page { padding-top: 100px; }
}
