/* Blog Sayfaları - Breadcrumb ve temel yerleşim */

/* Breadcrumb Section - blog liste */
body.blog-page .breadcrumb-section {
    background: white;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-top: 150px;
}

/* Breadcrumb Section - blog detay */
body.blog-detail-page .breadcrumb-section {
    background: white;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-top: 150px;
}

body.blog-page .breadcrumb,
body.blog-detail-page .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

body.blog-page .breadcrumb-item,
body.blog-detail-page .breadcrumb-item {
    display: flex;
    align-items: center;
}

body.blog-page .breadcrumb-item a,
body.blog-detail-page .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
    font-size: 0.9rem;
}

body.blog-page .breadcrumb-item a:hover,
body.blog-detail-page .breadcrumb-item a:hover {
    color: #09a2e3;
}

body.blog-page .breadcrumb-item.active,
body.blog-detail-page .breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
}

body.blog-page .breadcrumb-item + .breadcrumb-item::before,
body.blog-detail-page .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #adb5bd;
    margin: 0 0.5rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    body.blog-page .breadcrumb-section,
    body.blog-detail-page .breadcrumb-section {
        padding: 0.5rem 0;
        margin-top: 120px;
    }
}

@media (max-width: 576px) {
    body.blog-page .breadcrumb-section,
    body.blog-detail-page .breadcrumb-section {
        margin-top: 165px;
        padding: 0.4rem 0;
    }
    body.blog-page .breadcrumb,
    body.blog-detail-page .breadcrumb {
        font-size: 0.8rem;
    }
    body.blog-page .breadcrumb-item a,
    body.blog-detail-page .breadcrumb-item a,
    body.blog-page .breadcrumb-item.active,
    body.blog-detail-page .breadcrumb-item.active {
        font-size: 0.8rem;
    }
}

/* ==============================
   Blog Listesi (blog.php)
   Eşsiz scope: body.blog-page ...
   ============================== */

body.blog-page .blog-page-main-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

body.blog-page .blog-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

body.blog-page .blog-page-header { text-align:center; margin-bottom: 3rem; }

body.blog-page .blog-page-title { font-size: 3rem; font-weight: 700; color: #2c3e50; margin: 0 0 1.25rem 0; }
body.blog-page .blog-page-title-normal { color: #2c3e50; }
body.blog-page .blog-page-title-highlight { color: #09a2e3; }

body.blog-page .blog-page-description { color:#6c757d; font-size:1.2rem; line-height:1.6; margin:0 auto; max-width:800px; }

body.blog-page .blog-filters {
    margin-bottom: 1.25rem;
}

body.blog-page .blog-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

body.blog-page .blog-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid #e9ecef;
    color: #374151;
    padding: .45rem .8rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
    font-weight: 600;
}

body.blog-page .blog-filter-btn:hover {
    border-color: #09a2e3;
    color: #09a2e3;
}

body.blog-page .blog-filter-btn.active {
    background: #09a2e3;
    border-color: #09a2e3;
    color: #fff;
}

body.blog-page .blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    body.blog-page .blog-layout {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    body.blog-page .blog-sidebar {
        position: static !important;
        width: 100%;
    }
    body.blog-page .blog-cards-grid { 
        grid-template-columns: repeat(2, 1fr); 
        width: 100%;
    }
    body.blog-page .blog-card-image { 
        height: 200px; 
    }
}

@media (max-width: 768px) {
    body.blog-page .blog-page-main-section {
        padding: 2rem 0;
    }
    body.blog-page .blog-page-header {
        margin-bottom: 2rem;
    }
    /* Mobilde içerik bulunamadı mesajı */
    body.blog-page .blog-no-posts {
        min-height: 300px;
        padding: 2rem 1rem;
    }
    body.blog-page .blog-no-posts .no-products-content i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    body.blog-page .blog-no-posts .no-products-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    body.blog-page .blog-no-posts .no-products-content p {
        font-size: 0.9rem;
    }
    body.blog-page .blog-page-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    body.blog-page .blog-page-description {
        font-size: 1rem;
    }
    body.blog-page .blog-layout {
        grid-template-columns: 1fr !important;
        gap: 16px;
        display: flex !important;
        flex-direction: column;
    }
    body.blog-page .blog-sidebar {
        position: static !important;
        width: 100%;
        order: 2;
    }
    body.blog-page .blog-cards-grid {
        grid-template-columns: 1fr !important;
        width: 100%;
        order: 1;
    }
    body.blog-page .blog-card {
        width: 100%;
    }
    body.blog-page .blog-card-image {
        height: 220px;
    }
    body.blog-page .blog-card-content {
        padding: 1.25rem;
    }
    body.blog-page .blog-card-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        min-height: 3.5em; /* Mobilde 2 satır için sabit yükseklik (1.25rem * 1.4 * 2) */
        max-height: 3.5em;
    }
    body.blog-page .blog-card-excerpt {
        font-size: 1rem;
        -webkit-line-clamp: 3;
        line-height: 1.6;
    }
    body.blog-page .blog-card-btn {
        padding: 0.625rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    body.blog-page .blog-page-title {
        font-size: 1.75rem;
    }
    body.blog-page .blog-page-description {
        font-size: 0.95rem;
    }
    body.blog-page .blog-card-image {
        height: 200px;
    }
    body.blog-page .blog-card-content {
        padding: 1rem;
    }
    body.blog-page .blog-card-title {
        font-size: 1.15rem;
        min-height: 3.22em; /* Küçük mobilde 2 satır için sabit yükseklik (1.15rem * 1.4 * 2) */
        max-height: 3.22em;
    }
    body.blog-page .blog-card-excerpt {
        font-size: 0.95rem;
    }
    body.blog-page .blog-cat-link {
        padding: 10px 14px 10px 12px;
        font-size: 0.9rem;
    }
    body.blog-page .blog-cat-link i {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    body.blog-page .blog-popular-item {
        padding: 6px;
    }
    body.blog-page .blog-popular-thumb {
        width: 48px;
        height: 36px;
    }
}

body.blog-page .blog-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}
body.blog-page .blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }

body.blog-page .blog-card-image {
    width: 100%;
    height: 220px; /* sabit yükseklik */
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body.blog-page .blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.blog-page .blog-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card meta */
body.blog-page .blog-card-meta { display:flex; align-items:center; gap:8px; color:#6b7280; font-size:.85rem; margin: .25rem 0 .5rem 0; }
body.blog-page .blog-card-meta .meta-item { display:inline-flex; align-items:center; gap:6px; color:#6b7280; text-decoration:none; }
body.blog-page .blog-card-meta .meta-item:hover { color:#0c8ecd; }
body.blog-page .blog-card-meta .meta-dot { color:#d1d5db; }

body.blog-page .blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 .5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.08em; /* 2 satır için sabit yükseklik (1.1rem * 1.4 * 2) */
    max-height: 3.08em;
}

body.blog-page .blog-card-excerpt {
    color: #6b7280;
    font-size: .95rem;
    line-height: 1.5;
    margin: 0 0 .75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1; /* boş alanı doldur, butonu alta it */
}

body.blog-page .blog-card-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .9rem;
    background: #09a2e3;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    margin-top: auto; /* kartın altında sabitle */
    align-self: flex-start;
}

body.blog-page .blog-card-btn:hover {
    background: #0c8ecd;
    color: #fff;
}

/* İçerik Bulunamadı Mesajı */
body.blog-page .blog-cards-grid:has(.blog-no-posts) {
    display: flex;
    justify-content: center;
    align-items: center;
}

body.blog-page .blog-no-posts {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
    padding: 3rem 1.5rem;
    grid-column: 1 / -1; /* Grid'in tüm kolonlarını kapla */
    margin: 0 auto;
}

body.blog-page .blog-no-posts .no-products-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

body.blog-page .blog-no-posts .no-products-content i {
    font-size: 4rem;
    color: #09a2e3;
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.6;
}

body.blog-page .blog-no-posts .no-products-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    margin-top: 0;
}

body.blog-page .blog-no-posts .no-products-content p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Blog Sidebar Categories styled like Kurumsal Hızlı Erişim */
body.blog-page .blog-layout { 
    display: grid; 
    grid-template-columns: 280px 1fr; 
    gap: 24px; 
    align-items: start; 
}

body.blog-page .blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
body.blog-page .blog-sidebar-card,
body.blog-detail-page .blog-sidebar-card { 
    background: #fff; 
    border: 1px solid #e5e7eb; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
}

body.blog-page .blog-sidebar-header,
body.blog-detail-page .blog-sidebar-header {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 700;
    color: #0f172a;
}
body.blog-page .blog-category-list,
body.blog-detail-page .blog-category-list { display: grid; }
body.blog-page .blog-cat-link,
body.blog-detail-page .blog-cat-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 14px 14px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #1f2937;
    position: relative;
    transition: all .25s ease;
    margin: 10px 12px;
}
body.blog-page .blog-cat-link:first-child,
body.blog-detail-page .blog-cat-link:first-child { margin-top: 12px; }
body.blog-page .blog-cat-link:last-child,
body.blog-detail-page .blog-cat-link:last-child { margin-bottom: 12px; }
body.blog-page .blog-cat-link::before,
body.blog-detail-page .blog-cat-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 6px;
    border-radius: 6px;
    background: linear-gradient(180deg, #09a2e3 0%, #6c5ce7 100%);
    transition: transform .25s ease, box-shadow .25s ease;
}
body.blog-page .blog-cat-link:hover,
body.blog-detail-page .blog-cat-link:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
body.blog-page .blog-cat-link:hover::before,
body.blog-detail-page .blog-cat-link:hover::before { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(108,92,231,0.25); }
body.blog-page .blog-cat-link i,
body.blog-detail-page .blog-cat-link i {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: #09a2e3; color: #fff; display: flex; align-items: center; justify-content: center;
}
body.blog-page .blog-cat-link.active,
body.blog-detail-page .blog-cat-link.active { background: #eef7fc; }
body.blog-page .blog-cat-link.active i,
body.blog-detail-page .blog-cat-link.active i { background: #0c8ecd; }
body.blog-page .blog-cat-badge,
body.blog-detail-page .blog-cat-badge { margin-left: auto; background:#e5f3fb; color:#0c8ecd; font-weight:700; font-size:.85rem; padding:.15rem .5rem; border-radius:999px; }

/* Popular posts */
body.blog-page .blog-popular-list,
body.blog-detail-page .blog-popular-list { display: grid; gap: 8px; padding: 12px; }
body.blog-page .blog-popular-item,
body.blog-detail-page .blog-popular-item { display:flex; gap:10px; align-items:center; text-decoration:none; color:#111827; padding:8px; border-radius:10px; transition:background .2s ease; }
body.blog-page .blog-popular-item:hover,
body.blog-detail-page .blog-popular-item:hover { background:#f5f7fb; }
body.blog-page .blog-popular-thumb,
body.blog-detail-page .blog-popular-thumb { width:56px; height:40px; border-radius:8px; background:#f3f4f6; display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0; }
body.blog-page .blog-popular-thumb img,
body.blog-detail-page .blog-popular-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
body.blog-page .blog-popular-thumb i,
body.blog-detail-page .blog-popular-thumb i { color:#9ca3af; }
body.blog-page .blog-popular-title,
body.blog-detail-page .blog-popular-title { font-size:.95rem; font-weight:700; line-height:1.2; }
body.blog-page .blog-popular-date,
body.blog-detail-page .blog-popular-date { font-size:.8rem; color:#6b7280; }

/* Pagination */
body.blog-page .blog-pagination { 
    margin-top: 16px; 
    grid-column: 1 / -1;
}
body.blog-page .pagination { 
    display:flex; 
    list-style:none; 
    gap:6px; 
    padding:0; 
    flex-wrap: wrap;
    justify-content: center;
}
body.blog-page .page-item .page-link { 
    display:inline-block; 
    padding:8px 12px; 
    border:1px solid #e5e7eb; 
    border-radius:8px; 
    text-decoration:none; 
    color:#111827; 
    background:#fff; 
    font-size: 0.9rem;
}
body.blog-page .page-item.active .page-link { 
    background:#09a2e3; 
    border-color:#09a2e3; 
    color:#fff; 
    font-weight:700; 
}
body.blog-page .page-item.disabled .page-link { 
    opacity:.5; 
    pointer-events:none; 
}

@media (max-width: 768px) {
    body.blog-page .pagination {
        gap: 4px;
    }
    body.blog-page .page-item .page-link {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* Category intro block */
body.blog-page .blog-category-intro { 
    grid-column: 1/-1; 
    background:#ffffff; 
    border:1px solid #e5e7eb; 
    border-radius:12px; 
    padding:14px 16px; 
    margin-bottom:4px; 
    box-shadow:0 6px 20px rgba(0,0,0,.04); 
}
body.blog-page .blog-category-intro .intro-title { 
    display:flex; 
    align-items:center; 
    gap:8px; 
    font-weight:800; 
    color:#0f172a; 
    font-size: 1.1rem;
}
body.blog-page .blog-category-intro .intro-title i { color:#09a2e3; }
body.blog-page .blog-category-intro .intro-desc { 
    margin:.5rem 0 0 0; 
    color:#4b5563; 
    font-size:.95rem; 
    line-height: 1.6;
}

@media (max-width: 768px) {
    body.blog-page .blog-category-intro {
        padding: 12px;
        margin-bottom: 8px;
    }
    body.blog-page .blog-category-intro .intro-title {
        font-size: 1rem;
    }
    body.blog-page .blog-category-intro .intro-desc {
        font-size: 0.9rem;
    }
}

/* Category badge on image */
body.blog-page .blog-card-cat-badge { position:absolute; left:12px; top:12px; display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; background:rgba(15,23,42,.85); color:#fff; text-decoration:none; font-size:.8rem; }
body.blog-page .blog-card-cat-badge:hover { background:rgba(12,142,205,.9); }

/* ==============================
   Blog Detay (blog-detail.php)
   ============================== */

/* Blog detail page layout */
body.blog-detail-page .blog-page-main-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

body.blog-detail-page .blog-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

body.blog-detail-page .blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

body.blog-detail-page .blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

body.blog-detail-page .blog-content {
    color: #1f2937;
    font-size: 1.05rem;
    line-height: 1.8;
}

body.blog-detail-page .blog-content p { 
    margin: 0.75rem 0; 
}
body.blog-detail-page .blog-content p + p {
    margin-top: 0.75rem;
}
body.blog-detail-page .blog-content p:first-child {
    margin-top: 0;
}
body.blog-detail-page .blog-content p:last-child {
    margin-bottom: 0;
}

/* HTML formatlarını destekle */
body.blog-detail-page .blog-content strong,
body.blog-detail-page .blog-content b {
    font-weight: 700;
    color: #0f172a;
}

body.blog-detail-page .blog-content em,
body.blog-detail-page .blog-content i {
    font-style: italic;
}

body.blog-detail-page .blog-content u {
    text-decoration: underline;
}

body.blog-detail-page .blog-content h2 { 
    font-size: 1.5rem; 
    margin: 1.25rem 0 .75rem; 
    font-weight: 700;
    color: #0f172a;
}
body.blog-detail-page .blog-content h3 { 
    font-size: 1.25rem; 
    margin: 1rem 0 .5rem; 
    font-weight: 600;
    color: #1e293b;
}
body.blog-detail-page .blog-content h4 {
    font-size: 1.1rem;
    margin: 0.75rem 0 0.5rem;
    font-weight: 600;
    color: #334155;
}

body.blog-detail-page .blog-content ul,
body.blog-detail-page .blog-content ol { 
    padding-left: 1.5rem; 
    margin: 0.75rem 0; 
}
body.blog-detail-page .blog-content li {
    margin: 0.5rem 0;
}

body.blog-detail-page .blog-content a {
    color: #09a2e3;
    text-decoration: underline;
    transition: color 0.2s ease;
}
body.blog-detail-page .blog-content a:hover {
    color: #01d7bb;
}

body.blog-detail-page .blog-content img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 10px; 
    display: block;
    margin: 1rem 0;
}

/* Boş paragraflar için görünürlük */
body.blog-detail-page .blog-content p:empty:before {
    content: '\00a0'; /* Non-breaking space */
}

/* Blog detail layout */
body.blog-detail-page .blog-detail-article { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:16px; box-shadow:0 6px 20px rgba(0,0,0,.06); }
body.blog-detail-page .blog-detail-title { font-size:2rem; line-height:1.3; margin:0 0 .25rem 0; color:#0f172a; }
body.blog-detail-page .blog-detail-meta { display:flex; align-items:center; gap:8px; color:#6b7280; font-size:.95rem; margin-bottom:.75rem; }
body.blog-detail-page .blog-detail-meta .meta-item { display:inline-flex; align-items:center; gap:6px; color:#6b7280; text-decoration:none; }
body.blog-detail-page .blog-detail-meta .meta-item:hover { color:#0c8ecd; }
body.blog-detail-page .blog-detail-meta .meta-dot { color:#d1d5db; }
body.blog-detail-page .blog-detail-cover { 
    margin:0 0 1.5rem 0; 
    max-width: 100%;
    overflow: hidden;
}
body.blog-detail-page .blog-detail-cover img { 
    width:100%; 
    height:auto; 
    max-height: 500px;
    object-fit: cover;
    border-radius:10px; 
    display:block; 
}
body.blog-detail-page .blog-detail-nav { display:flex; justify-content:space-between; gap:10px; margin-top:16px; padding-top:16px; border-top:1px solid #e5e7eb; }
body.blog-detail-page .blog-detail-nav a { display:inline-flex; align-items:center; gap:8px; text-decoration:none; color:#0c8ecd; font-weight:700; font-size:.9rem; max-width:48%; }
body.blog-detail-page .blog-detail-nav a:hover { text-decoration:underline; }

/* Responsive blog detail */
@media (max-width: 1024px) {
    body.blog-detail-page .blog-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    body.blog-detail-page .blog-sidebar {
        position: static;
    }
    body.blog-detail-page .blog-detail-cover img {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    body.blog-detail-page .blog-page-main-section {
        padding: 2rem 0;
    }
    body.blog-detail-page .blog-detail-article {
        padding: 1rem;
    }
    body.blog-detail-page .blog-detail-title {
        font-size: 1.6rem;
    }
    body.blog-detail-page .blog-detail-cover img {
        max-height: 300px;
    }
    body.blog-detail-page .blog-detail-nav {
        flex-direction: column;
    }
    body.blog-detail-page .blog-detail-nav a {
        max-width: 100%;
    }
}


