/* =========================================================================
   kockerim.com — önyüz teması (WordPress/Jannah düzeni temel alınarak yazıldı)
   Marka kiti: mürdüm #6d004c → kırmızı #c00142 · Rajdhani (başlık) · IBM Plex Sans (metin) · Fragment Mono (kod)
   ========================================================================= */
@font-face { font-family: "Rajdhani"; src: url("../fonts/Rajdhani-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/Rajdhani-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/IBMPlexSans-Variable.ttf") format("truetype"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/Rajdhani-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url("../fonts/FragmentMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --brand: #8a0049;
  --brand-dark: #6d004c;
  --brand-grad: linear-gradient(135deg, #6d004c 0%, #c00142 100%);
  --hot: #c00142;
  --bg: #f7f7f7;
  --box: #ffffff;
  --text: #1f1a1e;
  --text-2: #444;
  --meta: #767676;
  --line: rgba(0, 0, 0, .1);
  --line-soft: rgba(0, 0, 0, .06);
  --soft: #f2f2f2;
  --head-label: #313130;
  --code-bg: #f3f3f3;
  --pre-bg: #f6f7f9;
  --pre-text: #1d2127;
  --quote-bg: #2a1724;
  --topbar: #ffffff;
  --header: #ffffff;
  --footer: #161616;
  --footer-2: #0c0c0c;
  --footer-text: #d8d8d8;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06);
  --logo-frame: #313130; --logo-text: #6d004c; --logo-sub: #434242; --logo-cut: #ffffff;
  --font-head: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, Consolas, "Courier New", monospace;
  --radius: 6px;
  --container: 1200px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #141013;
  --box: #1e181d;
  --text: #ffffff;
  --text-2: #cfd1d4;
  --meta: #a9abae;
  --line: rgba(255, 255, 255, .08);
  --line-soft: rgba(255, 255, 255, .05);
  --soft: #2a2228;
  --head-label: #8a0049;
  --brand: #e0569f;
  --brand-dark: #c00142;
  --code-bg: #2c2129;
  --pre-bg: #120e11;
  --pre-text: #e8e8e8;
  --quote-bg: #2a1724;
  --topbar: #1a1418;
  --header: #1a1418;
  --footer: #0f0f0f;
  --footer-2: #080808;
  --shadow: none;
  --logo-frame: #e8e2ea; --logo-text: #ffffff; --logo-sub: #cfc8d2; --logo-cut: #1f2024;
  color-scheme: dark;
}

/* ---------- temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text-2); font: 400 14px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--text); line-height: 1.3; margin: 0 0 .5em; font-weight: 600; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 10px; top: -60px; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 999; border-radius: 4px; }
.skip-link:focus { top: 10px; color: #fff; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.ic { display: inline-block; vertical-align: -2px; flex: none; }
.box { background: var(--box); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
@media (max-width: 768px) { .box { padding: 20px 15px; } }

/* ---------- üst şerit ---------- */
.topbar { background: var(--topbar); border-bottom: 1px solid var(--line); font-size: 12px; }
.topbar-row { display: flex; align-items: center; min-height: 40px; gap: 16px; }
.topbar-date { color: var(--text); white-space: nowrap; }
.ticker { display: flex; align-items: stretch; min-width: 0; flex: 1; align-self: stretch; }
.ticker-label { background: var(--hot); color: #fff; padding: 0 10px; display: flex; align-items: center; white-space: nowrap; font-size: 12px; }
.ticker-items { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.ticker-items a { position: absolute; inset: 0 auto 0 12px; display: flex; align-items: center; white-space: nowrap; color: var(--text); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; }
.ticker-items a.is-active { opacity: 1; transform: none; }
.ticker-items a:hover { color: var(--brand); }
.topbar-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.topbar-right a, .topbar-right button { display: inline-grid; place-items: center; min-width: 30px; height: 30px; color: var(--text); background: none; border: 0; cursor: pointer; border-radius: 4px; }
.topbar-right a:hover, .topbar-right button:hover { color: var(--brand); }
.lang-switch { font-weight: 700; font-size: 11px; border: 1px solid var(--line) !important; padding: 0 8px; margin-left: 6px; }
.lang-switch.is-disabled { opacity: .4; }
@media (max-width: 768px) { .topbar-date, .ticker { display: none; } }

/* ---------- başlık + menü ---------- */
.header { background: var(--header); box-shadow: 0 25px 20px -20px rgba(0, 0, 0, .1); position: relative; z-index: 40; }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 90px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo .kk-logo { height: 62px; width: auto; display: block; }
.main-nav { margin-left: auto; align-self: stretch; display: flex; }
.main-nav > ul { list-style: none; display: flex; margin: 0; padding: 0; align-items: stretch; }
.main-nav > ul > li { position: relative; display: flex; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: 5px; padding: 0 16px; font: 700 16px/1 var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.main-nav > ul > li > a:hover, .main-nav > ul > li:hover > a { color: var(--brand); }
.main-nav > ul > li.is-active > a { background: var(--brand-grad); color: #fff; }
.submenu { position: absolute; top: 100%; left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px 0; background: var(--box); border-top: 2px solid var(--brand); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 50; }
.main-nav li:hover > .submenu, .main-nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: flex; justify-content: space-between; padding: 8px 18px; font-size: 13px; color: var(--text); }
.submenu a:hover { color: var(--brand); padding-left: 22px; }
.submenu .count { color: var(--meta); font-size: 12px; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; color: var(--text); cursor: pointer; border-radius: 50%; }
.icon-btn:hover { color: var(--brand); }
[data-theme="light"] .ic-sun, [data-theme="dark"] .ic-moon { display: none; }
.search-pill { position: relative; }
.search-pill input { width: 210px; height: 38px; border-radius: 20px; border: 1px solid var(--line); background: var(--soft); color: var(--text); padding: 0 40px 0 16px; font: 13px var(--font-body); }
.search-pill input:focus { outline: none; border-color: var(--brand); background: var(--box); }
.search-pill button { position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; border: 0; background: none; color: var(--text); cursor: pointer; }
.nav-toggle { display: none; }
@media (max-width: 1100px) { .search-pill input { width: 160px; } .main-nav > ul > li > a { padding: 0 10px; } }
@media (max-width: 991px) {
  .header-row { min-height: 70px; }
  .logo .kk-logo { height: 46px; }
  .nav-toggle { display: inline-grid; }
  .search-pill { display: none; }
  .main-nav { position: fixed; inset: 0 auto 0 0; width: 300px; max-width: 85vw; background: linear-gradient(135deg, #4a0034, #c00142); flex-direction: column; padding: 70px 0 20px; transform: translateX(-100%); transition: transform .3s; z-index: 100; overflow-y: auto; margin: 0; }
  .main-nav.is-open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
  .main-nav > ul { flex-direction: column; }
  .main-nav > ul > li { flex-direction: column; }
  .main-nav > ul > li > a { color: #fff; padding: 14px 24px; font-size: 14px; }
  .main-nav > ul > li.is-active > a { background: rgba(255, 255, 255, .15); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; background: rgba(0, 0, 0, .12); box-shadow: none; border: 0; }
  .submenu a { color: #fff; padding-left: 36px; }
  .submenu .count { color: rgba(255, 255, 255, .7); }
  .nav-close { position: absolute; top: 15px; right: 15px; color: #fff; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 90; }
  .mobile-search { padding: 10px 24px 20px; }
  .mobile-search input { width: 100%; height: 40px; border-radius: 20px; border: 0; padding: 0 16px; font: 14px var(--font-body); }
}
@media (min-width: 992px) { .nav-close, .mobile-search, .nav-backdrop { display: none !important; } }

/* ---------- genel bloklar ---------- */
.site-main { padding: 30px 0 50px; }
.block-title { display: flex; align-items: center; margin: 0 0 25px; border-bottom: 2px solid var(--line); }
.block-title span { position: relative; display: inline-flex; align-items: center; gap: 8px; background: var(--head-label); color: #fff; font: 700 17px/1 var(--font-head); letter-spacing: .03em; padding: 9px 24px 9px 12px; margin-bottom: -2px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.block-title--hot span { background: var(--hot); }
.cat-badge { display: inline-block; background: var(--brand-grad); color: #fff !important; font-size: 11px; line-height: 1; padding: 5px 9px; border-radius: 15px; font-family: var(--font-body); }
.cat-badge:hover { background: var(--brand-dark); }
.post-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--meta); font-size: 11px; }
.post-meta-line .ic { width: 11px; height: 11px; margin-right: 3px; }

/* Görsel kutusu: kırpmadan gösterir, boşluğu aynı görselin bulanık hâliyle doldurur */
.media { position: relative; display: block; overflow: hidden; background: var(--soft); aspect-ratio: 16 / 9; border-radius: var(--radius); }
.media .media-bg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); max-width: none; object-fit: cover; filter: blur(18px) saturate(1.1); opacity: .55; }
.media .media-img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .4s ease; }
.media-empty { display: grid; place-items: center; width: 100%; height: 100%; background: var(--brand-grad); color: #fff; font: 700 42px/1 var(--font-head); }
a:hover > .media .media-img, .card:hover .media .media-img { transform: scale(1.04); }

/* ---------- ana sayfa ızgarası (6'lı) ---------- */
.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 30px; }
.hero-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; color: #fff; }
.hero-item .media { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.hero-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .85) 100%); pointer-events: none; }
.hero-item .cat-badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; z-index: 2; }
.hero-caption .post-meta-line { color: rgba(255, 255, 255, .85); margin-bottom: 4px; }
.hero-caption h2 { color: #fff; font-size: 21px; line-height: 1.15; margin: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.hero-item:hover h2, .trend-big:hover h2 { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; }
@media (max-width: 991px) { .hero-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hero-grid { grid-template-columns: 1fr; } .hero-item:nth-child(n+4) { display: none; } }

/* ---------- trend bloğu ---------- */
.trend { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.trend-big { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; min-height: 340px; }
.trend-big .media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.trend-big::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, .9)); }
.trend-big .hero-caption h2 { font-size: 28px; }
.trend-big .cat-badge { position: absolute; left: 18px; top: 18px; z-index: 2; }
.small-list { display: flex; flex-direction: column; gap: 18px; }
.small-item { display: grid; grid-template-columns: 110px 1fr; gap: 15px; align-items: start; }
.small-item .media { aspect-ratio: 3 / 2; }
.small-item h3, .small-item h4 { font-size: 17px; font-weight: 700; margin: 3px 0 0; line-height: 1.2; }
.small-item--rev { grid-template-columns: 1fr 95px; }
.small-item--rev .media { order: 2; aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .trend { grid-template-columns: 1fr; } .trend-big { min-height: 260px; } }

/* ---------- 4'lü makale kartları ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .cards, .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 520px) { .cards, .cards--3 { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--box); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.card .media { border-radius: 0; }
.card .cat-badge { position: absolute; top: 12px; left: 12px; z-index: 3; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 19px; font-weight: 700; line-height: 1.2; margin: 0; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-excerpt { margin: 0; color: var(--meta); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- sayfalama ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: var(--radius); background: var(--box); border: 1px solid var(--line); color: var(--text); font: 700 15px var(--font-head); }
.pagination a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .is-current { background: var(--brand-grad); border-color: transparent; color: #fff; }
.pagination .gap { background: none; border: 0; }

/* ---------- liste sayfası başlığı ---------- */
.archive-head { margin-bottom: 30px; }
.archive-head .kicker { color: var(--meta); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.archive-head h1 { font-size: 34px; margin: 0; font-weight: 700; }
.archive-head p { margin: 8px 0 0; color: var(--meta); font-size: 14px; }
.archive-search { display: flex; gap: 8px; margin-top: 16px; max-width: 620px; }
.archive-search input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; background: var(--soft); color: var(--text); font: 14px var(--font-body); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 22px; border: 0; border-radius: var(--radius); background: var(--brand-grad); color: #fff; font: 700 16px var(--font-head); letter-spacing: .03em; cursor: pointer; }
.btn:hover { background: var(--brand-dark); color: #fff; }

/* ---------- yazı düzeni (içerik + kenar çubuğu) ---------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; align-items: start; }
@media (max-width: 991px) { .with-sidebar { grid-template-columns: minmax(0, 1fr); } }
.with-sidebar > * { min-width: 0; }
.post-box { padding: 0; overflow: hidden; }
.post-head { padding: 30px 30px 20px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; color: var(--meta); margin-bottom: 15px; }
.breadcrumb a { color: var(--meta); }
.breadcrumb a:hover { color: var(--brand); }
.post-cats { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.post-title { font-size: 46px; line-height: 1.08; font-weight: 700; margin: 0 0 18px; }
@media (max-width: 768px) { .post-title { font-size: 26px; } .post-head { padding: 20px 15px 15px; } }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--meta); font-size: 12px; }
.post-meta .author { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--line); object-fit: contain; padding: 2px; flex: none; }
.post-meta .views { color: var(--hot); }
.post-meta .push { margin-left: auto; display: flex; gap: 14px; }
@media (max-width: 600px) { .post-meta .push { margin-left: 0; } }
.share { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; color: #fff; font-size: 11px; border: 0; cursor: pointer; transform: skewX(-15deg); border-radius: 2px; }
.share a > *, .share button > * { transform: skewX(15deg); }
.share .s-fb { background: #4080ff; } .share .s-x { background: #000; } .share .s-li { background: #238cc8; }
.share .s-rd { background: #ff5700; } .share .s-wa { background: #43d854; } .share .s-mail { background: #2c2f34; } .share .s-copy { background: #767676; }
.share a:hover, .share button:hover { color: #fff; filter: brightness(1.12); }
.post-cover { margin: 0; }
.post-cover .media { border-radius: 0; aspect-ratio: auto; display: flex; justify-content: center; }
.post-cover .media .media-img { width: auto; height: auto; max-width: 100%; max-height: 560px; }
.post-body { padding: 30px; }
@media (max-width: 768px) { .post-body { padding: 20px 15px; } }

/* içindekiler */
.toc { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 28px; background: var(--soft); }
.toc summary { cursor: pointer; padding: 12px 18px; font: 700 18px var(--font-head); color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { margin: 0; padding: 0 18px 16px 36px; font-size: 14px; }
.toc li { margin: 5px 0; }
.toc li.toc-l3 { margin-left: 18px; list-style: circle; }
.toc a { color: var(--text-2); }
.toc a:hover, .toc a.is-active { color: var(--brand); }

/* ---------- içerik tipografisi ---------- */
.entry { font-size: 15px; line-height: 1.75; color: var(--text-2); overflow-wrap: break-word; }
.entry > * + * { margin-top: 1.1em; }
.entry p { margin: 0; }
.entry h1, .entry h2, .entry h3, .entry h4, .entry h5 { margin-top: 1.6em; margin-bottom: .2em; font-weight: 600; }
.entry h1 { font-size: 34px; } .entry h2 { font-size: 30px; } .entry h3 { font-size: 25px; } .entry h4 { font-size: 20px; }
.entry h1, .entry h2, .entry h3, .entry h4 { font-weight: 700; line-height: 1.15; }
.entry a { color: var(--brand); }
.entry a:hover { text-decoration: underline; }
.entry strong { color: var(--text); }
.entry ul, .entry ol { padding-left: 1.6em; }
.entry li + li { margin-top: .3em; }
.entry img { border-radius: 4px; display: block; margin-inline: auto; }
.entry figure { margin: 1.6em 0; }
.entry figcaption { text-align: center; font-size: 12px; color: var(--meta); margin-top: 6px; }
.entry hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.entry code, .entry kbd { font: 13px/1.5 var(--font-mono); background: var(--code-bg); color: var(--text); padding: 2px 6px; border-radius: 3px; }
.entry kbd { border: 1px solid var(--line); box-shadow: inset 0 -1px 0 var(--line); }
.entry mark { background: #fff3a8; color: #2c2f34; padding: 0 3px; }
.entry pre { position: relative; margin: 1.6em 0; padding: 18px 20px; background: var(--pre-bg); color: var(--pre-text); border: 1px solid var(--line); border-left: 6px solid var(--hot); border-radius: 4px; overflow-x: auto; font: 13px/1.7 var(--font-mono); tab-size: 4; }
.entry pre code { background: none; padding: 0; font-size: inherit; color: inherit; border: 0; box-shadow: none; }
.entry blockquote { position: relative; margin: 2em 0; padding: 50px 40px 30px; background: var(--quote-bg); color: #fff; border-radius: var(--radius); font-size: 16px; }
.entry blockquote::before { content: "\201C"; position: absolute; left: 36px; top: 4px; font: 700 64px/1 Georgia, serif; color: #e0569f; }
.entry blockquote strong, .entry blockquote a { color: #fff; }
.entry blockquote code { background: rgba(255, 255, 255, .12); color: #fff; }
.entry table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry figure:has(> table) { overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.entry thead th { border-bottom: 3px solid var(--text); color: var(--text); font-weight: 600; }
.entry tbody tr:nth-child(even) { background: var(--line-soft); }
.code-wrap { position: relative; }
.copy-btn { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 4px 10px; border-radius: 3px; border: 1px solid var(--line); background: var(--box); color: var(--meta); font: 11px var(--font-body); cursor: pointer; opacity: 0; transition: opacity .2s; }
.code-wrap:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (hover: none) { .copy-btn { opacity: 1; } }
/* highlight.js */
.hljs-comment, .hljs-quote { color: #8a8f98; font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-literal { color: #0058b8; }
.hljs-string, .hljs-attr-value { color: #1b7f3a; }
.hljs-number, .hljs-variable, .hljs-symbol, .hljs-template-variable { color: #b35c00; }
.hljs-title, .hljs-section { color: #7b2fbf; }
.hljs-attr, .hljs-attribute, .hljs-name, .hljs-type { color: #c2185b; }
[data-theme="dark"] .hljs-keyword, [data-theme="dark"] .hljs-built_in, [data-theme="dark"] .hljs-literal { color: #6cb6ff; }
[data-theme="dark"] .hljs-string { color: #8fdc9a; }
[data-theme="dark"] .hljs-number, [data-theme="dark"] .hljs-variable { color: #ffb86c; }
[data-theme="dark"] .hljs-title, [data-theme="dark"] .hljs-section { color: #d2a8ff; }
[data-theme="dark"] .hljs-attr, [data-theme="dark"] .hljs-attribute { color: #ff7ab2; }

/* yazı altı */
.post-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 30px; }
.tag-pill { display: inline-block; background: var(--soft); color: var(--text); font-size: 12px; padding: 6px 12px; border-radius: 20px; }
.tag-pill:hover { background: var(--brand); color: #fff; }
.share-bottom { padding: 18px 30px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-bottom .share { margin: 0; }
.share-bottom > .label { font-size: 12px; color: var(--meta); display: inline-flex; gap: 6px; align-items: center; }
.author-box { display: flex; gap: 20px; margin-top: 30px; }
.author-box .avatar { width: 90px; height: 90px; padding: 8px; }
.author-box h3 { font-size: 16px; margin-bottom: 6px; }
.author-box p { margin: 0 0 10px; font-size: 13px; line-height: 1.7; }
.author-links { display: flex; gap: 10px; }
.author-links a { color: var(--meta); }
@media (max-width: 600px) { .author-box { flex-direction: column; } }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.post-nav a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 150px; color: #fff; }
.post-nav a .media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.post-nav a::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); transition: background .2s; }
.post-nav a:hover::after { background: rgba(0, 0, 0, .7); }
.post-nav .nav-caption { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 16px; gap: 8px; }
.post-nav .nav-caption small { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-grad); }
.post-nav .nav-caption strong { font: 700 17px/1.2 var(--font-head); }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }
.related { margin-top: 30px; }

/* "Göz Atın" kutusu */
.check-also { position: fixed; right: 20px; bottom: 20px; width: 320px; z-index: 60; padding: 20px; transform: translateX(380px); transition: transform .45s ease; }
.check-also.is-visible { transform: none; }
.check-also .block-title { margin-bottom: 15px; }
.check-also-close { position: absolute; top: 14px; right: 14px; }
.check-also .media { margin-bottom: 12px; }
.check-also h4 { font-size: 18px; margin: 0 0 6px; line-height: 1.2; }
.check-also p { margin: 8px 0 0; font-size: 13px; color: var(--meta); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) { .check-also { display: none; } }

/* ---------- kenar çubuğu ---------- */
.sidebar { display: flex; flex-direction: column; gap: 30px; }
.widget .block-title { margin-bottom: 22px; }
.widget .block-title span { font-size: 13px; }
.recent-list, .cat-list { list-style: none; margin: 0; padding: 0; }
.recent-list li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 10px 0; }
.recent-list li + li { border-top: 1px solid var(--line-soft); }
.recent-list .avatar { width: 64px; height: 64px; padding: 6px; }
.recent-list h4 { font-size: 16px; font-weight: 700; line-height: 1.2; margin: 0 0 5px; }
.recent-list .post-meta-line { flex-direction: column; align-items: flex-start; gap: 2px; }
.pop-list { display: flex; flex-direction: column; gap: 16px; }
.cat-list li a { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; color: var(--text); }
.cat-list li a::before { content: "›"; color: var(--meta); margin-right: 8px; }
.cat-list li a span:first-child { flex: 1; }
.cat-list .num { min-width: 20px; height: 20px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: inline-grid; place-items: center; font-size: 10px; padding: 0 5px; }
.cat-list li a:hover { color: var(--brand); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-cloud a { font-size: 12px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); }
.tag-cloud a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- iletişim ---------- */
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; max-width: 760px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field input, .field textarea { border: 1px solid var(--line); border-radius: 4px; background: var(--soft); color: var(--text); padding: 10px 12px; font: 14px var(--font-body); width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: var(--box); }
.form .btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 4px; margin: 14px 0; font-size: 14px; }
.alert-success { background: #e6f7ec; color: #11743b; }
.alert-error { background: #fdecec; color: #b3261e; }

/* ---------- 404 ---------- */
.error-box { text-align: center; padding: 60px 30px; }
.error-code { font: 700 130px/1 var(--font-head); margin: 0; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-box .archive-search { margin: 20px auto; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer); color: var(--footer-text); margin-top: 20px; font-size: 13px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand); }
.footer-widgets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; padding-top: 50px; padding-bottom: 30px; }
@media (max-width: 991px) { .footer-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .footer-widgets { grid-template-columns: 1fr; } }
.footer-title { color: #fff; font: 700 17px var(--font-head); letter-spacing: .03em; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.f-list { list-style: none; margin: 0; padding: 0; }
.f-list li { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.f-list li:last-child { border: 0; }
.f-list .post-meta-line { color: #999; margin-bottom: 3px; }
.f-list a { font: 600 15px/1.25 var(--font-head); }
.site-footer .cat-list a { color: #fff; }
.site-footer .tag-cloud a { border-color: rgba(255, 255, 255, .12); color: #ddd; }
.footer-about p { margin: 14px 0 0; line-height: 1.7; color: #bbb; }
.footer-logo .kk-logo { height: 48px; width: auto; display: block; --logo-frame: #e8e2ea; --logo-text: #fff; --logo-sub: #cfc8d2; --logo-cut: #161616; }
.footer-bottom { background: var(--footer-2); font-size: 12px; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 56px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: #ccc; }

/* başa dön */
.go-top { position: fixed; right: 20px; bottom: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .3s; z-index: 55; }
.go-top.is-visible { opacity: 1; visibility: visible; }
.go-top:hover { color: #fff; background: var(--brand-dark); }
body.has-check-also .go-top { right: 360px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .topbar, .header, .site-footer, .sidebar, .share, .share-bottom, .post-nav, .related, .check-also, .go-top { display: none !important; } .with-sidebar { display: block; } }

/* ---------- kompakt üst menü ---------- */
.header-row { min-height: 76px; }
.logo .kk-logo { height: 52px; }
.main-nav { align-self: center; }
.main-nav > ul { gap: 2px; align-items: center; }
.main-nav > ul > li > a { height: 36px; padding: 0 12px; border-radius: 18px; font: 700 14px/1 var(--font-head); letter-spacing: .05em; }
.main-nav > ul > li:hover > a { background: var(--soft); }
.main-nav > ul > li.is-active > a { background: var(--brand-grad); color: #fff; }
.main-nav .ic-home { width: 13px; height: 13px; }
.submenu { top: calc(100% + 6px); border-radius: 0 0 6px 6px; }
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.search-pill input { height: 36px; width: 190px; }
@media (max-width: 991px) {
  .main-nav { align-self: auto; }
  .main-nav > ul { gap: 0; align-items: stretch; }
  .main-nav > ul > li > a { height: auto; border-radius: 0; font-size: 16px; padding: 14px 24px; }
  .main-nav > ul > li:hover > a { background: rgba(255, 255, 255, .08); }
  .submenu { top: auto; }
}

/* ---------- üst şerit araçları + arama penceresi ---------- */
.topbar-right [data-theme-toggle] .ic { width: 15px; height: 15px; }
.nav-search { display: none; }
.search-modal { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 12, 18, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: sm-in .2s ease; }
.search-modal[hidden] { display: none; }
@keyframes sm-in { from { opacity: 0; } to { opacity: 1; } }
.search-modal-form { position: relative; width: min(760px, 100%); }
.search-modal-form input { width: 100%; height: 72px; padding: 0 80px 0 28px; border: 0; border-bottom: 3px solid transparent; border-image: var(--brand-grad) 1; background: transparent; color: #fff; font: 600 34px var(--font-head); letter-spacing: .02em; }
.search-modal-form input::placeholder { color: rgba(255, 255, 255, .45); }
.search-modal-form input:focus { outline: none; }
.search-modal-form button { position: absolute; right: 8px; top: 8px; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--brand-grad); color: #fff; cursor: pointer; display: grid; place-items: center; }
.search-modal-close { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; border: 0; background: none; color: #fff; cursor: pointer; opacity: .8; }
.search-modal-close:hover { opacity: 1; }
.search-modal-hint { color: rgba(255, 255, 255, .5); margin-top: 18px; font-size: 13px; }
@media (max-width: 600px) { .search-modal-form input { font-size: 24px; height: 60px; } .search-modal-form button { width: 46px; height: 46px; top: 7px; } }
.search-modal-form input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

/* ---------- görsel galerisi (kutu kutu) + büyütme ---------- */
.entry .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 1.6em 0; }
@media (max-width: 900px) { .entry .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .entry .gallery { grid-template-columns: 1fr; } }
.entry .gallery figure { margin: 0; }
.gallery-item { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--box); box-shadow: var(--shadow); overflow: hidden; cursor: zoom-in; transition: transform .2s, box-shadow .2s, border-color .2s; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -12px rgba(42, 10, 32, .35); border-color: color-mix(in srgb, var(--hot) 40%, transparent); }
.gallery-item .g-img { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 12px; background: var(--soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: contain; border: 0 !important; border-radius: 4px; margin: 0 !important; }
.gallery-item .g-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 3px solid transparent; border-image: var(--brand-grad) 1; font: 600 14px var(--font-head); color: var(--text); }
.gallery-item .g-zoom { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-grad); color: #fff; flex: none; }
.entry img.zoomable { cursor: zoom-in; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-rows: auto 1fr auto; background: rgba(14, 8, 12, .94); backdrop-filter: blur(4px); animation: sm-in .2s ease; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; color: rgba(255, 255, 255, .8); font: 600 15px var(--font-head); letter-spacing: .04em; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 70px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); background: #fff; }
.lb-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: var(--brand-grad); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-caption { text-align: center; color: rgba(255, 255, 255, .75); padding: 12px 20px 18px; font-size: 14px; min-height: 20px; }
@media (max-width: 600px) { .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { top: auto; bottom: -60px; } }
/* footer: siyah zemin üzerinde marka vurgusu */
.site-footer { border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--plum, #6d004c), var(--brand, #c00142)) 1; }

/* ---------- mobil menü (yan panel) ---------- */
.sub-toggle { display: none; }
@media (max-width: 991px) {
  .header-tools { margin-left: auto; }
  .nav-toggle { width: 44px; height: 44px; border-radius: 10px; }
  .main-nav {
    width: 320px; max-width: 86vw; padding: 0 0 24px;
    background: var(--box); color: var(--text);
    border-right: 1px solid var(--border, rgba(127, 127, 127, .15));
  }
  .main-nav::before { content: ""; display: block; height: 4px; flex: none; background: var(--brand-grad); }
  .nav-close { position: static; align-self: flex-end; margin: 12px 12px 0; color: var(--text); }
  .mobile-search { padding: 6px 20px 18px; }
  .mobile-search input { background: var(--soft); color: var(--text); border: 1px solid transparent; }
  .mobile-search input:focus { outline: none; border-color: var(--brand); }
  .main-nav > ul { border-top: 1px solid var(--soft); }
  .main-nav > ul > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--soft); }
  .main-nav > ul > li > a,
  .main-nav > ul > li.is-active > a {
    background: none; color: var(--text); padding: 15px 20px; font: 700 15px/1.2 var(--font-head);
    letter-spacing: .04em; border-left: 3px solid transparent;
  }
  .main-nav > ul > li:hover > a { background: none; color: var(--brand); }
  .main-nav > ul > li.is-active > a { color: var(--brand); border-left-color: var(--brand); }
  .main-nav > ul > li > a .ic-down, .main-nav > ul > li > a svg:last-child:not(:first-child) { display: none; }
  .sub-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; margin-right: 6px;
    border: 0; border-radius: 10px; background: none; color: var(--meta); cursor: pointer;
  }
  .sub-toggle:hover { background: var(--soft); color: var(--brand); }
  .sub-toggle svg { transition: transform .2s; }
  .main-nav li.is-open > .sub-toggle { color: var(--brand); }
  .main-nav li.is-open > .sub-toggle svg { transform: rotate(180deg); }
  .main-nav > ul > li > .submenu {
    grid-column: 1 / -1; display: none; padding: 4px 0 10px; margin: 0;
    background: none; border: 0; box-shadow: none; border-radius: 0;
  }
  .main-nav > ul > li.is-open > .submenu { display: block; }
  .main-nav .submenu a { color: var(--text); padding: 9px 20px 9px 38px; font-size: 14px; opacity: .85; }
  .main-nav .submenu a:hover { color: var(--brand); padding-left: 42px; opacity: 1; }
  .main-nav .submenu .count { color: var(--meta); background: var(--soft); border-radius: 10px; padding: 1px 8px; font-size: 11.5px; }
  .nav-backdrop { background: rgba(10, 6, 9, .55); backdrop-filter: blur(2px); }
}
/* panel açıkken başlık katmanı tüm sayfanın üstüne çıkar; perde (90) ve panel (100) onun içinde */
body.nav-open .header { z-index: 200; }
/* meta satırı: okunma sayısı ve okuma süresi */
.post-meta-line .meta-views .ic { color: var(--brand); }
.hero-caption .post-meta-line .meta-views .ic { color: #ff7a9c; }
.post-meta-line > span { display: inline-flex; align-items: center; white-space: nowrap; }
/* paylaşım: Telegram + yerel paylaşım */
.share .s-tg { background: #229ed9; }
.share .s-native { background: var(--brand-grad); }
.share [hidden] { display: none !important; }
