/*
Theme Name: Kutu Harf İmalatı
Theme URI: https://www.kutuharfimalati.com/
Description: Serdar Reklam için hafif, hızlı, SEO uyumlu ve çok dilli blok teması. Twenty Twenty-Five alt temasıdır.
Author: Serdar Reklam
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: kutuharf
*/

/* ---------- Genel ---------- */
:root {
	--kh-radius: 14px;
	--kh-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	--kh-gold-grad: linear-gradient(135deg, #e0412f 0%, #c62a1b 50%, #9d1a0d 100%);
	--kh-brand: #c62a1b;
	--kh-brand-dark: #aa1b0d;
	--kh-chrome-grad: linear-gradient(135deg, #ffffff 0%, #c9ced6 40%, #7d8592 100%);
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }
a { text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }

/* ---------- Üst bilgi çubuğu ---------- */
.kh-topbar { background: #08090c; color: var(--wp--preset--color--muted); font-size: .85rem; }
.kh-topbar .kh-wrap { display: flex; gap: 1.25rem; justify-content: space-between; align-items: center; padding: .45rem 1.25rem; flex-wrap: wrap; }
.kh-topbar a { color: var(--wp--preset--color--muted); text-decoration: none; }
.kh-topbar a:hover { color: var(--wp--preset--color--accent); }
.kh-topbar .kh-topbar-left, .kh-topbar .kh-topbar-right { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }

/* ---------- Başlık ---------- */
.kh-wrap { max-width: 1240px; margin: 0 auto; }
.kh-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 17, 21, .92); backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.admin-bar .kh-header { top: 32px; }
.kh-header .kh-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.25rem; }
.kh-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--wp--preset--color--contrast); font-family: var(--wp--preset--font-family--manrope); font-weight: 800; letter-spacing: .02em; font-size: 1.25rem; line-height: 1; }
.kh-logo img { max-height: 46px; width: auto; }
.kh-logo .kh-logo-mark { background: var(--kh-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kh-nav { display: flex; align-items: center; gap: .25rem; }
.kh-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .15rem; }
.kh-nav li { position: relative; }
.kh-nav a { display: block; padding: .6rem .8rem; color: var(--wp--preset--color--contrast); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 8px; }
.kh-nav a:hover, .kh-nav a[aria-current="page"] { color: var(--wp--preset--color--accent); background: rgba(255, 255, 255, .04); }
.kh-nav .kh-sub { position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none; margin: 0; padding: .5rem; background: var(--wp--preset--color--surface); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; box-shadow: var(--kh-shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.kh-nav li:hover > .kh-sub, .kh-nav li:focus-within > .kh-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.kh-nav .kh-sub a { font-weight: 500; font-size: .92rem; padding: .55rem .75rem; }
.kh-has-sub > a::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: .7; }
.kh-header-cta { display: flex; align-items: center; gap: .6rem; }
.kh-lang { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.kh-lang a { display: block; padding: .3rem .45rem; border-radius: 6px; font-size: .78rem; font-weight: 700; color: var(--wp--preset--color--muted); text-decoration: none; border: 1px solid rgba(255, 255, 255, .08); }
.kh-lang a[aria-current="true"], .kh-lang a:hover { color: #fff; background: var(--kh-brand); border-color: transparent; }
.kh-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: .95rem; line-height: 1; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.kh-btn:hover { transform: translateY(-1px); }
.kh-btn-gold { background: var(--kh-gold-grad); color: #fff; box-shadow: 0 6px 18px rgba(198, 42, 27, .35); }
.kh-btn-ghost { color: var(--wp--preset--color--contrast); border: 1px solid rgba(255, 255, 255, .2); }
.kh-btn svg { width: 18px; height: 18px; flex: none; }
.kh-menu-toggle { display: none; background: transparent; border: 1px solid rgba(255, 255, 255, .15); color: var(--wp--preset--color--contrast); border-radius: 10px; padding: .5rem .6rem; cursor: pointer; }
.kh-menu-toggle svg { width: 24px; height: 24px; display: block; }

@media (max-width: 1080px) {
	.kh-menu-toggle { display: inline-flex; }
	.kh-nav { position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); background: var(--wp--preset--color--surface); flex-direction: column; align-items: stretch; padding: 5rem 1rem 2rem; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; box-shadow: var(--kh-shadow); z-index: 60; }
	.kh-nav.is-open { transform: translateX(0); }
	.kh-nav > ul { flex-direction: column; }
	.kh-nav .kh-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 .75rem; min-width: 0; }
	.kh-has-sub > a::after { display: none; }
	.kh-header-cta .kh-btn-gold { display: none; }
	.kh-nav-close { position: absolute; top: 1rem; right: 1rem; }
	.kh-topbar .kh-hide-sm { display: none; }
}
@media (min-width: 1081px) { .kh-nav-close { display: none !important; } }
.kh-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transition: .2s; z-index: 55; }
.kh-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- Kahraman (hero) ---------- */
.kh-hero { position: relative; overflow: hidden; }
.kh-hero .wp-block-cover__background { background: linear-gradient(90deg, rgba(10, 11, 14, .92) 0%, rgba(10, 11, 14, .72) 55%, rgba(10, 11, 14, .4) 100%) !important; opacity: 1 !important; }
.kh-eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--wp--preset--color--accent); }
.kh-gold-text { background: var(--kh-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kh-chrome-text { background: var(--kh-chrome-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Kartlar ---------- */
.kh-card { position: relative; background: var(--wp--preset--color--surface); border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--kh-radius); overflow: hidden; height: 100%; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.kh-card:hover { transform: translateY(-4px); border-color: rgba(198, 42, 27, .45); box-shadow: var(--kh-shadow); }
.kh-card .wp-block-image { margin: 0; }
.kh-card .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; border-radius: 0; }
.kh-card-body { padding: 1.1rem 1.25rem 1.4rem; }
.kh-card h3 a { color: inherit; text-decoration: none; }
.kh-card h3 a::after { content: ""; position: absolute; inset: 0; }
.kh-badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--kh-gold-grad); padding: .25rem .55rem; border-radius: 999px; }
.kh-section-alt { background: var(--wp--preset--color--surface); }
.kh-stat strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-family: var(--wp--preset--font-family--manrope); line-height: 1.1; }
.kh-steps { counter-reset: khstep; }
.kh-step { counter-increment: khstep; position: relative; padding-top: 3.2rem !important; }
.kh-step::before { content: counter(khstep, decimal-leading-zero); position: absolute; top: 1rem; left: 1.25rem; font-weight: 800; font-size: 1.6rem; background: var(--kh-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- İçerik ---------- */
.wp-block-post-content h2 { scroll-margin-top: 100px; }
.wp-block-post-content > p, .wp-block-post-content li { color: var(--wp--preset--color--contrast-2); }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table td, .wp-block-table th { border: 1px solid rgba(255, 255, 255, .1); padding: .7rem .9rem; }
.wp-block-table thead th { background: rgba(198, 42, 27, .12); color: var(--wp--preset--color--contrast); }
.wp-block-details { background: var(--wp--preset--color--surface); border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: .75rem; }
.wp-block-details summary { font-weight: 700; cursor: pointer; }
.wp-block-details[open] summary { color: var(--wp--preset--color--accent); margin-bottom: .5rem; }
.rank-math-breadcrumb { font-size: .85rem; color: var(--wp--preset--color--muted); }
.rank-math-breadcrumb a { color: var(--wp--preset--color--muted); }
.wp-block-embed iframe { border-radius: var(--kh-radius); }
.kh-check-list { list-style: none; padding-left: 0; }
.kh-check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.kh-check-list li::before { content: "✓"; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--kh-gold-grad); color: #fff; font-size: .75rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }

/* ---------- Form ---------- */
.wpcf7 form { display: grid; gap: 1rem; }
.wpcf7 label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 select, .wpcf7 textarea, .wpcf7 input[type="file"] { width: 100%; background: #0c0e12; color: var(--wp--preset--color--contrast); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: .8rem .9rem; font: inherit; box-sizing: border-box; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { border-color: var(--wp--preset--color--accent); outline: none; }
.wpcf7 input[type="submit"] { background: var(--kh-gold-grad); color: #fff; border: 0; border-radius: 999px; padding: .9rem 1.6rem; font-weight: 800; cursor: pointer; justify-self: start; }
.wpcf7 .kh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .wpcf7 .kh-form-row { grid-template-columns: 1fr; } }
.wpcf7-not-valid-tip { color: #ff8a80; font-size: .85rem; }
.wpcf7 form .wpcf7-response-output { margin: 0; border-radius: 10px; }
.wpcf7-acceptance { font-size: .85rem; color: var(--wp--preset--color--muted); }

/* ---------- Alt bilgi ---------- */
.kh-footer { background: #08090c; color: var(--wp--preset--color--muted); font-size: .93rem; }
.kh-footer .kh-wrap { padding: 3.5rem 1.25rem 1.5rem; }
.kh-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 900px) { .kh-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kh-footer-grid { grid-template-columns: 1fr; } }
.kh-footer h2 { font-size: 1rem; color: var(--wp--preset--color--contrast); margin: 0 0 1rem; letter-spacing: .04em; }
.kh-footer ul { list-style: none; margin: 0; padding: 0; }
.kh-footer li { margin-bottom: .5rem; }
.kh-footer a { color: var(--wp--preset--color--muted); text-decoration: none; }
.kh-footer a:hover { color: var(--wp--preset--color--accent); }
.kh-footer a.kh-btn-gold, .kh-footer a.kh-btn-gold:hover { color: #fff; }
.kh-footer address { font-style: normal; line-height: 1.7; }
.kh-social { display: flex; gap: .6rem; margin-top: 1rem; }
.kh-social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); }
.kh-social svg { width: 18px; height: 18px; fill: currentColor; }
.kh-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .07); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Mobil sabit eylem çubuğu ve WhatsApp ---------- */
.kh-float-wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.kh-float-wa svg { width: 30px; height: 30px; fill: #fff; }
.kh-mobile-bar { display: none; }
@media (max-width: 782px) {
	.kh-float-wa { display: none; }
	.kh-mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #08090c; border-top: 1px solid rgba(255, 255, 255, .1); padding-bottom: env(safe-area-inset-bottom); }
	.kh-mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .55rem .25rem; color: var(--wp--preset--color--contrast); text-decoration: none; font-size: .75rem; font-weight: 700; }
	.kh-mobile-bar a svg { width: 22px; height: 22px; fill: currentColor; }
	.kh-mobile-bar a.kh-wa { color: #25d366; }
	.kh-mobile-bar a.kh-quote { color: var(--wp--preset--color--accent); }
	body { padding-bottom: 64px; }
	.admin-bar .kh-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Ek düzeltmeler v1.0.1 ---------- */
.kh-eyebrow { display: block; }
.kh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.kh-yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--kh-radius); overflow: hidden; background: #000; box-shadow: var(--kh-shadow); }
.kh-yt-btn { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; }
.kh-yt-btn img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .2s; }
.kh-yt-btn:hover img, .kh-yt-btn:focus-visible img { opacity: 1; }
.kh-yt-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%); background: #e00; border-radius: 14px; }
.kh-yt-play::after { content: ""; position: absolute; left: 31px; top: 15px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.kh-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wp-block-latest-posts.is-grid li { background: var(--wp--preset--color--surface); border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--kh-radius); padding: 0 0 1rem; overflow: hidden; }
.wp-block-latest-posts.is-grid li > a, .wp-block-latest-posts.is-grid li > time { padding: 0 1rem; display: block; }
.wp-block-latest-posts__featured-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.wp-block-latest-posts__post-title { font-weight: 700; color: var(--wp--preset--color--contrast); text-decoration: none; margin-top: .75rem; }
.wp-block-latest-posts__post-date { color: var(--wp--preset--color--muted); font-size: .85rem; }

/* ---------- v1.0.2: başlık sıkılaştırma ---------- */
.kh-nav a { white-space: nowrap; padding: .55rem .6rem; font-size: .92rem; }
.kh-has-sub > a::after { vertical-align: middle; }
.kh-btn { white-space: nowrap; }
.kh-logo img { max-height: 58px; width: auto; }
@media (max-width: 1240px) and (min-width: 1081px) { .kh-nav a { padding: .5rem .45rem; font-size: .88rem; } .kh-header-cta .kh-btn-gold { padding: .6rem .9rem; } }

/* ---------- v1.0.3: mobil menü ve 404 ---------- */
html, body { overflow-x: clip; }
@media (max-width: 1080px) {
	.kh-nav { visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
	.kh-nav.is-open { visibility: visible; transition: transform .25s ease, visibility 0s; }
	.kh-nav .kh-sub a { font-size: .9rem; color: var(--wp--preset--color--contrast-2); }
}
.kh-404 { text-align: center; }
.kh-404 .kh-404-code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; line-height: 1; background: var(--kh-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kh-404 ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.kh-404 ul a { display: inline-block; padding: .55rem 1rem; border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px; text-decoration: none; color: var(--wp--preset--color--contrast); }
.kh-404 ul a:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }

/* ---------- v1.0.6: form dosya açıklaması ---------- */
.wpcf7 .kh-file-hint { display: block; margin-top: .5rem; padding: .75rem .9rem; font-size: .85rem; line-height: 1.55; color: var(--wp--preset--color--contrast-2); background: rgba(198, 42, 27, .08); border: 1px solid rgba(198, 42, 27, .35); border-radius: 10px; }

/* ---------- v1.1.0: Serdar Reklam kurumsal kimlik (logo + marka kırmızısı) ---------- */
.kh-header .kh-wrap { padding-top: .55rem; padding-bottom: .55rem; }
.kh-logo { gap: .75rem; }
.kh-logo img { display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.kh-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.kh-logo-text strong { font-size: 1rem; font-weight: 800; letter-spacing: .04em; color: var(--wp--preset--color--contrast); }
.kh-logo-text span { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
@media (max-width: 1240px) { .kh-logo-text { display: none; } }
@media (max-width: 782px) { .kh-logo img { max-height: 46px; } }
.kh-header { border-bottom: 2px solid var(--kh-brand); }
.kh-topbar { border-bottom: 1px solid rgba(255, 255, 255, .05); }
.kh-btn-gold:hover { box-shadow: 0 8px 22px rgba(198, 42, 27, .5); }
.wp-element-button, .wp-block-button__link { color: #fff; }
/* Okunurluk güvencesi: içerikte koyu/siyah renk seçilse bile koyu zeminde okunur kalsın */
.wp-block-post-content .has-black-color, .wp-block-post-content .has-contrast-3-color,
.wp-block-post-content [style*="color:#000"], .wp-block-post-content [style*="color: #000"],
.wp-block-post-content [style*="color:#111"], .wp-block-post-content [style*="color:rgb(0, 0, 0)"] { color: var(--wp--preset--color--contrast) !important; }
.wp-block-post-content .has-white-background-color, .wp-block-post-content [style*="background-color:#fff"] { background-color: var(--wp--preset--color--surface) !important; }
.wp-block-post-content :is(h1, h2, h3, h4, h5, h6) { color: var(--wp--preset--color--contrast); }

/* ---------- v1.1.1: blog, kategori ve arama listeleri ---------- */
.kh-archive-title { margin: .25rem 0 .5rem; }
.kh-archive-desc { color: var(--wp--preset--color--muted); margin-bottom: 2rem; max-width: 760px; }
.kh-post-grid .wp-block-post-template { gap: 1.5rem; margin-top: 1.5rem; }
.kh-post-grid .kh-card { display: flex; flex-direction: column; }
.kh-post-grid .wp-block-post-featured-image { margin: 0; }
.kh-post-grid .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.kh-post-grid .kh-card-body { padding: 1.1rem 1.25rem 1.4rem; }
.kh-post-grid .kh-post-date { font-size: .82rem; color: var(--wp--preset--color--muted); }
.kh-post-grid .kh-post-title { font-size: 1.15rem !important; line-height: 1.35; margin: .35rem 0 .6rem; }
.kh-post-grid .kh-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.kh-post-grid .kh-post-title a:hover { color: var(--wp--preset--color--accent); }
.kh-post-grid .wp-block-post-excerpt { color: var(--wp--preset--color--contrast-2); font-size: .95rem; }
.kh-post-grid .wp-block-post-excerpt__more-link { display: inline-block; margin-top: .5rem; font-weight: 700; color: var(--wp--preset--color--accent); text-decoration: none; }
.kh-post-grid .kh-card h2 a::after { content: none; }
.wp-block-query-pagination { margin-top: 2.5rem; gap: .5rem; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { padding: .45rem .8rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; text-decoration: none; color: var(--wp--preset--color--contrast); }
.wp-block-query-pagination .page-numbers.current { background: var(--kh-brand); border-color: transparent; color: #fff; }
.kh-search { max-width: 560px; margin-bottom: 1.5rem; }
.wp-block-search__input { background: #0c0e12; color: var(--wp--preset--color--contrast); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: .7rem .9rem; }
.wp-block-search__button { background: var(--kh-brand); color: #fff; border: 0; border-radius: 10px; font-weight: 700; }
@media (max-width: 900px) { .kh-post-grid .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kh-post-grid .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; } }
/* Eski yazılardaki galeri, alıntı ve tablolar koyu temada */
.wp-block-post-content .wp-block-quote { background: var(--wp--preset--color--surface); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; }
.wp-block-post-content .wp-block-gallery figcaption { color: #fff; }
.wp-block-post-content .wp-block-button__link { background: var(--kh-gold-grad); color: #fff; }

/* ---------- v1.1.2: okunurluk düzeltmeleri ---------- */
.kh-float-wa { background: #15803d; }
.wp-block-post-content .wp-block-table table, .wp-block-post-content .wp-block-table td, .wp-block-post-content .wp-block-table th { background-color: transparent; color: var(--wp--preset--color--contrast); }
.wp-block-table.is-style-stripes { border-bottom: 0; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background-color: rgba(255, 255, 255, .05) !important; }
.wp-block-table.is-style-stripes tbody tr:nth-child(even) { background-color: transparent !important; }
.wp-block-post-content .wp-block-table figcaption { color: var(--wp--preset--color--muted); }

.kh-archive-title, .kh-archive-desc { margin-left: 0 !important; margin-right: auto !important; }

/* v1.1.3 – mobil menü düzeltmesi: buzlu cam efekti sabit menüyü üst bölüme hapsediyordu */
@media (max-width: 1080px) {
	.kh-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #0f1115; z-index: 70; }
	.kh-nav { height: 100vh; height: 100dvh; }
	.kh-nav .kh-sub { display: block; }
}

/* v1.1.4 – sayfa içi yukarı/aşağı ok düğmeleri */
.kh-scrollnav { position: fixed; right: 26px; bottom: 92px; z-index: 39; display: none; flex-direction: column; gap: 8px; }
.kh-scrollnav.is-visible { display: flex; }
.kh-scrollnav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(23, 26, 33, .92); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: background .2s, opacity .2s, visibility .2s; }
.kh-scrollnav button:hover, .kh-scrollnav button:focus-visible { background: var(--kh-brand); border-color: var(--kh-brand); }
.kh-scrollnav button svg { width: 24px; height: 24px; }
.kh-scrollnav button.is-off { opacity: 0; visibility: hidden; }
@media (max-width: 782px) {
	.kh-scrollnav { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); gap: 6px; }
	.kh-scrollnav button { width: 40px; height: 40px; }
}
@media print { .kh-scrollnav { display: none !important; } }

/* v1.1.5 – galeri fotoğrafları eşit 4:3 kutularda */
.wp-block-gallery.is-cropped .wp-block-image img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.wp-block-gallery .wp-block-image img { border-radius: 12px; }
.kh-hero-photo img { border-radius: 16px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; height: auto; }

/* v1.1.6 – galeride son satırdaki fotoğraf tek başına büyümesin */
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { flex-grow: 0; }

/* v1.1.7 – dikey tanıtım videoları (Reels) */
.wp-block-video.kh-reel { max-width: 380px; margin-left: auto !important; margin-right: auto !important; }
.wp-block-video.kh-reel video { width: 100%; aspect-ratio: 9 / 16; height: auto; border-radius: 16px; background: #000; box-shadow: var(--kh-shadow); }
.wp-block-video.kh-reel figcaption { text-align: center; color: var(--wp--preset--color--muted); }
