/*
Theme Name: EkoÇözüm
Template: mission-news
Description: Ekonomi yayını için Mission News alt teması.
Version: 1.0.0
Text Domain: ekocozum
*/

:root {
	--paper: #ffffff;
	--mist: #eef2f1;
	--ink: #15232e;
	--muted: #5a6872;
	--rule: #d8dfdd;
	--accent: #0b6e4f;
	--serif: "Newsreader", Georgia, serif;
	--sans: "Public Sans", system-ui, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Temel ---------- */
body.eko {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.eko h1, .eko h2, .eko h3, .eko h4 {
	font-family: var(--serif);
	color: var(--ink);
	font-weight: 600;
	letter-spacing: -0.01em;
}

.eko a { color: inherit; }

.eko a:focus-visible,
.eko summary:focus-visible,
.eko button:focus-visible,
.eko input:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.eko-wrap {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
	box-sizing: border-box;
}

.eko .overflow-container { overflow-x: hidden; }

.eko .content-container,
.eko .layout-container,
.eko .main {
	display: block;
	width: 100%;
	max-width: var(--wrap);
	float: none;
	margin-inline: auto;
	padding-top: 0;
	border: 0;
}
.eko .layout-container,
.eko .main { padding-inline: 0; }
.eko .content-container::before,
.eko .content-container::after { content: none; }

/* ---------- Üst bölüm ---------- */
.eko-header {
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .eko-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .eko-header { top: 0; position: relative; } }

.eko-bar {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 64px;
}

.eko-logo {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 1.75rem;
	line-height: 1;
	text-decoration: none;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.eko-tagline {
	margin: 0;
	color: var(--muted);
	font-size: 0.875rem;
	flex: 1;
}

.eko-search { position: relative; margin-left: auto; }
.eko-search summary {
	list-style: none;
	cursor: pointer;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--ink);
}
.eko-search summary::-webkit-details-marker { display: none; }
.eko-search summary:hover,
.eko-search[open] summary { background: var(--mist); }

.eko-search form {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	display: flex;
	gap: 8px;
	width: min(360px, calc(100vw - 2 * var(--gutter)));
	padding: 12px;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: 10px;
	box-sizing: border-box;
}
.eko-search input {
	flex: 1;
	min-width: 0;
	height: 42px;
	padding: 0 12px;
	font: inherit;
	border: 1px solid var(--rule);
	border-radius: 6px;
	background: var(--paper);
}
.eko-search button {
	height: 42px;
	padding: 0 16px;
	font: 600 0.9375rem var(--sans);
	color: #fff;
	background: var(--accent);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

/* Kategori menüsü: masaüstünde satır, mobilde yatay kaydırılan çipler */
.eko-nav { border-top: 1px solid var(--rule); }
.eko-nav-list {
	display: flex;
	gap: 4px;
	margin: 0 auto;
	padding-inline: var(--gutter);
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.eko-nav-list::-webkit-scrollbar { display: none; }
.eko-nav-list li { margin: 0; flex: none; }
.eko-nav-list a {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 12px;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--ink);
	border-bottom: 3px solid transparent;
	white-space: nowrap;
}
.eko-nav-list a[style]::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--cat);
}
.eko-nav-list a:hover { color: var(--cat, var(--accent)); }
.eko-nav-list .current-menu-item > a {
	border-bottom-color: var(--cat, var(--accent));
	font-weight: 600;
}

/* ---------- Ortak parçalar ---------- */
.eko-cat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--sans);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--cat) !important;
	text-decoration: none;
}
.eko-cat::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--cat);
}
.eko-cat:hover { text-decoration: underline; }

.eko-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 0;
	font-size: 0.8125rem;
	color: var(--muted);
}

.eko-section-title {
	margin: 0 0 20px;
	padding-top: 14px;
	border-top: 3px solid var(--ink);
	font-size: 1.375rem;
}

.eko h2 a, .eko h3 a { text-decoration: none; }
.eko h2 a:hover, .eko h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- Ana sayfa ---------- */
.eko-top {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 48px;
	padding: 40px 0 56px;
}

.eko-lead { max-width: 44rem; }
.eko-lead-title {
	margin: 12px 0 16px;
	font-size: clamp(2rem, 4.6vw, 3.4rem);
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
.eko-lead-excerpt {
	margin: 0 0 18px;
	font-size: 1.1875rem;
	line-height: 1.55;
	color: #34434e;
	max-width: 38rem;
}

.eko-latest ul { list-style: none; margin: 0; padding: 0; }
.eko-latest li {
	margin: 0;
	padding: 16px 0;
	border-bottom: 1px solid var(--rule);
}
.eko-latest li:first-child { padding-top: 0; }
.eko-latest li:last-child { border-bottom: 0; }
.eko-latest h3 {
	margin: 4px 0 6px;
	font-size: 1.1875rem;
	line-height: 1.3;
}

.eko-topics {
	margin: 0 calc(-1 * var(--gutter));
	padding: 36px var(--gutter) 44px;
	background: var(--mist);
}
@media (min-width: 1264px) {
	.eko-topics { border-radius: 14px; }
}
.eko-topic-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.eko-topic {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px;
	background: var(--paper);
	border-left: 4px solid var(--cat);
	border-radius: 0 8px 8px 0;
}
.eko-topic h3 { margin: 0; font-size: 1.3125rem; }
.eko-topic h3 a { color: var(--ink); }
.eko-topic-count { margin: 0 0 6px; font-size: 0.8125rem; color: var(--muted); }
.eko-topic-latest {
	margin: auto 0 0;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--ink);
	text-decoration: none;
}
a.eko-topic-latest:hover { color: var(--cat); text-decoration: underline; }

.eko-more { padding: 48px 0 16px; }
.eko-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}
.eko-card h3 { margin: 6px 0 8px; font-size: 1.25rem; line-height: 1.3; }
.eko-card p:not(.eko-meta) {
	margin: 0 0 10px;
	font-size: 0.9375rem;
	color: #34434e;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.eko-empty { padding: 64px 0; color: var(--muted); }

/* ---------- Yazı ve arşiv sayfaları ---------- */
.eko .loop-container,
.eko .post,
.eko .page,
.eko .archive-header {
	max-width: 44rem;
	margin-inline: auto;
	padding-inline: 0;
}
.eko .archive-header { padding-top: 40px; }
.eko .archive-header[style] {
	margin-top: 32px;
	padding-top: 18px;
	border-top: 4px solid var(--cat);
}
.eko .archive-header .eko-meta { margin-top: 6px; font-style: normal; }

/* Arşiv ve arama listelerinde başlıklar yazı sayfasından küçük */
.eko.archive .loop-container .post,
.eko.search .loop-container .post {
	padding: 28px 0;
	border-bottom: 1px solid var(--rule);
}
.eko.archive .loop-container .post-title,
.eko.search .loop-container .post-title {
	font-size: clamp(1.375rem, 3vw, 1.75rem);
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 6px;
}
.eko .post { padding-top: 32px; }
.eko .archive-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0; }

.eko .post-header { text-align: left; }
.eko .post-title {
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(1.9rem, 4.4vw, 2.9rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.eko .excerpt .post-title { font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 600; }
.eko .post-byline {
	font-family: var(--sans);
	font-size: 0.8125rem;
	text-transform: none;
	letter-spacing: 0;
	color: var(--muted);
}
.eko .post-content,
.eko .excerpt-content {
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.75;
}
.eko .post-content h2 { font-size: 1.625rem; margin-top: 2em; }
.eko .post-content a { color: var(--accent); }
.eko .post-categories a,
.eko .post-tags a { color: var(--accent); }
.eko .excerpt {
	padding: 28px 0;
	border-bottom: 1px solid var(--rule);
}
.eko .more-link { color: var(--accent); font-weight: 600; }
.eko .post-author { border-color: var(--rule); }

/* ---------- Alt bölüm ---------- */
.eko-footer {
	margin-top: 64px;
	padding: 40px 0 28px;
	background: var(--ink);
	color: #c9d3d8;
}
.eko-footer-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px 40px;
	align-items: start;
}
.eko-footer .eko-logo { color: #fff; font-size: 1.5rem; }
.eko-footer p { margin: 8px 0 0; font-size: 0.9375rem; }
.eko-footer-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.eko-footer-nav a { color: #fff; text-decoration: none; }
.eko-footer-nav a:hover { text-decoration: underline; }
.eko-copy {
	grid-column: 1 / -1;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 0.8125rem !important;
	color: #9aa8b0;
}

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 1000px) {
	.eko-tagline { display: none; }
	.eko-top { grid-template-columns: 1fr; gap: 36px; padding-top: 28px; }
	.eko-topic-grid, .eko-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.eko-bar { min-height: 56px; gap: 12px; }
	.eko-logo { font-size: 1.5rem; }
	.eko-nav-list {
		padding-block: 8px;
		gap: 8px;
		-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
		mask-image: linear-gradient(90deg, #000 85%, transparent);
	}
	.eko-nav-list.is-end { -webkit-mask-image: none; mask-image: none; }
	.eko-nav-list a {
		min-height: 36px;
		padding: 0 14px;
		background: var(--mist);
		border: 0;
		border-radius: 999px;
		font-size: 0.875rem;
	}
	.eko-nav-list .current-menu-item > a { background: var(--ink); color: #fff; }
	.eko-top { padding: 24px 0 40px; }
	.eko-lead-excerpt { font-size: 1.0625rem; }
	.eko-topic-grid, .eko-grid { grid-template-columns: 1fr; }
	.eko-topics { padding-block: 28px 32px; }
	.eko-grid { gap: 28px; }
	.eko-footer-inner { grid-template-columns: 1fr; }
	.eko-footer-nav ul { flex-wrap: wrap; }
}

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

/* ---------- Yorumlar ---------- */
.eko .comment-respond,
.eko .comments {
	max-width: 44rem;
	margin-inline: auto;
	font-family: var(--sans);
}
.eko .comment-respond label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.eko .comment-respond input[type="text"],
.eko .comment-respond input[type="email"],
.eko .comment-respond textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	font: inherit;
	font-size: 1rem;
	border: 1px solid var(--rule);
	border-radius: 6px;
	background: var(--paper);
}
.eko .comment-respond textarea { min-height: 140px; }
.eko .comment-respond input:focus,
.eko .comment-respond textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.eko .comment-notes { color: var(--muted); font-size: 0.9375rem; font-style: normal; }
.eko .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.eko .comment-form-cookies-consent label { font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
.eko .comment-respond .cf-turnstile { display: block; margin: 8px 0 4px; }
.eko .comment-respond input[type="submit"] {
	min-height: 44px;
	padding: 0 22px;
	font: 600 1rem var(--sans);
	color: #fff;
	background: var(--accent);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}
.eko .comment-awaiting-moderation { color: var(--accent); font-style: normal; font-weight: 600; }
