/* ==========================================================================
   Blog
   ========================================================================== */

/* ---------- Kapak görselleri (fotoğrafsız, üretilmiş) ---------- */
.blog-cover {
    --tone: var(--sky);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 1px 1px, rgba(12, 33, 22, .14) 1px, transparent 0) 0 0 / 14px 14px,
        var(--tone);
    border-radius: 24px;
    aspect-ratio: 16 / 10;
    isolation: isolate;
}
.blog-cover .bc-ring {
    position: absolute;
    width: 70%;
    aspect-ratio: 1;
    right: -18%;
    top: -30%;
    border-radius: 50%;
    border: 26px solid rgba(255, 253, 248, .45);
    transition: transform .8s var(--ease);
}
.blog-cover .bc-ring-2 { width: 40%; right: auto; left: -10%; top: auto; bottom: -22%; border-width: 14px; border-color: rgba(12, 33, 22, .1); }
.blog-cover .bc-icon {
    position: absolute;
    left: 7%;
    top: 10%;
    display: grid;
    place-items: center;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 28%;
    background: var(--ink);
    color: var(--lime);
    transform: rotate(-8deg);
    transition: transform .5s var(--ease);
}
.blog-cover .bc-icon .icon { width: 48%; height: 48%; }
.blog-cover .bc-code {
    position: absolute;
    left: 7%;
    bottom: 8%;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(30px, 4.4vw, 56px);
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--ink);
    white-space: nowrap;
}
.blog-cover-featured { aspect-ratio: auto; min-height: 100%; }
.blog-cover-featured .bc-code { font-size: clamp(44px, 7vw, 104px); }
.blog-cover-hero { aspect-ratio: 1; max-width: 380px; width: 100%; margin-left: auto; border-radius: 40px; transform: rotate(2deg); box-shadow: var(--shadow-lg); }
.blog-cover-hero .bc-code { font-size: clamp(40px, 6vw, 78px); }
.blog-card:hover .bc-ring, .blog-featured:hover .bc-ring { transform: rotate(40deg) scale(1.1); }
.blog-card:hover .bc-icon, .blog-featured:hover .bc-icon { transform: rotate(4deg) scale(1.06); }

.tone-lime { --tone: var(--lime); }
.tone-mint { --tone: var(--mint); }
.tone-sky { --tone: var(--sky); }
.tone-sand { --tone: var(--sand); }
.tone-clay { --tone: #f6c3b2; }
.tone-lilac { --tone: var(--lilac); }

.blog-chip {
    --tone: var(--sky);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px 6px 9px;
    border-radius: 999px;
    background: var(--tone);
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ink);
    width: fit-content;
}
.blog-chip .icon { width: 15px; height: 15px; }

.blog-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.blog-meta span, .blog-meta a { display: inline-flex; align-items: center; gap: 6px; }
.blog-meta .icon { width: 15px; height: 15px; }
.blog-meta .right { margin-left: auto; }

/* ---------- Liste ---------- */
.blog-hero-row { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px 56px; align-items: end; }
.blog-hero h1 { font-size: clamp(40px, 6vw, 84px); }
.blog-lang-note { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; padding: 8px 14px; border-radius: 12px; background: var(--sky); font-weight: 600; font-size: 14px; }
.blog-lang-note .icon { width: 18px; height: 18px; }
.blog-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px 6px 20px;
    border-radius: 999px;
    background: var(--paper);
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
}
.blog-search:focus-within { box-shadow: 6px 6px 0 var(--lime-deep); }
.blog-search .icon { width: 22px; height: 22px; }
.blog-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 14px 0; font-weight: 600; font-size: 16px; }

.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.blog-cats a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--paper);
    font-weight: 700;
    font-size: 14px;
    transition: all .2s var(--ease);
}
.blog-cats a .icon { width: 17px; height: 17px; }
.blog-cats a:hover { border-color: var(--ink); transform: translateY(-2px); }
.blog-cats a.is-active { background: var(--ink); color: var(--lime); border-color: var(--ink); }

.blog-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--r-lg);
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    margin-bottom: 22px;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.blog-featured:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-featured .blog-cover { border-radius: 0; min-height: 380px; }
.blog-featured-body { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 4vw, 52px); justify-content: center; }
.blog-featured-body h2 { font-size: clamp(28px, 3.2vw, 44px); }
.blog-featured-body p { color: rgba(255, 253, 248, .72); }
.blog-featured .blog-meta { color: rgba(255, 253, 248, .6); }
.blog-featured .btn { align-self: flex-start; margin-top: 6px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 10px;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 12px 12px; flex: 1; }
.blog-card h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.blog-card p { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .blog-meta { margin-top: auto; padding-top: 6px; }

.blog-pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 44px; font-weight: 700; }

/* ---------- Yazı ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; }
.read-progress span { display: block; height: 100%; background: var(--lime-deep); transform-origin: left; transform: scaleX(0); }

.post-hero { padding: calc(var(--header-h) + 64px) 0 48px; position: relative; }
.post-hero::before {
    content: '';
    position: absolute;
    width: 640px;
    height: 640px;
    right: -180px;
    top: -240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 243, 106, .45), transparent 65%);
    z-index: -1;
}
.post-hero-grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: 48px; align-items: center; margin-top: 22px; }
.post-hero h1 { font-size: clamp(32px, 4.6vw, 62px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin: 18px 0 20px; }
.post-hero .lead { max-width: 62ch; }
.post-meta { margin-top: 26px; font-size: 14px; }

.post-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr) 270px; gap: 48px; align-items: start; padding-bottom: 40px; }
.post-aside, .post-side { position: sticky; top: calc(var(--header-h) + 34px); display: grid; gap: 22px; }
.post-toc strong, .post-codes strong { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--moss); margin-bottom: 12px; }
.post-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.post-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.35; transition: color .2s, border-color .2s; }
.post-toc .lvl-3 a { padding-left: 26px; font-size: 13px; }
.post-toc a:hover { color: var(--ink); }
.post-toc a.is-active { color: var(--ink); border-left-color: var(--lime-deep); }

.post-actions { display: grid; gap: 16px; }
.like-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--paper);
    font-weight: 700;
    font-size: 14px;
    transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.like-btn:hover { border-color: var(--ink); transform: translateY(-2px); }
.like-btn .heart { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--clay); transition: background .25s, color .25s, transform .35s var(--ease); }
.like-btn .heart .icon { width: 20px; height: 20px; }
.like-btn .like-label { flex: 1; text-align: left; }
.like-btn b { font-family: var(--font-display); font-size: 18px; }
.like-btn.is-liked { border-color: var(--clay); background: rgba(231, 111, 81, .08); }
.like-btn.is-liked .heart { background: var(--clay); color: var(--paper); transform: scale(1.08); }
.like-btn.is-liked .heart .icon { fill: currentColor; }
.like-particle { position: fixed; z-index: 200; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); pointer-events: none; }
.like-particle:nth-child(odd) { background: var(--lime-deep); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.share span { width: 100%; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--moss); margin-bottom: 4px; }
.share a, .share button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); transition: all .2s var(--ease); }
.share a:hover, .share button:hover { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.share .icon { width: 18px; height: 18px; }
.share button.is-done { background: var(--lime); border-color: var(--ink); }

/* Makale tipografisi */
.prose { font-size: 17.5px; line-height: 1.8; color: #1f3328; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 40px); }
.prose h3 { font-size: 22px; margin-top: 1.6em; scroll-margin-top: calc(var(--header-h) + 40px); }
.prose h2 + p, .prose h3 + p { margin-top: .7em; }
.prose a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--lime-deep); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.prose a:hover { background: var(--lime); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--moss); font-weight: 800; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.5; border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; display: block; overflow-x: auto; }
.prose thead th { background: var(--ink); color: var(--paper); text-align: left; font-weight: 700; }
.prose th, .prose td { padding: 12px 16px; vertical-align: top; }
.prose tbody tr:nth-child(even) { background: rgba(12, 33, 22, .035); }
.prose tbody td { border-top: 1px solid var(--line); }
.prose .callout {
    position: relative;
    padding: 22px 24px 22px 26px;
    border-radius: 22px;
    background: var(--lime);
    box-shadow: 6px 6px 0 var(--ink);
    border: 2px solid var(--ink);
    margin-block: 1.8em;
}
.prose .callout strong { display: block; font-family: var(--font-display); font-size: 18px; margin-bottom: 4px; }
.prose .callout p { margin: 0; font-size: 16px; line-height: 1.65; }
.code-link {
    display: inline-block;
    padding: 0 8px;
    border-radius: 8px;
    background: var(--sky);
    font-family: var(--font-display);
    font-weight: 800 !important;
    font-size: .92em;
    text-decoration: none !important;
    white-space: nowrap;
    color: var(--ink) !important;
}
a.code-link:hover { background: var(--ink) !important; color: var(--lime) !important; }

.post-faq { margin-top: 56px; }
.post-faq h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 18px; }
.post-faq details { border-radius: 20px; border: 1.5px solid var(--line); background: var(--paper); margin-bottom: 10px; overflow: hidden; }
.post-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 16.5px; cursor: pointer; list-style: none; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary .icon { flex: none; transition: transform .3s var(--ease); }
.post-faq details[open] summary .icon { transform: rotate(45deg); }
.post-faq details[open] summary { background: var(--sky); }
.post-faq details p { padding: 16px 20px 20px; color: var(--muted); line-height: 1.7; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.post-tags a { padding: 6px 12px; border-radius: 999px; background: rgba(12, 33, 22, .06); font-size: 13px; font-weight: 700; color: var(--muted); }
.post-tags a:hover { background: var(--ink); color: var(--lime); }
.post-disclaimer { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; padding: 14px 16px; border-radius: 16px; background: rgba(244, 162, 97, .14); font-size: 13.5px; color: #7a4a1d; font-weight: 600; }
.post-disclaimer .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.post-author { display: flex; gap: 16px; align-items: flex-start; margin-top: 22px; padding: 22px; border-radius: 24px; background: var(--ink); color: var(--paper); }
.post-author .brand-mark { background: var(--lime); color: var(--ink); flex: none; }
.post-author p { color: rgba(255, 253, 248, .7); font-size: 14.5px; margin-top: 4px; }

.post-codes { padding: 20px; border-radius: 26px; background: var(--paper); border: 1px solid var(--line); }
.post-codes ul { display: grid; gap: 6px; margin-bottom: 16px; }
.post-codes li a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--cream); transition: background .2s; }
.post-codes li a:hover { background: var(--lime); }
.post-codes li b { font-family: var(--font-display); font-size: 15px; }
.post-codes li span { font-size: 12.5px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-codes .btn { width: 100%; justify-content: space-between; white-space: normal; text-align: left; }

/* Yorumlar */
.comments-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.comments-title { font-size: clamp(28px, 3vw, 40px); display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.comments-title span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; background: var(--lime); font-size: 18px; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.comment { display: flex; gap: 14px; padding: 18px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.comment.is-new { animation: drop-in-c .5s var(--ease); border-color: var(--lime-deep); }
.comment.is-staff { background: var(--sky); border-color: transparent; }
.comment .avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--ink); color: var(--lime); font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 4px; }
.comment-head time { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.comment p { color: #2c3f34; font-size: 15px; line-height: 1.6; word-break: break-word; }
.staff-badge { padding: 2px 9px; border-radius: 999px; background: var(--ink); color: var(--lime); font-size: 11px; font-weight: 800; }
.comment-form h3 { font-size: 26px; margin-bottom: 20px; }
.related-title { font-size: clamp(28px, 3vw, 40px); margin-bottom: 24px; }

/* Anasayfa blog şeridi */
.home-blog .blog-grid { margin-top: 0; }

@keyframes drop-in-c { from { opacity: 0; transform: translateY(-12px); } }

@media (max-width: 1180px) {
    .post-layout { grid-template-columns: 210px minmax(0, 1fr); }
    .post-side { grid-column: 2; position: static; }
}
@media (max-width: 1080px) {
    .blog-hero-row, .post-hero-grid, .comments-layout { grid-template-columns: 1fr; }
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured .blog-cover { min-height: 240px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-cover-hero { margin: 0; max-width: 260px; }
    .post-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .post-aside { position: static; order: 2; }
    .post-main { order: 1; }
    .post-side { order: 3; grid-column: auto; }
    .post-toc { display: none; }
    .post-actions { grid-template-columns: auto 1fr; align-items: center; }
    .share span { display: none; }
}
@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
    .prose { font-size: 16.5px; }
    .blog-cover-hero { display: none; }
    .post-actions { grid-template-columns: 1fr; }
}
