/*
Theme Name: Huqqabet Blog
Theme URI: https://example.com/huqqabet-blog
Author: Huqqabet
Description: Huqqabet için koyu/neon yeşil blog teması. Üst barda logo, ana menü ve giriş/kayıt butonları; ana sayfada öne çıkan yazı ve kart grid'i; son yazılar, kategoriler ve arama içeren kenar çubuğu. Hızlı, responsive ve AMP uyumlu.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: huqqabet-blog
Tags: blog, dark, two-columns, right-sidebar, custom-logo, custom-menu, featured-images
*/

:root {
	--color-bg: #050a07;
	--color-bg-deep: #020403;
	--color-bg-green: #06231a;
	--color-surface: #0c1511;
	--color-surface-soft: #122019;
	--color-surface-raised: #17291f;
	--color-text: #e9f3ec;
	--color-muted: #8fa89a;
	--color-green: #00f878;
	--color-green-light: #7dffb7;
	--color-green-dark: #00b857;
	--color-line: #1b2f25;
	--color-line-strong: #2a4535;
	--gradient-green: linear-gradient(135deg, #5dffa5 0%, #00f878 45%, #00c460 100%);
	--gradient-green-deep: linear-gradient(135deg, #12b865 0%, #078a48 60%, #065c31 100%);
	--shadow-card: 0 18px 45px rgba(0, 0, 0, 0.45);
	--radius: 14px;
	--content-width: 1180px;
	--font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*,
*::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% -10%, rgba(0, 248, 120, 0.28) 0, rgba(0, 184, 87, 0.1) 26%, transparent 52%),
		radial-gradient(circle at 92% 20%, rgba(125, 255, 183, 0.06) 0, transparent 28%),
		linear-gradient(180deg, var(--color-bg-green) 0, var(--color-bg) 40%, var(--color-bg-deep) 100%);
	background-attachment: fixed;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

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

a:hover,
a:focus {
	color: var(--color-green-light);
}

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: #04150b;
	background: var(--color-green);
	border-radius: 6px;
	font-weight: 700;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 22px;
	border-radius: 9px;
	font-size: 0.86rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	white-space: nowrap;
	text-decoration: none;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn-login {
	color: #04150b;
	background: var(--gradient-green);
	border: 1px solid rgba(190, 255, 220, 0.8);
	box-shadow: 0 8px 22px rgba(0, 248, 120, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-register {
	color: var(--color-green-light);
	background: rgba(0, 248, 120, 0.08);
	border: 1px solid rgba(0, 248, 120, 0.55);
}

.btn-login:hover,
.btn-login:focus {
	color: #04150b;
	transform: translateY(-2px);
}

.btn-register:hover,
.btn-register:focus {
	color: #ffffff;
	background: rgba(0, 248, 120, 0.18);
	transform: translateY(-2px);
}

.btn-block {
	width: 100%;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(5, 14, 9, 0.88);
	border-bottom: 1px solid rgba(0, 248, 120, 0.16);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.admin-bar .site-header {
	top: 32px;
}

.header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
	width: min(var(--content-width), calc(100% - 40px));
	min-height: 72px;
	padding: 12px 0;
	margin: 0 auto;
}

.site-logo {
	display: inline-flex;
	flex-shrink: 0;
	filter: drop-shadow(0 4px 16px rgba(0, 248, 120, 0.35));
}

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

.primary-navigation {
	flex: 1 1 auto;
	min-width: 0;
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.primary-menu a {
	display: inline-block;
	padding: 8px 12px;
	color: #d4ecdd;
	border-radius: 8px;
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 140ms ease, color 140ms ease;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
	color: var(--color-green);
	background: rgba(0, 248, 120, 0.1);
}

.header-actions {
	display: flex;
	flex-shrink: 0;
	gap: 10px;
	margin-left: auto;
}

/* Layout */
.site-main {
	width: min(var(--content-width), calc(100% - 40px));
	margin: 0 auto;
	padding: 36px 0 60px;
}

.listing-header {
	max-width: 780px;
	margin: 6px 0 30px;
}

.kicker {
	display: inline-block;
	margin: 0 0 10px;
	color: var(--color-green);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.listing-title {
	margin: 0;
	color: #ffffff;
	font-size: clamp(1.7rem, 4vw, 2.5rem);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6);
}

.listing-desc {
	max-width: 640px;
	margin: 12px 0 0;
	color: #bfe3cd;
	font-size: 1rem;
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 32px;
	align-items: start;
}

.content-column {
	min-width: 0;
}

/* Post cards */
.post-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.post-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: linear-gradient(160deg, var(--color-surface-raised), var(--color-surface));
	border: 1px solid rgba(0, 248, 120, 0.18);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.post-card:hover,
.post-card:focus-within {
	border-color: rgba(0, 248, 120, 0.55);
	box-shadow: 0 24px 56px rgba(0, 248, 120, 0.16);
	transform: translateY(-4px);
}

.post-card.is-featured {
	grid-column: 1 / -1;
}

.card-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, var(--color-bg-green), #0a3a28);
}

.post-card.is-featured .card-thumb {
	aspect-ratio: 1200 / 640;
}

.card-thumb img,
.thumb-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-thumb::after {
	position: absolute;
	inset: 0;
	content: "";
	background: linear-gradient(180deg, transparent 60%, rgba(2, 10, 5, 0.5));
}

.thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 50% 40%, rgba(0, 248, 120, 0.28), transparent 60%),
		linear-gradient(135deg, #07261b, #0b3c2a);
}

.thumb-fallback img {
	width: 96px;
	height: 96px;
	object-fit: contain;
	filter: drop-shadow(0 0 20px rgba(0, 248, 120, 0.8));
}

.card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 20px;
}

.post-card.is-featured .card-body {
	padding: 24px 28px 28px;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	color: var(--color-muted);
	font-size: 0.8rem;
}

.post-category {
	display: inline-block;
	padding: 3px 10px;
	color: #04150b;
	background: var(--gradient-green);
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

.post-category:hover,
.post-category:focus {
	color: #04150b;
}

.card-title {
	margin: 0;
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.35;
}

.card-title-lg {
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	font-weight: 900;
	letter-spacing: -0.01em;
}

.card-title a {
	color: #ffffff;
	text-decoration: none;
}

.card-title a:hover,
.card-title a:focus {
	color: var(--color-green-light);
}

.card-excerpt {
	margin: 0;
	color: #b7cfc0;
	font-size: 0.93rem;
	line-height: 1.6;
}

.card-more {
	margin-top: auto;
	padding-top: 6px;
	color: var(--color-green);
	font-size: 0.84rem;
	font-weight: 800;
	text-decoration: none;
}

/* Content card / single */
.content-card {
	min-width: 0;
	padding: clamp(22px, 4vw, 40px);
	background: linear-gradient(160deg, var(--color-surface-raised), var(--color-surface));
	border: 1px solid rgba(0, 248, 120, 0.18);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

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

.entry-title {
	margin: 10px 0 0;
	color: #ffffff;
	font-size: clamp(1.6rem, 3.6vw, 2.3rem);
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.entry-lead {
	margin: 14px 0 0;
	color: #bfe3cd;
	font-size: 1.05rem;
	line-height: 1.6;
}

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

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

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

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

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

.entry-content h2 {
	position: relative;
	padding-left: 16px;
	font-size: clamp(1.3rem, 3vw, 1.65rem);
}

.entry-content h2::before {
	position: absolute;
	top: 0.2em;
	bottom: 0.2em;
	left: 0;
	width: 4px;
	content: "";
	background: var(--gradient-green);
	border-radius: 2px;
	box-shadow: 0 0 12px rgba(0, 248, 120, 0.6);
}

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

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

.entry-content strong {
	color: #ffffff;
}

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

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

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

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

.entry-content img {
	border-radius: 9px;
}

.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,
.wp-element-caption {
	max-width: 100%;
	color: var(--color-muted);
	font-size: 0.85rem;
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 26px;
}

.entry-tags a {
	display: inline-block;
	padding: 4px 12px;
	color: #d4ecdd;
	background: rgba(0, 248, 120, 0.08);
	border: 1px solid rgba(0, 248, 120, 0.3);
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
}

.entry-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding-top: 22px;
	margin-top: 30px;
	border-top: 1px solid var(--color-line-strong);
	color: var(--color-muted);
	font-size: 0.84rem;
}

.entry-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.post-navigation {
	margin-top: 26px;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.post-navigation a {
	display: block;
	padding: 14px 18px;
	background: rgba(0, 248, 120, 0.06);
	border: 1px solid rgba(0, 248, 120, 0.22);
	border-radius: 10px;
	text-decoration: none;
	transition: border-color 140ms ease;
}

.post-navigation a:hover,
.post-navigation a:focus {
	border-color: rgba(0, 248, 120, 0.6);
}

.post-navigation .nav-next {
	text-align: right;
}

.nav-label {
	display: block;
	color: var(--color-green);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.nav-title {
	display: block;
	margin-top: 4px;
	color: #ffffff;
	font-weight: 700;
	line-height: 1.35;
}

/* Pagination */
.navigation.pagination {
	margin-top: 32px;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 6px 12px;
	color: var(--color-green-light);
	background: rgba(0, 248, 120, 0.1);
	border: 1px solid rgba(0, 248, 120, 0.35);
	border-radius: 8px;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus {
	color: #04150b;
	background: var(--gradient-green);
	border-color: transparent;
}

.empty-state {
	text-align: center;
}

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

/* Sidebar */
.sidebar {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.admin-bar .sidebar {
	top: 128px;
}

.widget {
	padding: 20px;
	background: linear-gradient(160deg, var(--color-surface-raised), var(--color-surface));
	border: 1px solid rgba(0, 248, 120, 0.18);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

.widget-title {
	position: relative;
	padding-bottom: 10px;
	margin: 0 0 14px;
	color: #ffffff;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.widget-title::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 44px;
	height: 3px;
	content: "";
	background: var(--gradient-green);
	border-radius: 2px;
	box-shadow: 0 0 12px rgba(0, 248, 120, 0.6);
}

.widget-search {
	padding: 12px;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-field {
	flex: 1;
	min-width: 0;
	padding: 10px 14px;
	color: var(--color-text);
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid var(--color-line-strong);
	border-radius: 8px;
	outline: none;
}

.search-field:focus {
	border-color: var(--color-green);
	box-shadow: 0 0 0 3px rgba(0, 248, 120, 0.18);
}

.search-submit {
	padding: 10px 16px;
	color: #04150b;
	background: var(--gradient-green);
	border: 0;
	border-radius: 8px;
	font-weight: 800;
	cursor: pointer;
}

.widget-cta {
	text-align: center;
	background:
		radial-gradient(circle at 50% 0%, rgba(0, 248, 120, 0.22), transparent 60%),
		linear-gradient(160deg, var(--color-surface-raised), var(--color-surface));
}

.widget-cta img {
	margin: 0 auto 10px;
	filter: drop-shadow(0 0 16px rgba(0, 248, 120, 0.7));
}

.widget-cta p {
	margin: 0 0 14px;
	color: #bfe3cd;
	font-size: 0.9rem;
	line-height: 1.55;
}

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

.recent-list li + li {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--color-line);
}

.recent-list a {
	display: flex;
	gap: 12px;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.recent-thumb {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--color-bg-green);
}

.recent-thumb img,
.recent-thumb .thumb-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.recent-thumb .thumb-fallback img {
	width: 30px;
	height: 30px;
	object-fit: contain;
}

.recent-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.recent-title {
	color: #ffffff;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.35;
}

.recent-list a:hover .recent-title,
.recent-list a:focus .recent-title {
	color: var(--color-green-light);
}

.recent-text time {
	color: var(--color-muted);
	font-size: 0.76rem;
}

.category-list li + li {
	margin-top: 6px;
}

.category-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	color: #d4ecdd;
	background: rgba(0, 248, 120, 0.05);
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.category-list a:hover,
.category-list a:focus {
	color: #ffffff;
	border-color: rgba(0, 248, 120, 0.4);
}

.category-count {
	min-width: 26px;
	padding: 1px 8px;
	color: var(--color-green);
	background: rgba(0, 248, 120, 0.12);
	border-radius: 999px;
	font-size: 0.75rem;
	text-align: center;
}

/* Footer */
.site-footer {
	padding: 40px 20px 28px;
	color: #9fbcab;
	border-top: 1px solid rgba(0, 248, 120, 0.16);
	background: rgba(2, 6, 4, 0.6);
}

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

.footer-top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}

.footer-brand {
	display: flex;
	gap: 16px;
	align-items: center;
	max-width: 520px;
}

.footer-icon {
	flex-shrink: 0;
	filter: drop-shadow(0 0 14px rgba(0, 248, 120, 0.55));
}

.footer-about {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.6;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.footer-menu a {
	color: #d4ecdd;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus {
	color: var(--color-green-light);
}

.footer-bottom {
	padding-top: 20px;
	margin-top: 28px;
	border-top: 1px solid rgba(0, 248, 120, 0.12);
	font-size: 0.84rem;
	text-align: center;
}

/* Responsive */
@media (max-width: 1000px) {
	.content-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.sidebar {
		position: static;
	}
}

@media (max-width: 760px) {
	.site-header {
		position: static;
	}

	.header-inner {
		gap: 10px 16px;
	}

	.primary-navigation {
		order: 3;
		flex-basis: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.primary-menu {
		flex-wrap: nowrap;
		width: max-content;
		min-width: 100%;
	}

	.header-actions .btn {
		min-height: 38px;
		padding: 7px 14px;
		font-size: 0.8rem;
	}

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

	.post-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-card.is-featured .card-body {
		padding: 18px 20px 20px;
	}

	.content-card {
		padding: 20px 16px;
	}

	.post-navigation .nav-links {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-navigation .nav-next {
		text-align: left;
	}

	.footer-top {
		flex-direction: column;
	}

	.alignleft,
	.alignright {
		float: none;
		margin-right: auto;
		margin-left: auto;
	}
}

@media (max-width: 480px) {
	.site-logo-img {
		height: 36px;
	}

	.header-actions {
		margin-left: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.btn,
	.post-card {
		transition: none;
	}
}
