/*
Theme Name: Alevbet Kızıl
Theme URI: https://example.com/alevbet-kizil
Author: Alevbet
Description: Bordo-altın lüks görünümlü, split hero ve istatistik bantlı, AMP uyumlu Alevbet teması.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: alevbet-kizil
*/

:root {
	--color-bg: #140404;
	--color-bg-deep: #090202;
	--color-burgundy: #4a0d10;
	--color-surface: #fffaf3;
	--color-surface-soft: #fbf1e2;
	--color-text: #2a1410;
	--color-muted: #7d635a;
	--color-orange: #ff6a00;
	--color-red: #c22415;
	--color-gold: #d9a441;
	--color-gold-light: #f2cf8b;
	--color-line: #eeddc8;
	--shadow-card: 0 24px 60px rgba(0, 0, 0, 0.35);
	--radius: 12px;
	--content-width: 1120px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	margin: 0;
	color: var(--color-text);
	background:
		radial-gradient(circle at 78% -6%, rgba(217, 164, 65, 0.28) 0, rgba(194, 36, 21, 0.1) 30%, transparent 55%),
		radial-gradient(circle at 6% 30%, rgba(194, 36, 21, 0.16) 0, transparent 32%),
		repeating-linear-gradient(115deg, rgba(217, 164, 65, 0.035) 0 2px, transparent 2px 26px),
		linear-gradient(180deg, #2b0708 0, var(--color-bg) 42%, var(--color-bg-deep) 100%);
	background-attachment: fixed;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 16.5px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--color-red);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover,
a:focus {
	color: #921a0e;
}

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

.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: 100000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	color: var(--color-text);
	background: var(--color-surface);
	border-radius: 6px;
	font-weight: 700;
}

.site-header {
	position: relative;
	padding: 44px 20px 0;
	overflow: hidden;
}

.site-header::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	content: "";
	background:
		radial-gradient(circle at 24% 20%, rgba(217, 164, 65, 0.12), transparent 34%),
		linear-gradient(180deg, rgba(194, 36, 21, 0.05), transparent);
}

.hero {
	display: flex;
	gap: clamp(24px, 5vw, 56px);
	align-items: center;
	width: min(var(--content-width), 100%);
	margin: 0 auto;
}

.site-logo {
	flex: 0 0 auto;
	border-radius: 50%;
	filter: drop-shadow(0 16px 32px rgba(217, 164, 65, 0.35));
}

.site-logo img {
	width: clamp(140px, 18vw, 195px);
	height: clamp(140px, 18vw, 195px);
	object-fit: contain;
}

.hero-copy {
	min-width: 0;
}

.hero-title {
	margin: 0;
	color: #fdf4e3;
	font-size: clamp(1.7rem, 4.2vw, 2.7rem);
	line-height: 1.14;
	letter-spacing: 0.005em;
	text-shadow: 0 3px 20px rgba(0, 0, 0, 0.6);
}

.hero-description {
	max-width: 620px;
	margin: 14px 0 0;
	color: #eccfa9;
	font-size: 1.02rem;
	line-height: 1.65;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 26px;
}

.button-gold,
.button-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 14px 40px;
	border-radius: 6px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.92rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.button-gold {
	color: #2a1000;
	background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
	border: 1px solid rgba(255, 236, 195, 0.75);
	box-shadow:
		0 12px 30px rgba(217, 164, 65, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.button-outline {
	color: #f7e3bd;
	background: rgba(194, 36, 21, 0.22);
	border: 1px solid rgba(217, 164, 65, 0.6);
}

.button-gold:hover,
.button-gold:focus {
	color: #2a1000;
	transform: translateY(-2px);
}

.button-outline:hover,
.button-outline:focus {
	color: #fff;
	transform: translateY(-2px);
}

.stats-band {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	width: min(880px, 100%);
	padding: 20px clamp(16px, 4vw, 46px);
	margin: 40px auto -34px;
	background: linear-gradient(135deg, rgba(74, 13, 16, 0.94), rgba(43, 7, 8, 0.96));
	border: 1px solid rgba(217, 164, 65, 0.4);
	border-radius: var(--radius);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.stat {
	flex: 1 1 140px;
	text-align: center;
}

.stat + .stat {
	border-left: 1px solid rgba(217, 164, 65, 0.25);
}

.stat-value {
	display: block;
	color: var(--color-gold-light);
	font-size: 1.55rem;
	font-weight: 800;
	line-height: 1.2;
}

.stat-label {
	display: block;
	margin-top: 2px;
	color: #d9b48c;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.78rem;
	font-weight: 650;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.site-main {
	width: min(var(--content-width), calc(100% - 40px));
	margin: 0 auto;
	padding-top: 64px;
}

.content-grid {
	display: grid;
	grid-template-columns: minmax(0, 2.15fr) minmax(255px, 0.85fr);
	gap: 28px;
	align-items: start;
}

.content-card,
.sidebar-card {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 248, 238, 0.99)),
		var(--color-surface);
	border: 1px solid rgba(217, 164, 65, 0.35);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

.content-card {
	min-width: 0;
	padding: clamp(24px, 4vw, 44px);
	border-top: 3px solid var(--color-gold);
}

.sidebar {
	display: grid;
	gap: 20px;
	position: sticky;
	top: 24px;
}

.sidebar-card {
	padding: 24px;
	border-top: 3px solid var(--color-gold);
}

.sidebar-title {
	padding-bottom: 12px;
	margin: 0 0 12px;
	border-bottom: 2px solid var(--color-line);
	font-size: 1.14rem;
	line-height: 1.3;
}

.recent-posts {
	padding: 0;
	margin: 0;
	list-style: none;
}

.recent-posts li {
	padding: 11px 0;
	border-bottom: 1px solid var(--color-line);
	line-height: 1.4;
}

.recent-posts li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.recent-posts a {
	color: var(--color-text);
	font-size: 0.92rem;
	font-weight: 650;
	text-decoration: none;
}

.recent-posts a:hover,
.recent-posts a:focus {
	color: var(--color-red);
}

.why-list {
	padding: 0;
	margin: 0;
	list-style: none;
}

.why-list li {
	position: relative;
	padding: 8px 0 8px 28px;
	border-bottom: 1px dashed var(--color-line);
	font-size: 0.92rem;
	line-height: 1.5;
}

.why-list li:last-child {
	border-bottom: 0;
}

.why-list li::before {
	position: absolute;
	top: 10px;
	left: 0;
	width: 17px;
	height: 17px;
	content: "";
	background:
		linear-gradient(45deg, transparent 46%, #fff 46% 54%, transparent 54%) no-repeat 55% 58% / 9px 8px,
		linear-gradient(135deg, var(--color-gold), var(--color-red));
	border-radius: 50%;
}

.sidebar-empty {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.9rem;
}

.post-summary {
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr);
	gap: 18px;
	padding-bottom: 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--color-line);
}

.post-summary:last-of-type {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: 0;
}

.date-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	color: #fdf4e3;
	background: linear-gradient(160deg, var(--color-burgundy), #7c1a12);
	border: 1px solid rgba(217, 164, 65, 0.5);
	border-radius: 10px;
	line-height: 1.05;
}

.date-badge .day {
	font-size: 1.35rem;
	font-weight: 800;
}

.date-badge .month {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.entry-title {
	margin: 0 0 8px;
	font-size: clamp(1.28rem, 3vw, 1.62rem);
	line-height: 1.28;
}

.entry-title a {
	color: var(--color-text);
	text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
	color: var(--color-red);
}

.entry-meta {
	margin-bottom: 14px;
	color: var(--color-muted);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.entry-summary p {
	margin: 0 0 13px;
}

.read-more {
	display: inline-block;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.86rem;
	font-weight: 750;
	letter-spacing: 0.03em;
	text-decoration: none;
}

.entry-content > :first-child,
.single-entry > :first-child {
	margin-top: 0;
}

.entry-content > :last-child,
.single-entry > :last-child {
	margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.7em;
	margin-bottom: 0.6em;
	line-height: 1.3;
}

.entry-content h2 {
	padding-bottom: 8px;
	border-bottom: 2px solid var(--color-line);
	font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.entry-content h3 {
	font-size: 1.3rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin-top: 0;
	margin-bottom: 1.25em;
}

.entry-content blockquote {
	padding: 16px 22px;
	margin: 1.5em 0;
	background: var(--color-surface-soft);
	border-left: 4px solid var(--color-gold);
	font-style: italic;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 10px;
	border: 1px solid var(--color-line);
	text-align: left;
}

.entry-content th {
	background: var(--color-surface-soft);
}

.featured-image {
	margin: 0 0 26px;
	overflow: hidden;
	border: 1px solid var(--color-line);
	border-radius: 8px;
}

.featured-image img {
	width: 100%;
}

.alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.5em;
}

.aligncenter {
	margin-right: auto;
	margin-left: auto;
}

.wp-caption,
.gallery-caption {
	max-width: 100%;
	color: var(--color-muted);
	font-size: 0.85rem;
}

.post-navigation {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding-top: 25px;
	margin-top: 35px;
	border-top: 1px solid var(--color-line);
}

.post-navigation a,
.page-links a {
	font-weight: 700;
	text-decoration: none;
}

.nav-next {
	margin-left: auto;
	text-align: right;
}

.navigation.pagination {
	padding-top: 25px;
	margin-top: 35px;
	border-top: 1px solid var(--color-line);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 38px;
	padding: 6px 11px;
	color: var(--color-text);
	background: var(--color-surface-soft);
	border: 1px solid var(--color-line);
	border-radius: 6px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus {
	color: #fff;
	background: linear-gradient(135deg, var(--color-gold), var(--color-red));
	border-color: transparent;
}

.empty-state h2 {
	margin-top: 0;
}

.site-footer {
	padding: 50px 20px 34px;
	color: #cfa27a;
	text-align: center;
}

.footer-inner {
	width: min(var(--content-width), 100%);
	padding-top: 26px;
	margin: 0 auto;
	border-top: 1px solid rgba(217, 164, 65, 0.3);
	font-size: 0.9rem;
}

.footer-inner::before {
	display: block;
	width: 54px;
	height: 3px;
	margin: 0 auto 20px;
	content: "";
	background: linear-gradient(90deg, var(--color-gold), var(--color-red));
	border-radius: 2px;
}

.footer-inner a {
	color: var(--color-gold-light);
}

@media (max-width: 860px) {
	.hero {
		flex-direction: column;
		text-align: center;
	}

	.hero-actions {
		justify-content: center;
	}

	.hero-description {
		margin-right: auto;
		margin-left: auto;
	}

	.content-grid {
		grid-template-columns: 1fr;
	}

	.sidebar {
		position: static;
	}
}

@media (max-width: 520px) {
	body {
		font-size: 15.5px;
	}

	.site-header {
		padding: 28px 16px 0;
	}

	.button-gold,
	.button-outline {
		width: 100%;
		max-width: 330px;
	}

	.stats-band {
		gap: 10px;
		padding: 16px;
	}

	.stat + .stat {
		border-left: 0;
	}

	.site-main {
		width: min(100% - 24px, var(--content-width));
		padding-top: 56px;
	}

	.content-card {
		padding: 22px 18px;
	}

	.sidebar-card {
		padding: 20px 18px;
	}

	.post-summary {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.date-badge {
		display: none;
	}

	.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;
	}

	.button-gold,
	.button-outline {
		transition: none;
	}
}
