/* =========================
   PROJE TURAN
   POST DETAIL
========================= */

.post-page {
    background: #f7f4ee;
}


/* =========================
   PAGE
========================= */

.post-detail {
    width: 100%;
    max-width: 1080px;

    margin: 0 auto;

    padding:
        18px 4px 80px;
}


/* =========================
   ARTICLE
========================= */

.post-article {
    overflow: hidden;

    border:
        1px solid rgba(48, 45, 85, 0.07);

    border-radius: 20px;

    background: #f8f4ed;

    box-shadow:
        0 16px 44px rgba(48, 45, 85, 0.065);
}


/* =========================
   INTRO
========================= */

.post-intro {
    position: relative;

    padding:
        48px 54px 36px;
}


/* =========================
   META
========================= */

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 18px;

    font-family: "Manrope", sans-serif;

    font-size: 11px;
    line-height: 1.4;

    letter-spacing: 0.015em;

    color:
        rgba(48, 45, 85, 0.48);
}


.post-meta__date {
    font-weight: 650;
}


.post-meta__separator {
    opacity: 0.4;
}


/* =========================
   TAGS
========================= */

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}


.post-tags a {
    position: relative;

    font-family: "Manrope", sans-serif;

    font-size: 11px;

    font-weight: 650;

    text-decoration: none;

    color:
        rgba(83, 103, 166, 0.88);

    transition:
        color 0.18s ease,
        opacity 0.18s ease;
}


.post-tags a:hover {
    color: #302d55;
}


/* =========================
   TITLE
========================= */

.post-title {
    max-width: 820px;

    margin: 0;

    font-family: "Manrope", sans-serif;

    font-size:
        clamp(36px, 4vw, 44px);

    line-height: 1.08;

    font-weight: 720;

    letter-spacing: -0.045em;

    color: #302d55;

    text-wrap: balance;
}


/* =========================
   LEAD
========================= */

.post-lead {
    max-width: 760px;

    margin:
        18px 0 0;

    font-family: "Manrope", sans-serif;

    font-size: 15px;
    line-height: 1.72;

    font-weight: 400;

    color:
        rgba(48, 45, 85, 0.66);

    text-wrap: pretty;
}


/* =========================
   ACTIONS
========================= */

.post-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 26px;
}


.post-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 34px;

    padding:
        0 13px;

    border:
        1px solid rgba(48, 45, 85, 0.10);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.38);

    font-family: "Manrope", sans-serif;

    font-size: 10px;

    line-height: 1;

    font-weight: 650;

    letter-spacing: 0.015em;

    color: #302d55;

    cursor: pointer;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65);

    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


.post-action i {
    font-size: 12px;

    opacity: 0.82;
}


.post-action:hover {
    color: #5367a6;

    border-color:
        rgba(83, 103, 166, 0.20);

    background:
        rgba(255, 255, 255, 0.62);

    transform:
        translateY(-1px);

    box-shadow:
        0 5px 14px rgba(48, 45, 85, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}


/* =========================
   BODY
========================= */

.post-body {
    font-family: "Manrope", sans-serif;

    font-size: 15px;
    line-height: 1.84;

    color:
        rgba(48, 45, 85, 0.84);
}


.post-body p {
    margin:
        0 0 22px;
}


.post-body p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   IMAGE CLICK ZOOM
========================================================= */

.post-cover {
    position: relative;

    cursor: zoom-in;
}


/* merkez büyüteç */

.post-image-zoom {
    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.12);

    border:
        1px solid rgba(255, 255, 255, 0.28);

    color:
        rgba(255, 255, 255, 0.88);

    font-size: 24px;

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    pointer-events: none;

    opacity: 0;

    transform:
        translate(-50%, -50%) scale(0.82);

    transition:
        opacity 0.2s ease,
        transform 0.24s ease,
        background 0.2s ease;
}


.post-cover:hover .post-image-zoom {
    opacity: 1;

    transform:
        translate(-50%, -50%) scale(1);
}


/* hafif görsel karartma */

.post-cover::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 4;

    background:
        rgba(20, 18, 35, 0.06);

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.2s ease;
}


.post-cover:hover::after {
    opacity: 1;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.post-image-lightbox {
    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 34px;

    background:
        rgba(22, 20, 38, 0.72);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;
}


.post-image-lightbox.is-visible {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


.post-image-lightbox img {
    display: block;

    width: auto;
    height: auto;

    max-width:
        calc(100vw - 80px);

    max-height:
        calc(100vh - 80px);

    object-fit: contain;

    border-radius: 14px;

    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.35);

    transform: scale(0.92);

    transition:
        transform 0.28s cubic-bezier(0.22,
            1,
            0.36,
            1);
}


.post-image-lightbox.is-visible img {
    transform: scale(1);
}


/* =========================
   CLOSE
========================= */

.post-image-lightbox__close {
    position: fixed;

    top: 24px;
    right: 26px;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    border:
        1px solid rgba(255, 255, 255, 0.3);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.12);

    color: #ffffff;

    font-size: 19px;

    cursor: pointer;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


body.post-lightbox-open {
    overflow: hidden;
}


@media (max-width: 650px) {

    .post-image-zoom {
        width: 54px;
        height: 54px;

        font-size: 21px;

        opacity: 0.9;

        transform:
            translate(-50%, -50%) scale(1);
    }

}


/* =========================================================
   LANDSCAPE
========================================================= */

.post--landscape .post-cover {
    display: flex;
    align-items: center;
    justify-content: center;

    width:
        calc(100% - 100px);

    max-width: 760px;

    margin:
        10px auto 0;

    border-radius: 16px;
}


.post--landscape .post-cover img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 560px;
}


.post--landscape .post-body {
    width: 100%;
    max-width: 720px;

    margin: 0 auto;

    padding:
        46px 28px 68px;
}

/* =========================================================
   PORTRAIT — FINAL
========================================================= */

.post--portrait {
    display: grid;
    grid-template-columns: 42% 58%;
    grid-template-rows: auto auto;
    align-items: start;
}

.post--portrait .post-media-column {
    grid-column: 1;
    grid-row: 1 / 3;
    min-width: 0;
    align-self: start;
}

.post--portrait .post-intro {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding: 54px 58px 32px 48px;
}

.post--portrait .post-cover {
    width: calc(100% - 56px);
    max-width: 380px;
    margin: 28px auto 14px;
    border-radius: 16px;
}

.post--portrait .post-cover img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.post--portrait .post-gallery--portrait {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: calc(100% - 56px);
    max-width: 380px;
    margin: 0 auto 40px;
    padding: 0;
}

.post--portrait .post-gallery--portrait .post-gallery-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: zoom-in;
}

.post--portrait .post-gallery--portrait .post-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post--portrait .post-gallery--portrait .post-gallery-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .60);
    opacity: 1;
    pointer-events: none;
    transition: opacity .2s ease;
}

.post--portrait .post-gallery--portrait .post-gallery-thumb:hover::after {
    opacity: 0;
}

.post--portrait .post-body {
    grid-column: 2;
    grid-row: 2;
    width: auto;
    margin: 0;
    padding: 12px 58px 68px 48px;
    font-size: 15px;
    line-height: 1.92;
    color: rgba(48, 45, 85, .78);
}

.post--portrait .post-body p {
    margin-bottom: 25px;
}

.post--portrait .post-meta {
    gap: 10px;
    margin-bottom: 24px;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.post--portrait .post-meta__date { color: rgba(48, 45, 85, .42); }
.post--portrait .post-meta__separator { display: none; }
.post--portrait .post-tags { gap: 10px; }

.post--portrait .post-tags::before {
    content: "";
    width: 22px;
    height: 1px;
    margin-right: 2px;
    background: rgba(48, 45, 85, .18);
}

.post--portrait .post-tags a {
    font-size: 10px;
    color: #5367a6;
}

.post--portrait .post-title {
    max-width: 540px;
    font-size: 46px;
    line-height: 1.03;
    font-weight: 720;
    letter-spacing: -.055em;
    color: #302d55;
}

.post--portrait .post-lead {
    position: relative;
    max-width: 520px;
    margin-top: 24px;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(48, 45, 85, .62);
}

.post--portrait .post-lead::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 2px;
    border-radius: 2px;
    background: rgba(83, 103, 166, .34);
}

.post--portrait .post-actions {
    gap: 8px;
    margin-top: 28px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(48, 45, 85, .08);
}

.post--portrait .post-action {
    min-height: 36px;
    padding: 0 14px;
    border-color: rgba(48, 45, 85, .11);
    border-radius: 18px;
    background: rgba(255, 255, 255, .44);
    font-size: 10px;
}

.post--portrait .post-action i { font-size: 12px; }

/* TABLET / KÜÇÜK DESKTOP */
@media (max-width: 900px) {
    .post-detail { max-width: 780px; }
    .post-intro { padding: 38px 38px 30px; }
    .post-title { font-size: 34px; }

    .post--landscape .post-cover {
        width: calc(100% - 60px);
        max-width: 680px;
    }

    .post--landscape .post-cover img { max-height: 500px; }

    .post--portrait {
        grid-template-columns: 42% 58%;
    }

    .post--portrait .post-cover {
        width: calc(100% - 36px);
        max-width: 310px;
        margin: 22px auto 12px;
    }

    .post--portrait .post-gallery--portrait {
        width: calc(100% - 36px);
        max-width: 310px;
        gap: 6px;
        margin: 0 auto 34px;
    }

    .post--portrait .post-intro { padding: 38px 32px 22px 28px; }
    .post--portrait .post-body { padding: 14px 32px 48px 28px; }
    .post--portrait .post-title { font-size: 34px; }
}

/* MOBILE */
@media (max-width: 650px) {
    .post-detail { padding: 6px 0 48px; }

    .post-article,
    .post--portrait {
        border-radius: 16px;
    }

    .post--portrait {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .post-intro,
    .post--portrait .post-intro {
        padding: 30px 22px 26px;
    }

    .post--portrait .post-intro {
        order: 1;
        width: 100%;
        box-sizing: border-box;
    }

    .post--portrait .post-media-column {
        order: 2;
        width: 100%;
        min-width: 0;
    }

    .post--portrait .post-body {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 38px 22px 54px;
        box-sizing: border-box;
    }

    .post-title,
    .post--portrait .post-title { font-size: 30px; }

    .post-lead,
    .post--portrait .post-lead { font-size: 13px; }

    .post--landscape .post-cover,
    .post--portrait .post-cover {
        width: calc(100% - 28px);
        max-width: none;
        margin: 12px auto 0;
        border-radius: 14px;
    }

    .post--landscape .post-cover img,
    .post--portrait .post-cover img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
        transform: none;
    }

    .post--portrait .post-gallery--portrait {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: calc(100% - 28px);
        max-width: none;
        gap: 8px;
        margin: 12px auto 24px;
    }

    .post--landscape .post-body {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 38px 22px 54px;
    }
}

/* =========================
   RICH CONTENT — QUOTE
========================= */

.post-body blockquote {
    margin: 28px 0;
    padding: 22px 26px;

    border: 1px solid rgba(48, 45, 85, .10);
    border-left: 3px solid rgba(48, 45, 85, .35);

    border-radius: 10px;

    background: rgba(255, 255, 255, .72);

    color: #242424;

    font-size: 1.08em;
    font-style: italic;
    line-height: 1.75;
}

.post-body blockquote p:last-child {
    margin-bottom: 0;
}


/* =========================
   RICH CONTENT — CODE
========================= */

.post-body pre {
    position: relative;

    margin: 30px 0;
    padding: 24px 26px;

    overflow-x: auto;

    border: 1px solid rgba(92, 255, 130, .18);
    border-radius: 10px;

    background: #07110a;

    color: #ffd84d;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 14px;
    line-height: 1.7;

    white-space: pre-wrap;
    word-break: break-word;

    box-shadow:
        inset 0 0 30px rgba(0, 255, 90, .035);
}

.post-body pre::before {
    content: "CODE";

    display: block;

    margin-bottom: 14px;

    color: #56e06f;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .14em;

    opacity: .85;
}


.post-body pre .code-copy-button {
    position: absolute !important;
    cursor: pointer !important;

    top: 12px !important;
    right: 12px !important;

    left: auto !important;
    bottom: auto !important;

    width: 34px !important;
    height: 34px !important;

    min-width: 34px !important;
    min-height: 34px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-radius: 8px !important;

    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;

    font-size: 14px !important;
    line-height: 1 !important;

    z-index: 5 !important;
}

/* =========================================================
   LANDSCAPE POST GALLERY — FINAL
========================================================= */

.post--landscape .post-gallery--landscape {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;

    width: 100%;
    max-width: 720px;

    margin:
        0 auto 60px;

    padding:
        0 28px;

    box-sizing: border-box;
}


/* THUMB */

.post--landscape .post-gallery--landscape .post-gallery-thumb {
    position: relative;

    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 1 / 1;

    padding: 0;

    overflow: hidden;

    border: 0;
    border-radius: 9px;

    background: transparent;

    cursor: zoom-in;

    transform: none;
    box-shadow: none;

    transition: none;
}


/* IMAGE */

.post--landscape .post-gallery--landscape .post-gallery-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: none;

    transition: none;
}


/* BLACK OVERLAY */

.post--landscape .post-gallery--landscape .post-gallery-thumb::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        rgba(0, 0, 0, .60);

    opacity: 1;

    pointer-events: none;

    transition:
        opacity .20s ease;
}


/* HOVER */

.post--landscape .post-gallery--landscape .post-gallery-thumb:hover {
    transform: none;
    box-shadow: none;
}

.post--landscape .post-gallery--landscape .post-gallery-thumb:hover::after {
    opacity: 0;
}

/* =========================================================
   POST GALLERY LIGHTBOX — FORCE FIX
========================================================= */

body.post-lightbox-open {
    overflow: hidden !important;
}

.post-gallery-lightbox {
    position: fixed !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    z-index: 999999 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 40px !important;

    box-sizing: border-box !important;

    background: rgba(15, 14, 22, .82) !important;

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transition:
        opacity .20s ease,
        visibility .20s ease !important;
}

.post-gallery-lightbox.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}


/* AÇILAN ORİJİNAL GÖRSEL */

.post-gallery-lightbox .post-gallery-lightbox__image {
    position: relative !important;

    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: calc(100vw - 100px) !important;
    max-height: calc(100vh - 80px) !important;

    object-fit: contain !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 10px !important;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, .45) !important;
}


/* KAPAT */

.post-gallery-lightbox .post-gallery-lightbox__close {
    position: fixed !important;

    top: 22px !important;
    right: 22px !important;

    z-index: 1000000 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 42px !important;
    height: 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    border:
        1px solid rgba(255, 255, 255, .25) !important;

    border-radius: 50% !important;

    background:
        rgba(0, 0, 0, .35) !important;

    color: #fff !important;

    font-size: 18px !important;

    cursor: pointer !important;
}

/* =========================================================
   GALLERY NAV — EDITORIAL POPUP STYLE
========================================================= */

.post-gallery-lightbox__nav {
    position: fixed !important;

    top: 50% !important;

    z-index: 1000000 !important;

    width: 64px !important;
    height: 90px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    color: rgba(255, 255, 255, .82) !important;

    font-size: 30px !important;

    cursor: pointer !important;

    transform: translateY(-50%) !important;

    opacity: .8;

    transition:
        opacity .18s ease,
        transform .18s ease !important;
}

.post-gallery-lightbox__nav:hover {
    background: transparent !important;
    border: 0 !important;

    opacity: 1;
}


/* SOL */

.post-gallery-lightbox__prev {
    left: 12px !important;
}

.post-gallery-lightbox__prev:hover {
    transform:
        translateY(-50%) translateX(-3px) !important;
}


/* SAĞ */

.post-gallery-lightbox__next {
    right: 12px !important;
}

.post-gallery-lightbox__next:hover {
    transform:
        translateY(-50%) translateX(3px) !important;
}


/* Font Awesome ikonunun kendisi */

.post-gallery-lightbox__nav i {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    color: inherit !important;

    font-size: inherit !important;

    line-height: 1 !important;
}

.post-gallery-lightbox__nav.is-hidden {
    display: none !important;
}

/* =========================================================
   SIMILAR POSTS — FINAL
========================================================= */

.similar-posts {
    margin-top: 34px;
    padding: 34px 0 0;
}

.similar-posts__header {
    display: block;
    margin-bottom: 16px;
    padding: 0;
}

.similar-posts__eyebrow {
    display: block;
    margin-bottom: 5px;
    font-family: "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    color: rgba(48, 45, 85, .48);
}

.similar-posts__title {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.03em;
    color: #302d55;
}

.similar-posts__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.similar-post-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(48, 45, 85, .07);
    border-radius: 12px;
    background: #f8f4ed;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(48, 45, 85, .045);
    transition: transform .18s ease, box-shadow .18s ease;
}

.similar-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(48, 45, 85, .08);
}

.similar-post-card__image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eee7dc;
}

.similar-post-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.similar-post-card:hover .similar-post-card__image img {
    transform: scale(1.025);
}

.similar-post-card__content {
    padding: 10px 10px 12px;
}

.similar-post-card__meta {
    margin-bottom: 6px;
    font-family: "Manrope", sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: rgba(48, 45, 85, .42);
}

.similar-post-card__title {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.015em;
    color: #302d55;
}

@media (max-width: 900px) {
    .similar-posts__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .similar-posts {
        margin-top: 24px;
    }

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

/* =========================================================
   COMMENTS
========================================================= */

.post-comments {
    margin-top: 34px;
    padding: 34px 0 0;
}

.post-comments__header {
    margin-bottom: 18px;
}

.post-comments__eyebrow {
    display: block;
    margin-bottom: 5px;

    font-family: "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;

    color: rgba(48, 45, 85, .48);
}

.post-comments__title {
    margin: 0;

    font-family: "Manrope", sans-serif;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.03em;

    color: #302d55;
}

/* FORM */

.comment-form {
    padding: 22px;

    border: 1px solid rgba(48, 45, 85, .07);
    border-radius: 14px;

    background: #f8f4ed;

    box-shadow:
        0 10px 28px rgba(48, 45, 85, .04);
}

.comment-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.comment-form__field {
    margin-bottom: 14px;
}

.comment-form__field label {
    display: block;
    margin-bottom: 7px;

    font-family: "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;

    color: rgba(48, 45, 85, .58);
}

.comment-form__field input,
.comment-form__field textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 11px 12px;

    border: 1px solid rgba(48, 45, 85, .10);
    border-radius: 9px;

    outline: none;

    background: rgba(255, 255, 255, .52);

    font-family: "Manrope", sans-serif;
    font-size: 13px;
    line-height: 1.5;

    color: #302d55;

    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.comment-form__field textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form__field input:focus,
.comment-form__field textarea:focus {
    border-color: rgba(83, 103, 166, .38);

    background: rgba(255, 255, 255, .76);

    box-shadow:
        0 0 0 3px rgba(83, 103, 166, .07);
}

.comment-form__submit {
    min-height: 38px;

    padding: 0 18px;

    border: 0;
    border-radius: 19px;

    background: #302d55;

    font-family: "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;

    color: #fff;

    cursor: pointer;

    transition:
        transform .18s ease,
        opacity .18s ease;
}

.comment-form__submit:hover {
    transform: translateY(-1px);
    opacity: .9;
}

/* STATUS */

.comment-notice {
    margin-bottom: 14px;
    padding: 12px 14px;

    border-radius: 9px;

    font-family: "Manrope", sans-serif;
    font-size: 11px;
    line-height: 1.5;
}

.comment-notice--success {
    border: 1px solid rgba(45, 120, 78, .14);
    background: rgba(45, 120, 78, .07);
    color: #37694b;
}

.comment-notice--error {
    border: 1px solid rgba(160, 64, 64, .14);
    background: rgba(160, 64, 64, .07);
    color: #874848;
}

/* COMMENT LIST */

.comment-list {
    display: grid;
    gap: 14px;

    margin-top: 22px;
}

.comment-item {
    padding: 18px 20px;

    border: 1px solid rgba(48, 45, 85, .10);
    border-radius: 12px;

    background: #ebe8f2;

    box-shadow:
        0 8px 22px rgba(48, 45, 85, .06);
}

.comment-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    margin-bottom: 8px;
}

.comment-item__name {
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 700;

    color: #302d55;
}

.comment-item__date {
    font-family: "Manrope", sans-serif;
    font-size: 9px;
    font-weight: 600;

    color: rgba(48, 45, 85, .38);
}

.comment-item__text {
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    line-height: 1.65;

    color: rgba(48, 45, 85, .84);

    overflow-wrap: anywhere;
}

.comment-empty {
    margin: 16px 0 0;

    font-family: "Manrope", sans-serif;
    font-size: 11px;

    color: rgba(48, 45, 85, .46);
}

/* RESPONSIVE */

@media (max-width: 620px) {

    .post-comments {
        margin-top: 24px;
    }

    .comment-form {
        padding: 16px;
    }

    .comment-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .comment-item__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}

/* =========================================================
   COMMENT REPLIES
========================================================= */

.comment-new {
    margin-top: 28px;
}

.comment-new__eyebrow {
    display: block;
    margin-bottom: 10px;
    font-family: "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    color: rgba(48, 45, 85, .46);
}

.comment-item {
    background: #ebe8f2;
}

.comment-reply-button {
    margin-top: 11px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #514c82;
    cursor: pointer;
}

.comment-reply-button:hover {
    text-decoration: underline;
}

/* Cevap grubu */
.comment-replies {
    position: relative;
    display: grid;
    gap: 6px;
    margin-top: 6px;
    margin-left: 38px;
}

/* Grubun dikey omurgası */
.comment-replies::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -19px;
    width: 1px;
    background: rgba(48, 45, 85, .20);
}

/* Her cevap */
.comment-replies>.comment-thread {
    position: relative;
}

/* Omurgadan karta gelen yatay bağlantı */
.comment-replies>.comment-thread::before {
    content: "";
    position: absolute;
    top: 28px;
    left: -19px;
    width: 19px;
    height: 1px;
    background: rgba(48, 45, 85, .20);
}

/* Son cevabın altındaki omurgayı gizle */
.comment-replies>.comment-thread:last-child::after {
    content: "";
    position: absolute;
    top: 29px;
    bottom: 0;
    left: -20px;
    width: 3px;
    background: #f7f4ee;
}

/* İç içe cevap kendi bağımsız grubunu oluşturur */
.comment-replies .comment-replies {
    margin-top: 6px;
}

.comment-item--reply {
    background: rgba(255, 255, 255, .54);
    border-color: rgba(48, 45, 85, .11);
    box-shadow: none;
}

.comment-reply-form {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(48, 45, 85, .10);
    border-radius: 10px;
    background: rgba(255, 255, 255, .50);
}

.comment-reply-form[hidden] {
    display: none;
}

.comment-reply-form .comment-form__field:last-of-type {
    margin-bottom: 12px;
}

@media (max-width: 620px) {
    .comment-replies {
        margin-left: 24px;
    }

    .comment-replies::before,
    .comment-replies>.comment-thread::before {
        left: -12px;
    }

    .comment-replies>.comment-thread::before {
        width: 12px;
    }

    .comment-replies>.comment-thread:last-child::after {
        left: -13px;
    }
}

/* =========================================================
   COMMENT THREAD — FINAL
========================================================= */

/* Ana yorum grupları */
.comment-list {
    display: block;
    margin-top: 22px;
}

/* Her ana thread, sonraki ana threadden ayrılır */
.comment-list>.comment-thread {
    margin-bottom: 18px;
}

.comment-list>.comment-thread:last-child {
    margin-bottom: 0;
}

/* Cevap üst yorumuna yakın */
.comment-replies {
    display: grid;
    gap: 6px;

    margin-top: 6px;
    margin-left: 38px;
}

/* İç içe cevaplar da aynı mantık */
.comment-replies .comment-thread {
    margin: 0;
}

.comment-replies .comment-replies {
    margin-top: 6px;
}

/* Kartların fazladan boşluk üretmesini engelle */
.comment-item {
    margin: 0;
}

@media (max-width: 620px) {
    .comment-replies {
        margin-left: 18px;
    }
}

/* İlk ana yorum hariç, sonraki ana yorumları aşağı ayır */
.comment-list>.comment-thread+.comment-thread {
    padding-top: 16px !important;
}


/* =========================================================
   POST DETAIL — HOMEPAGE VISUAL LANGUAGE
   Ana sayfa: beyaz yüzey + #302D55 + #6C7CFF + hafif cam/gölge
========================================================= */

.post-page {
    background: #ffffff;
    color: #302D55;
}

.post-detail {
    position: relative;
    z-index: 1;
}

/* Ana içerik yüzeyi */
.post-article {
    border: 1px solid rgba(48, 45, 85, .08);
    background: rgba(255, 255, 255, .90);
    box-shadow:
        0 10px 24px -10px rgba(48, 45, 85, .20),
        0 16px 40px -14px rgba(48, 45, 85, .14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Üst başlık/meta */
.post-intro {
    background: transparent;
}

.post-title,
.post-body,
.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    color: #302D55;
}

.post-lead,
.post-body {
    color: rgba(48, 45, 85, .78);
}

.post-meta {
    color: rgba(48, 45, 85, .52);
}

.post-tags a,
.post-all-tags__item,
.comment-reply-button {
    color: #5367A6;
}

/* Paylaşım / aksiyon */
.post-action {
    border: .5px solid rgba(48, 45, 85, .18);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .58),
            rgba(255, 255, 255, .28)
        );
    color: #302D55;
    box-shadow:
        0 8px 20px rgba(48, 45, 85, .06),
        inset 0 1px 0 rgba(255, 255, 255, .80);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.post-action:hover {
    color: #5367A6;
    border-color: rgba(108, 124, 255, .34);
    background: rgba(255, 255, 255, .76);
    box-shadow:
        0 10px 24px rgba(48, 45, 85, .09),
        inset 0 1px 0 rgba(255, 255, 255, .90);
}

/* Önceki / sonraki */
.post-sequence-nav__link {
    color: #302D55 !important;
}

.post-sequence-nav__link:hover {
    color: #5367A6 !important;
    opacity: 1 !important;
}

/* Tüm etiketler */
.post-all-tags {
    border-top-color: rgba(48, 45, 85, .08) !important;
}

.post-all-tags__label {
    color: rgba(48, 45, 85, .48) !important;
}

.post-all-tags__item {
    border: 1px solid rgba(48, 45, 85, .10) !important;
    background: rgba(255, 255, 255, .60) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .76);
}

.post-all-tags__item:hover {
    color: #302D55 !important;
    border-color: rgba(108, 124, 255, .30) !important;
    background: rgba(255, 255, 255, .88) !important;
}

/* Benzer içerikler: ana sayfa kart dili */
.similar-post-card {
    border: 0;
    background: #ffffff;
    box-shadow:
        0 10px 24px -10px rgba(48, 45, 85, .28),
        0 16px 40px -14px rgba(48, 45, 85, .20);
}

.similar-post-card:hover {
    box-shadow:
        0 14px 28px -10px rgba(48, 45, 85, .30),
        0 22px 48px -16px rgba(48, 45, 85, .24);
}

.similar-post-card__image {
    background: rgba(108, 124, 255, .05);
}

.similar-post-card__meta {
    color: rgba(48, 45, 85, .48);
}

.similar-post-card__title,
.similar-posts__title {
    color: #302D55;
}

.similar-posts__eyebrow {
    color: rgba(48, 45, 85, .48);
}

/* Yorum alanı */
.post-comments__title {
    color: #302D55;
}

.post-comments__eyebrow,
.comment-new__eyebrow {
    color: rgba(48, 45, 85, .48);
}

.comment-form {
    border: 1px solid rgba(48, 45, 85, .08);
    background: rgba(255, 255, 255, .82);
    box-shadow:
        0 10px 24px -10px rgba(48, 45, 85, .16),
        0 16px 40px -14px rgba(48, 45, 85, .10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.comment-form__field label {
    color: rgba(48, 45, 85, .62);
}

.comment-form__field input,
.comment-form__field textarea {
    border: 1px solid rgba(48, 45, 85, .12);
    background: rgba(255, 255, 255, .76);
    color: #302D55;
}

.comment-form__field input:focus,
.comment-form__field textarea:focus {
    border-color: rgba(108, 124, 255, .44);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(108, 124, 255, .08);
}

.comment-form__submit {
    background: #302D55;
    color: #ffffff;
}

.comment-item {
    border: 1px solid rgba(48, 45, 85, .08);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 8px 22px rgba(48, 45, 85, .05);
}

.comment-item--reply {
    border-color: rgba(48, 45, 85, .08);
    background: rgba(255, 255, 255, .52);
}

.comment-reply-form {
    border-color: rgba(48, 45, 85, .09);
    background: rgba(255, 255, 255, .58);
}

.comment-replies > .comment-thread:last-child::after {
    background: #ffffff;
}

.comment-item__name {
    color: #302D55;
}

.comment-item__text {
    color: rgba(48, 45, 85, .82);
}

/* Sayfa içindeki eski bej ayırıcı/yüzey kalıntılarını temizle */
.post-page .post-article,
.post-page .similar-post-card,
.post-page .comment-form,
.post-page .comment-item,
.post-page .comment-reply-form {
    --post-surface: #ffffff;
}

/* Mobilde cam yüzeyleri ağırlaştırma */
@media (max-width: 650px) {
    .post-article,
    .comment-form {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}



/* GALERİ LIGHTBOX AÇIKLAMASI */

.post-gallery-lightbox .post-gallery-lightbox__caption {
    position: fixed;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));

    width: min(720px, calc(100vw - 40px));
    margin: 0;

    color: #fff;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7);

    transform: translateX(-50%);
    pointer-events: none;
}

.post-gallery-lightbox .post-gallery-lightbox__caption:empty {
    display: none;
}


/* =========================================================
   PORTRAIT — AKIŞ DÜZENİ (dikey kapak, galeri yok)
   Kapak sola yaslanır; başlık ve yazı yanında akar, kapak bitince
   altından tam genişlikte devam eder. Kapağın sağındaki boşluk ile
   altındaki boşluk aynıdır (--flow-gap). Mobilde (≤650px) eski
   alt alta düzen geçerli.
========================================================= */

@media (min-width: 651px) {
    .post--portrait.post--flow {
        --flow-pad: 48px;
        --flow-gap: 32px;
        display: block;
    }

    .post--portrait.post--flow::after {
        content: "";
        display: block;
        clear: both;
    }

    .post--portrait.post--flow .post-media-column {
        float: left;
        width: 38%;
        max-width: 380px;
        margin: var(--flow-pad) var(--flow-gap) var(--flow-gap) var(--flow-pad);
    }

    .post--portrait.post--flow .post-title,
    .post--portrait.post--flow .post-lead {
        max-width: none;
    }

    .post--portrait.post--flow .post-lead {
        display: flow-root;
    }

    .post--portrait.post--flow .post-cover {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .post--portrait.post--flow .post-intro {
        padding: var(--flow-pad) 58px 0 var(--flow-pad);
    }

    .post--portrait.post--flow .post-body {
        padding: 28px 58px 68px var(--flow-pad);
    }

    /* Kutulu öğeler kapağın arkasına taşmasın, kapağın yanında daralsın. */
    .post--portrait.post--flow .post-body :is(ul, ol, blockquote, pre, table) {
        overflow: hidden;
    }

    .post--portrait.post--flow .post-all-tags,
    .post--portrait.post--flow .post-sequence-nav {
        clear: both;
    }
}

@media (min-width: 651px) and (max-width: 900px) {
    .post--portrait.post--flow {
        --flow-pad: 28px;
        --flow-gap: 24px;
    }

    .post--portrait.post--flow .post-intro {
        padding-right: 32px;
    }

    .post--portrait.post--flow .post-body {
        padding-right: 32px;
    }
}


/* =========================================================
   YAZI İÇİ GÖRSELLER (editörden eklenen ekran görüntüleri)
   Telefon ekran görüntüleri dev gibi görünmesin: yükseklik
   sınırlı, ortalı, yuvarlak köşeli. Tıklayınca büyür.
========================================================= */

.post-body img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 440px;
    margin: 22px auto;
    border-radius: 16px;
    border: 1px solid rgba(124, 92, 255, 0.14);
    box-shadow: 0 12px 32px rgba(40, 30, 90, 0.12);
}

.post-body img.post-body-image {
    cursor: zoom-in;
}

.post-body p > img:only-child {
    margin: 4px auto;
}

/* Aynı satıra eklenen birden fazla görsel yan yana dizilir */
.post-body p:has(> img + img) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
}

.post-body p:has(> img + img) > img {
    margin: 4px 0;
    max-width: calc(50% - 9px);
}

.post-body p:has(> img) > br:last-child {
    display: none;
}

@media (max-width: 650px) {
    .post-body img {
        max-height: 400px;
        border-radius: 12px;
    }
}
