/*
Theme Name: EOK
Theme URI: https://eniyioyuncukoltugu.com/
Author: Berke Meric
Description: eniyioyuncukoltugu.com icin minimal, eklenti odakli klasik tema. Sayfa iceriginin buyuk kismi EOK Core eklentisi tarafindan render edilir.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eok
*/

/* =========================================================
   0. FONTLAR
   Dosyalar assets/fonts/ icine konulana kadar fallback stack
   devreye girer, site kirilmaz.
   Archivo:        https://fonts.google.com/specimen/Archivo
   Source Serif 4: https://fonts.google.com/specimen/Source+Serif+4
   Variable woff2 olarak indirip asagidaki isimlerle koy.
   ========================================================= */
@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-var.woff2") format("woff2-variations");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Source Serif 4";
	src: url("assets/fonts/source-serif-4-var.woff2") format("woff2-variations");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

/* =========================================================
   1. TOKEN
   ========================================================= */
:root {
	/* Renk — sade beyaz + tek yeşil vurgu (datasheet/cetvel dili kaldırıldı) */
	--eok-paper: #ffffff;        /* zemin: saf beyaz */
	--eok-paper-sunk: #f4f4f2;   /* hafif gömük yüzey (pill zemini, inset) */
	--eok-ink: #17181a;          /* birincil metin + CTA + seçili */
	--eok-ink-soft: #5c5f63;     /* ikincil metin */
	--eok-ink-faint: #9a9da1;    /* etiket, ipucu */
	--eok-rule: #eaeaea;         /* hairline sınır (eski cetvel çizgisi yerine) */
	--eok-tick: #e4e4e1;         /* daha soluk hairline (kontrol kenarı) */

	/* Tek vurgu: yeşil. Eski petrol (--eok-steel) artık yeşile eşit;
	   alt katman CSS bu isme bağlı olduğu için isim korunur, değer yeşil. */
	--eok-green: #16824f;        /* birincil yeşil (CTA, satıcı butonları) */
	--eok-green-strong: #157a4e; /* metin/etiket yeşili (koyu) */
	--eok-green-bg: #eaf6ef;     /* yeşil tint (rozet/tag zemini) */
	--eok-steel: #16824f;        /* GERİYE UYUM: petrol → yeşil */
	--eok-steel-soft: #157a4e;   /* GERİYE UYUM: petrol-soft → yeşil-strong */
	--eok-fit: #157a4e;          /* sihirbaz eşleşmesi → yeşil (tek vurguya toplandı) */
	--eok-signal: #c0563d;       /* SADECE fiyat artışı/pahalı ucu (kısık kırmızı) */
	--eok-sig-bg: #f9ece7;       /* sinyal tint */

	/* Tipografi — tek aile (Archivo); serif kaldırıldı */
	--eok-font-display: "Archivo", "Archivo Narrow", "Segoe UI", system-ui, -apple-system, sans-serif;
	--eok-font-body: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;

	--eok-fs-200: 0.8125rem;
	--eok-fs-300: 0.9375rem;
	--eok-fs-400: 1.0625rem;
	--eok-fs-500: 1.1875rem;
	--eok-fs-600: 1.4375rem;
	--eok-fs-700: clamp(1.5rem, 1.3rem + 0.9vw, 1.9rem);
	--eok-fs-800: clamp(1.8rem, 1.45rem + 1.5vw, 2.4rem);
	--eok-fs-900: clamp(2.15rem, 1.6rem + 2.5vw, 3.35rem);

	--eok-lh-tight: 1.1;
	--eok-lh-snug: 1.28;
	--eok-lh-body: 1.6;

	/* Olcu */
	--eok-measure: 68ch;
	--eok-wrap: 1160px;
	--eok-wrap-narrow: 760px;
	--eok-gutter: 1.25rem;

	/* Aralik (4px tabanli) */
	--eok-sp-1: 0.25rem;
	--eok-sp-2: 0.5rem;
	--eok-sp-3: 0.75rem;
	--eok-sp-4: 1rem;
	--eok-sp-5: 1.5rem;
	--eok-sp-6: 2rem;
	--eok-sp-7: 3rem;
	--eok-sp-8: 4rem;
	--eok-sp-9: 6rem;

	/* Köşe: kart 12px, kontrol 9px (keskin 3px datasheet kaldırıldı) */
	--eok-radius: 12px;
	--eok-radius-ctl: 9px;
	--eok-radius-pill: 999px;
}

/* =========================================================
   2. RESET
   ========================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--eok-paper);
	color: var(--eok-ink);
	font-family: var(--eok-font-body);
	font-size: var(--eok-fs-400);
	line-height: var(--eok-lh-body);
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

/* =========================================================
   3. TIPOGRAFI
   ========================================================= */
h1,
h2,
h3,
h4 {
	font-family: var(--eok-font-display);
	font-weight: 700;
	color: var(--eok-ink);
	letter-spacing: -0.015em;
	line-height: var(--eok-lh-snug);
	margin: 0 0 var(--eok-sp-4);
	text-wrap: balance;
}

h1 {
	font-size: var(--eok-fs-900);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: var(--eok-lh-tight);
}

h2 { font-size: var(--eok-fs-800); }
h3 { font-size: var(--eok-fs-700); }
h4 { font-size: var(--eok-fs-600); }

p,
ul,
ol {
	margin: 0 0 var(--eok-sp-5);
}

a {
	color: var(--eok-steel);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--eok-ink);
}

strong { font-weight: 700; }

/* Sayilar her yerde hizali. Fiyat, cm, kg icin. */
.eok-num,
table td,
table th {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

/* Ustbaslik / etiket. Turkce buyuk harf donusumu icin html lang gerekli. */
.eok-eyebrow {
	display: block;
	font-family: var(--eok-font-display);
	font-size: var(--eok-fs-200);
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--eok-steel);
	margin-bottom: var(--eok-sp-2);
}

/* =========================================================
   4. YERLESIM
   ========================================================= */
.eok-wrap {
	width: 100%;
	max-width: var(--eok-wrap);
	margin-inline: auto;
	padding-inline: var(--eok-gutter);
}

.eok-wrap--narrow {
	max-width: var(--eok-wrap-narrow);
}

.eok-main {
	display: block;
	padding-block: var(--eok-sp-7) var(--eok-sp-9);
}

/* Uzun form editoryal icerik */
.eok-prose > * {
	max-width: var(--eok-measure);
}

.eok-prose > h2 {
	margin-top: var(--eok-sp-8);
}

.eok-prose > h3 {
	margin-top: var(--eok-sp-6);
}

.eok-prose li {
	margin-bottom: var(--eok-sp-2);
}

.eok-prose table {
	max-width: 100%;
	width: 100%;
	border-collapse: collapse;
	font-family: var(--eok-font-display);
	font-size: var(--eok-fs-300);
}

.eok-prose th,
.eok-prose td {
	text-align: left;
	padding: var(--eok-sp-3);
	border-bottom: 1px solid var(--eok-rule);
}

.eok-prose th {
	font-weight: 600;
	color: var(--eok-steel);
}

/* =========================================================
   5. AYRAC
   Cetvel imzası kaldırıldı — sade hairline çizgi.
   Sınıf isimleri korunur (HTML'de kullanılıyorsa kırılmasın),
   yalnızca görünüm tek satır hairline'a indirgendi.
   ========================================================= */
.eok-rule,
.eok-rule--scale,
.eok-rule--tight {
	height: 0;
	border: 0;
	border-top: 1px solid var(--eok-rule);
	background: none;
}

/* =========================================================
   6. HEADER
   ========================================================= */
.eok-header {
	background: var(--eok-paper);
	border-bottom: 1px solid var(--eok-rule);
	position: sticky;
	top: 0;
	z-index: 40;
}

.eok-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--eok-sp-5);
	padding-block: var(--eok-sp-4);
	flex-wrap: wrap;
}

.eok-wordmark {
	display: inline-block;
	font-family: var(--eok-font-display);
	color: var(--eok-ink);
	text-decoration: none;
	line-height: 1;
}

.eok-wordmark__top {
	display: none; /* üstteki uppercase etiket kaldırıldı (sade dil) */
}

.eok-wordmark__main {
	display: block;
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: -0.035em;
}

.eok-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--eok-sp-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.eok-nav a {
	font-family: var(--eok-font-display);
	font-size: var(--eok-fs-300);
	font-weight: 500;
	color: var(--eok-ink-soft);
	text-decoration: none;
}

.eok-nav a:hover,
.eok-nav .current-menu-item > a {
	color: var(--eok-steel);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

/* =========================================================
   7. FOOTER
   ========================================================= */
.eok-footer {
	margin-top: var(--eok-sp-9);
	background: var(--eok-paper-sunk);
}

.eok-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: var(--eok-sp-5);
	justify-content: space-between;
	padding-block: var(--eok-sp-6);
	font-size: var(--eok-fs-300);
	color: var(--eok-ink-soft);
}

.eok-footer__col {
	flex: 1 1 260px;
	max-width: 42ch;
}

.eok-footer__note {
	margin: 0 0 var(--eok-sp-3);
}

.eok-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.eok-footer li + li {
	margin-top: var(--eok-sp-2);
}

/* =========================================================
   8. ERISILEBILIRLIK
   ========================================================= */
.eok-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: var(--eok-sp-3) var(--eok-sp-4);
	background: var(--eok-steel);
	color: #fff;
	font-family: var(--eok-font-display);
	text-decoration: none;
}

.eok-skip:focus {
	left: var(--eok-sp-4);
	top: var(--eok-sp-4);
}

:focus-visible {
	outline: 2px solid var(--eok-steel);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

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

/* =========================================================
   9. RESPONSIVE
   Mobil-öncesi: her şey akışkan; kırılma noktalarında
   yoğunluk ve boşluk azalır. Tema kabuğu (header/footer/
   prose) tüm genişliklerde düzgün. Kart/filtre/karşılaştırma
   grid'leri kendi bölümlerinde (eklenti CSS) responsive.
   ========================================================= */

/* Görseller ve gömülüler taşmasın */
img, svg, video, iframe, table { max-width: 100%; }

/* Uzun kelime/URL taşmasını engelle */
.eok-prose, .eok-footer, .eok-main { overflow-wrap: anywhere; }

/* Tablet ve altı */
@media (max-width: 900px) {
	:root {
		--eok-gutter: 1.1rem;
		--eok-sp-9: 4rem;
		--eok-sp-8: 3rem;
	}
	.eok-main { padding-block: var(--eok-sp-6) var(--eok-sp-8); }
	.eok-prose > h2 { margin-top: var(--eok-sp-7); }
}

/* Telefon */
@media (max-width: 640px) {
	:root {
		--eok-gutter: 1rem;
		/* Başlıklar mobilde biraz küçülsün (clamp zaten var, tabanı indir) */
		--eok-fs-900: clamp(1.9rem, 1.5rem + 3vw, 2.4rem);
		--eok-fs-800: clamp(1.55rem, 1.3rem + 2vw, 1.9rem);
	}

	.eok-header {
		position: static; /* mobilde sticky yer kaplamasın */
	}
	.eok-header__inner {
		align-items: center;
		gap: var(--eok-sp-3);
		padding-block: var(--eok-sp-3);
	}
	.eok-nav {
		width: 100%;
	}
	.eok-nav ul {
		gap: var(--eok-sp-4);
		justify-content: flex-start;
		font-size: var(--eok-fs-300);
	}

	.eok-main { padding-block: var(--eok-sp-5) var(--eok-sp-7); }

	.eok-footer__inner {
		flex-direction: column;
		gap: var(--eok-sp-4);
		padding-block: var(--eok-sp-5);
	}

	/* Dokunma hedefleri: nav/link min 40px yükseklik hissi */
	.eok-nav a { display: inline-block; padding-block: 2px; }
}

/* Çok dar telefon */
@media (max-width: 380px) {
	:root { --eok-gutter: 0.85rem; }
	.eok-wordmark__main { font-size: 1.25rem; }
}
/* === Site header: logo + sayfa menüsü (EOK Core) ===
   Bar ve alttaki cetvel çizgisi (.eok-header / .eok-rule--scale) temadan gelir. */
.eok-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.eok-logo { font-family: var(--eok-font-display); font-size: 22px; font-weight: 900; letter-spacing: -0.02em; color: var(--eok-ink); line-height: 1; }
.eok-logo__tld { color: var(--eok-green); font-weight: 800; }

.eok-topnav { margin-left: auto; }
.eok-topnav__links { display: flex; align-items: center; gap: var(--eok-sp-4); margin: 0; padding: 0; list-style: none; }
.eok-topnav__links > li { position: relative; }
.eok-topnav__links a, .eok-topnav__toggle {
	display: inline-flex; align-items: center; gap: 4px;
	font-family: var(--eok-font-display); font-size: var(--eok-fs-300); font-weight: 600;
	color: var(--eok-ink); text-decoration: none;
	background: none; border: 0; cursor: pointer; padding: 8px 2px;
}
.eok-topnav__links a:hover, .eok-topnav__toggle:hover { color: var(--eok-green); }
.eok-topnav__caret { transition: transform .15s ease; }

/* Marka dropdown — JS'siz (hover + focus-within) */
.eok-topnav__sub {
	position: absolute; top: 100%; right: 0; z-index: 50; display: none;
	min-width: 240px; margin: 0; padding: 6px; list-style: none;
	background: #fff; border: 1px solid var(--eok-rule); border-radius: var(--eok-radius);
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.eok-topnav__has-sub:hover .eok-topnav__sub,
.eok-topnav__has-sub:focus-within .eok-topnav__sub { display: block; }
.eok-topnav__has-sub:hover .eok-topnav__caret,
.eok-topnav__has-sub:focus-within .eok-topnav__caret { transform: rotate(180deg); }
.eok-topnav__sub a { display: block; padding: 8px 12px; border-radius: 6px; font-size: var(--eok-fs-300); font-weight: 600; white-space: nowrap; color: var(--eok-ink); text-decoration: none; }
.eok-topnav__sub a:hover { background: var(--eok-paper-sunk); color: var(--eok-green); }

@media (max-width: 640px) {
	.eok-topnav__links { gap: var(--eok-sp-3); flex-wrap: wrap; }
	.eok-topnav__sub { right: auto; left: 0; }
}

/* === Site footer içeriği (EOK Core) === */
.eok-sitefooter__inner {
	display: flex; flex-wrap: wrap; gap: var(--eok-sp-6);
	align-items: flex-start; justify-content: space-between;
	padding-block: var(--eok-sp-6);
}
.eok-sitefooter__mission { flex: 0 1 440px; min-width: 0; }
.eok-sitefooter__mission p { margin: var(--eok-sp-2) 0 0; max-width: 52ch; color: var(--eok-ink-soft); font-size: var(--eok-fs-300); line-height: 1.65; }
.eok-sitefooter__links { flex: 0 0 auto; display: flex; flex-direction: column; gap: var(--eok-sp-2); }
.eok-sitefooter__links a { font-family: var(--eok-font-display); font-size: var(--eok-fs-300); font-weight: 600; color: var(--eok-ink); text-decoration: none; }
.eok-sitefooter__links a:hover { color: var(--eok-green); }
.eok-sitefooter__notes { padding-bottom: var(--eok-sp-5); }
.eok-sitefooter__notes p { margin: 0 0 var(--eok-sp-2); max-width: 78ch; color: var(--eok-ink-faint); font-size: var(--eok-fs-200); line-height: 1.6; }
.eok-sitefooter__notes p:last-child { margin-bottom: 0; }
.eok-sitefooter__bar { border-top: 1px solid var(--eok-rule); }
.eok-sitefooter__copy { margin: 0; padding-block: var(--eok-sp-4); font-family: var(--eok-font-display); font-size: var(--eok-fs-200); color: var(--eok-ink-faint); }
@media (max-width: 640px) { .eok-sitefooter__inner { flex-direction: column; gap: var(--eok-sp-4); } }
.eok-sitefooter__contact a { color: var(--eok-green); text-decoration: none; }
.eok-sitefooter__contact a:hover { text-decoration: underline; }

.eok-sitefooter__brands { flex: 0 0 auto; display: flex; flex-direction: column; gap: var(--eok-sp-2); }
.eok-sitefooter__brands a { font-family: var(--eok-font-display); font-size: var(--eok-fs-300); font-weight: 600; color: var(--eok-ink); text-decoration: none; }
.eok-sitefooter__brands a:hover { color: var(--eok-green); }
.eok-sitefooter__heading { font-family: var(--eok-font-display); font-size: var(--eok-fs-200); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--eok-ink-faint); margin-bottom: 6px; }