/* ==========================================================================
   okuma.css — okuma araçları (assets/js/okuma.js ile birlikte) — 2026-11-28
   Okuma çubuğu, içindekiler, başlık bağlantıları, kod kopyala, görsel büyüt,
   kaldığın yerden devam bildirimi, paylaş satırı.
   Metin rengi kuralı: açık temada tam siyah, koyu temada tam beyaz;
   marka rengi (#503b4b / koyu temada #c9a3bd) yalnız vurgu ve çizgide.
   ========================================================================== */

/* ---------- 1. okuma çubuğu ---------- */
.okuma-cubuk {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 1090;              /* yapışkan başlığın üstünde; Fındık rozeti (1100) ve açılış penceresinin (1150) altında */
    pointer-events: none;
    background: transparent;
}
.okuma-cubuk span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary, #503b4b), #8a5f7d);
    transform: scaleX(0);
    transform-origin: 0 50%;
    will-change: transform;
}
body.active-dark-mode .okuma-cubuk span { background: linear-gradient(90deg, #c9a3bd, #e7d3e1); }

/* ---------- 2. içindekiler ---------- */
.okuma-icindekiler {
    margin: 0 0 34px;
    border: 1px solid #e4e7eb;
    border-left: 4px solid var(--color-primary, #503b4b);
    border-radius: 12px;
    background: #f6f7f9;
}
.okuma-icindekiler summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    color: #000;
    font-size: 16px;
    font-weight: 700;
}
.okuma-icindekiler summary::-webkit-details-marker { display: none; }
.okuma-icindekiler summary small { font-size: 13px; font-weight: 500; color: #555; }
.okuma-icindekiler summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s;
}
.okuma-icindekiler details[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.okuma-icindekiler ol {
    margin: 0;
    padding: 0 18px 16px 40px;
}
.okuma-icindekiler li {
    margin: 5px 0;
    padding: 0;
    color: #000;
    font-size: 15px;
    line-height: 1.5;
}
.okuma-icindekiler li.alt { margin-left: 18px; list-style: circle; font-size: 14px; }
.okuma-icindekiler a {
    color: #000 !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
}
.okuma-icindekiler a:hover { border-bottom-color: var(--color-primary, #503b4b); }
.okuma-icindekiler a.aktif { font-weight: 700; border-bottom-color: var(--color-primary, #503b4b); }

body.active-dark-mode .okuma-icindekiler { background: #131518; border-color: #2a2e33; border-left-color: #c9a3bd; }
body.active-dark-mode .okuma-icindekiler summary,
body.active-dark-mode .okuma-icindekiler li,
body.active-dark-mode .okuma-icindekiler a { color: #fff !important; }
body.active-dark-mode .okuma-icindekiler summary small { color: #c4c4c4; }
body.active-dark-mode .okuma-icindekiler a:hover,
body.active-dark-mode .okuma-icindekiler a.aktif { border-bottom-color: #c9a3bd; }

/* ---------- 3. başlık bağlantıları ---------- */
.axil-post-details :is(h2, h3)[id],
.okuma-hedef :is(h2, h3)[id] { scroll-margin-top: 110px; }
a.okuma-capa {
    display: inline-block;
    margin-left: 8px;
    padding: 0 4px;
    font-size: .75em;
    font-weight: 600;
    color: var(--color-primary, #503b4b) !important;
    text-decoration: none !important;
    opacity: 0;
    transition: opacity .15s;
    vertical-align: middle;
}
:is(h2, h3):hover > a.okuma-capa,
a.okuma-capa:focus-visible { opacity: 1; }
@media (hover: none) { a.okuma-capa { opacity: .45; } }
body.active-dark-mode a.okuma-capa { color: #c9a3bd !important; }

/* ---------- 4. kod kopyala ---------- */
.okuma-kod { position: relative; }
.okuma-kod > pre { margin-top: 0; padding-right: 96px !important; }   /* "Kopyala" düğmesi metnin üstüne binmesin */
@media (max-width: 575px) { .okuma-kod > pre { padding-right: 16px !important; padding-top: 40px !important; } }
button.okuma-kopyala {
    position: absolute;
    top: 8px;
    right: 8px;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 6px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    opacity: .8;
    box-shadow: none;
    transition: opacity .15s;
}
.okuma-kod:hover button.okuma-kopyala,
button.okuma-kopyala:focus-visible { opacity: 1; }
button.okuma-kopyala.tamam { background: #1f7a3f; border-color: #1f7a3f; }

/* ---------- 5. görsel büyüt ---------- */
img.okuma-buyutulebilir { cursor: zoom-in; }
img.okuma-buyutulebilir:focus-visible { outline: 3px solid var(--color-primary, #503b4b); outline-offset: 3px; }
html.okuma-kilit { overflow: hidden; }
.okuma-buyuk {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0, 0, 0, .92);
    cursor: zoom-out;
}
.okuma-buyuk img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.okuma-buyuk p {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    margin: 0;
    padding: 0 60px;
    text-align: center;
    color: #fff;
    font-size: 14px;
}
button.okuma-buyuk-kapat {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 28px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
}
button.okuma-buyuk-kapat:hover { background: rgba(255, 255, 255, .28); }

/* ---------- 6. bildirim + kaldığın yerden devam ---------- */
.okuma-bildirim {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1095;
    max-width: calc(100vw - 24px);
    padding: 11px 18px;
    border-radius: 12px;
    background: #000;
    color: #fff;
    font-size: 14.5px;
    line-height: 1.4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 16px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.okuma-bildirim.acik { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.okuma-devam { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.okuma-devam button {
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: none;
}
.okuma-devam button.kapat {
    width: 30px;
    height: 30px;
    padding: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 30px;
}
body.active-dark-mode .okuma-bildirim { background: #fff; color: #000; }
body.active-dark-mode .okuma-devam button { background: #000; color: #fff; }
body.active-dark-mode .okuma-devam button.kapat { background: transparent; color: #000; }

/* ---------- 7. paylaş satırı ---------- */
.okuma-paylas {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 36px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid #e4e7eb;
}
.okuma-paylas .et { margin-right: 6px; color: #000; font-size: 15px; font-weight: 700; }
.okuma-paylas-dugme {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: auto;
    min-width: 0;
    height: 36px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #d9dde3;
    border-radius: 999px;
    background: #fff;
    color: #000 !important;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none;
}
.okuma-paylas-dugme:hover { border-color: var(--color-primary, #503b4b); }
.okuma-paylas-dugme i { font-size: 14px; }
body.active-dark-mode .okuma-paylas { border-top-color: #2a2e33; }
body.active-dark-mode .okuma-paylas .et { color: #fff; }
body.active-dark-mode .okuma-paylas-dugme { background: #131518; border-color: #2a2e33; color: #fff !important; }
body.active-dark-mode .okuma-paylas-dugme:hover { border-color: #c9a3bd; }
@media (max-width: 575px) {
    .okuma-paylas .et { width: 100%; }
    .okuma-paylas-dugme span { display: none; }      /* mobilde yalnız simgeler */
    .okuma-paylas-dugme { width: 42px; height: 42px; padding: 0; justify-content: center; }
}

/* ---------- Künye: yazı üstü yazar satırı (blog-detay.asp, 2026-11-29) ----------
   Tema "post-meta" listesinin yerine: fotoğraf + ad + tarih/okuma/görüntülenme,
   sağda kategori ve "Tüm yazılarım". Metin tam siyah/beyaz; simgeler vurgu renginde. */
.bd-kunye {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin: 0 0 28px; padding: 0 0 22px; border-bottom: 1px solid #e4e7eb;
}
.bd-kunye-foto { flex: 0 0 auto; display: block; width: 52px; height: 52px; border-radius: 50%;
    padding: 2px; background: linear-gradient(135deg, var(--color-primary, #503b4b), #c9a3bd); }
.bd-kunye-foto img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid #fff; }
.bd-kunye-govde { flex: 1 1 260px; min-width: 0; }
.bd-kunye-ad { display: inline-block; font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; color: #000 !important; text-decoration: none !important; }
.bd-kunye-ad:hover { color: var(--color-primary, #503b4b) !important; }
.bd-kunye-bilgi { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 3px 0 0; padding: 0; list-style: none; }
.bd-kunye-bilgi li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: 13.5px; line-height: 1.5; color: #000; }
.bd-kunye-bilgi li::before, .bd-kunye-bilgi li::after { content: none !important; display: none !important; }
.bd-kunye-bilgi i { font-size: 12.5px; color: var(--color-primary, #503b4b); }
.bd-kunye-sag { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.bd-kunye-kat, .bd-kunye-tum {
    display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px;
    font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none !important;
    transition: background-color .2s, border-color .2s, color .2s;
}
.bd-kunye-kat { background: rgba(80, 59, 75, .08); color: #000 !important; }
.bd-kunye-kat i { color: var(--color-primary, #503b4b); }
.bd-kunye-kat:hover { background: rgba(80, 59, 75, .16); }
.bd-kunye-tum { border: 1px solid #d9dde3; color: #000 !important; }
.bd-kunye-tum i { font-size: 11px; transition: transform .2s; }
.bd-kunye-tum:hover { border-color: var(--color-primary, #503b4b); }
.bd-kunye-tum:hover i { transform: translateX(3px); }
body.active-dark-mode .bd-kunye { border-bottom-color: #2a2e33; }
body.active-dark-mode .bd-kunye-foto img { border-color: #1a1a1d; background: #1a1a1d; }
body.active-dark-mode .bd-kunye-ad,
body.active-dark-mode .bd-kunye-bilgi li,
body.active-dark-mode .bd-kunye-kat,
body.active-dark-mode .bd-kunye-tum { color: #fff !important; }
body.active-dark-mode .bd-kunye-ad:hover { color: #c9a3bd !important; }
body.active-dark-mode .bd-kunye-bilgi i,
body.active-dark-mode .bd-kunye-kat i { color: #c9a3bd; }
body.active-dark-mode .bd-kunye-kat { background: rgba(255, 255, 255, .08); }
body.active-dark-mode .bd-kunye-kat:hover { background: rgba(255, 255, 255, .14); }
body.active-dark-mode .bd-kunye-tum { border-color: #3a3f45; }
body.active-dark-mode .bd-kunye-tum:hover { border-color: #c9a3bd; }
@media (max-width: 575px) {
    .bd-kunye-foto { width: 46px; height: 46px; }
    .bd-kunye-bilgi { gap: 2px 12px; }
    .bd-kunye-sag { margin-left: 0; width: 100%; }
}

/* ---------- Önceki / sonraki yazı (blog-detay.asp) ---------- */
.bd-gecis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 44px 0 0; }
.bd-gecis-kart {
    display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px; border-radius: 16px;
    border: 1px solid #e4e7eb; background: #fff; text-decoration: none !important;
    transition: border-color .2s, box-shadow .25s, transform .25s;
}
.bd-gecis-kart:hover { border-color: var(--color-primary, #503b4b); box-shadow: 0 14px 30px -18px rgba(80, 59, 75, .55); transform: translateY(-2px); }
.bd-gecis-kart.sonraki { justify-content: flex-end; text-align: right; }
.bd-gecis-gorsel { flex: 0 0 auto; width: 92px; height: 62px; border-radius: 10px; overflow: hidden; background: #f1f2f4; }
.bd-gecis-gorsel img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.bd-gecis-kart:hover .bd-gecis-gorsel img { transform: scale(1.06); }
.bd-gecis-metin { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bd-gecis-metin small { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary, #503b4b); }
.bd-gecis-kart.sonraki .bd-gecis-metin small { justify-content: flex-end; }
.bd-gecis-metin b { font-size: 15px; font-weight: 700; line-height: 1.4; color: #000;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.active-dark-mode .bd-gecis-kart { background: #131518; border-color: #2a2e33; }
body.active-dark-mode .bd-gecis-kart:hover { border-color: #c9a3bd; }
body.active-dark-mode .bd-gecis-gorsel { background: #1f2226; }
body.active-dark-mode .bd-gecis-metin small { color: #c9a3bd; }
body.active-dark-mode .bd-gecis-metin b { color: #fff; }
@media (max-width: 767px) {
    .bd-gecis { grid-template-columns: 1fr; }
    .bd-gecis-bos { display: none; }
}

/* ---------- Yorum formu düğmesi (tema "button { width:100% }" tuzağı) ---------- */
.bd-yorum-alt { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bd-yorum-alt small { font-size: 13px; color: #000; }
body.active-dark-mode .bd-yorum-alt small { color: #fff; }
button.bd-yorum-gonder {
    display: inline-flex; align-items: center; gap: 9px; width: auto; height: 46px; margin: 0; padding: 0 22px;
    border: 0; border-radius: 999px; cursor: pointer;
    background: var(--color-primary, #503b4b); color: #fff; font-size: 15px; font-weight: 700; line-height: 1;
    transition: transform .2s, box-shadow .2s;
}
button.bd-yorum-gonder:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(80, 59, 75, .7); }
body.active-dark-mode button.bd-yorum-gonder { background: #fff; color: #000; }

/* ---------- hareket azaltma + baskı ---------- */
@media (prefers-reduced-motion: reduce) {
    .okuma-bildirim, a.okuma-capa, .okuma-icindekiler summary::after { transition: none; }
}
@media print {
    .okuma-cubuk, .okuma-bildirim, button.okuma-kopyala, a.okuma-capa, .okuma-paylas, .bd-gecis, .bd-kunye-sag { display: none !important; }
    .okuma-icindekiler { break-inside: avoid; }
}
