/*
Theme Name: Alevbet Merkez
Author: Alevbet
Description: Editoryal portal düzenli, mobil CTA şeritli AMP uyumlu Alevbet teması.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: alevbet-merkez
*/

:root {
	--ink: #241d19;
	--muted: #746861;
	--paper: #fffefb;
	--cream: #f7f1e9;
	--line: #e4d8cd;
	--red: #d93416;
	--orange: #f36b21;
	--gold: #f3ac35;
	--width: 1180px;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; color: var(--ink); background: var(--cream);
	font: 16px/1.72 Georgia, "Times New Roman", serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover, a:focus { color: #9f2813; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	z-index: 99999; top: 8px; left: 8px; width: auto; height: auto; padding: 9px 14px;
	clip: auto; color: var(--ink); background: #fff; font-family: sans-serif; font-weight: 700;
}

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.portal-strip {
	padding: 7px 16px; color: #fff; background: linear-gradient(90deg, #21120c, #7e1b0d);
	font: 750 11px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: .13em; text-align: center;
}
.header-inner {
	display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 22px;
	width: min(var(--width), calc(100% - 36px)); min-height: 92px; margin: auto;
}
.custom-logo-link, .default-logo { display: block; }
.custom-logo, .default-logo img { width: 122px; height: 76px; object-fit: contain; }
.primary-menu {
	display: flex; justify-content: center; flex-wrap: wrap; gap: 2px;
	padding: 0; margin: 0; list-style: none;
}
.primary-menu a {
	display: block; padding: 12px 10px; color: var(--ink);
	font: 750 13px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-decoration: none;
}
.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a { color: var(--red); }
.header-actions { display: flex; gap: 7px; }
.login-button, .register-button {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 11px 15px; border: 2px solid var(--red); border-radius: 4px;
	font: 800 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-decoration: none; white-space: nowrap;
}
.login-button { color: #fff; background: var(--red); }
.register-button { color: var(--red); background: transparent; }
.login-button:hover, .login-button:focus { color: #fff; background: #aa2812; }
.register-button:hover, .register-button:focus { color: #fff; background: var(--red); }
.mobile-actions { display: none; }

.site-main {
	width: min(var(--width), calc(100% - 36px)); margin: 26px auto 0;
	padding: 0 0 52px;
}
.content-layout {
	display: grid; grid-template-columns: minmax(0, 2.55fr) minmax(260px, .9fr);
	gap: 38px; align-items: start;
}
.content-column {
	min-width: 0; padding: clamp(25px, 4vw, 48px);
	background: var(--paper); border-top: 5px solid var(--red);
	box-shadow: 0 5px 22px rgba(48, 27, 17, .08);
}
.entry-header { margin-bottom: 26px; }
.entry-title, .page-title {
	margin: 0 0 16px; font-size: clamp(1.85rem, 4vw, 2.65rem);
	line-height: 1.22; letter-spacing: -.03em;
}
.page-title { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.entry-meta {
	margin: 0 0 19px; color: var(--muted);
	font: 12px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-transform: uppercase; letter-spacing: .05em;
}
.featured-image { margin: 0 0 30px; }
.featured-image img { width: 100%; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content p, .entry-content ul, .entry-content ol { margin-top: 0; margin-bottom: 1.35em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.8em 0 .6em; line-height: 1.3; }
.entry-content h2 { padding-left: 13px; border-left: 5px solid var(--orange); font-size: 1.55rem; }
.entry-content blockquote { padding: 18px 22px; margin: 1.6em 0; background: #fff7ed; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.entry-content table { width: 100%; border-collapse: collapse; font-family: sans-serif; font-size: 14px; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--line); text-align: left; }

.sidebar {
	position: sticky; top: 18px; padding-top: 17px;
	border-top: 5px solid var(--orange);
}
.quick-menu { padding: 0 20px 18px; background: #fff; box-shadow: 0 5px 22px rgba(48, 27, 17, .08); }
.quick-menu-title {
	padding: 17px 0 12px; margin: 0; border-bottom: 1px solid var(--line);
	font: 800 16px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-transform: uppercase; letter-spacing: .06em;
}
.recent-posts { padding: 0; margin: 0; list-style: none; counter-reset: news; }
.recent-posts li { position: relative; padding-left: 28px; border-bottom: 1px solid var(--line); counter-increment: news; }
.recent-posts li::before {
	position: absolute; top: 11px; left: 0; color: var(--orange);
	content: counter(news, decimal-leading-zero); font: 800 11px/1.4 sans-serif;
}
.recent-posts a {
	display: block; padding: 10px 0; color: var(--ink);
	font: 650 12px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-decoration: none;
}
.recent-posts a:hover, .recent-posts a:focus { color: var(--red); }
.sidebar-empty { color: var(--muted); }

.post-summary { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.summary-title { margin: 0 0 7px; font-size: 1.5rem; line-height: 1.3; }
.summary-title a { color: var(--ink); text-decoration: none; }
.summary-title a:hover, .summary-title a:focus { color: var(--red); }
.entry-summary p { margin-bottom: 11px; }
.read-more { font: 800 12px/1.4 sans-serif; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.post-navigation { display: flex; justify-content: space-between; gap: 20px; padding-top: 23px; margin-top: 34px; border-top: 1px solid var(--line); }
.nav-next { margin-left: auto; text-align: right; }
.nav-links { display: flex; gap: 7px; flex-wrap: wrap; }
.page-numbers { padding: 7px 11px; color: var(--ink); background: #fff; border: 1px solid var(--line); font: 700 12px sans-serif; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--red); border-color: var(--red); }
.archive-description { margin: -5px 0 22px; color: var(--muted); }
.alignleft { float: left; margin: .4em 1.4em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.4em; }
.aligncenter { margin-right: auto; margin-left: auto; }
.wp-caption, .gallery-caption { max-width: 100%; color: var(--muted); font-size: 12px; }

.site-footer { padding: 34px 16px; color: #d8c5b9; background: #21120c; text-align: center; }
.footer-inner { width: min(var(--width), 100%); margin: auto; font: 12px sans-serif; }
.footer-inner a { color: var(--gold); }

@media (max-width: 940px) {
	.header-inner { grid-template-columns: 120px 1fr; padding: 9px 0; }
	.header-actions { display: none; }
	.content-layout { grid-template-columns: minmax(0, 1.8fr) minmax(230px, .8fr); gap: 24px; }
}
@media (max-width: 720px) {
	body { padding-bottom: 67px; }
	.header-inner { display: flex; align-items: flex-start; flex-direction: column; }
	.custom-logo, .default-logo img { width: 105px; height: 62px; }
	.primary-navigation { width: 100%; overflow-x: auto; }
	.primary-menu { justify-content: flex-start; flex-wrap: nowrap; }
	.primary-menu a { padding: 8px 15px 10px 0; white-space: nowrap; }
	.content-layout { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.mobile-actions {
		position: fixed; z-index: 9999; right: 0; bottom: 0; left: 0;
		display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
		padding: 8px 12px; background: rgba(255, 254, 251, .97);
		border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0, 0, 0, .1);
	}
	.mobile-actions:empty { display: none; }
	.mobile-actions > :only-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.site-main { width: calc(100% - 20px); margin-top: 12px; }
	.content-column { padding: 23px 18px; }
	.entry-title, .page-title { font-size: 1.65rem; }
	.post-navigation { flex-direction: column; }
	.nav-next { margin-left: 0; text-align: left; }
	.alignleft, .alignright { float: none; margin-right: auto; margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
