/*
Theme Name: alevbett
Theme URI: https://example.com/alevbet-giris
Author: Alevbet
Description: Kompakt header, yönetilebilir menü ve sticky son yazılar alanına sahip 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-giris
*/

:root {
	--color-black: #0a0706;
	--color-burgundy: #210805;
	--color-red: #e63312;
	--color-orange: #ff6a00;
	--color-gold: #ffb830;
	--color-text: #282321;
	--color-muted: #746b67;
	--color-line: #eaded8;
	--color-sidebar: #fff3e9;
	--color-white: #ffffff;
	--content-width: 980px;
	--radius: 7px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	margin: 0;
	color: var(--color-text);
	background: var(--color-white);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

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

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

a:hover,
a:focus {
	color: #a92710;
}

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: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 9px 14px;
	clip: auto;
	color: var(--color-text);
	background: #fff;
	border-radius: 4px;
	font-weight: 700;
}

.header-bar {
	min-height: 75px;
	color: #fff;
	background:
		linear-gradient(90deg, rgba(230, 51, 18, 0.08), transparent 32%),
		var(--color-black);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.23);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(var(--content-width), calc(100% - 36px));
	min-height: 75px;
	margin: 0 auto;
}

.site-branding {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.default-logo,
.custom-logo-link {
	display: block;
	text-decoration: none;
}

.default-logo img,
.custom-logo {
	width: 138px;
	height: 50px;
	object-fit: contain;
}

.primary-navigation {
	min-width: 0;
	margin-left: 24px;
}

.primary-menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0;
	padding: 0;
	margin: 0;
	list-style: none;
}

.primary-menu li {
	margin: 0;
}

.primary-menu a {
	display: block;
	padding: 26.5px 11px;
	color: #fff7f1;
	font-size: 18px;
	font-weight: 700;
	line-height: 22px;
	text-decoration: none;
	white-space: nowrap;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
	color: var(--color-gold);
}

.header-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 118px;
	padding: 22px 16px;
	background:
		radial-gradient(circle at 50% 0, rgba(255, 106, 0, 0.08), transparent 45%),
		#fff;
}

.login-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 290px;
	min-height: 60px;
	padding: 18px 56px;
	color: #fff;
	background: linear-gradient(135deg, var(--color-orange), var(--color-red));
	border: 1px solid rgba(255, 184, 48, 0.65);
	border-radius: 10px;
	box-shadow: 0 7px 18px rgba(230, 51, 18, 0.3);
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.025em;
	text-decoration: none;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.login-button:hover,
.login-button:focus {
	color: #fff;
	box-shadow: 0 9px 23px rgba(230, 51, 18, 0.42);
	transform: translateY(-1px);
}

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

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 2.35fr) minmax(230px, 0.85fr);
	gap: 34px;
	align-items: start;
}

.content-column {
	min-width: 0;
	padding: 0 0 10px;
}

.entry-header {
	margin-bottom: 26px;
}

.entry-title,
.page-title {
	margin: 0 0 18px;
	font-size: clamp(1.65rem, 3.4vw, 2.15rem);
	line-height: 1.48;
	letter-spacing: -0.025em;
}

.page-title {
	padding-bottom: 16px;
	border-bottom: 2px solid var(--color-line);
}

.entry-meta {
	margin: 0;
	color: var(--color-muted);
	font-size: 12px;
}

.featured-image {
	margin: 0 0 26px;
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: 0 5px 18px rgba(32, 10, 5, 0.12);
}

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

.entry-content {
	font-size: 15px;
}

.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-top: 1.7em;
	margin-bottom: 0.6em;
	line-height: 1.35;
}

.entry-content h2 {
	padding-bottom: 8px;
	border-bottom: 2px solid var(--color-line);
	font-size: 1.48rem;
}

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

.entry-content blockquote {
	padding: 14px 18px;
	margin: 1.5em 0;
	background: var(--color-sidebar);
	border-left: 4px solid var(--color-orange);
}

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

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

.sidebar {
	position: sticky;
	top: 18px;
	padding: 16px;
	background:
		linear-gradient(145deg, #fff8f2, var(--color-sidebar));
	border-left: 4px solid var(--color-orange);
	border-radius: var(--radius);
}

.quick-menu {
	padding: 18px 20px;
	background: #fff;
	border: 1px solid #eadfd8;
	border-radius: 5px;
	box-shadow: 0 3px 10px rgba(35, 12, 7, 0.08);
}

.quick-menu-title {
	padding-bottom: 10px;
	margin: 0 0 7px;
	border-bottom: 2px solid var(--color-orange);
	font-size: 1rem;
	line-height: 1.35;
}

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

.recent-posts li {
	border-bottom: 1px solid var(--color-line);
}

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

.recent-posts a {
	display: block;
	padding: 10px 0;
	color: var(--color-text);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
	text-decoration: none;
}

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

.sidebar-empty {
	margin: 10px 0 0;
	color: var(--color-muted);
	font-size: 12px;
}

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

.summary-title {
	margin: 0 0 8px;
	font-size: 1.35rem;
	line-height: 1.4;
}

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

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

.entry-summary p {
	margin-bottom: 10px;
}

.read-more {
	font-size: 12px;
	font-weight: 750;
	text-decoration: none;
}

.post-navigation {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding-top: 22px;
	margin-top: 34px;
	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: 10px;
}

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

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
	padding: 5px 10px;
	color: var(--color-text);
	background: var(--color-sidebar);
	border-radius: 4px;
	font-size: 12px;
	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));
}

.archive-description {
	margin: -4px 0 24px;
	color: var(--color-muted);
}

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

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

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

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

.site-footer {
	padding: 30px 18px;
	color: #d8c1b9;
	background:
		linear-gradient(90deg, var(--color-burgundy), var(--color-black));
	text-align: center;
}

.footer-inner {
	width: min(var(--content-width), 100%);
	margin: 0 auto;
	font-size: 12px;
}

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

@media (max-width: 800px) {
	.header-inner {
		align-items: flex-start;
		flex-direction: column;
		padding: 7px 0;
	}

	.primary-navigation {
		width: 100%;
		margin: 3px 0 0;
		overflow-x: auto;
	}

	.primary-menu {
		justify-content: flex-start;
		flex-wrap: nowrap;
	}

	.primary-menu a {
		padding: 11px 17px 11px 0;
	}

	.header-cta {
		min-height: 96px;
	}

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

	.sidebar {
		position: static;
	}
}

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

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

	.default-logo img,
	.custom-logo {
		width: 112px;
		height: 50px;
	}

	.header-cta {
		padding: 14px 12px;
	}

	.login-button {
		width: min(100%, 310px);
		min-width: 0;
	}

	.site-main {
		padding-top: 15px;
	}

	.content-layout {
		gap: 26px;
	}

	.entry-title,
	.page-title {
		font-size: 1.55rem;
		line-height: 1.4;
	}

	.sidebar {
		padding: 12px;
	}

	.quick-menu {
		padding: 16px;
	}

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