/* ============================================================
   YAZI DETAY (single.php) — kurumsal düzen
   ============================================================ */
.tk-post-head {
    --tk-navy: var(--mx-navy, #14143a);
    --tk-red: var(--mx-red, #e31e26);
    background: #fff;
    border-bottom: 1px solid #e6e8ef;
    padding: 34px 0 30px;
}
.tk-post-head__crumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    font-size: 13px; color: #8a8c9c; margin-bottom: 22px;
}
.tk-post-head__crumb a { color: #6b6e82; text-decoration: none; }
.tk-post-head__crumb a:hover { color: var(--tk-red); }
.tk-post-head__crumb i { font-size: 9px; color: #b4b7c6; }
.tk-post-head__cat {
    display: inline-block; margin-bottom: 14px;
    padding: 5px 12px; border-radius: 6px;
    background: var(--tk-red); color: #fff !important;
    font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.tk-post-head__title {
    max-width: 980px; margin: 0 0 16px;
    font-size: 36px; font-weight: 800; line-height: 1.22; letter-spacing: -.4px; color: var(--tk-navy);
}
.tk-post-head__meta { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13.5px; font-weight: 600; color: #6b6e82; }
.tk-post-head__meta i { color: var(--tk-red); margin-right: 6px; }

.tk-post {
    --tk-navy: var(--mx-navy, #14143a);
    --tk-red: var(--mx-red, #e31e26);
    --tk-line: #e6e8ef;
    --tk-soft: #f4f5f8;
    --tk-muted: #6b6e82;
    padding: 36px 0 80px; background: var(--tk-soft);
}
.tk-post__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.tk-post__main { background: #fff; border: 1px solid var(--tk-line); border-radius: 14px; padding: 30px; }

.tk-post__cover { margin: 0 0 28px; border-radius: 12px; overflow: hidden; background: var(--tk-soft); }
.tk-post__cover a { display: block; }
.tk-post__cover img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }

.tk-post__content { font-size: 16.5px; line-height: 1.85; color: #33364a; }
.tk-post__content > *:first-child { margin-top: 0; }
.tk-post__content p { margin: 0 0 18px; }
.tk-post__content h2, .tk-post__content h3, .tk-post__content h4 { color: var(--tk-navy); font-weight: 800; line-height: 1.3; margin: 30px 0 14px; }
.tk-post__content h2 { font-size: 24px; }
.tk-post__content h3 { font-size: 20px; }
.tk-post__content a { color: var(--tk-red); text-decoration: underline; text-underline-offset: 3px; }
.tk-post__content img { max-width: 100%; height: auto; border-radius: 10px; }
.tk-post__content ul, .tk-post__content ol { padding-left: 22px; margin: 0 0 18px; }
.tk-post__content blockquote {
    margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--tk-red);
    background: var(--tk-soft); border-radius: 0 10px 10px 0; font-weight: 600; color: var(--tk-navy);
}
.tk-post__content table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14.5px; }
.tk-post__content th, .tk-post__content td { border: 1px solid var(--tk-line); padding: 10px 12px; text-align: left; }
.tk-post__content th { background: var(--tk-soft); color: var(--tk-navy); }
.tk-post__content .wp-block-gallery, .tk-post__content .gallery { margin: 24px 0; }

.tk-post__share {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--tk-line);
}
.tk-post__share-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tk-muted); margin-right: 6px; }
.tk-post__share a, .tk-post__copy {
    height: 38px; min-width: 38px; padding: 0 12px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--tk-soft); border: 1px solid var(--tk-line);
    color: var(--tk-navy); font-size: 14px; text-decoration: none; cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tk-post__copy span { font-size: 12.5px; font-weight: 700; }
.tk-post__share a:hover, .tk-post__copy:hover { background: var(--tk-navy); border-color: var(--tk-navy); color: #fff; }

.tk-post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.tk-post__nav-item {
    display: flex; flex-direction: column; gap: 6px;
    padding: 16px 18px; border: 1px solid var(--tk-line); border-radius: 12px;
    text-decoration: none; transition: border-color .2s ease, background .2s ease;
}
.tk-post__nav-item--next { text-align: right; }
.tk-post__nav-item:hover { border-color: var(--tk-navy); background: #fafbfd; }
.tk-post__nav-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tk-red); }
.tk-post__nav-title {
    font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--tk-navy);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Kenar çubuğu ---------- */
.tk-post__side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.tk-side-box { background: #fff; border: 1px solid var(--tk-line); border-radius: 14px; padding: 22px; }
.tk-side-box__title {
    display: flex; align-items: center; gap: 10px;
    font-size: 15px; font-weight: 800; color: var(--tk-navy); margin: 0 0 16px;
}
.tk-side-box__title::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--tk-red); }
.tk-side-list { display: flex; flex-direction: column; }
.tk-side-list__item {
    display: flex; gap: 12px; align-items: center; padding: 10px 0;
    border-bottom: 1px solid var(--tk-line); text-decoration: none;
}
.tk-side-list__item:first-child { padding-top: 0; }
.tk-side-list__item:last-child { border-bottom: 0; }
.tk-side-list__img { flex: 0 0 72px; width: 72px; height: 54px; border-radius: 8px; overflow: hidden; background: var(--tk-soft); }
.tk-side-list__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-side-list__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tk-side-list__date { font-size: 11.5px; font-weight: 600; color: var(--tk-muted); }
.tk-side-list__title {
    font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--tk-navy);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tk-side-list__item:hover .tk-side-list__title { color: var(--tk-red); }
.tk-side-box__more {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
    font-size: 13px; font-weight: 700; color: var(--tk-navy); text-decoration: none;
}
.tk-side-box__more:hover { color: var(--tk-red); }

.tk-side-cats { list-style: none; margin: 0; padding: 0; }
.tk-side-cats a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; margin-bottom: 4px; border-radius: 8px;
    font-size: 14px; font-weight: 600; color: #3b3e52; text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.tk-side-cats a i { font-size: 10px; color: #b4b7c6; }
.tk-side-cats a:hover { background: var(--tk-soft); color: var(--tk-navy); }
.tk-side-cats a.is-active { background: var(--tk-navy); color: #fff; }
.tk-side-cats a.is-active i { color: rgba(255,255,255,.6); }

.tk-side-box--navy { background: var(--tk-navy); border-color: var(--tk-navy); color: rgba(255,255,255,.75); }
.tk-side-box--navy .tk-side-box__title { color: #fff; }
.tk-side-box--navy p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.82) !important; }
.tk-side-box--navy b { color: #fff; }
.tk-side-box__ico {
    width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); color: #fff; font-size: 18px;
}
.tk-side-box__btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
    background: var(--tk-red); color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none;
}
.tk-side-box__btn:hover { background: #c8161d; }

@media (max-width: 991px) {
    .tk-post__layout { grid-template-columns: 1fr; }
    .tk-post__side { position: static; }
    .tk-post-head__title { font-size: 28px; }
}
@media (max-width: 575px) {
    .tk-post-head { padding: 24px 0 22px; }
    .tk-post-head__title { font-size: 23px; }
    .tk-post__main { padding: 18px; border-radius: 12px; }
    .tk-post__content { font-size: 15.5px; }
    .tk-post__nav { grid-template-columns: 1fr; }
    .tk-post__nav-item--next { text-align: left; }
    .tk-post__copy span { display: none; }
}

/* ---------- Görsel açılır pencere (lightbox) ---------- */
.tk-lb-trigger { cursor: zoom-in; }
.tk-lb-open, .tk-lb-open body { overflow: hidden; }
.tk-lb {
    position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
    background: rgba(8, 9, 28, .92); opacity: 0; transition: opacity .2s ease; padding: 70px 80px 40px;
}
.tk-lb[hidden] { display: none; }
.tk-lb.is-open { opacity: 1; }
.tk-lb__bar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 700; }
.tk-lb__close, .tk-lb__nav {
    display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
    width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 18px;
    transition: background .2s ease, transform .2s ease;
}
.tk-lb__close:hover, .tk-lb__nav:hover { background: var(--mx-red, #e31e26); }
.tk-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.tk-lb__nav[hidden] { display: none; }
.tk-lb__nav--prev { left: 18px; } .tk-lb__nav--next { right: 18px; }
.tk-lb__stage { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tk-lb__img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); transition: opacity .2s ease; }
.tk-lb.is-loading .tk-lb__img { opacity: .35; }
.tk-lb__cap { color: rgba(255,255,255,.75); font-size: 14px; text-align: center; max-width: 800px; }
.tk-lb__cap:empty { display: none; }
@media (max-width: 640px) { .tk-lb { padding: 64px 10px 30px; } .tk-lb__nav { top: auto; bottom: 18px; transform: none; } .tk-lb__nav--prev { left: calc(50% - 56px); } .tk-lb__nav--next { right: calc(50% - 56px); } .tk-lb__img { max-height: calc(100vh - 170px); } }
