/* Emparator blog (/blog, /blog/kategori/*, /blog/*) + site geneli hata sayfası (/hata/*).
   Tema (theme.min.css) üzerine yalnız bu sayfalara özel parçalar; renkler temanın primary (#01a479) / dark (#2f2f41) paleti.
   Düzen Inspinia blog.html + article.html kurgusundan, markup Winck (public tema) diliyle. */

/* ---------- ortak ---------- */
/* Üst çubuk (header.site-header, ~64px) akışta yer kaplar, hero'nun üstüne binmez; içerik çubuğun hemen altından başlar. */
.blog-hero,
.blog-post-head {
    padding: 2rem 0 2.5rem;
}

@media (min-width: 992px) {
    .blog-hero,
    .blog-post-head {
        padding: 2.75rem 0 3rem;
    }
}

.blog-hero h1 {
    font-size: 2.25rem;
    line-height: 1.2;
}

@media (min-width: 992px) {
    .blog-hero h1 {
        font-size: 2.75rem;
    }
}

.blog-eyebrow {
    font-size: 3.5rem;
    font-weight: 800;
    color: #01a479;
    line-height: 1;
    margin-bottom: .75rem;
}

.blog-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0 0 1.25rem;
    padding: 0;
    font-size: .875rem;
    color: #55606b;
}

.blog-breadcrumb li + li::before {
    content: "›";
    margin-right: .35rem;
    color: #adb5bd;
}

.blog-breadcrumb a {
    color: #2f2f41;
}

.blog-breadcrumb a:hover {
    color: #01a479;
}

.blog-badge {
    display: inline-block;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: #2f2f41;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1.4;
}

.blog-badge:hover {
    background: #01a479;
    color: #fff;
}

/* Renkler WCAG AA (4.5:1) için temanın gri/yeşilinden bir ton koyu: açık yeşil zeminde de geçer. */
.blog-meta {
    font-size: .875rem;
    color: #55606b;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .2rem;
}

.blog-meta i {
    font-size: 1rem;
    color: #01a479;
}

/* ---------- liste: kategori süzgeci ---------- */
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.75rem;
}

.blog-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .9rem;
    border: 1px solid rgba(47, 47, 65, .15);
    border-radius: 999px;
    background: #fff;
    color: #2f2f41;
    font-size: .9rem;
    font-weight: 600;
}

.blog-pill span {
    font-size: .75rem;
    font-weight: 600;
    color: #55606b;
}

.blog-pill:hover,
.blog-pill.active {
    background: #01a479;
    border-color: #01a479;
    color: #fff;
}

.blog-pill.active span,
.blog-pill:hover span {
    color: rgba(255, 255, 255, .8);
}

/* ---------- liste: kartlar ---------- */
.blog-list {
    padding-top: 3rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(47, 47, 65, .1);
    border-radius: .75rem;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 1rem 2rem rgba(47, 47, 65, .08);
}

.blog-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    background: #f1f5f4;
    overflow: hidden;
}

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

.blog-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e6f6f1 0%, #cfeee3 100%);
}

.blog-card-placeholder span {
    font-weight: 800;
    font-size: 1.5rem;
    color: #01a479;
    opacity: .6;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.blog-card-body {
    padding: 1.25rem 1.25rem .5rem;
    flex: 1 1 auto;
}

.blog-card-title {
    font-size: 1.15rem;
    line-height: 1.35;
    margin: .75rem 0 .5rem;
}

.blog-card-title a {
    color: #2f2f41;
}

.blog-card-title a:hover {
    color: #01a479;
}

.blog-card-summary {
    color: #535353;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .75rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(47, 47, 65, .08);
    margin-top: .75rem;
}

.blog-card-more {
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
    color: #01875f;
}

.blog-empty {
    text-align: center;
    padding: 3rem 1rem;
    border: 1px dashed rgba(47, 47, 65, .2);
    border-radius: .75rem;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.blog-page-link {
    font-weight: 700;
}

.blog-page-info {
    color: #55606b;
    font-size: .9rem;
}

/* ---------- yazı ---------- */
.blog-post-title {
    font-size: 2rem;
    line-height: 1.2;
    margin: 1rem 0 .75rem;
}

@media (min-width: 992px) {
    .blog-post-title {
        font-size: 2.6rem;
    }
}

.blog-post-summary {
    font-size: 1.15rem;
    color: #535353;
    margin-bottom: 1rem;
}

.blog-post-meta {
    margin-bottom: 0;
}

.blog-post-cover {
    margin: -1.5rem 0 2.5rem;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 1rem 2.5rem rgba(47, 47, 65, .12);
}

@media (min-width: 992px) {
    .blog-post-cover {
        margin-top: -2rem;
    }
}

.blog-post-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-body {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Editör HTML'i: temanın başlık/paragraf ölçüleri okuma için sıkı; burada rahatlatılır. */
.blog-content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #2f2f41;
}

.blog-content > *:first-child {
    margin-top: 0;
}

.blog-content h2 {
    font-size: 1.6rem;
    margin: 2.25rem 0 .9rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin: 1.75rem 0 .75rem;
}

.blog-content h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 .6rem;
}

.blog-content p {
    margin-bottom: 1.15rem;
}

.blog-content a {
    color: #01875f;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-content a:hover {
    color: #01a479;
}

.blog-content ul,
.blog-content ol {
    padding-left: 1.4rem;
    margin-bottom: 1.15rem;
}

.blog-content li {
    margin-bottom: .35rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
    margin: .5rem 0 1rem;
}

.blog-content figure {
    margin: 1.5rem 0;
}

.blog-content figcaption {
    font-size: .875rem;
    color: #6c757d;
    text-align: center;
}

.blog-content blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #01a479;
    background: #f3faf7;
    border-radius: 0 .5rem .5rem 0;
    font-size: 1.1rem;
}

.blog-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Geniş tablo sayfayı yatay kaydırmasın: kaydırma tablonun kendi kutusunda kalır. */
.blog-content {
    overflow-x: auto;
}

.blog-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: .95rem;
}

.blog-content th,
.blog-content td {
    border: 1px solid rgba(47, 47, 65, .15);
    padding: .55rem .75rem;
    vertical-align: top;
}

.blog-content th {
    background: #f1f5f4;
    font-weight: 700;
    text-align: left;
}

.blog-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: .5rem;
    margin: 1rem 0 1.5rem;
}

.blog-content hr {
    margin: 2rem 0;
}

.blog-content mark {
    background: #fff3bf;
    padding: 0 .2em;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 2rem;
    color: #6c757d;
}

.blog-tags i {
    font-size: 1.1rem;
    color: #01a479;
}

.blog-tag {
    padding: .25rem .7rem;
    border-radius: 999px;
    background: #f1f5f4;
    font-size: .85rem;
    color: #2f2f41;
}

.blog-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(47, 47, 65, .1);
}

.blog-share-label {
    font-weight: 700;
    margin-right: .25rem;
}

.blog-share a,
.blog-copy {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    height: 2.25rem;
    padding: 0 .75rem;
    border: 1px solid rgba(47, 47, 65, .15);
    border-radius: 999px;
    background: #fff;
    color: #2f2f41;
    font-size: 1rem;
    line-height: 1;
}

.blog-copy span {
    font-size: .85rem;
    font-weight: 600;
}

.blog-share a:hover,
.blog-copy:hover,
.blog-copy.copied {
    background: #01a479;
    border-color: #01a479;
    color: #fff;
}

.blog-cta {
    margin-top: 2.5rem;
    padding: 1.75rem;
    border-radius: .75rem;
    background: #2f2f41;
    color: #fff;
}

.blog-cta h2 {
    color: #fff;
}

.blog-cta p {
    color: rgba(255, 255, 255, .8);
}

/* Koyu zeminde temanın koyu birincil düğmesi kaybolur; beyaz düğme. */
.blog-cta .btn-primary {
    background: #fff;
    border-color: #fff;
    color: #2f2f41;
}

.blog-cta .btn-primary:hover {
    background: #01a479;
    border-color: #01a479;
    color: #fff;
}

/* ---------- kenar çubuğu ---------- */
.blog-side {
    margin-bottom: 2rem;
}

.blog-side-title {
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: .75rem;
}

.blog-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-side-list li {
    border-bottom: 1px solid rgba(47, 47, 65, .08);
}

.blog-side-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem 0;
    color: #2f2f41;
    font-weight: 600;
}

.blog-side-list a span {
    font-size: .8rem;
    color: #55606b;
    font-weight: 600;
}

.blog-side-list a:hover,
.blog-side-list a.active {
    color: #01875f;
}

/* ---------- ilgili yazılar ---------- */
.blog-related {
    background: #f7faf9;
    padding: 3.5rem 0;
}

/* Blog sayfalarındaki araç kartı linkleri: temanın açık yeşili (#01a479) beyazda 3,2:1 kalıyor. */
.blog-list ~ section .p-4 > a,
.blog-related a.blog-card-more {
    color: #01875f;
}
