/* =========================================================================
   Tutku — Modern blog yazısı (single post) stilleri
   Bkz. single.php + includes/tutku-blog-single.php
   ========================================================================= */

.tutku-post-page {
    --tutku-accent: #d6251a;
    --tp-ink:      #0f1b2d;
    --tp-ink-soft: #20324f;
    --tp-muted:    #6b7488;
    --tp-line:     #e7ecf2;
    --tp-bg-soft:  #f6f8fb;
    --tp-radius:   16px;
    --tp-shadow:   0 10px 34px rgba(15,23,42,.08);
    --tp-accent-tint: color-mix(in srgb, var(--tutku-accent) 8%, #fff);
    color: var(--tp-ink-soft);
}
.tutku-post-page * { box-sizing: border-box; }

/* ---- Okuma ilerleme çubuğu ---- */
.tutku-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 4px;
    background: transparent; z-index: 9999; pointer-events: none;
}
.tutku-progress__bar {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--tutku-accent), color-mix(in srgb, var(--tutku-accent) 55%, #ff8a3d));
    transition: width .08s linear;
}

/* ---- Kapak (cover) hero — tam genişlik ---- */
.tutku-cover {
    position: relative; width: 100vw; margin-left: calc(50% - 50vw);
    min-height: 460px; display: flex; align-items: flex-end;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    margin-bottom: 40px;
}
.tutku-cover__inner {
    max-width: 1180px; width: 100%; margin: 0 auto;
    padding: 48px clamp(18px, 4vw, 40px); color: #fff;
}
.tutku-cover__title {
    color: #fff; font-size: clamp(28px, 4.4vw, 50px); font-weight: 800;
    line-height: 1.16; margin: 16px 0 18px; max-width: 900px;
    text-shadow: 0 2px 24px rgba(0,0,0,.35);
}

/* ---- Genel sarmalayıcı + grid ---- */
.tutku-post-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 28px); width: 100%; }
.tutku-post-wrap.hero-classic { padding-top: 18px; }
.tutku-post-grid { display: grid; gap: 44px; align-items: start; }
.tutku-post-wrap.has-aside .tutku-post-grid { grid-template-columns: minmax(0, 1fr) 318px; }
.tutku-post-wrap.no-aside  .tutku-post-grid { grid-template-columns: minmax(0, 760px); justify-content: center; }
.tutku-post { min-width: 0; }

/* ---- Chip / kategori etiketi ---- */
.tutku-chip {
    display: inline-block; background: var(--tutku-accent); color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 6px 13px; border-radius: 999px; text-decoration: none; transition: filter .15s;
}
.tutku-chip:hover { filter: brightness(.9); color: #fff; }

/* ---- Klasik hero başlık ---- */
.tutku-post__head { margin: 6px 0 24px; }
.tutku-post__title {
    font-size: clamp(26px, 4.2vw, 42px); font-weight: 800; line-height: 1.18;
    color: var(--tp-ink); margin: 14px 0 16px;
}
.tutku-post__feat {
    margin: 0 0 8px; border-radius: var(--tp-radius); overflow: hidden;
    aspect-ratio: 4 / 3; background: var(--tp-bg-soft); box-shadow: var(--tp-shadow);
}
/* 4:3 yüklenen görseller tam oturur, kırpılmaz; farklı oranlar da kırpılmadan sığar */
.tutku-post__feat img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---- Meta satırı ---- */
.tutku-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--tp-muted); font-size: 14px; font-weight: 500; }
.tutku-meta__i { display: inline-flex; align-items: center; gap: 8px; }
.tutku-meta__i i { color: var(--tutku-accent); font-size: 13px; }
.tutku-meta__av { border-radius: 50%; vertical-align: middle; }
.tutku-meta--light { color: rgba(255,255,255,.92); }
.tutku-meta--light .tutku-meta__i i { color: #fff; }

/* ---- İçindekiler (TOC) ---- */
.tutku-toc__list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.tutku-toc__list li { margin: 0; }
.tutku-toc__list li.lvl-3 { padding-left: 18px; }
.tutku-toc__list a {
    display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none;
    color: var(--tp-ink-soft); font-size: 14px; line-height: 1.4; border-left: 2px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.tutku-toc__list li.lvl-3 a { font-size: 13px; color: var(--tp-muted); }
.tutku-toc__list a:hover { background: var(--tp-bg-soft); color: var(--tutku-accent); }
.tutku-toc__list a.is-current { background: var(--tp-accent-tint); color: var(--tutku-accent); border-left-color: var(--tutku-accent); font-weight: 600; }

/* Mobil/akış içi TOC kutusu */
.tutku-toc--inline { background: var(--tp-bg-soft); border: 1px solid var(--tp-line); border-radius: 14px; padding: 6px 16px; margin: 0 0 28px; }
.tutku-toc--inline summary { cursor: pointer; font-weight: 800; color: var(--tp-ink); padding: 12px 0; list-style: none; display: flex; align-items: center; gap: 10px; }
.tutku-toc--inline summary::-webkit-details-marker { display: none; }
.tutku-toc--inline summary i { color: var(--tutku-accent); }
.tutku-toc--inline[open] summary { border-bottom: 1px solid var(--tp-line); margin-bottom: 8px; }
.tutku-toc--inline .tutku-toc__list { padding-bottom: 10px; }

/* ---- Gövde + yapışkan paylaşım rayı ---- */
.tutku-post__body { position: relative; }
.tutku-share-rail { position: absolute; top: 0; bottom: 0; left: -76px; width: 52px; }
.tutku-share-rail__inner {
    position: sticky; top: 100px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.tutku-share-rail__lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tp-muted); margin-bottom: 2px; }

.tutku-sh {
    width: 40px; height: 40px; border: 0; border-radius: 50%; color: #fff; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
    text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.tutku-sh:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(15,23,42,.18); color: #fff; }
.tutku-sh--fb { background: #1877f2; }
.tutku-sh--x  { background: #111827; }
.tutku-sh--wa { background: #25d366; }
.tutku-sh--cp { background: #64748b; }
.tutku-sh--cp.is-copied { background: #16a34a; }

/* ---- İçerik tipografisi ---- */
.tutku-post__content { font-size: 18px; line-height: 1.85; color: var(--tp-ink-soft); }
.tutku-post__content > *:first-child { margin-top: 0; }
.tutku-post__content p { margin: 0 0 22px; }
.tutku-post__content > p:first-of-type::first-letter {
    float: left; font-size: 3.4em; line-height: .82; font-weight: 800; color: var(--tutku-accent);
    padding: 6px 12px 0 0; font-family: Georgia, 'Times New Roman', serif;
}
.tutku-post__content h2 {
    font-size: 28px; font-weight: 800; color: var(--tp-ink); line-height: 1.28;
    margin: 44px 0 16px; padding-top: 6px; scroll-margin-top: 90px; position: relative;
}
.tutku-post__content h2::before {
    content: ""; position: absolute; left: -16px; top: 14px; bottom: 6px; width: 5px;
    border-radius: 4px; background: var(--tutku-accent);
}
.tutku-post__content h3 { font-size: 22px; font-weight: 700; color: var(--tp-ink); margin: 32px 0 12px; scroll-margin-top: 90px; }
.tutku-post__content h4 { font-size: 18px; font-weight: 700; color: var(--tp-ink); margin: 26px 0 10px; }
.tutku-post__content a { color: var(--tutku-accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--tutku-accent) 35%, transparent); }
.tutku-post__content a:hover { border-bottom-color: var(--tutku-accent); }
.tutku-post__content img { max-width: 100%; height: auto; border-radius: 14px; margin: 12px 0 24px; }
.tutku-post__content ul, .tutku-post__content ol { margin: 0 0 22px; padding-left: 24px; }
.tutku-post__content li { margin: 0 0 10px; padding-left: 4px; }
.tutku-post__content ul li::marker { color: var(--tutku-accent); }
.tutku-post__content ol li::marker { color: var(--tutku-accent); font-weight: 700; }
.tutku-post__content blockquote {
    margin: 28px 0; padding: 18px 22px; background: var(--tp-accent-tint);
    border-left: 4px solid var(--tutku-accent); border-radius: 0 12px 12px 0;
    font-size: 19px; font-style: italic; color: var(--tp-ink);
}
.tutku-post__content blockquote p:last-child { margin-bottom: 0; }
.tutku-post__content figure { margin: 0 0 24px; }
.tutku-post__content figcaption { font-size: 13px; color: var(--tp-muted); text-align: center; margin-top: 8px; }
.tutku-post__content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.tutku-post__content th, .tutku-post__content td { border: 1px solid var(--tp-line); padding: 10px 12px; text-align: left; }
.tutku-post__content th { background: var(--tp-bg-soft); font-weight: 700; color: var(--tp-ink); }

/* ---- Etiketler ---- */
.tutku-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0 0; }
.tutku-tags > i { color: var(--tp-muted); margin-right: 2px; }
.tutku-tags a {
    background: var(--tp-bg-soft); color: var(--tp-ink-soft); font-size: 13px; font-weight: 600;
    padding: 6px 13px; border-radius: 999px; text-decoration: none; transition: background .15s, color .15s;
}
.tutku-tags a:hover { background: var(--tutku-accent); color: #fff; }
.tutku-tags--plain { margin: 0; }

/* ---- Emoji tepkiler ---- */
.tutku-react {
    margin: 36px 0 0; padding: 26px; border: 1px solid var(--tp-line);
    border-radius: var(--tp-radius); background: linear-gradient(180deg, #fff, var(--tp-bg-soft)); text-align: center;
}
.tutku-react__title { font-size: 17px; font-weight: 800; color: var(--tp-ink); margin: 0 0 18px; }
.tutku-react__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tutku-react__btn {
    display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
    min-width: 88px; padding: 12px 14px; background: #fff; border: 1.5px solid var(--tp-line);
    border-radius: 14px; cursor: pointer; transition: transform .12s, border-color .15s, box-shadow .15s;
}
.tutku-react__btn:hover { transform: translateY(-3px); border-color: var(--tutku-accent); box-shadow: 0 8px 18px rgba(15,23,42,.1); }
.tutku-react__btn.is-active { border-color: var(--tutku-accent); background: var(--tp-accent-tint); box-shadow: 0 6px 16px rgba(15,23,42,.08); }
.tutku-react__emoji { font-size: 26px; line-height: 1; }
.tutku-react__lbl { font-size: 12px; font-weight: 600; color: var(--tp-ink-soft); }
.tutku-react__count { font-size: 13px; font-weight: 800; color: var(--tutku-accent); min-width: 16px; }
.tutku-react__btn.is-bump .tutku-react__emoji { animation: tutku-bump .4s ease; }
@keyframes tutku-bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.45); } }

/* ---- Akış paylaşım barı (alt) ---- */
.tutku-share-inline { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--tp-line); }
.tutku-share-inline__lbl { font-weight: 700; color: var(--tp-ink); font-size: 15px; }
.tutku-share-inline__btns { display: flex; gap: 10px; }

/* ---- Emlak CTA ---- */
.tutku-cta {
    margin: 36px 0 0; padding: 28px; border-radius: var(--tp-radius);
    background: linear-gradient(120deg, #04041d 0%, #362c66 100%); color: #fff;
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.tutku-cta__icon { width: 60px; height: 60px; flex: 0 0 auto; border-radius: 16px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.tutku-cta__body { flex: 1 1 240px; }
.tutku-cta__title { color: #fff; font-size: 21px; font-weight: 800; margin: 0 0 6px; }
.tutku-cta__text { color: rgba(255,255,255,.82); font-size: 15px; margin: 0; line-height: 1.6; }
.tutku-cta__btn {
    flex: 0 0 auto; background: var(--tutku-accent); color: #fff; font-weight: 700; font-size: 15px;
    padding: 13px 24px; border-radius: 999px; text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
    transition: transform .15s, filter .15s;
}
.tutku-cta__btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; }

/* ---- Sorumluluk reddi ---- */
.tutku-disclaimer {
    margin: 30px 0 0; padding: 18px 20px; background: #fff7ed; border: 1px solid #fed7aa;
    border-radius: 12px; font-size: 13.5px; line-height: 1.7; color: #7c4a18;
}
.tutku-disclaimer__badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #c2410c; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.tutku-disclaimer p { margin: 0; }

/* ---- Yazar kutusu ---- */
.tutku-author {
    margin: 36px 0 0; padding: 26px; background: var(--tp-bg-soft); border-radius: var(--tp-radius);
    display: flex; gap: 20px; align-items: flex-start;
}
.tutku-author__av img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block; }
.tutku-author__eyebrow { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tutku-accent); }
.tutku-author__name { display: block; font-weight: 800; color: var(--tp-ink); font-size: 19px; margin: 2px 0 8px; }
.tutku-author__bio { margin: 0 0 10px; color: #4b5a72; font-size: 14.5px; line-height: 1.65; }
.tutku-author__link { color: var(--tutku-accent); font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.tutku-author__link:hover { gap: 9px; }

/* ---- Yorumlar ---- */
.tutku-comments { margin: 40px 0 0; padding-top: 30px; border-top: 1px solid var(--tp-line); }
.tutku-post__pages { margin: 20px 0; font-weight: 600; }

/* =========================================================================
   SIDEBAR
   ========================================================================= */
.tutku-post-aside { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tutku-widget { background: #fff; border: 1px solid var(--tp-line); border-radius: 14px; padding: 18px; }
.tutku-widget__title { font-size: 14px; font-weight: 800; color: var(--tp-ink); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .03em; }
.tutku-widget__title i { color: var(--tutku-accent); }
.tutku-widget--toc { max-height: calc(100vh - 130px); overflow: auto; }

.tutku-widget--author { text-align: center; }
.tutku-widget-author__av img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; display: block; }
.tutku-widget-author__name { display: block; font-weight: 800; color: var(--tp-ink); font-size: 16px; margin-bottom: 8px; }
.tutku-widget-author__date, .tutku-widget-author__read { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--tp-muted); margin: 0 6px; }
.tutku-widget-author__date i, .tutku-widget-author__read i { color: var(--tutku-accent); }

.tutku-poplist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tutku-poplist__item a { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.tutku-poplist__img { flex: 0 0 80px; width: 80px; height: 60px; border-radius: 10px; background: var(--tp-bg-soft) center/contain no-repeat; display: flex; align-items: center; justify-content: center; color: var(--tp-muted); }
.tutku-poplist__title { display: block; font-size: 13.5px; font-weight: 700; color: var(--tp-ink); line-height: 1.35; transition: color .15s; }
.tutku-poplist__item a:hover .tutku-poplist__title { color: var(--tutku-accent); }
.tutku-poplist__date { display: block; font-size: 12px; color: var(--tp-muted); margin-top: 4px; }

.tutku-widget--news { background: var(--tp-accent-tint); border-color: color-mix(in srgb, var(--tutku-accent) 22%, #fff); }
.tutku-news__title { font-size: 15px; font-weight: 800; color: var(--tp-ink); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.tutku-news__title i { color: var(--tutku-accent); }
.tutku-news__text { font-size: 13px; color: var(--tp-ink-soft); margin: 0 0 12px; line-height: 1.55; }
.tutku-news__form { display: flex; gap: 8px; }
.tutku-news__form input { flex: 1 1 auto; min-width: 0; border: 1px solid var(--tp-line); border-radius: 9px; padding: 10px 12px; font-size: 13px; }
.tutku-news__form button { flex: 0 0 auto; border: 0; background: var(--tutku-accent); color: #fff; border-radius: 9px; width: 42px; cursor: pointer; font-size: 15px; }

.tutku-widget--cta { text-align: center; background: linear-gradient(160deg, #04041d, #362c66); color: #fff; border: 0; }
.tutku-widget--cta > i { font-size: 26px; margin-bottom: 8px; display: block; }
.tutku-widget-cta__title { display: block; font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.tutku-widget--cta p { font-size: 13px; color: rgba(255,255,255,.8); margin: 0 0 14px; }
.tutku-widget-cta__btn { display: inline-block; background: var(--tutku-accent); color: #fff; font-weight: 700; font-size: 13.5px; padding: 11px 22px; border-radius: 999px; text-decoration: none; transition: filter .15s; }
.tutku-widget-cta__btn:hover { filter: brightness(1.08); color: #fff; }

/* =========================================================================
   İLGİLİ YAZILAR
   ========================================================================= */
.tutku-related { background: var(--tp-bg-soft); margin-top: 50px; padding: 44px 0; width: 100vw; margin-left: calc(50% - 50vw); }
.tutku-related__inner { max-width: 1180px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 28px); }
.tutku-related__title { font-size: 24px; font-weight: 800; color: var(--tp-ink); margin: 0 0 24px; }
.tutku-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tutku-relcard { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--tp-shadow); text-decoration: none; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.tutku-relcard:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,23,42,.14); }
/* 4:3 yüklenen görseller kırpılmadan tam oturur (contain) */
.tutku-relcard__img { position: relative; aspect-ratio: 4 / 3; background: #e5e9f0 center/contain no-repeat; display: block; }
.tutku-relcard__cat { position: absolute; left: 12px; top: 12px; background: var(--tutku-accent); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tutku-relcard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.tutku-relcard__title { font-size: 16px; font-weight: 700; color: var(--tp-ink); line-height: 1.4; }
.tutku-relcard__date { font-size: 12.5px; color: var(--tp-muted); display: inline-flex; align-items: center; gap: 6px; }
.tutku-relcard__date i { color: var(--tutku-accent); }

/* ---- Başa dön ---- */
.tutku-totop {
    position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: var(--tutku-accent); color: #fff; font-size: 16px; cursor: pointer; z-index: 900;
    box-shadow: 0 8px 22px rgba(15,23,42,.22); opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.tutku-totop.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.tutku-totop:hover { filter: brightness(1.08); }

/* =========================================================================
   DUYARLI (responsive)
   ========================================================================= */
@media (max-width: 1100px) {
    .tutku-post-wrap.has-aside .tutku-post-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; }
    .tutku-share-rail { left: -64px; }
}
@media (max-width: 980px) {
    .tutku-post-wrap.has-aside .tutku-post-grid,
    .tutku-post-wrap.no-aside .tutku-post-grid { grid-template-columns: minmax(0, 1fr); }
    .tutku-post-aside { position: static; top: auto; flex-direction: column; }
    .tutku-widget--toc { display: none; }            /* mobilde akış-içi TOC kullanılır */
    .tutku-share-rail { display: none; }              /* mobilde akış paylaşımı */
    .tutku-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 981px) {
    .tutku-toc--inline { display: none; }             /* masaüstünde sidebar TOC kullanılır */
    .tutku-share-inline { display: none; }            /* masaüstünde yapışkan ray kullanılır */
}
@media (max-width: 600px) {
    .tutku-cover { min-height: 360px; }
    .tutku-post__content { font-size: 16.5px; }
    .tutku-post__content h2 { font-size: 23px; }
    .tutku-post__content h2::before { left: -10px; }
    .tutku-post__content > p:first-of-type::first-letter { font-size: 2.8em; }
    .tutku-author { flex-direction: column; text-align: center; align-items: center; }
    .tutku-cta { flex-direction: column; text-align: center; }
    .tutku-related__grid { grid-template-columns: 1fr; }
    .tutku-react__btn { min-width: 0; flex: 1 1 28%; padding: 10px 6px; }
    .tutku-react__lbl { font-size: 11px; }
}
