/*
Theme Name: Alevbet Şafak
Theme URI: https://example.com/alevbet-safak
Author: Alevbet
Description: Gece mavisi üzerine aurora parlamalı, kayan duyuru şeritli ve bilgi kartlı, 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-safak
*/

:root {
	--color-bg: #060b1c;
	--color-bg-deep: #030510;
	--color-teal: #14c8b2;
	--color-orange: #ff6a00;
	--color-red: #e63312;
	--color-magenta: #d63384;
	--color-gold: #ffb830;
	--color-text: #eef3ff;
	--color-muted: #93a3c8;
	--color-glass: rgba(13, 24, 52, 0.72);
	--color-glass-line: rgba(96, 140, 220, 0.26);
	--radius: 15px;
	--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(ellipse at 22% -6%, rgba(20, 200, 178, 0.22) 0, transparent 42%),
		radial-gradient(ellipse at 78% -10%, rgba(255, 106, 0, 0.26) 0, transparent 46%),
		radial-gradient(circle at 50% 30%, rgba(214, 51, 132, 0.08) 0, transparent 40%),
		linear-gradient(180deg, #0b1430 0, var(--color-bg) 46%, var(--color-bg-deep) 100%);
	background-attachment: fixed;
	font-family: "Avenir Next", -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-teal);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover,
a:focus {
	color: #5ce8d6;
}

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: #0b1430;
	background: #fff;
	border-radius: 6px;
	font-weight: 700;
}

.ticker {
	overflow: hidden;
	background: linear-gradient(90deg, var(--color-red), var(--color-orange) 55%, var(--color-magenta));
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.ticker-track {
	display: flex;
	gap: 64px;
	width: max-content;
	padding: 8px 0;
	animation: alevbet-safak-ticker 26s linear infinite;
}

.ticker-track span {
	color: #fff;
	font-size: 0.8rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

@keyframes alevbet-safak-ticker {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-33.333%);
	}
}

.site-header {
	position: relative;
	padding: 42px 20px 30px;
	overflow: hidden;
}

.site-header::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	content: "";
	background:
		radial-gradient(circle at 50% 0, rgba(20, 200, 178, 0.1), transparent 34%),
		linear-gradient(180deg, rgba(255, 106, 0, 0.05), transparent);
}

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

.site-logo {
	display: inline-block;
	border-radius: 50%;
	filter: drop-shadow(0 14px 30px rgba(20, 200, 178, 0.3)) drop-shadow(0 4px 40px rgba(255, 106, 0, 0.25));
}

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

.hero-title {
	margin: 14px 0 0;
	color: #f6f9ff;
	font-size: clamp(1.7rem, 4.2vw, 2.5rem);
	line-height: 1.16;
	letter-spacing: -0.02em;
	text-shadow: 0 4px 26px rgba(20, 200, 178, 0.35);
}

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

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-top: 27px;
}

.button-dawn,
.button-frost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 14px 38px;
	border-radius: 999px;
	font-size: 0.94rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.button-dawn {
	color: #fff;
	background: linear-gradient(135deg, var(--color-orange), var(--color-red));
	border: 1px solid rgba(255, 184, 48, 0.6);
	box-shadow:
		0 12px 32px rgba(230, 51, 18, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button-frost {
	color: #d9fef8;
	background: rgba(20, 200, 178, 0.14);
	border: 1px solid rgba(20, 200, 178, 0.55);
	box-shadow: 0 12px 26px rgba(20, 200, 178, 0.2);
}

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

.quick-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	width: min(var(--content-width), 100%);
	margin: 40px auto 0;
}

.quick-card {
	position: relative;
	padding: 18px 20px;
	overflow: hidden;
	background: var(--color-glass);
	border: 1px solid var(--color-glass-line);
	border-radius: 13px;
}

.quick-card::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	content: "";
	background: linear-gradient(90deg, var(--color-teal), var(--color-orange), var(--color-magenta));
}

.quick-card h2 {
	margin: 0 0 5px;
	color: #fff;
	font-size: 0.98rem;
	letter-spacing: 0.01em;
}

.quick-card p {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.82rem;
	line-height: 1.55;
}

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

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

.content-card,
.sidebar-card {
	background: var(--color-glass);
	border: 1px solid var(--color-glass-line);
	border-radius: var(--radius);
	box-shadow: 0 26px 60px rgba(1, 4, 14, 0.6);
}

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

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

.sidebar-card {
	padding: 23px;
}

.sidebar-title {
	position: relative;
	padding-bottom: 13px;
	margin: 0 0 12px;
	border-bottom: 1px solid var(--color-glass-line);
	color: #fff;
	font-size: 1.08rem;
	line-height: 1.3;
}

.sidebar-title::after {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 46px;
	height: 2px;
	content: "";
	background: linear-gradient(90deg, var(--color-teal), var(--color-orange));
}

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

.recent-posts li {
	padding: 10px 0;
	border-bottom: 1px solid rgba(96, 140, 220, 0.16);
	line-height: 1.45;
}

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

.recent-posts a {
	color: #dbe5fa;
	font-size: 0.89rem;
	font-weight: 600;
	text-decoration: none;
}

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

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

.post-summary {
	padding: 22px;
	margin-bottom: 22px;
	background: rgba(9, 17, 40, 0.55);
	border: 1px solid rgba(96, 140, 220, 0.18);
	border-left: 3px solid var(--color-orange);
	border-radius: 12px;
}

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

.post-summary:nth-of-type(even) {
	border-left-color: var(--color-teal);
}

.entry-title {
	margin: 0 0 7px;
	font-size: clamp(1.22rem, 3vw, 1.55rem);
	line-height: 1.3;
}

.entry-title a {
	color: #fff;
	text-decoration: none;
}

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

.entry-meta {
	margin-bottom: 14px;
	color: var(--color-muted);
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

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

.read-more {
	display: inline-block;
	color: var(--color-orange);
	font-size: 0.87rem;
	font-weight: 750;
	text-decoration: none;
}

.read-more:hover,
.read-more:focus {
	color: var(--color-gold);
}

.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;
	color: #fff;
	line-height: 1.3;
}

.entry-content h2 {
	font-size: clamp(1.35rem, 3vw, 1.7rem);
}

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

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

.entry-content a {
	color: var(--color-teal);
}

.entry-content blockquote {
	padding: 15px 20px;
	margin: 1.5em 0;
	background: rgba(20, 200, 178, 0.08);
	border-left: 4px solid var(--color-teal);
}

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

.entry-content th,
.entry-content td {
	padding: 10px;
	border: 1px solid rgba(96, 140, 220, 0.25);
	text-align: left;
}

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

.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 rgba(96, 140, 220, 0.18);
}

.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 rgba(96, 140, 220, 0.18);
}

.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: #dbe5fa;
	background: rgba(20, 200, 178, 0.12);
	border: 1px solid var(--color-glass-line);
	border-radius: 999px;
	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));
	border-color: transparent;
}

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

.site-footer {
	padding: 46px 20px 32px;
	color: #7f90b8;
	text-align: center;
}

.footer-inner {
	width: min(var(--content-width), 100%);
	padding-top: 26px;
	margin: 0 auto;
	border-top: 1px solid rgba(96, 140, 220, 0.2);
	font-size: 0.88rem;
}

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

@media (max-width: 900px) {
	.quick-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.content-grid {
		grid-template-columns: 1fr;
	}

	.sidebar {
		position: static;
	}
}

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

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

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

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

	.hero-actions {
		flex-direction: column;
		align-items: center;
	}

	.button-dawn,
	.button-frost {
		width: 100%;
		max-width: 330px;
	}

	.quick-cards {
		grid-template-columns: 1fr;
	}

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

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

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

	.post-summary {
		padding: 18px 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;
	}

	.ticker-track {
		animation: none;
	}

	.button-dawn,
	.button-frost {
		transition: none;
	}
}
