/* Blog / İçerik alanı — halka açık sayfalar */

.blog-page { max-width: 1140px; }

/* Yazı listesi: 2 sütunlu kart grid'i (mobilde tek sütun) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

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

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

.blog-card-img-link { display: block; }

.blog-card-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.blog-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3440, #1e2430);
    color: rgba(255,255,255,.35);
    font-size: 2.5rem;
}

.blog-card-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-body h2 { font-size: 1.05rem; margin-bottom: .35rem; }
.blog-card-body h2 a { color: inherit; }

.blog-card-excerpt {
    font-size: .92rem;
    color: #555;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: .75rem;
    flex: 1;
}

.blog-card-readmore {
    font-size: .85rem;
    font-weight: 600;
    color: #0f6cbf;
    align-self: flex-start;
}

/* Sidebar: en çok okunanlar + kategoriler */
.blog-sidebar-block {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.1rem;
}

.blog-sidebar-block h5 {
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .9rem;
}

.blog-popular-list li:not(:last-child) { margin-bottom: .75rem; }
.blog-popular-list a { display: flex; align-items: flex-start; gap: .6rem; color: inherit; }
.blog-popular-rank {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background: #0f6cbf;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}
.blog-popular-title { font-size: .88rem; line-height: 1.35; }

.blog-category-list li:not(:last-child) { margin-bottom: .5rem; }
.blog-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: inherit;
    font-size: .92rem;
    padding: .3rem 0;
}
.blog-category-count {
    background: #e9ecef;
    color: #495057;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 20px;
    padding: .1rem .55rem;
    min-width: 26px;
    text-align: center;
}

.blog-cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
}

.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-content h2 { margin-top: 2rem; }
.blog-content h3 { margin-top: 1.5rem; }
.blog-content img { max-width: 100%; border-radius: 6px; }

/* İçerik görseli + açıklama (seed makalelerdeki özet şemaları) */
.blog-content figure { margin: 1.75rem 0; }
.blog-content figure img { display: block; width: 100%; height: auto; border: 1px solid #e8f0f7; }
.blog-content figcaption {
    font-size: .88rem;
    color: #6c757d;
    text-align: center;
    margin-top: .5rem;
    font-style: italic;
}
.blog-content blockquote {
    border-left: 4px solid #0f6cbf;
    background: #f7fbff;
    padding: .75rem 1.1rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}
.blog-content pre {
    background: #1e2430;
    color: #e9ecef;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: .9rem;
}
.blog-content :not(pre) > code {
    background: #eef4fa;
    color: #0b4d8a;
    padding: .1rem .35rem;
    border-radius: 4px;
    font-size: .92em;
}
.blog-content ul, .blog-content ol { margin-bottom: 1.1rem; }
.blog-content li { margin-bottom: .35rem; }

/* Not / uyarı / ipucu kutuları (editördeki "Not" butonu ile eklenir) */
.blog-content .ql-callout-info,
.blog-content .ql-callout-warning,
.blog-content .ql-callout-tip {
    position: relative;
    margin: 1.5rem 0;
    padding: .9rem 1.1rem .9rem 3rem;
    border-radius: 8px;
    font-size: .96rem;
}
.blog-content .ql-callout-info::before,
.blog-content .ql-callout-warning::before,
.blog-content .ql-callout-tip::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: .9rem;
}
.blog-content .ql-callout-info {
    background: #eaf4ff;
    border: 1px solid #b6dcff;
    color: #0b4d8a;
}
.blog-content .ql-callout-info::before { content: "\f05a"; color: #0f6cbf; }
.blog-content .ql-callout-warning {
    background: #fff8e6;
    border: 1px solid #ffe4a3;
    color: #7a5b00;
}
.blog-content .ql-callout-warning::before { content: "\f071"; color: #e0a800; }
.blog-content .ql-callout-tip {
    background: #eafaf0;
    border: 1px solid #b7ecc8;
    color: #14532d;
}
.blog-content .ql-callout-tip::before { content: "\f0eb"; color: #22a45d; }

/* Kod bloğu sözdizimi renklendirme (highlight.js) */
.blog-content pre code.hljs { background: transparent; padding: 0; }

/* Kategori rozeti (yazı detayında) */
.blog-category-badge {
    display: inline-block;
    background: #0f6cbf;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: .25rem .75rem;
    border-radius: 20px;
}
.blog-category-badge:hover { color: #fff; opacity: .9; }

/* Sayfalama */
.blog-pagination { display: flex; justify-content: center; margin: 2rem 0; }
.blog-pagination .pagination {
    display: flex;
    list-style: none;
    gap: .35rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.blog-pagination .pagination li a,
.blog-pagination .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .6rem;
    border-radius: 8px;
    background: #f1f3f5;
    color: #333;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}
.blog-pagination .pagination li a:hover { background: #dde4ea; }
.blog-pagination .pagination li.active a,
.blog-pagination .pagination li.active span {
    background: #0f6cbf;
    color: #fff;
}

/* Paylaş butonları */
.blog-share { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.blog-share-label { font-weight: 600; margin-right: .25rem; }
.blog-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    border: none;
    font-size: .95rem;
}
.blog-share-fb { background: #1877f2; }
.blog-share-x { background: #111; }
.blog-share-wa { background: #25d366; }
.blog-share-li { background: #0a66c2; }
.blog-share-copy { background: #6c757d; cursor: pointer; }
.blog-share-btn:hover { opacity: .85; color: #fff; }

/* SSS akordeon */
.blog-faq-item {
    border-bottom: 1px solid #e9ecef;
}
.blog-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    padding: 1rem 0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    color: inherit;
}
.blog-faq-question i { transition: transform .2s ease; color: #0f6cbf; flex-shrink: 0; margin-left: 1rem; }
.blog-faq-item.open .blog-faq-question i { transform: rotate(180deg); }
.blog-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}
.blog-faq-answer p { padding-bottom: 1rem; margin: 0; color: #555; }
.blog-faq-item.open .blog-faq-answer { max-height: 600px; }

/* İlgili yazılar: küçük 2'li grid, tek sütun kartlar da uyumlu */
.blog-grid-related { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 575px) { .blog-grid-related { grid-template-columns: 1fr; } }

@media (prefers-color-scheme: dark) {
    .blog-card, .blog-sidebar-block { background: #1e2126; color: #e9ecef; }
    .blog-card-excerpt, .blog-faq-answer p { color: #adb5bd; }
    .blog-category-count { background: #2c3440; color: #e9ecef; }
    .blog-faq-item { border-color: #2c3440; }
    .blog-pagination .pagination li a,
    .blog-pagination .pagination li span { background: #2c3440; color: #e9ecef; }
    .blog-pagination .pagination li a:hover { background: #384250; }
}
