/*
Theme Name: Huqqabet Mono
Theme URI: https://example.com/huqqabet-mono
Author: Huqqabet
Description: Huqqabet için siyah/beyaz, yüksek kontrastlı, brütalist tipografik tema. Kalın siyah çizgiler, köşesiz kutular, dev başlık, numaralı yazı satırları ve en altta arşiv ızgarası. Tek yeşil vurgu giriş/kayıt butonlarında ve hover'larda. JS yok, AMP uyumlu.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: huqqabet-mono
Tags: light, one-column, custom-logo, custom-menu, featured-images
*/

:root {
	--bg: #ffffff;
	--body-bg: #ffffff;
	--surface: #ffffff;
	--surface-2: #f3f3f3;
	--text: #111111;
	--text-soft: #444444;
	--heading: #000000;
	--muted: #6b6b6b;
	--accent: #00f878;
	--accent-2: #00c45f;
	--accent-contrast: #000000;
	--accent-gradient: #00f878;
	--accent-border: #000000;
	--accent-shadow: 4px 4px 0 #000000;
	--ghost-bg: #ffffff;
	--ghost-hover-bg: #000000;
	--ghost-hover-color: #ffffff;
	--chip-bg: #000000;
	--chip-color: #ffffff;
	--line: #000000;
	--line-strong: #000000;
	--radius: 0;
	--btn-radius: 0;
	--img-radius: 0;
	--fallback-bg: #000000;
	--input-bg: #ffffff;
	--focus-ring: rgba(0, 248, 120, 0.5);
	--width: 1120px;
	--font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--display: "Archivo Black", "Space Grotesk", Impact, sans-serif;
}

/* ---- Shared base (variables are defined per theme in :root above) ---- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--text);
	background: var(--body-bg);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

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

a:hover,
a:focus {
	color: var(--accent-2);
}

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

.icon {
	width: 1.2em;
	height: 1.2em;
	flex-shrink: 0;
	vertical-align: middle;
}

.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(--accent-contrast);
	background: var(--accent);
	border-radius: 6px;
	font-weight: 700;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 9px 20px;
	border: 1px solid transparent;
	border-radius: var(--btn-radius, 10px);
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover,
.btn:focus {
	transform: translateY(-2px);
}

.btn-login {
	color: var(--accent-contrast);
	background: var(--accent-gradient, var(--accent));
	border-color: var(--accent-border, transparent);
	box-shadow: var(--accent-shadow, none);
}

.btn-login:hover,
.btn-login:focus {
	color: var(--accent-contrast);
}

.btn-register,
.btn-ghost {
	color: var(--accent-2);
	background: var(--ghost-bg, transparent);
	border-color: var(--line-strong);
}

.btn-register:hover,
.btn-register:focus,
.btn-ghost:hover,
.btn-ghost:focus {
	color: var(--ghost-hover-color, var(--text));
	background: var(--ghost-hover-bg, var(--surface-2));
}

.btn-lg {
	min-height: 54px;
	padding: 13px 30px;
	font-size: 1rem;
}

.btn-block {
	width: 100%;
}

/* Meta, thumbs */
.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	color: var(--muted);
	font-size: 0.78rem;
}

.post-category {
	padding: 2px 9px;
	color: var(--chip-color, var(--accent-2));
	background: var(--chip-bg, var(--surface-2));
	border-radius: 999px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--accent);
	background: var(--fallback-bg, var(--surface-2));
}

.thumb-fallback .icon {
	width: 42px;
	height: 42px;
}

/* Content */
.content-card {
	min-width: 0;
	padding: clamp(22px, 4vw, 40px);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--card-shadow, none);
}

.breadcrumb {
	margin-bottom: 14px;
	color: var(--muted);
	font-size: 0.82rem;
}

.breadcrumb a {
	font-weight: 600;
	text-decoration: none;
}

.breadcrumb-sep {
	margin: 0 8px;
}

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

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

.entry-lead {
	margin: 14px 0 0;
	color: var(--text-soft);
	font-size: 1.05rem;
}

.featured-image {
	margin: 0 0 26px;
	overflow: hidden;
	border-radius: var(--img-radius, 12px);
}

.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: 1.7em 0 0.6em;
	color: var(--heading);
	line-height: 1.3;
}

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

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

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

.entry-content strong {
	color: var(--heading);
}

.entry-content blockquote {
	padding: 15px 20px;
	margin: 1.5em 0;
	background: var(--surface-2);
	border-left: 4px solid var(--accent);
	border-radius: 0 var(--img-radius, 12px) var(--img-radius, 12px) 0;
}

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

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

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

.entry-content img {
	border-radius: var(--img-radius, 12px);
}

.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(--muted);
	font-size: 0.85rem;
}

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

.entry-tags a {
	padding: 4px 12px;
	color: var(--text-soft);
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	font-size: 0.8rem;
	text-decoration: none;
}

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

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

.post-navigation a {
	display: block;
	padding: 14px 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
}

.post-navigation a:hover,
.post-navigation a:focus {
	border-color: var(--line-strong);
}

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

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

.nav-title {
	display: block;
	color: var(--heading);
	font-weight: 700;
}

.navigation.pagination {
	margin-top: 28px;
}

.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(--accent-2);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: var(--btn-radius, 10px);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus {
	color: var(--accent-contrast);
	background: var(--accent);
	border-color: transparent;
}

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

.empty-state h2 {
	margin-top: 0;
	color: var(--heading);
}

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

.empty-state .search-form {
	max-width: 420px;
	margin: 16px auto 0;
}

.search-field {
	flex: 1;
	min-width: 0;
	padding: 10px 14px;
	color: var(--text);
	background: var(--input-bg, var(--surface-2));
	border: 1px solid var(--line-strong);
	border-radius: var(--btn-radius, 10px);
	outline: none;
}

.search-field:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--focus-ring, transparent);
}

.search-submit {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	color: var(--accent-contrast);
	background: var(--accent);
	border: 0;
	border-radius: var(--btn-radius, 10px);
	cursor: pointer;
}

/* FAQ */
.faq-list {
	display: grid;
	gap: 10px;
}

.faq-item {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

.faq-item[open] {
	border-color: var(--line-strong);
}

.faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 20px;
	color: var(--heading);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.faq-question::-webkit-details-marker {
	display: none;
}

.faq-question .icon {
	color: var(--accent);
	transition: transform 180ms ease;
}

.faq-item[open] .faq-question .icon {
	transform: rotate(180deg);
}

.faq-answer {
	padding: 0 20px 18px;
	color: var(--text-soft);
	font-size: 0.95rem;
}

.faq-answer p {
	margin: 0;
}

@media (max-width: 720px) {
	.post-navigation .nav-links {
		grid-template-columns: minmax(0, 1fr);
	}

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

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

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

	.btn {
		transition: none;
	}
}


/* ---- Mono overrides ---- */
a {
	color: #000;
	text-decoration-thickness: 2px;
}

a:hover,
a:focus {
	color: #000;
	background: var(--accent);
}

.btn {
	border: 2px solid #000;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.btn:hover,
.btn:focus {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 #000;
}

.btn-register:hover,
.btn-register:focus {
	background: #000;
	color: #fff;
}

.page-numbers {
	border: 2px solid #000;
	color: #000;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus {
	color: #000;
	background: var(--accent);
	border-color: #000;
}

.post-navigation a,
.faq-item,
.search-field {
	border: 2px solid #000;
}

.search-submit {
	border: 2px solid #000;
}

.entry-tags a {
	border: 2px solid #000;
	border-radius: 0;
	color: #000;
}

.entry-content blockquote {
	border-left: 6px solid #000;
	background: #fff;
	font-family: var(--display);
	font-size: 1.1rem;
}

.entry-content h2::before {
	content: "— ";
}

.post-category {
	border-radius: 0;
}

/* Header */
.site-header {
	border-bottom: 3px solid #000;
}

.header-grid {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	width: min(var(--width), 100%);
	margin: 0 auto;
	border-right: 3px solid #000;
	border-left: 3px solid #000;
}

.header-cell {
	display: flex;
	align-items: center;
	padding: 14px 20px;
}

.header-cell + .header-cell {
	border-left: 3px solid #000;
}

.site-logo {
	display: inline-flex;
}

.site-logo:hover,
.site-logo:focus {
	background: transparent;
}

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

.header-nav {
	overflow-x: auto;
}

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

.primary-menu a {
	display: inline-block;
	padding: 8px 14px;
	color: #000;
	font-size: 0.86rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	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 {
	background: #000;
	color: #fff;
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
	background: var(--accent);
	color: #000;
}

.header-actions {
	display: flex;
	gap: 8px;
}

.ticker {
	width: min(var(--width), 100%);
	margin: 0 auto;
	padding: 8px 20px;
	color: #000;
	background: var(--accent);
	border-top: 3px solid #000;
	border-right: 3px solid #000;
	border-left: 3px solid #000;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-align: center;
	text-transform: uppercase;
}

/* Main */
.site-main {
	width: min(var(--width), 100%);
	margin: 0 auto;
	padding: 0 0 60px;
	border-right: 3px solid #000;
	border-left: 3px solid #000;
}

.site-main--reading .single-entry {
	max-width: 820px;
	padding: 40px 20px 20px;
}

.masthead {
	padding: 56px 20px 40px;
	border-bottom: 3px solid #000;
}

.kicker {
	display: inline-block;
	margin: 0 0 14px;
	padding: 4px 10px;
	color: #fff;
	background: #000;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.giant {
	margin: 0;
	color: #000;
	font-family: var(--display);
	font-size: clamp(3rem, 11vw, 7.5rem);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: -0.04em;
	text-transform: uppercase;
	word-break: break-word;
}

.giant--sm {
	font-size: clamp(2rem, 5.6vw, 3.6rem);
	letter-spacing: -0.02em;
	text-transform: none;
}

.masthead-desc {
	max-width: 620px;
	margin: 22px 0 0;
	color: var(--text-soft);
	font-size: 1.15rem;
	font-weight: 500;
}

.masthead-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.rule-title {
	margin: 0;
	padding: 12px 20px;
	color: #000;
	border-bottom: 3px solid #000;
	font-size: 0.86rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

/* Post lines */
.post-lines {
	display: grid;
}

.post-line {
	border-bottom: 2px solid #000;
}

.line-link {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr) 180px 60px;
	align-items: center;
	color: #000;
	text-decoration: none;
	transition: background 120ms ease;
}

.line-link:hover,
.line-link:focus {
	background: var(--accent);
}

.line-num {
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 0;
	border-right: 2px solid #000;
	font-family: var(--display);
	font-size: 1.4rem;
}

.line-main {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px;
}

.line-title {
	font-family: var(--display);
	font-size: clamp(1.1rem, 2.2vw, 1.5rem);
	line-height: 1.15;
}

.line-excerpt {
	color: var(--text-soft);
	font-size: 0.92rem;
}

.line-link:hover .line-excerpt,
.line-link:focus .line-excerpt {
	color: #000;
}

.line-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-self: stretch;
	justify-content: center;
	padding: 12px 16px;
	border-left: 2px solid #000;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.line-cat {
	color: #000;
}

.line-meta time {
	color: var(--muted);
}

.line-link:hover .line-meta time,
.line-link:focus .line-meta time {
	color: #000;
}

.line-arrow {
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	border-left: 2px solid #000;
}

.line-arrow .icon {
	width: 24px;
	height: 24px;
}

.more-row {
	margin: 0;
	padding: 24px 20px 0;
}

.navigation.pagination {
	padding: 0 20px;
}

.empty-state,
.ruled-box {
	margin: 24px 20px 0;
	padding: 32px 24px;
	border: 2px solid #000;
}

.front-content {
	margin-top: 32px;
}

/* Single */
.entry-header {
	padding-bottom: 20px;
	margin-bottom: 26px;
	border-bottom: 3px solid #000;
}

.breadcrumb a {
	text-decoration: none;
}

.entry-lead {
	font-size: 1.15rem;
	font-weight: 500;
}

.meta-rule {
	display: flex;
	flex-wrap: wrap;
	margin-top: 18px;
	border: 2px solid #000;
}

.meta-rule span {
	padding: 6px 14px;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.meta-rule span + span {
	border-left: 2px solid #000;
}

.meta-rule a {
	text-decoration: none;
}

.featured-image {
	border: 2px solid #000;
}

.featured-image img {
	filter: grayscale(1) contrast(1.1);
	transition: filter 300ms ease;
}

.featured-image:hover img {
	filter: none;
}

.entry-content {
	font-size: 1.05rem;
}

.entry-content h2 {
	font-family: var(--display);
	font-weight: 400;
}

.entry-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 24px;
	margin-top: 30px;
	border-top: 3px solid #000;
}

.post-navigation {
	padding: 0 20px;
}

.post-navigation a {
	border-radius: 0;
}

.post-navigation a:hover,
.post-navigation a:focus {
	background: var(--accent);
}

.nav-label {
	color: #000;
}

/* Archive grid */
.archive-grid-section {
	width: min(var(--width), 100%);
	margin: 0 auto;
	border-top: 3px solid #000;
	border-right: 3px solid #000;
	border-left: 3px solid #000;
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	padding: 0;
	margin: 0;
	list-style: none;
}

.archive-grid li {
	border-right: 2px solid #000;
	border-bottom: 2px solid #000;
}

.archive-grid li:nth-child(5n) {
	border-right: 0;
}

.archive-grid a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 16px;
	color: #000;
	text-decoration: none;
}

.archive-grid a:hover,
.archive-grid a:focus {
	background: var(--accent);
}

.ag-date {
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.ag-title {
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.3;
}

/* Footer */
.site-footer {
	width: min(var(--width), 100%);
	margin: 0 auto;
	border: 3px solid #000;
	border-top: 0;
	background: #000;
	color: #fff;
}

.footer-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	padding: 22px 20px;
}

.footer-about {
	max-width: 480px;
	margin: 0;
	font-size: 0.88rem;
}

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

.footer-menu a {
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus {
	color: #000;
	background: var(--accent);
}

.footer-copy {
	margin: 0;
	font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 960px) {
	.archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.archive-grid li:nth-child(5n) {
		border-right: 2px solid #000;
	}

	.archive-grid li:nth-child(2n) {
		border-right: 0;
	}

	.line-link {
		grid-template-columns: 60px minmax(0, 1fr);
	}

	.line-meta {
		grid-column: 2;
		flex-direction: row;
		gap: 14px;
		padding: 0 20px 14px;
		border-left: 0;
	}

	.line-arrow {
		display: none;
	}
}

@media (max-width: 720px) {
	.header-grid {
		grid-template-columns: minmax(0, 1fr) auto;
		border-right: 0;
		border-left: 0;
	}

	.header-nav {
		grid-column: 1 / -1;
		border-top: 3px solid #000;
		border-left: 0;
	}

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

	.header-actions .btn {
		min-height: 36px;
		padding: 6px 12px;
		font-size: 0.74rem;
	}

	.ticker,
	.site-main,
	.archive-grid-section,
	.site-footer {
		border-right: 0;
		border-left: 0;
	}

	.masthead {
		padding: 36px 16px 28px;
	}

	.masthead-actions .btn {
		width: 100%;
	}

	.site-main--reading .single-entry {
		padding: 28px 16px 16px;
	}
}
