/*
Theme Name: Tasarım Havuzu
Theme URI: https://nasilmis.com/
Author: Tasarım Havuzu
Description: Birbirinden özgün görünen çok sayıda WordPress sitesi için tasarım havuzu ana teması. Görünüm = palet × yazı ailesi × düzen × header stili (+ 16 stil ailesi kabuğu). Site başına child theme ile kombinasyon atanır.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: tasarim-havuzu
*/

/* =====================================================================
   0) Kök değişkenler (varsayılanlar; gerçek değerler PHP ile :root'a basılır)
   ===================================================================== */
:root {
	--ana: #1f6f5a; --ana-koyu: #12392f; --ana-acik: #e3f1ec; --vurgu: #f2b134; --vurgu2: #e3f1ec;
	--vurgu-metin: #26190a; --bant-metin: #f5f8f6; --zemin: #f4f6f3; --kart: #ffffff;
	--metin: #16211d; --metin-soluk: #5b6b64; --cizgi: #dbe4df;
	--font-govde: 'Plus Jakarta Sans', 'Segoe UI', sans-serif; --font-baslik: var(--font-govde);
	--bant-zemin: var(--ana-koyu); --bant-desen: none;
	--r-sm: 8px; --r: 12px; --r-lg: 18px;
	--golge: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
	--golge-lg: 0 12px 32px rgba(16,24,40,.14), 0 2px 6px rgba(16,24,40,.06);
	--icerik: 1140px;
	--whatsapp: #25d366; --whatsapp-hover: #1da851;
	--kart-cerceve: 1px solid var(--cizgi);
	--btn-r: 10px;
}

/* =====================================================================
   1) Temel
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--zemin); color: var(--metin);
	font-family: var(--font-govde); font-size: 15px; line-height: 1.55; font-weight: 400;
	-webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--ana); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-baslik); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: inherit; letter-spacing: 0; }
h1 { font-size: clamp(26px, 3.8vw, 38px); }
h2 { font-size: 24px; }
h3 { font-size: 16px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 3px solid var(--vurgu); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.th-icerik { max-width: var(--icerik); margin: 0 auto; padding-left: 20px; padding-right: 20px; min-width: 0; }
.th-ikon { display: inline-block; vertical-align: middle; flex: none; }

/* Düğmeler */
.th-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--btn-r);
	font-weight: 600; font-size: 14px; line-height: 1.2; border: 1px solid transparent; text-decoration: none !important;
	transition: background .15s, color .15s, transform .15s, box-shadow .15s; white-space: nowrap;
}
.th-btn-ana { background: var(--ana); color: #fff; }
.th-btn-ana:hover { background: color-mix(in srgb, var(--ana) 85%, #000); color: #fff; }
.th-btn-vurgu { background: var(--vurgu); color: var(--vurgu-metin); }
.th-btn-vurgu:hover { background: color-mix(in srgb, var(--vurgu) 88%, #000); }
.th-btn-cerceve { background: transparent; color: currentColor; border-color: currentColor; }
.th-btn-cerceve:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.th-btn-whatsapp { background: var(--whatsapp); color: #fff; }
.th-btn-whatsapp:hover { background: var(--whatsapp-hover); color: #fff; }
.th-btn-kucuk { padding: 8px 12px; font-size: 13px; }
.th-btn:disabled { opacity: .4; cursor: default; }

/* =====================================================================
   2) Header (koyu bant: duz / kavisli / dalgali / gorsel)
   ===================================================================== */
.th-header { position: relative; color: var(--bant-metin); background: var(--bant-zemin); isolation: isolate; }
.th-header::before { content: ""; position: absolute; inset: 0; background-image: var(--bant-desen); pointer-events: none; z-index: 0; }
.th-header > * { position: relative; z-index: 1; }
.header-kavisli { border-bottom-left-radius: 50% 44px; border-bottom-right-radius: 50% 44px; }
.header-dalgali { padding-bottom: 46px; }
.th-dalga { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 46px; display: block; z-index: 1; }
.header-gorsel { background: linear-gradient(180deg, color-mix(in srgb, var(--ana-koyu) 88%, transparent), color-mix(in srgb, var(--ana-koyu) 72%, transparent)), var(--header-gorsel, var(--bant-zemin)) center/cover no-repeat; border-bottom-left-radius: 50% 44px; border-bottom-right-radius: 50% 44px; }
.th-header-binme { padding-bottom: 64px; }
.header-dalgali.th-header-binme { padding-bottom: 96px; }

.th-ust-satir { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.th-logo-link { display: inline-flex; align-items: center; flex: none; }
.th-logo { height: 44px; width: auto; display: block; }
.th-nav { display: flex; align-items: center; gap: 22px; }
.th-nav ul { display: flex; gap: 18px; align-items: center; }
.th-nav a:not(.th-btn) { color: inherit; font-weight: 600; font-size: 14.5px; opacity: .92; }
.th-nav a:not(.th-btn):hover { opacity: 1; }
.th-menu-ac { display: none; color: inherit; padding: 8px; border-radius: 8px; margin-left: auto; }

/* Hero */
.th-hero { padding: 36px 0 56px; }
.th-hero-ic { display: block; }
.th-hero h1 { max-width: 16em; margin-bottom: 10px; }
.th-hero-alt { font-size: 16.5px; opacity: .86; max-width: 40em; margin-bottom: 22px; }
.th-hero-kompakt { padding: 22px 0 30px; }
.th-hero-kompakt h1 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; max-width: none; }
.th-hero-ikili .th-hero-ic { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.th-hero-kart { background: var(--kart); color: var(--metin); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--golge-lg); border: var(--kart-cerceve); }
.th-hero-kart h2 { font-size: 20px; margin-bottom: 6px; }
.th-hero-kart p { color: var(--metin-soluk); margin-bottom: 14px; }

/* Arama kutusu */
.th-arama { display: flex; align-items: center; gap: 6px; background: #fff; color: var(--metin); border-radius: 16px; padding: 6px 6px 6px 14px; box-shadow: 0 14px 34px rgba(0,20,40,.25); max-width: 640px; }
.th-arama-ikon { color: var(--metin-soluk); display: inline-flex; }
.th-arama input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 10px 6px; font-size: 15px; outline: none; }
.th-arama .th-btn { flex: none; }
.th-arama-kucuk { box-shadow: var(--golge); border: 1px solid var(--cizgi); max-width: 520px; margin-top: 10px; }
.th-cipler { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.th-cip-etiket { font-size: 13px; opacity: .8; margin-right: 2px; }
.th-cip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); color: inherit; font-size: 13px; border: 1px solid rgba(255,255,255,.18); }
.th-cip:hover { background: rgba(255,255,255,.24); text-decoration: none; }

/* Açık header (acik) ve ikili header */
.header-acik, .header-ikili { background: var(--kart); color: var(--metin); }
.header-acik::before, .header-ikili::before { display: none; }
.header-acik .th-header-ust { border-bottom: 1px solid var(--cizgi); }
.header-acik .th-hero { background: var(--zemin); }
.header-ikili .th-hero { background: var(--ana-acik); }
.header-acik .th-arama, .header-ikili .th-arama { border: 1px solid var(--cizgi); box-shadow: var(--golge); }
.header-acik .th-cip, .header-ikili .th-cip { background: var(--kart); border-color: var(--cizgi); color: var(--metin); }
.header-acik .th-hero-alt, .header-ikili .th-hero-alt { color: var(--metin-soluk); opacity: 1; }
.header-acik .th-cip-etiket, .header-ikili .th-cip-etiket { color: var(--metin-soluk); }

/* =====================================================================
   3) Bölümler, bantlar, binme
   ===================================================================== */
.th-ana { display: block; }
.th-bolum { padding: 44px 0; }
.th-bolum + .th-bolum { padding-top: 0; }
.th-bolum.bant { padding-top: 44px; }
.th-bolum-baslik { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.th-bolum-baslik h2 { margin: 0; font-size: 24px; }
.th-bolum-baslik p { margin: 4px 0 0; color: var(--metin-soluk); font-size: 14px; }
.th-alt-baslik { font-size: 20px; margin-bottom: 12px; }
.bant { padding-bottom: 48px; }
.bant-koyu { background: var(--ana-koyu); color: var(--bant-metin); }
.bant-vurgu { background: var(--vurgu); color: var(--vurgu-metin); }
.bant-vurgu2 { background: var(--vurgu2); color: var(--metin); }
.bant-acik { background: var(--ana-acik); color: var(--metin); }
.bant-kart { background: var(--kart); color: var(--metin); }
.bant-zemin { background: var(--zemin); color: var(--metin); }
.bant .th-bolum-baslik p, .bant-koyu .th-bolum-baslik p { color: inherit; opacity: .8; }
.binme { position: relative; z-index: 2; margin-top: -58px; padding-top: 0; }
.binme .th-bolum-baslik h2, .binme .th-bolum-baslik p, .binme .th-alt-baslik { color: var(--bant-metin); }
.binme .th-kart, .binme .th-kategori-kart { box-shadow: var(--golge-lg); }
.duzen-mozaik .binme .th-vitrin, .duzen-panorama .binme .th-kategoriler { background: transparent; }

/* =====================================================================
   4) Kartlar, rozet, avatar
   ===================================================================== */
.th-kart { position: relative; background: var(--kart); border: var(--kart-cerceve); border-radius: var(--r); box-shadow: var(--golge); overflow: hidden; display: flex; flex-direction: column; min-width: 0; color: var(--metin); }
.th-kart-link { display: block; }
.th-kart-gorsel { aspect-ratio: 16 / 10; background: var(--ana-acik); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.th-kart-gorsel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-kart-govde { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.th-kart-kat, .th-kart-kat a { font-size: 12px; font-weight: 600; color: var(--ana); text-transform: uppercase; letter-spacing: .02em; }
.th-kart-baslik { font-size: 16px; margin: 0; }
.th-kart-baslik a { color: inherit; }
.th-kart-ozet { font-size: 13.5px; color: var(--metin-soluk); margin: 0; }
.th-kart-yatay { flex-direction: row; align-items: stretch; }
.th-kart-yatay .th-kart-link { flex: none; width: 112px; }
.th-kart-yatay .th-kart-gorsel { aspect-ratio: auto; height: 100%; min-height: 84px; }
.th-kart-yatay .th-kart-govde { padding: 12px 14px; justify-content: center; }
.th-kart-slider { flex: none; width: 260px; scroll-snap-align: start; }
.th-rozet { position: absolute; top: 10px; left: 10px; z-index: 2; background: linear-gradient(135deg, #f7d774, #e0a92c); color: #3a2500; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 4px 7px; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.th-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; color: #fff; font-weight: 700; }
.th-kart-gorsel-bos { background: var(--ana-acik); }
.th-liste { display: flex; flex-direction: column; gap: 12px; }

/* =====================================================================
   5) Ana sayfa bölümleri
   ===================================================================== */
.th-kategoriler-satir { display: flex; align-items: stretch; gap: 14px; }
.th-kategoriler { display: flex; flex: 1 1 auto; min-width: 0; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.th-kategoriler::-webkit-scrollbar { display: none; }
.th-kategori-kart { display: flex; flex: 1 0 128px; min-width: 128px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 18px 10px; background: var(--kart); border: var(--kart-cerceve); border-radius: var(--r); box-shadow: var(--golge); color: var(--metin); font-weight: 600; font-size: 13.5px; transition: transform .15s, box-shadow .15s; }
.th-kategori-kart:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--golge-lg); }
.th-kategori-tumu { flex: 0 0 128px; }
.th-kategori-ikon { width: 48px; height: 48px; border-radius: 12px; background: var(--ana-acik); color: var(--ana); display: inline-flex; align-items: center; justify-content: center; }
.th-kategori-tumu .th-kategori-ikon { background: var(--ana); color: #fff; }
.th-kategori-ad { overflow-wrap: anywhere; }

.th-vitrin { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.th-vitrin-sutun { min-width: 0; }

.th-slider { position: relative; }
.th-slider-ray { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: thin; }
.th-slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; background: var(--kart); color: var(--metin); border: var(--kart-cerceve); box-shadow: var(--golge-lg); display: inline-flex; align-items: center; justify-content: center; z-index: 2; }
.th-slider-geri { left: -12px; } .th-slider-ileri { right: -12px; }

.th-gelismeler { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.th-gelismeler-dikey { grid-template-columns: 1fr; }

.th-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--ana-koyu); color: var(--bant-metin); border-radius: var(--r-lg); padding: 30px 32px; }
.th-cta h2 { font-size: 22px; margin-bottom: 6px; }
.th-cta p { margin: 0; opacity: .86; max-width: 40em; }
.th-iletisim-dugmeler { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.th-iletisim-dikey { flex-direction: column; align-items: stretch; }
.th-iletisim-dikey .th-btn { justify-content: center; }
.th-cta-gelismeler { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: start; }
.th-cta-gelismeler .th-cta { flex-direction: column; align-items: flex-start; height: 100%; }
.bant-koyu .th-cta, .bant-vurgu .th-cta, .bant-vurgu2 .th-cta { background: transparent; color: inherit; padding: 0; border-radius: 0; }
.bant-koyu .th-btn-cerceve, .bant-vurgu .th-btn-cerceve { border-color: currentColor; }

.th-linkler { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.th-link-sutun h3 { font-size: 15px; margin-bottom: 10px; }
.th-link-sutun li { margin: 0 0 7px; }
.th-link-sutun a { color: inherit; opacity: .85; font-size: 14px; }
.th-link-sutun a:hover { opacity: 1; }
.th-bolum-linkler .th-linkler { padding-top: 8px; border-top: 1px solid var(--cizgi); }
.th-reklam { min-height: 90px; display: flex; align-items: center; justify-content: center; }

/* =====================================================================
   6) Footer
   ===================================================================== */
.th-footer { background: var(--kart); border-top: 1px solid var(--cizgi); padding: 40px 0 22px; margin-top: 12px; color: var(--metin); }
.th-footer-ust { display: grid; grid-template-columns: 1.1fr 2fr; gap: 32px; align-items: start; }
.th-footer-marka p { color: var(--metin-soluk); font-size: 14px; margin: 12px 0 0; max-width: 32em; }
.th-footer-adres { display: flex; gap: 6px; align-items: flex-start; }
.th-footer .th-linkler { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.th-footer-alt { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--cizgi); font-size: 13px; color: var(--metin-soluk); }

/* =====================================================================
   7) Arşiv, tekil, sayfa (çekirdek blok sınıfları)
   ===================================================================== */
.th-arsiv, .th-tekil, .th-404 { padding: 36px 20px 48px; }
.th-kart-izgara { gap: 16px !important; }
.th-kart-izgara .th-kart { height: 100%; }
.th-kart-izgara .wp-block-post-featured-image { aspect-ratio: 16 / 10; overflow: hidden; margin: 0; }
.th-kart-izgara .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.th-kart-izgara .th-kart-kat a { color: var(--ana); }
.th-kart-izgara .th-kart-ozet .more-link { display: none; }
.th-sayfalama { margin-top: 28px; gap: 6px; font-weight: 600; }
.th-sayfalama a, .th-sayfalama .page-numbers { padding: 8px 12px; border-radius: var(--btn-r); background: var(--kart); border: var(--kart-cerceve); color: var(--metin); }
.th-sayfalama .current { background: var(--ana); color: #fff; border-color: var(--ana); }
.th-tekil-meta { gap: 12px; align-items: center; margin-bottom: 14px; font-size: 13px; color: var(--metin-soluk); }
.th-tekil-meta .th-kart-kat a { color: var(--ana); }
.th-tekil-kapak { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 24px; }
.th-tekil-kapak img { width: 100%; display: block; }
.th-govde { font-size: 16px; line-height: 1.7; }
.th-govde > * { max-width: 100%; }
.th-govde h2 { font-size: 24px; margin-top: 1.4em; }
.th-govde h3 { font-size: 19px; margin-top: 1.2em; }
.th-govde img { border-radius: var(--r); }
.th-govde iframe { max-width: 100%; border-radius: var(--r); }
.th-govde table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.th-govde th, .th-govde td { border: 1px solid var(--cizgi); padding: 8px 10px; text-align: left; }
.th-govde blockquote { border-left: 4px solid var(--vurgu); margin: 1.2em 0; padding: 4px 16px; color: var(--metin-soluk); }
.th-govde ul, .th-govde ol { padding-left: 1.4em; list-style: revert; margin: 0 0 1em; }
.th-govde a.whatsapp-contact-image, .th-govde img.whatsapp-contact-image { display: inline-block; }
.th-etiketler { margin: 26px 0 10px; font-size: 13px; color: var(--metin-soluk); }
.th-etiketler a { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--ana-acik); color: var(--ana); margin: 0 4px 6px 0; font-weight: 600; }
.th-tekil-gezinti { margin: 24px 0 32px; gap: 16px; font-size: 14px; }
.th-tekil-gezinti a { color: var(--ana); font-weight: 600; }
.th-tekil .th-cta { margin-top: 8px; }
.th-404 .th-kategoriler { margin-top: 20px; }
.wp-block-post-terms.th-kart-kat { margin: 0; }
.wp-block-post-excerpt.th-kart-ozet p { margin: 0; }

/* =====================================================================
   8) Duyarlı (390 px'te yatay taşma sıfır)
   ===================================================================== */
@media (max-width: 960px) {
	.th-vitrin { grid-template-columns: 1fr; }
	.th-gelismeler { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.th-cta-gelismeler { grid-template-columns: 1fr; }
	.th-footer-ust { grid-template-columns: 1fr; }
	.th-hero-ikili .th-hero-ic { grid-template-columns: 1fr; }
	.th-slider-geri { left: 4px; } .th-slider-ileri { right: 4px; }
}
@media (max-width: 720px) {
	.th-menu-ac { display: inline-flex; }
	.th-nav { display: none; position: absolute; left: 20px; right: 20px; top: 68px; background: var(--kart); color: var(--metin); border: var(--kart-cerceve); border-radius: var(--r); box-shadow: var(--golge-lg); padding: 12px; flex-direction: column; align-items: stretch; gap: 8px; z-index: 20; }
	.th-nav.acik { display: flex; }
	.th-nav ul { flex-direction: column; gap: 2px; align-items: stretch; }
	.th-nav ul a { display: block; padding: 8px 10px; border-radius: 8px; }
	.th-nav .th-header-cta { justify-content: center; }
	.th-cta { flex-direction: column; align-items: flex-start; padding: 22px; }
	.th-gelismeler { grid-template-columns: 1fr; }
	.th-linkler, .th-footer .th-linkler { grid-template-columns: 1fr 1fr; }
	.th-bolum { padding: 32px 0; }
	.th-hero { padding: 26px 0 40px; }
	.th-arama { border-radius: 14px; padding-left: 10px; }
	.th-arama .th-btn { padding: 10px 12px; }
	.th-slider-btn { display: none; }
	.th-kart-slider { width: 78vw; max-width: 300px; }
	.th-kart-yatay .th-kart-link { width: 96px; }
	.binme { margin-top: -40px; }
	.th-header-binme { padding-bottom: 48px; }
	.header-dalgali.th-header-binme { padding-bottom: 80px; }
	.th-footer-alt { flex-direction: column; }
}
@media (max-width: 480px) {
	.th-kategoriler-satir, .th-kategoriler { gap: 10px; } .th-kategori-kart, .th-kategori-tumu { flex-basis: 108px; min-width: 108px; padding: 14px 8px; font-size: 12.5px; }
	.th-linkler, .th-footer .th-linkler { grid-template-columns: 1fr; }
	.th-icerik { padding-left: 16px; padding-right: 16px; }
	.th-bolum-baslik { flex-direction: column; align-items: flex-start; }
	.th-logo { height: 38px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
