﻿/* ==========================================
   news.css — Haberler / HaberSayfalama / HaberDetay
   ========================================== */

/* ── HERO ── */
.hero-news {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    background: url('/images/haberler.webp') no-repeat center center;
    background-size: cover;
    color: white;
    overflow: hidden;
}

.hero-news::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-news-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 92rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.news-breadcrumb a {
    color: white;
    text-decoration: none;
}

.news-breadcrumb span {
    color: #F5891E;
}

.hero-news-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-news-desc {
    font-size: 1.1rem;
    max-width: 750px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ── NEWS LİSTESİ (HaberSayfalama) ── */
.news-page-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.news-page-container {
    max-width: 92rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.news-main-layout {
    display: block;
}

.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

@media (min-width: 1200px) {
    .news-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .news-cards-grid {
        grid-template-columns: 1fr;
    }
}

.premium-news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.premium-news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.premium-news-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-date-label {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #F5891E;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 2;
}

.card-content-wrapper {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.premium-news-card:hover .card-news-title {
    color: #F5891E;
}

.card-news-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-news-link {
    margin-top: auto;
    color: #F5891E;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.card-news-link:hover {
    gap: 12px;
}

/* ── SIDEBAR ── */
.sidebar-widgets-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-widget {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.news-widget-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F5891E;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── PAGİNATION ── */
.modern-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.modern-pagination .pagination {
    gap: 10px;
    border: none;
}

.modern-pagination .page-item {
    border: none;
}

.modern-pagination .page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    border: 1px solid #eee;
    color: #555;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modern-pagination .page-item.active .page-link,
.modern-pagination .page-link:hover {
    background-color: #F5891E !important;
    border-color: #F5891E !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(245, 137, 30, 0.3);
}

/* ── SEO AÇIKLAMA KUTUSU ── */
.seo-description-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.aciklama-metin {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* ── HABER DETAY (HaberDetay) ── */
.hero-detail {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero-detail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-detail-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 92rem;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-breadcrumb a {
    color: white;
    text-decoration: none;
}

.detail-breadcrumb span {
    color: #F5891E;
}

.hero-detail-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 1rem;
    opacity: 0.9;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: #F5891E;
}

.article-section {
    padding: 80px 0;
    background-color: #fff;
}

.article-container {
    max-width: 70%;
    margin: 0 auto;
    padding: 0 2rem;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
}

.article-body h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #1a1a1a;
}

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

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ── DETAY SIDEBAR / İLGİLİ HABERLER ── */
.related-news-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.related-news-container {
    max-width: 92rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.related-news-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #1a1a1a;
}

/* ── HABERLER (Haberler.cshtml) ── */
.news-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.news-container {
    max-width: 92rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.news-grid-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

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

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.vektorel-news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.vektorel-news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.news-card-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

.vektorel-news-card:hover .news-card-img img {
    transform: scale(1.1);
}

.news-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #F5891E;
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
}

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

.news-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.vektorel-news-card:hover .news-card-title {
    color: #F5891E;
}

.news-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-btn {
    color: #F5891E;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    gap: 12px;
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F5891E;
    display: inline-block;
}

.sidebar-form input,
.sidebar-form select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
}

.sidebar-form button {
    width: 100%;
    padding: 15px;
    background: #F5891E;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-form button:hover {
    background: #e07b1a;
    transform: translateY(-2px);
}

/* ── HABER DETAY EK STİLLER ── */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

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

.article-body p {
    text-align: justify;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.detail-widget {
    background: #f8f9fa;
    border-radius: 24px;
    padding: 35px;
    border: 1px solid #eee;
}

.widget-head {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.widget-head::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #F5891E;
}

.mini-article-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mini-article-card {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.mini-article-card:hover {
    transform: translateX(10px);
}

.mini-img {
    width: 100px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 5px;
    line-height: 1.3;
    color: #1a1a1a;
    transition: color 0.3s;
}

.mini-article-card:hover .mini-info h4 {
    color: #F5891E;
}

.mini-info span {
    font-size: 0.8rem;
    color: #888;
}

.all-news-link {
    display: inline-block;
    margin-top: 20px;
    color: #F5891E;
    font-weight: 700;
    text-decoration: none;
}

.all-news-link:hover {
    text-decoration: underline;
}