/* ==========================================================================
   Blog detay sayfası
   inner-page.css üzerine biner; yalnızca yazı sayfasına özgü bölümleri kurar.
   Renk ve tipografi dili ana sayfadaki .wk-panel ile aynı:
   mürekkep #0d0d0d, marka sarısı, krem #f4f3f1, koyu #1c1c1c.
   ========================================================================== */

.bd {
    --bd-max: 720px;
}

/* --- Okuma ilerleme çubuğu --- */
.bd-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    height: 3px;
    background: transparent;
    pointer-events: none;
}

.bd-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--brand);
    transition: width 0.12s linear;
}

/* --- Başlık bloğu --- */
.bd-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin-top: clamp(20px, 3vh, 30px);
}

.bd-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.bd-meta__icon {
    display: grid;
    place-items: center;
    color: var(--ink);
}

.bd-meta__icon svg {
    width: 16px;
    height: 16px;
}

.bd-meta__num {
    display: grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 8px;
    background: var(--brand);
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 900;
}

.bd-meta__item--author {
    color: var(--ink);
    font-weight: 700;
}

.bd-meta__avatar {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--brand);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

/* --- Kapak görseli --- */
.bd-cover {
    margin: 0 12px 12px;
    overflow: hidden;
    border-radius: 26px;
    line-height: 0;
    background: var(--cream);
}

.bd-cover img {
    display: block;
    width: 100%;
    max-height: 62vh;
    object-fit: cover;
}

/* --- Gövde yerleşimi: yan sütun + yazı --- */
.bd-body {
    padding-top: clamp(40px, 6vh, 72px);
}

.bd-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

/* İçindekiler yoksa yazı ortalanır */
.bd-layout:not(:has(.bd-toc)) {
    grid-template-columns: minmax(0, var(--bd-max));
    justify-content: center;
}

/* --- İçindekiler --- */
.bd-toc {
    position: sticky;
    top: calc(var(--site-header-h, 80px) + 24px);
    align-self: start;
}

.bd-toc__title {
    margin: 0 0 12px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.bd-toc__list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.bd-toc__list a {
    display: block;
    padding: 7px 10px 7px 14px;
    border-left: 2px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.bd-toc__list a:hover {
    color: var(--ink);
    background: var(--cream);
}

/* Kaydırmayla o an okunan başlık vurgulanır */
.bd-toc__list a.is-current {
    border-left-color: var(--ink);
    background: var(--brand);
    color: var(--ink);
    font-weight: 800;
}

.bd-toc__share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.bd-toc__share > span {
    width: 100%;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.bd-toc__share a,
.bd-toc__share button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--cream);
    color: var(--ink);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s var(--ease);
}

.bd-toc__share a svg,
.bd-toc__share button svg {
    width: 17px;
    height: 17px;
}

.bd-toc__share a:hover,
.bd-toc__share button:hover {
    background: var(--brand);
    transform: translateY(-2px);
}

.bd-toc__share button.is-done {
    background: var(--ink);
    color: var(--brand);
}

/* --- Yazı tipografisi --- */
.bd-article {
    max-width: var(--bd-max);
    font-size: clamp(1rem, 1.15vw, 1.08rem);
    line-height: 1.78;
    color: #23231f;
}

.bd-article > *:first-child {
    margin-top: 0;
}

.bd-article p {
    margin: 0 0 1.35em;
}

/* İlk paragraf giriş cümlesi olarak biraz büyük */
.bd-article > p:first-of-type {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--ink);
}

.bd-article h2 {
    margin: 2.4em 0 0.7em;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.045em;
    color: var(--ink);
    scroll-margin-top: calc(var(--site-header-h, 80px) + 24px);
}

/* Başlıkların soluna sarı işaret */
.bd-article h2::before {
    content: '';
    display: block;
    width: 34px;
    height: 5px;
    margin-bottom: 0.55em;
    border-radius: 999px;
    background: var(--brand);
}

.bd-article h3 {
    margin: 1.9em 0 0.5em;
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: var(--ink);
    scroll-margin-top: calc(var(--site-header-h, 80px) + 24px);
}

.bd-article ul,
.bd-article ol {
    margin: 0 0 1.35em;
    padding-left: 1.3em;
}

.bd-article li {
    margin-bottom: 0.5em;
    padding-left: 0.2em;
}

.bd-article ul li::marker {
    color: var(--ink);
}

.bd-article ol li::marker {
    font-weight: 800;
    color: var(--ink);
}

.bd-article strong {
    font-weight: 800;
    color: var(--ink);
}

.bd-article a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    background-image: linear-gradient(var(--brand), var(--brand));
    background-repeat: no-repeat;
    background-position: 0 92%;
    background-size: 100% 0.2em;
    transition: background-size 0.3s var(--ease);
}

.bd-article a:hover {
    background-size: 100% 100%;
}

.bd-article blockquote {
    margin: 1.8em 0;
    padding: 4px 0 4px 22px;
    border-left: 4px solid var(--brand);
    font-size: 1.08em;
    font-style: normal;
    font-weight: 600;
    color: var(--ink);
}

.bd-article blockquote p:last-child {
    margin-bottom: 0;
}

.bd-article img {
    display: block;
    width: 100%;
    height: auto;
    margin: 1.8em 0;
    border-radius: 18px;
}

.bd-article figure {
    margin: 1.8em 0;
}

.bd-article figcaption {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
}

/* Tablolar dar ekranda yatay kaydırılır */
.bd-article table {
    display: block;
    width: 100%;
    margin: 1.8em 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.bd-article th,
.bd-article td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.bd-article thead th {
    background: var(--cream);
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
}

.bd-article tbody tr:last-child td {
    border-bottom: 0;
}

.bd-article code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--cream);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
}

.bd-article hr {
    margin: 2.4em 0;
    border: 0;
    border-top: 1px solid var(--line);
}

/* --- Etiketler --- */
.bd-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 2.6em;
    padding-top: 1.6em;
    border-top: 1px solid var(--line);
}

.bd-tags__label {
    margin-right: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.bd-tag {
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--cream);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink);
}

/* --- Yazı içi çağrı --- */
.bd-inline-cta {
    margin: 2.6em 0 0;
    padding: clamp(24px, 3vw, 34px);
    border-radius: 24px;
    background:
        radial-gradient(circle at 1px 1px, rgba(13, 13, 13, 0.13) 1px, transparent 0) 0 0 / 16px 16px,
        var(--brand);
    color: var(--ink);
}

.bd-inline-cta__eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

.bd-inline-cta__title {
    margin: 0 0 18px;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.bd-article .bd-inline-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    padding: 0 8px 0 22px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    background-image: none;
    transition: transform 0.3s var(--ease);
}

.bd-article .bd-inline-cta__btn:hover {
    transform: translateY(-2px);
    background-size: auto;
}

.bd-article .bd-inline-cta__btn > span:last-child {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--ink);
}

.bd-article .bd-inline-cta__btn svg {
    width: 16px;
    height: 16px;
}

/* --- Mobil paylaşım şeridi --- */
.bd-share-bottom {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 2.2em;
    padding-top: 1.6em;
    border-top: 1px solid var(--line);
}

.bd-share-bottom > span {
    width: 100%;
    margin-bottom: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.bd-article .bd-share-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--cream);
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    background-image: none;
}

.bd-article .bd-share-bottom a svg {
    width: 15px;
    height: 15px;
}

.bd-article .bd-share-bottom a:hover {
    background: var(--brand);
    background-size: auto;
}

/* --- Diğer yazılar: ana sayfadaki panel dili --- */
.bd-more__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 1320px;
    margin: 0 auto;
}

.bd-more__card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 16px;
    padding: clamp(18px, 2vw, 26px);
    border-radius: 26px;
    background: var(--cream);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.35s var(--ease);
}

.bd-more__card.is-dark {
    background: var(--dark);
    color: #f2f2f2;
}

.bd-more__card:hover {
    transform: translateY(-6px);
}

.bd-more__num {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    opacity: 0.5;
}

.bd-more__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(13, 13, 13, 0.06);
}

.bd-more__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 1s var(--ease);
}

.bd-more__card:hover .bd-more__media img {
    scale: 1.04;
}

.bd-more__foot {
    display: grid;
    gap: 10px;
}

.bd-more__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bd-more__tag {
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(13, 13, 13, 0.07);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bd-more__card.is-dark .bd-more__tag {
    background: rgba(255, 255, 255, 0.1);
}

.bd-more__card:hover .bd-more__tag {
    background: var(--brand);
    color: var(--ink);
}

.bd-more__date {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.6;
}

.bd-more__title {
    margin: 0;
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.04em;
    background-image: linear-gradient(var(--brand), var(--brand));
    background-repeat: no-repeat;
    background-position: 0 92%;
    background-size: 0% 0.2em;
    transition: background-size 0.5s var(--ease);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.bd-more__card:hover .bd-more__title {
    background-size: 100% 0.2em;
}

/* --- Duyarlı --- */
@media (max-width: 1023px) {
    .bd-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    /* İçindekiler açılır listeye dönüşür */
    .bd-toc {
        position: static;
        padding: 18px 20px;
        border-radius: 18px;
        background: var(--cream);
    }

    .bd-toc__share {
        display: none;
    }

    .bd-article {
        max-width: none;
    }

    .bd-share-bottom {
        display: flex;
    }

    .bd-more__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .bd-cover img {
        max-height: 46vh;
    }

    .bd-more__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bd-meta {
        gap: 8px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bd-progress span,
    .bd-more__card,
    .bd-more__media img,
    .bd-article a,
    .bd-article .bd-inline-cta__btn {
        transition: none;
    }
}
