/* =======================================================
   MAKRI TRAVEL - SEYAHAT PORTALI CSS (V3 FINAL)
   Dosya: assets/css/blog.css
   ======================================================= */

:root {
    --blog-primary: #006994;       /* Ana Marka Rengi */
    --blog-heading: #1a202c;       /* Başlık Rengi (Koyu) */
    --blog-text: #4a5568;          /* Metin Rengi (Gri Tonu) */
    --blog-meta: #718096;          /* Tarih/Yazar vb. Rengi */
    --blog-bg: #f8fafc;            /* Sayfa Arka Planı */
    --blog-card-bg: #ffffff;       /* Kart/Kutu Arka Planı */
    --blog-border: #e2e8f0;        /* Kenarlıklar */
    --radius: 8px;                 /* Köşe Yumuşaklığı */
}

/* Sayfa Genel Ayarları */
body.blog-page {
    background-color: var(--blog-bg);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--blog-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Link Genel */
a { text-decoration: none; color: inherit; transition: 0.2s; }
a:hover { color: var(--blog-primary); }

/* =========================================
   1. LAYOUT (GENEL İSKELET)
   ========================================= */
.bd-wrapper {
    max-width: 1300px;
    margin: 40px auto 80px;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start; /* Sidebar'ın yukarıda kalması için */
}

/* SOL KOLON (ANA İÇERİK) */
.bd-main {
    flex: 3;
    width: 100%; /* Mobil uyumluluk için */
}

/* SAĞ KOLON (SIDEBAR) */
.bd-sidebar {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky; /* Sayfa kaydıkça sabit kalır */
    top: 100px; /* Header payı */
}

/* MOBİL İÇİN DÜZEN */
@media (max-width: 992px) {
    .bd-wrapper { flex-direction: column; }
    .bd-sidebar { width: 100%; min-width: auto; position: static; }
}

/* =========================================
   2. BLOG LİSTELEME SAYFASI (blog.php)
   ========================================= */

/* Liste Başlık Alanı */
.blog-list-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--blog-border);
}

.blog-breadcrumb {
    font-size: 0.85rem;
    color: var(--blog-meta);
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.blog-breadcrumb i { font-size: 0.7rem; opacity: 0.5; }

.blog-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blog-heading);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

/* Liste Grid Yapısı */
.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Yan yana 2 kart */
    gap: 30px;
}

/* Tekil Blog Kartı */
.b-card {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.b-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border-color: var(--blog-primary);
}

/* Kart Resmi */
.b-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.b-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.b-card:hover .b-thumb img { transform: scale(1.05); }

/* Kategori Rozeti */
.b-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: rgba(255,255,255,0.95);
    color: var(--blog-heading);
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Kart İçeriği */
.b-content {
    padding: 25px;
    flex: 1;
    display: flex; flex-direction: column;
}

.b-date {
    font-size: 0.8rem; color: var(--blog-meta);
    margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}

.b-title {
    font-size: 1.25rem; font-weight: 700;
    color: var(--blog-heading); margin-bottom: 12px; line-height: 1.3;
}

.b-excerpt {
    font-size: 0.95rem; color: var(--blog-text);
    margin-bottom: 20px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}

.b-footer {
    padding-top: 15px;
    border-top: 1px solid var(--blog-bg);
    display: flex; justify-content: space-between; align-items: center;
}

.b-read-more {
    font-size: 0.9rem; font-weight: 600; color: var(--blog-primary);
    display: flex; align-items: center; gap: 6px;
}
.b-read-more:hover { gap: 10px; }

/* Mobilde tek sütun */
@media (max-width: 768px) {
    .blog-list-grid { grid-template-columns: 1fr; }
}

/* =========================================
   3. BLOG DETAY SAYFASI (blog-detail.php)
   ========================================= */

/* Başlık (H1) */
.bd-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--blog-heading);
    line-height: 1.25;
    margin-bottom: 20px;
}

/* Meta Bilgileri */
.bd-meta-row {
    display: flex; align-items: center; flex-wrap: wrap; gap: 20px;
    font-size: 0.9rem; color: var(--blog-meta);
    margin-bottom: 30px; padding-bottom: 20px;
    border-bottom: 1px solid var(--blog-border);
}
.bd-meta-item { display: flex; align-items: center; gap: 8px; }
.bd-meta-item i { color: var(--blog-primary); }

/* Öne Çıkan Görsel */
.bd-featured-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* İçindekiler Kutusu */
.bd-toc {
    background: #f1f5f9;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}
.bd-toc-title {
    font-size: 1.1rem; font-weight: 700; color: var(--blog-heading);
    margin-bottom: 15px; display: flex; align-items: center; gap: 10px;
}
.bd-toc ul { list-style: none; padding: 0; margin: 0; }
.bd-toc li { margin-bottom: 8px; position: relative; padding-left: 18px; }
.bd-toc li::before {
    content: "•"; color: var(--blog-primary);
    position: absolute; left: 0; top: 0; font-weight: bold;
}
.bd-toc a { font-weight: 500; font-size: 0.95rem; color: var(--blog-text); }
.bd-toc a:hover { color: var(--blog-primary); text-decoration: underline; }

/* Yazı İçeriği */
.bd-content {
    font-size: 1.125rem; /* 18px Okuma Boyutu */
    color: #2d3748;
    line-height: 1.8;
}
.bd-content p { margin-bottom: 24px; }
.bd-content h2 {
    font-size: 1.8rem; font-weight: 800; color: var(--blog-heading);
    margin: 40px 0 20px;
}
.bd-content h3 {
    font-size: 1.5rem; font-weight: 700; color: var(--blog-heading);
    margin: 35px 0 15px;
}
.bd-content img {
    max-width: 100%; height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
}
.bd-content blockquote {
    border-left: 4px solid var(--blog-primary);
    background: #f8fafc;
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    color: #4a5568;
    font-size: 1.2rem;
}

/* Etiketler */
.bd-tags {
    margin-top: 50px;
    display: flex; gap: 10px; flex-wrap: wrap;
}
.bd-tag {
    background: #edf2f7; color: var(--blog-text);
    padding: 6px 16px; border-radius: 50px;
    font-size: 0.9rem; font-weight: 500; transition: 0.2s;
}
.bd-tag:hover { background: var(--blog-heading); color: #fff; }

/* Paylaşım Alanı */
.bd-share {
    margin-top: 40px; padding-top: 30px;
    border-top: 1px solid var(--blog-border);
    display: flex; align-items: center; justify-content: space-between;
}
.share-links { display: flex; gap: 10px; }
.share-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem; transition: 0.2s;
}
.share-icon:hover { transform: translateY(-3px); opacity: 0.9; }

/* =========================================
   4. SIDEBAR WIDGETS (SAĞ MENÜ)
   ========================================= */
.widget-box {
    background: #fff;
    border: 1px solid var(--blog-border);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 0; /* Flex gap hallediyor ama yedek olsun */
}

.widget-title {
    font-size: 1.1rem; font-weight: 700; color: var(--blog-heading);
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}
.widget-title::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 40px; height: 2px; background: var(--blog-primary);
}

/* Arama Formu */
.w-search form { display: flex; }
.w-search input {
    width: 100%; padding: 10px 15px; border: 1px solid var(--blog-border);
    border-radius: 4px 0 0 4px; outline: none; transition: 0.2s;
}
.w-search input:focus { border-color: var(--blog-primary); }
.w-search button {
    background: var(--blog-primary); color: #fff; border: none;
    padding: 0 16px; border-radius: 0 4px 4px 0; cursor: pointer;
}

/* Popüler Yazılar Listesi */
.mini-list { display: flex; flex-direction: column; gap: 18px; }
.mini-item { display: flex; gap: 15px; align-items: flex-start; }
.mini-thumb {
    width: 70px; height: 70px; border-radius: 6px;
    object-fit: cover; flex-shrink: 0;
}
.mini-info h4 {
    font-size: 0.95rem; font-weight: 600; color: var(--blog-heading);
    line-height: 1.4; margin: 0 0 5px; transition: 0.2s;
}
.mini-item:hover h4 { color: var(--blog-primary); }
.mini-date { font-size: 0.75rem; color: var(--blog-meta); }
/* --- KATEGORİ BUTONLARI VE SCROLL ALANI (Blog Listesi İçin) --- */
.cat-scroll-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 25px;
    -webkit-overflow-scrolling: touch; /* Mobil kaydırma yumuşatma */
    scrollbar-width: none; /* Firefox scrollbar gizle */
}
.cat-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari scrollbar gizle */
}
.cat-btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.cat-btn:hover {
    border-color: var(--blog-primary);
    color: var(--blog-primary);
    background: #f0f9ff;
}
.cat-btn.active {
    background: var(--blog-primary);
    color: #fff;
    border-color: var(--blog-primary);
    box-shadow: 0 4px 6px rgba(12, 74, 110, 0.2);
}

/* --- DETAY SAYFASI DÜZELTMELERİ --- */
html { 
    scroll-behavior: smooth; 
}
:target { 
    scroll-margin-top: 140px; /* Header yüksekliğine göre pay */
}
/* --- ÖNE ÇIKANLAR VİTRİNİ (Featured Showcase) --- */
.featured-showcase {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .featured-showcase {
        grid-template-columns: 1fr;
    }
    .feat-main {
        height: 300px !important;
    }
    .feat-sub {
        flex-direction: row !important;
    }
    .feat-small {
        height: 150px !important;
    }
}

.feat-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    display: block;
}

.feat-card:hover {
    transform: translateY(-5px);
}

.feat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feat-card:hover img {
    transform: scale(1.05);
}

.feat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    z-index: 2;
}

.feat-main {
    height: 400px;
}

.feat-sub {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feat-small {
    height: 190px;
}

.feat-tag {
    display: inline-block;
    background: #f39c12; /* Turuncu Öne Çıkan Rengi */
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.feat-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: #fff;
}

.feat-small .feat-title {
    font-size: 1.1rem;
}

.feat-meta {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 8px;
    display: flex;
    gap: 15px;
    color: rgba(255,255,255,0.9);
}

/* Listede Öne Çıkanları Vurgulama */
.b-card.is-featured-item {
    border: 1px solid #f39c12;
}

.b-badge.is-featured-badge {
    background: #f39c12;
}
/* --- YAZAR KUTUSU (Author Box) --- */
.author-box {
    margin-top: 50px;
    margin-bottom: 30px;
    padding: 30px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 576px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

.author-img-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #64748b;
    border: 3px solid #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.author-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-initials {
    background: var(--blog-primary, #006994);
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    letter-spacing: -1px;
}

.author-info {
    flex: 1;
}

.author-info h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 700;
}

.author-info span {
    display: block;
    font-size: 0.85rem;
    color: var(--blog-primary);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}
/* --- BLOG HERO SLIDER (Ana Görsel Alanı) --- */
.blog-hero-slider {
    position: relative;
    width: 100%;
    height: 500px; /* Slider Yüksekliği */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    background: #f1f5f9; /* Resim yüklenene kadar gri fon */
}

@media (max-width: 768px) {
    .blog-hero-slider { height: 300px; }
}

.bhs-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.bhs-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    cursor: zoom-in;
}

.bhs-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Okları */
.bhs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s;
}

.bhs-nav:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.bhs-prev { left: 20px; }
.bhs-next { right: 20px; }

/* Resim Sayacı */
.bhs-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(4px);
}

/* --- YAZAR KUTUSU --- */
.author-box {
    margin-top: 50px;
    margin-bottom: 30px;
    padding: 30px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 576px) {
    .author-box { flex-direction: column; text-align: center; }
}

.author-img-wrap {
    flex-shrink: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.author-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.author-initials { background: var(--blog-primary, #006994); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

.author-info h4 { margin: 0 0 5px; font-size: 1.1rem; color: #1e293b; font-weight: 700; }
.author-info span { display: block; font-size: 0.85rem; color: var(--blog-primary, #006994); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; }
.author-info p { margin: 0; font-size: 0.95rem; color: #64748b; line-height: 1.5; }

/* --- LIGHTBOX (Tam Ekran) --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px; right: 40px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    z-index: 100000;
}

@keyframes zoomIn { from {transform: scale(0.9); opacity: 0;} to {transform: scale(1); opacity: 1;} }