/* Google Fonts'tan Poppins fontunu dahil etme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Renk ve Stil Değişkenleri */
:root {
    --primary-color: #0d6efd; /* Ana Renk - Bootstrap Mavisi */
    --dark-color: #212529;      /* Koyu Renk - Yazılar ve Başlıklar */
    --body-color: #495057;      /* Gövde Yazı Rengi */
    --light-color: #f8f9fa;     /* Açık Arkaplan Rengi */
    --border-color: #dee2e6;   /* Kenarlık Rengi */
    --body-font: 'Poppins', sans-serif;
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

/* Genel Sayfa Stilleri */
body {
    font-family: var(--body-font);
    color: var(--body-color);
    background-color: #FFFFFF; /* Arkaplanı tamamen beyaza çeviriyoruz */
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--dark-color);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* === YENİ: Header Stilleri === */
.header-top-bar {
    background-color: var(--light-color);
    padding: 0.4rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #e9ecef;
}
.header-top-bar .nav-link { color: #6c757d; padding: 0.2rem 0.75rem; }
.header-top-bar .nav-link:hover { color: #000; }

.main-header {
    background-color: #fff !important;
    box-shadow: var(--shadow);
    padding: 1rem 0;
}
.main-header .navbar-brand { font-size: 1.5rem; font-weight: 700; }
.main-header .nav-link { color: var(--dark-color); font-weight: 500; }
.main-header .nav-link:hover, .main-header .nav-link.active { color: var(--primary-color); }
.main-header .dropdown-menu { border-radius: var(--border-radius); box-shadow: var(--shadow); border: none; }

/* === YENİ: Footer Stilleri === */
.main-footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px 0;
}
.main-footer .footer-widget h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
}
.main-footer .footer-widget ul {
    list-style: none;
    padding-left: 0;
}
.main-footer .footer-widget ul li a {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    display: inline-block;
}
.main-footer .footer-widget ul li a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* === YENİ: Anasayfa ve Yazı Kartı Stilleri === */

/* Hero (Manşet) Alanı */
.hero-section {
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    color: #fff;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
}
.hero-content .post-category {
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-content .post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 15px 0;
}
.hero-content .post-title a { color: #fff; }
.hero-content .post-meta { font-size: 0.9rem; opacity: 0.9; }

/* Özel Yazı Kartları */
.post-card-custom {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background-color: #fff;
}
.post-card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.post-card-custom .card-img-top {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    height: 220px;
    object-fit: cover;
}
.post-card-custom .card-body { padding: 1.5rem; }
.post-card-custom .card-title { font-size: 1.25rem; font-weight: 600; }
.post-card-custom .card-title a { color: var(--dark-color); }
.post-card-custom .card-title a:hover { color: var(--primary-color); }
.post-card-custom .card-text.meta { font-size: 0.85rem; color: #6c757d; margin-bottom: 1rem; }

/* Sidebar Widget Stilleri */
.widget {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}
.widget .widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}
.widget ul { list-style: none; padding-left: 0; }
.widget ul li { margin-bottom: 10px; }
.widget ul li a { color: var(--body-color); }
.widget .tag-cloud a {
    display: inline-block;
    background-color: #e9ecef;
    padding: 5px 12px;
    margin: 2px;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* === YENİ: Yazı ve Sayfa Detay Stilleri === */
.post-detail-header {
    margin-bottom: 2rem;
}
.post-detail-header .post-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
}
.post-detail-header .post-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 1rem;
}
.post-detail-header .post-meta a {
    color: #6c757d;
    font-weight: 500;
}
.post-detail-header .post-meta a:hover {
    color: var(--primary-color);
}
.featured-image-container {
    margin-bottom: 2rem;
}
.featured-image-container img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.post-content h2, .post-content h3, .post-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}
.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
}
.post-content ul, .post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.post-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}


/* === YENİ: Tekli Manşet (Hero) Stili === */
.main-hero-section {
    position: relative;
    background-size: cover;
    background-position: center center;
    padding: 8rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
}
.main-hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6); /* Siyah gradyanı daha belirgin hale getirdik */
    z-index: 1;
}
.main-hero-section .container {
    position: relative;
    z-index: 2;
}
.main-hero-section .post-category {
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}
.main-hero-section .post-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem); /* Ekran boyutuna göre küçülüp büyüyen yazı boyutu */
    font-weight: 700;
    margin: 15px 0;
    line-height: 1.3;
}
.main-hero-section .post-title a {
    color: #fff; /* DÜZELTME: Link rengi artık beyaz */
    text-decoration: none;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.main-hero-section .post-meta { font-size: 1rem; opacity: 0.9; }
.main-hero-section .post-meta a { color: #fff; font-weight: 500; }
.main-hero-section .post-meta a:hover { text-decoration: underline; }


/* === YENİ: Breadcrumb Stilleri === */
.breadcrumb {
    background-color: var(--light-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}
.breadcrumb-item a {
    color: var(--body-color);
    font-weight: 500;
}
.breadcrumb-item.active {
    color: #6c757d;
}

/* === YENİ: Önceki/Sonraki Yazı Navigasyon Stilleri === */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.post-navigation a {
    display: block;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
}
.post-navigation a:hover {
    color: var(--primary-color);
}
.post-navigation a small {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 400;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === YENİ: İçindekiler Tablosu (ToC) Stilleri === */
.toc-container {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.toc-container .toc-title {
    font-weight: 600;
    margin-bottom: 1rem;
}
.toc-container ul {
    padding-left: 0;
    list-style-type: none;
    margin-bottom: 0;
}
.toc-container ul a {
    color: var(--body-color);
    display: block;
    padding: 5px 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
}
.toc-container ul a:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}
.toc-container ul ul {
    padding-left: 20px; /* İç içe başlıklar için girinti */
}

/* === YENİ: İlgili Yazılar Stilleri === */
.related-posts-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.related-posts-section .post-card-sm {
    border: none;
    background: none;
}
.related-posts-section .post-card-sm img {
    height: 80px;
    width: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}
.related-posts-section .post-card-sm .card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* === YENİ: Sabit Oranlı Öne Çıkan Görsel === */
.featured-image-container-single {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (9 / 16 * 100) */
    background-color: #f0f0f0;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}
.featured-image-container-single img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bu, resmi kırparak kutuya sığdırır */
}

/* === GÜNCELLENDİ: İçindekiler Tablosu Stilleri (Accordion için) === */
.toc-accordion .accordion-button {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
}
.toc-accordion .accordion-button:not(.collapsed) {
    box-shadow: none;
    background-color: #e9ecef;
}
.toc-accordion .accordion-body {
    padding: 0;
}
.toc-accordion ul {
    list-style-type: none;
    padding: 0.5rem 1.25rem;
    margin-bottom: 0;
}
.toc-accordion ul a {
    color: var(--body-color);
    display: block;
    padding: 6px 0;
    border-left: 2px solid transparent;
    padding-left: 12px;
    font-size: 0.95rem;
}
.toc-accordion ul a:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}
.toc-accordion ul ul {
    padding-left: 20px;
}

/* === GÜNCELLENMİŞ: Swiper.js Slider Stilleri === */
.main-slider-section {
    margin-bottom: 3rem;
}
.swiper-container {
    width: 100%;
    height: 550px; /* DÜZELTME: Slider yüksekliği artırıldı */
    border-radius: var(--border-radius);
    /* DÜZELTME: Bu satır, navigasyon oklarının içeride kalmasını sağlar */
    position: relative; 
    background-color: #e9ecef; /* Resim yüklenene kadar boş görünmesin diye */
}
.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}
.swiper-slide .slide-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem 3rem; /* İç boşluk artırıldı */
    width: 100%;
}
.swiper-slide .post-category {
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}
.swiper-slide .post-title {
    font-size: 2.8rem; /* Yazı boyutu büyütüldü */
    font-weight: 700;
    margin: 15px 0;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.swiper-slide .post-title a {
    color: #fff;
    text-decoration: none;
}

/* DÜZELTME: Slider Navigasyon Okları ve Noktaları için Gelişmiş Stiller */
.swiper-button-next, .swiper-button-prev {
    color: #fff;
    transition: background-color 0.3s ease;
    
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(255,255,255,0.5);
    opacity: 1;
}
.swiper-pagination-bullet-active {
    background-color: #fff;
}