/* ==========================================================
   Ortak site stili (varsayılan görünüm: Ferah)
   Temalar /themes/<tema>/theme.css ile renkleri ve düzeni değiştirir.
   ========================================================== */

:root {
	--primary: #0f8b8d;
	--primary-dark: #0b6b6d;
	--accent: #f4a259;
	--bg: #f4f8f8;
	--surface: #ffffff;
	--text: #1f2d33;
	--muted: #62757d;
	--border: #dfe8ea;
	--radius: 10px;
	--shadow: 0 2px 10px rgba(15, 60, 70, .08);
	--shadow-hover: 0 8px 24px rgba(15, 60, 70, .16);
	--header-height: 60px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--heading-font: var(--font);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
	background: var(--bg);
	color: var(--text);
	font: 15px/1.6 var(--font);
	overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

.container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 16px;
}

.section { padding-bottom: 12px; }

/* ---------- Üst menü ---------- */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: var(--primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.header-top {
	max-width: 1140px;
	height: var(--header-height);
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.brand {
	flex-shrink: 0;
	color: #fff;
	font-family: var(--heading-font);
	font-size: 18px;
	font-weight: 700;
}
.brand:hover { color: #fff; }

.header-spacer { height: calc(var(--header-height) + 12px); }

.menu-toggle {
	display: none;
	margin-left: auto;
	padding: 7px 14px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 20px;
	color: #fff;
	font: 600 13px var(--font);
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
}
.menu-close-label { display: none; }

.navigation { margin-left: auto; }
.navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.navigation a {
	display: block;
	padding: 8px 12px;
	border-radius: 6px;
	color: rgba(255, 255, 255, .88);
	font-weight: 500;
}
.navigation a:hover,
.navigation li.active a {
	background: rgba(255, 255, 255, .16);
	color: #fff;
}

/* ---------- Başlıklar ---------- */

.section-title,
.article-page h1 {
	margin: 28px 0 18px;
	color: var(--text);
	font-family: var(--heading-font);
	line-height: 1.25;
}
h1.section-title { font-size: 28px; }
h2.section-title { font-size: 22px; }
.section-title:after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 10px;
	border-radius: 2px;
	background: var(--accent);
}

.intro { margin-top: -6px; color: var(--muted); }
.empty { color: var(--muted); }

/* ---------- İlan kartları ---------- */

.listing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 16px;
}

.listing-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform .15s, box-shadow .15s;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.listing-card a {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--text);
}

.listing-card img,
.listing-noimage {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	background: #e3eeef;
}
.listing-noimage {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary);
	font-size: 64px;
	font-weight: 700;
}

.listing-name {
	flex: 1;
	padding: 10px 12px 4px;
	font-weight: 600;
	line-height: 1.35;
}
.listing-phone {
	padding: 0 12px 12px;
	color: var(--primary);
	font-weight: 600;
	white-space: nowrap;
}
.listing-phone:before { content: "\260E  "; color: var(--accent); }

/* ---------- Makale listesi ---------- */

.article-list { display: grid; gap: 14px; }

.article-card {
	display: flex;
	gap: 16px;
	padding: 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.article-card-img { flex: 0 0 120px; }
.article-card-img img {
	display: block;
	width: 120px;
	height: 120px;
	border-radius: 8px;
	object-fit: cover;
	background: #e3eeef;
}

.article-card-body { min-width: 0; }
.article-card-title { margin: 0 0 6px; font-family: var(--heading-font); font-size: 17px; line-height: 1.35; }
.article-card-title a { color: var(--text); }
.article-card-title a:hover { color: var(--primary); }
.article-card-excerpt { margin: 0; color: var(--muted); }

.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 20px 0;
	color: var(--muted);
}
.pagination a {
	padding: 8px 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

/* ---------- Detay sayfası ---------- */

.breadcrumb {
	margin-top: 8px;
	padding: 10px 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--muted);
	font-size: 13px;
}
.breadcrumb span { margin: 0 4px; opacity: .6; }
.breadcrumb strong { color: var(--text); font-weight: 600; }

.article-page {
	position: relative;
	margin-top: 16px;
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.article-page h1 { margin-top: 0; padding-right: 90px; }

.post-nav { position: absolute; top: 24px; right: 24px; display: flex; gap: 8px; }
.post-nav a {
	display: block;
	width: 36px;
	height: 36px;
	border: 1px solid var(--border);
	border-radius: 50%;
	text-align: center;
	line-height: 34px;
	font-size: 20px;
}
.post-nav .prev-post:before { content: "\2039"; }
.post-nav .next-post:before { content: "\203A"; }
.post-nav a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.gallery { float: left; width: 300px; margin: 0 24px 16px 0; }
.gallery a { display: inline-block; }
.gallery a:first-child { display: block; margin-bottom: 8px; }
.gallery a:first-child img {
	display: block;
	width: 100%;
	height: 400px;
	border-radius: 8px;
	object-fit: cover;
	background: #e3eeef;
}
.gallery a:not(:first-child) img {
	width: 65px;
	height: 65px;
	margin: 0 4px 4px 0;
	border-radius: 6px;
	object-fit: cover;
}

.article-content { overflow: hidden; }
.article-content > :first-child { margin-top: 0; }
.article-content img { height: auto; border-radius: 8px; }

.contact-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 16px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-weight: 600;
}

.call-button {
	display: inline-block;
	padding: 10px 20px;
	background: var(--accent);
	border-radius: 24px;
	color: #fff;
	font-weight: 700;
}
.call-button:hover { color: #fff; filter: brightness(.95); }
.contact-box .call-button:before { content: "\260E  "; }

.tags { margin: 16px 0 0; }
.tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 4px 12px;
	background: color-mix(in srgb, var(--primary) 12%, transparent);
	border-radius: 14px;
	font-size: 13px;
}
.tags a:before { content: "# "; opacity: .6; }
.tags a:hover { background: var(--primary); color: #fff; }

.not-found { min-height: 40vh; }

/* ---------- Görsel büyütme (lightbox) ---------- */

.lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, .88);
	cursor: zoom-out;
}
.lightbox-overlay img { max-width: 100%; max-height: 100%; border-radius: 6px; }

/* ---------- Alt bilgi ---------- */

.footer {
	margin-top: 32px;
	padding: 24px 0;
	background: #16373d;
	color: #b7cdd1;
	font-size: 13px;
	text-align: center;
}
.footer p { margin: 0; }

/* ---------- Mobil ---------- */

@media (max-width: 768px) {
	.menu-toggle { display: inline-block; }

	.navigation {
		display: none;
		position: fixed;
		top: var(--header-height);
		left: 0;
		right: 0;
		bottom: 0;
		padding: 12px 16px;
		background: var(--primary-dark);
		overflow-y: auto;
	}
	.navigation ul { flex-direction: column; }
	.navigation a { padding: 12px; font-size: 16px; }

	.menu-open .navigation { display: block; }
	.menu-open .menu-open-label { display: none; }
	.menu-open .menu-close-label { display: inline; }

	h1.section-title { font-size: 23px; }

	.listing-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.listing-card img, .listing-noimage { height: 180px; }

	.article-card { padding: 12px; gap: 12px; }
	.article-card-img { flex-basis: 84px; }
	.article-card-img img { width: 84px; height: 84px; }

	.article-page { padding: 16px; }
	.article-page h1 { padding-right: 0; }
	.post-nav { position: static; margin-bottom: 12px; }
	.gallery { float: none; width: 100%; margin-right: 0; }
	.gallery a:first-child img { height: 320px; }
}

/* ---------- Alt menü ve site haritası ---------- */

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 18px;
	margin-bottom: 10px;
}
.footer-links a { color: inherit; opacity: .85; text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: inherit; opacity: 1; }

.sitemap-page {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}
.sitemap-page section {
	padding: 16px 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.sitemap-page h2 { margin: 0 0 10px; font-family: var(--heading-font); font-size: 17px; }
.sitemap-page ul { margin: 0; padding-left: 18px; }
.sitemap-page li { margin: 4px 0; }
