/*
Theme Name: Alevbet
Theme URI: https://example.com/alevbet
Author: Alevbet
Description: Alevbet için hızlı, responsive ve AMP uyumlu WordPress teması.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: alevbet
*/

:root {
	--color-bg: #0d0505;
	--color-bg-warm: #220905;
	--color-surface: #fffaf5;
	--color-surface-soft: #fff3e7;
	--color-text: #25130f;
	--color-muted: #715b54;
	--color-orange: #ff6a00;
	--color-red: #e63312;
	--color-gold: #ffb830;
	--color-gold-light: #ffd777;
	--color-line: #eedbd0;
	--shadow-card: 0 22px 55px rgba(0, 0, 0, 0.28);
	--radius: 14px;
	--content-width: 1100px;
}

*,
*::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 50% -8%, rgba(255, 106, 0, 0.35) 0, rgba(230, 51, 18, 0.13) 28%, transparent 55%),
		radial-gradient(circle at 5% 36%, rgba(230, 51, 18, 0.1) 0, transparent 30%),
		linear-gradient(180deg, var(--color-bg-warm) 0, var(--color-bg) 46%, #070303 100%);
	background-attachment: fixed;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-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: #b8230c;
}

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: 34px 20px 58px;
	overflow: hidden;
}

.site-header::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	content: "";
	background:
		radial-gradient(circle at 50% 5%, rgba(255, 184, 48, 0.14), transparent 26%),
		linear-gradient(180deg, rgba(255, 106, 0, 0.04), transparent);
}

.hero {
	width: min(760px, 100%);
	margin: 0 auto;
	text-align: center;
}

.site-logo {
	display: inline-block;
	margin-bottom: 5px;
	border-radius: 50%;
	filter: drop-shadow(0 14px 25px rgba(230, 51, 18, 0.3));
}

.site-logo img {
	width: 160px;
	height: 160px;
	object-fit: contain;
}

.hero-title {
	margin: 0;
	color: #fff9f1;
	font-size: clamp(1.65rem, 4vw, 2.45rem);
	line-height: 1.18;
	letter-spacing: -0.025em;
	text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
}

.hero-description {
	max-width: 650px;
	margin: 15px auto 0;
	color: #f9d9c4;
	font-size: 1rem;
	line-height: 1.65;
}

.login-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 13px 30px;
	margin-top: 26px;
	color: #fff;
	background: linear-gradient(135deg, var(--color-orange), var(--color-red));
	border: 1px solid rgba(255, 215, 119, 0.55);
	border-radius: 9px;
	box-shadow:
		0 10px 28px rgba(230, 51, 18, 0.38),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: 0.035em;
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.login-button:hover,
.login-button:focus {
	color: #fff;
	box-shadow:
		0 14px 34px rgba(230, 51, 18, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
	transform: translateY(-2px);
}

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

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

.content-card,
.sidebar-card {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 245, 0.98)),
		var(--color-surface);
	border: 1px solid rgba(255, 184, 48, 0.22);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

.content-card {
	min-width: 0;
	padding: clamp(24px, 4vw, 42px);
}

.sidebar {
	position: sticky;
	top: 24px;
}

.sidebar-card {
	padding: 23px;
}

.sidebar-title {
	padding-bottom: 13px;
	margin: 0 0 12px;
	border-bottom: 2px solid var(--color-line);
	font-size: 1.12rem;
	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.9rem;
	font-weight: 650;
	text-decoration: none;
}

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

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

.post-summary {
	padding-bottom: 30px;
	margin-bottom: 30px;
	border-bottom: 1px solid var(--color-line);
}

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

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

.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: 18px;
	color: var(--color-muted);
	font-size: 0.84rem;
}

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

.read-more {
	display: inline-block;
	font-size: 0.88rem;
	font-weight: 750;
	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 {
	font-size: clamp(1.35rem, 3vw, 1.75rem);
}

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

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

.entry-content blockquote {
	padding: 15px 20px;
	margin: 1.5em 0;
	background: var(--color-surface-soft);
	border-left: 4px solid var(--color-orange);
}

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

.featured-image {
	margin: 0 0 26px;
	overflow: hidden;
	border-radius: 9px;
}

.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-radius: 6px;
	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-orange), var(--color-red));
}

.site-footer {
	padding: 44px 20px 32px;
	color: #cfaaa0;
	text-align: center;
}

.footer-inner {
	width: min(var(--content-width), 100%);
	padding-top: 25px;
	margin: 0 auto;
	border-top: 1px solid rgba(255, 184, 48, 0.15);
	font-size: 0.88rem;
}

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

@media (max-width: 820px) {
	.site-header {
		padding-bottom: 42px;
	}

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

	.sidebar {
		position: static;
	}
}

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

	.site-header {
		padding: 24px 16px 36px;
	}

	.site-logo img {
		width: 132px;
		height: 132px;
	}

	.hero-description {
		font-size: 0.94rem;
	}

	.login-button {
		width: 100%;
		max-width: 330px;
	}

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

	.content-card,
	.sidebar-card {
		border-radius: 10px;
	}

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

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

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

	.login-button {
		transition: none;
	}
}
