/*
Theme Name: Luka Kuntchulia's Blog
Theme URI: https://blogwebsite.local
Author: Luka Kuntchulia
Author URI: https://blogwebsite.local
Description: A personal cyber security blog theme with a Wabi-Sabi glassmorphism design.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lukakuntchuliasblog
*/

/* ==========================================================================
   1. CSS Variables & Global Styles
   ========================================================================== */
:root {
	--bg-color: #0E1424;
	--accent-color: #E8B04B;
	--neon-blue: #00f3ff;
	--neon-pink: #ff00ff;
	--link-orange: #ff5a36;
	--text-primary: #e0e6ed;
	--text-secondary: #8b9bb4;
	--glass-bg: rgba(14, 20, 36, 0.45);
	--glass-border: rgba(232, 176, 75, 0.15);
	--font-main: 'Fira Code', 'Courier New', monospace;
	--font-sans: 'Inter', system-ui, sans-serif;

	/* Height of the fixed header — every page offsets its content by this. */
	--nav-h: 78px;
	--gutter: 5%;
}

@media (max-width: 860px) {
	:root {
		--nav-h: 62px;
		--gutter: 18px;
	}
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--bg-color);
	color: var(--text-primary);
	font-family: var(--font-sans);
	line-height: 1.6;
	overflow-x: hidden;
	position: relative;
	/* Stop long unbroken strings (URLs, test data) from widening the page */
	overflow-wrap: break-word;
}

a {
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
}

/* Wide content scrolls inside itself instead of stretching the page */
pre,
table {
	max-width: 100%;
	overflow-x: auto;
}

/* Canvas for organic Wabi-Sabi falling elements */
#nature-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: -1;
	pointer-events: none;
}

/* Screen-reader-only utility (accessibility / SEO) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

/* Skip link for keyboard users */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 12px 20px;
	background: var(--accent-color);
	color: var(--bg-color);
	font-family: var(--font-main);
	font-weight: bold;
}

.skip-link:focus {
	left: 10px;
	top: 10px;
}

/* ==========================================================================
   2. Glassmorphism (შუშის ეფექტი)
   ========================================================================== */
.glass-nav,
.glass-card,
.glass-footer {
	background: var(--glass-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--glass-border);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ==========================================================================
   3. Navigation
   ========================================================================== */
.glass-nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	max-width: 100%;
	min-height: var(--nav-h);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 0.9rem var(--gutter);
	z-index: 100;
	border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
	font-family: var(--font-main);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--neon-blue);
	text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
	/* Allows the brand to shrink instead of pushing the bar wider */
	min-width: 0;
	overflow-wrap: anywhere;
}

.nav-brand a {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.nav-brand span {
	color: var(--accent-color);
}

/* Centred primary menu */
.nav-links {
	display: flex;
	list-style: none;
	gap: 2rem;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	padding: 0;
}

.nav-links a {
	color: #ffffff;
	text-decoration: none;
	font-weight: 500;
	cursor: pointer;
	transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Hover: stays white and glows with a white neon halo */
.nav-links a:hover,
.nav-links a:focus-visible {
	color: #ffffff;
	text-shadow:
		0 0 8px rgba(255, 255, 255, 0.9),
		0 0 18px rgba(255, 255, 255, 0.55),
		0 0 32px rgba(255, 255, 255, 0.3);
}

/* Every item stays white — the current page is not tinted differently */
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-ancestor > a {
	color: #ffffff;
}

/* Dropdown sub-menus */
.nav-links li {
	position: relative;
}

.nav-links .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	min-width: 190px;
	list-style: none;
	margin-top: 12px;
	padding: 8px;
	background: rgba(14, 20, 36, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--glass-border);
	border-radius: 10px 40px 10px 10px;
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.nav-links .menu-item-has-children:hover > .sub-menu,
.nav-links .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.nav-links .sub-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 0.9rem;
	white-space: nowrap;
	transition: background 0.3s ease, color 0.3s ease;
}

.nav-links .sub-menu a:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* Join button to the right of the menu */
.nav-cta {
	padding: 8px 22px;
	font-size: 0.85rem;
	letter-spacing: 1px;
	white-space: nowrap;
}

/* Mobile hamburger toggle */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
}

.nav-toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--text-primary);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-open .nav-toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle-bar:nth-child(2) {
	opacity: 0;
}

.nav-open .nav-toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero-section {
	min-height: calc(100vh - var(--nav-h));
	min-height: calc(100svh - var(--nav-h));
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 2rem var(--gutter);
	gap: 2rem;
	margin-top: var(--nav-h);
}

.hero-content {
	flex: 1;
	min-width: 0;
	max-width: 600px;
}

/* Glitch Effect for Title */
.glitch {
	font-size: 4rem;
	font-family: var(--font-main);
	font-weight: 700;
	position: relative;
	color: var(--text-primary);
	margin-bottom: 1rem;
}

.glitch::before,
.glitch::after {
	content: attr(data-text);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--bg-color);
}

.glitch::before {
	left: 2px;
	text-shadow: -2px 0 var(--neon-pink);
	clip: rect(24px, 550px, 90px, 0);
	animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
	left: -2px;
	text-shadow: -2px 0 var(--neon-blue);
	clip: rect(85px, 550px, 140px, 0);
	animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
	0%   { clip: rect(13px, 9999px, 83px, 0); }
	20%  { clip: rect(32px, 9999px, 14px, 0); }
	40%  { clip: rect(6px, 9999px, 98px, 0); }
	60%  { clip: rect(44px, 9999px, 2px, 0); }
	80%  { clip: rect(89px, 9999px, 63px, 0); }
	100% { clip: rect(12px, 9999px, 55px, 0); }
}

@keyframes glitch-anim-2 {
	0%   { clip: rect(65px, 9999px, 100px, 0); }
	20%  { clip: rect(14px, 9999px, 33px, 0); }
	40%  { clip: rect(88px, 9999px, 2px, 0); }
	60%  { clip: rect(21px, 9999px, 66px, 0); }
	80%  { clip: rect(90px, 9999px, 11px, 0); }
	100% { clip: rect(4px, 9999px, 80px, 0); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	.glitch::before,
	.glitch::after {
		animation: none;
	}

	html {
		scroll-behavior: auto;
	}
}

.subtitle {
	font-size: 1.2rem;
	color: var(--text-secondary);
	margin-bottom: 2rem;
}

/* Neon Button */
.btn-neon {
	display: inline-block;
	padding: 12px 30px;
	color: var(--bg-color);
	background-color: var(--accent-color);
	border: 1px solid var(--accent-color);
	text-transform: uppercase;
	text-decoration: none;
	font-weight: bold;
	font-family: var(--font-main);
	letter-spacing: 2px;
	border-radius: 4px;
	box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
	transition: all 0.3s ease;
	cursor: pointer;
}

.btn-neon:hover,
.btn-neon:focus-visible {
	background-color: transparent;
	color: var(--accent-color);
	box-shadow: 0 0 20px var(--accent-color) inset, 0 0 40px var(--accent-color);
}

.btn-neon:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Wabi-Sabi Asymmetry */
.wabi-shape {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero-image {
	width: 420px;
	max-width: 100%;
	height: 420px;
	object-fit: cover;
	border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
	border: 1px solid var(--glass-border);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
	transform: rotate(-2deg);
	transition: transform 0.5s ease;
}

.hero-image:hover {
	transform: rotate(1deg);
}

.neon-text {
	color: var(--neon-pink);
	text-shadow: 0 0 5px var(--neon-pink);
}

/* ==========================================================================
   5. Main Content (Blog Grid)
   ========================================================================== */
.container {
	padding: 3.5rem var(--gutter);
	max-width: 1400px;
	margin: 0 auto;
}

/* Homepage articles section sits tight under the hero (reference offset) */
.articles-section {
	margin-top: -10px;
}

.section-title {
	font-family: var(--font-main);
	color: #ffffff;
	font-size: 2.2rem;
	font-weight: 700;
	margin-bottom: 1.75rem;
	text-align: left;
}

.blog-grid {
	display: grid;
	/* minmax(0, …) stops a long unbroken word from widening a column */
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.25rem;
	align-items: stretch;
}

@media (max-width: 1100px) {
	.blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.blog-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.glass-card {
	padding: 1.6rem;
	height: 100%;
	border-radius: 12px;
	transition: transform 0.4s ease, box-shadow 0.4s ease;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1.4rem;
	cursor: pointer;
}

.blog-link {
	text-decoration: none;
	color: inherit;
	display: block;
	height: 100%;
}

/* Homepage cards sit on a slightly lighter slate than the page */
.blog-grid .glass-card {
	background: #1b2432;
	border-color: rgba(255, 255, 255, 0.06);
}

.card-content {
	width: 100%;
}

/* Card thumbnail — locked to the 16:9 crop */
.card-image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.glass-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(232, 176, 75, 0.2);
}

.tag {
	font-size: 0.72rem;
	text-transform: uppercase;
	font-family: var(--font-main);
	color: var(--bg-color);
	background-color: var(--text-secondary);
	padding: 3px 9px;
	border-radius: 20px;
	display: inline-block;
	margin-bottom: 0.6rem;
	text-decoration: none;
}

.glass-card h3 {
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 0.85rem;
	color: #ffffff;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	overflow-wrap: break-word;
}

.glass-card p {
	color: var(--text-secondary);
	font-size: 0.95rem;
	line-height: 1.55;
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	overflow: hidden;
	overflow-wrap: break-word;
}

/* "გაიგე მეტი" — outlined button */
.read-more {
	display: inline-block;
	padding: 11px 22px;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 8px;
	background: transparent;
	color: #ffffff;
	font-family: var(--font-main);
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.blog-link:hover .read-more {
	background: #ffffff;
	color: var(--bg-color);
	border-color: #ffffff;
}

.no-results {
	text-align: center;
	color: var(--text-secondary);
	padding: 3rem 0;
	width: 100%;
}

/* ==========================================================================
   6. Inner pages (single post / page / archive)
   ========================================================================== */
.page-shell {
	max-width: 1400px;
	margin: 0 auto;
	padding: calc(var(--nav-h) + 2.5rem) var(--gutter) 4rem;
}

.page-title {
	font-family: var(--font-main);
	font-size: 2.5rem;
	color: var(--text-primary);
	margin-bottom: 1rem;
}

.entry-content {
	color: var(--text-primary);
	line-height: 1.8;
	font-size: 1.05rem;
}

.entry-content p {
	margin-bottom: 1.25rem;
}

.entry-content a {
	color: var(--accent-color);
}

/* ==========================================================================
   6a. Blog list page (/blog)
   ========================================================================== */
.blog-page-header {
	text-align: center;
	padding: calc(var(--nav-h) + 2.5rem) var(--gutter) 1rem;
}

.blog-page-title {
	font-family: var(--font-main);
	font-size: 2.6rem;
	font-weight: 700;
	color: var(--neon-blue);
	text-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
	margin-bottom: 0.75rem;
}

.blog-page-subtitle {
	color: var(--text-secondary);
	font-size: 1rem;
	font-family: var(--font-main);
}

.blog-post-container {
	display: flex;
	gap: 2rem;
	max-width: 1400px;
	margin: 0 auto;
	padding: 1.5rem var(--gutter) 4rem;
}

.blog-content {
	flex: 3;
	min-width: 0;
}

.blog-sidebar {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.blog-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* Compact card so at least two posts fit on screen */
.blog-list-item {
	background: var(--glass-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--glass-border);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
	border-radius: 10px;
	padding: 1.5rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-list-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 15px 40px rgba(232, 176, 75, 0.15);
}

.blog-list-title {
	font-family: var(--font-main);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
	text-decoration: none;
	display: block;
	line-height: 1.4;
}

.blog-list-title:hover {
	color: var(--accent-color);
}

.blog-list-meta {
	font-family: var(--font-main);
	color: var(--text-secondary);
	font-size: 0.78rem;
	line-height: 1.6;
	margin-bottom: 1rem;
}

.blog-list-meta strong {
	color: var(--neon-blue);
	font-weight: 400;
}

.blog-list-body {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

.blog-list-image {
	/* Matches the 10:7 crop registered as lukakuntchuliasblog-thumb */
	width: 200px;
	height: 140px;
	aspect-ratio: 10 / 7;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
}

.blog-list-excerpt-wrap {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 140px;
}

.blog-list-excerpt {
	color: var(--text-primary);
	line-height: 1.7;
	font-size: 0.9rem;
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	overflow: hidden;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.blog-list-title,
.post-title,
.prompt-card__title,
.glass-card h3 {
	overflow-wrap: anywhere;
}

.blog-list-footer {
	text-align: right;
	margin: 0.75rem 0 0;
}

.blog-read-more {
	font-family: var(--font-main);
	color: var(--link-orange);
	text-decoration: none;
	font-weight: bold;
	font-size: 0.85rem;
}

.blog-read-more:hover {
	text-decoration: underline;
}

/* Sidebar */
.sidebar-widget {
	background: var(--glass-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--glass-border);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
	border-radius: 10px;
	padding: 1.5rem;
}

.widget-title {
	font-family: var(--font-main);
	color: var(--accent-color);
	margin-bottom: 1rem;
	font-size: 1.1rem;
}

.category-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 10px;
	border: 1px solid var(--glass-border);
	border-radius: 5px;
	margin-bottom: 10px;
	background: transparent;
	color: var(--text-primary);
	text-decoration: none;
	font-family: inherit;
	font-size: 0.9rem;
	text-align: left;
	cursor: pointer;
	transition: all 0.3s ease;
}

.category-item__count {
	color: var(--text-secondary);
	font-family: var(--font-main);
	font-size: 0.78rem;
}

.category-item.active .category-item__count {
	color: var(--neon-blue);
}

.category-item:hover {
	border-color: var(--neon-blue);
	box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
	color: var(--neon-blue);
}

.category-item.active {
	border-color: var(--neon-blue);
	color: var(--neon-blue);
}

@media (max-width: 900px) {
	.blog-post-container {
		flex-direction: column;
	}

	.blog-list-body {
		flex-direction: column;
	}

	.blog-list-image {
		width: 100%;
		height: 180px;
	}

	.blog-list-excerpt-wrap {
		min-height: 0;
	}

	.blog-page-title {
		font-size: 2rem;
	}
}

/* ==========================================================================
   6a2. 404 and search form
   ========================================================================== */
.error-shell {
	max-width: 720px;
	margin: 0 auto;
	padding: calc(var(--nav-h) + 4rem) var(--gutter) 5rem;
	text-align: center;
}

.error-code {
	font-family: var(--font-main);
	font-size: 5rem;
	font-weight: 700;
	line-height: 1;
	color: var(--neon-blue);
	text-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
	margin-bottom: 1rem;
}

.error-title {
	font-family: var(--font-main);
	font-size: 1.6rem;
	color: #ffffff;
	margin-bottom: 1rem;
}

.error-text {
	color: var(--text-secondary);
	margin-bottom: 2rem;
}

.error-search {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.search-field {
	flex: 1;
	min-width: 0;
	max-width: 360px;
	padding: 12px 18px;
	border-radius: 30px;
	border: 1px solid var(--glass-border);
	background: var(--glass-bg);
	color: var(--text-primary);
	font-family: var(--font-sans);
	font-size: 0.95rem;
	outline: none;
	transition: border-color 0.3s ease;
}

.search-field:focus {
	border-color: var(--neon-blue);
}

.search-field::placeholder {
	color: var(--text-secondary);
}

.error-links {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

@media (max-width: 640px) {
	.error-code {
		font-size: 3.5rem;
	}

	.error-title {
		font-size: 1.25rem;
	}

	.error-search {
		flex-direction: column;
	}

	.search-field {
		max-width: 100%;
	}
}

/* ==========================================================================
   6b. Single post
   ========================================================================== */
.post-shell {
	/* Narrower column keeps the line length comfortable to read */
	max-width: 880px;
	margin: 0 auto;
	padding: calc(var(--nav-h) + 2.5rem) var(--gutter) 4rem;
	position: relative;
}

/* Subtle graph-paper grid behind the article */
.post-shell::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(139, 155, 180, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(139, 155, 180, 0.05) 1px, transparent 1px);
	background-size: 46px 46px;
}

/* Back to blog */
.post-back {
	display: inline-block;
	font-family: var(--font-main);
	font-size: 0.9rem;
	color: var(--text-primary);
	text-decoration: none;
	margin-bottom: 3rem;
	transition: color 0.3s ease, text-shadow 0.3s ease;
}

.post-back:hover {
	color: var(--neon-blue);
	text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
}

/* Title */
.post-title {
	font-family: var(--font-main);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0.01em;
	color: #ffffff;
	margin-bottom: 1.25rem;
}

/* Meta row: category / date / reading time */
.post-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.75rem;
	font-family: var(--font-main);
	font-size: 0.85rem;
	margin-bottom: 3.5rem;
}

.post-meta__category {
	color: #00e58a;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	transition: text-shadow 0.3s ease;
}

.post-meta__category:hover {
	text-shadow: 0 0 8px rgba(0, 229, 138, 0.5);
}

.post-meta__date,
.post-meta__reading {
	color: var(--text-secondary);
}

/* Featured image */
.post-featured-image {
	display: block;
	width: 100%;
	/* Locked to the 16:9 crop registered as lukakuntchuliasblog-featured */
	aspect-ratio: 16 / 9;
	height: auto;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 2.75rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
}

/* ==========================================================================
   6c. Post content — styling for everything written in the block editor
   ========================================================================== */
.post-content {
	font-family: var(--font-main);
	color: #ffffff;
	font-size: 0.95rem;
	line-height: 1.95;
	text-align: justify;
	text-justify: inter-word;
	hyphens: auto;
	overflow-wrap: break-word;
}

.post-content > * {
	margin-bottom: 1.35rem;
}

.post-content > *:last-child {
	margin-bottom: 0;
}

/* Headings */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
	font-family: var(--font-main);
	color: #ffffff;
	font-weight: 700;
	line-height: 1.5;
	text-align: left;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}

.post-content h1 { font-size: 1.5rem; }
.post-content h2 { font-size: 1.3rem; }
.post-content h3 { font-size: 1.15rem; }
.post-content h4 { font-size: 1.05rem; }
.post-content h5,
.post-content h6 { font-size: 1rem; }

.post-content > *:first-child {
	margin-top: 0;
}

/* Paragraphs */
.post-content p {
	color: #ffffff;
}

/* Links */
.post-content a {
	color: var(--neon-blue);
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 243, 255, 0.35);
	transition: color 0.3s ease, border-color 0.3s ease;
}

.post-content a:hover {
	color: var(--accent-color);
	border-color: var(--accent-color);
}

/* Bold / emphasis */
.post-content strong,
.post-content b {
	color: #ffffff;
	font-weight: 700;
}

.post-content em,
.post-content i {
	color: var(--text-primary);
}

/* Lists */
.post-content ul,
.post-content ol {
	padding-left: 1.75rem;
	text-align: left;
}

.post-content li {
	margin-bottom: 0.85rem;
	color: #ffffff;
}

.post-content ul li::marker {
	color: var(--accent-color);
}

.post-content ol li::marker {
	color: var(--accent-color);
	font-family: var(--font-main);
}

/* Blockquote */
.post-content blockquote {
	border-left: 3px solid var(--accent-color);
	background: rgba(232, 176, 75, 0.06);
	padding: 1.25rem 1.75rem;
	border-radius: 0 10px 10px 0;
	color: var(--text-primary);
	font-style: italic;
	text-align: left;
}

.post-content blockquote p:last-child {
	margin-bottom: 0;
}

.post-content blockquote cite {
	display: block;
	margin-top: 0.75rem;
	font-size: 0.85rem;
	color: var(--text-secondary);
	font-style: normal;
}

/* Images and figures */
.post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
}

.post-content figure {
	margin: 2.5rem 0;
}

.post-content figcaption,
.post-content .wp-caption-text {
	margin-top: 0.75rem;
	font-size: 0.85rem;
	color: var(--text-secondary);
	text-align: center;
	font-family: var(--font-main);
}

/* Code */
.post-content code {
	font-family: var(--font-main);
	background: rgba(0, 243, 255, 0.08);
	border: 1px solid rgba(0, 243, 255, 0.2);
	border-radius: 4px;
	padding: 2px 6px;
	font-size: 0.9em;
	color: var(--neon-blue);
}

.post-content pre {
	background: rgba(11, 16, 32, 0.85);
	border: 1px solid var(--glass-border);
	border-radius: 10px;
	padding: 1.5rem;
	overflow-x: auto;
	text-align: left;
	line-height: 1.7;
}

.post-content pre code {
	background: none;
	border: none;
	padding: 0;
	color: var(--text-primary);
}

/* Tables */
.post-content table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 0.95rem;
}

.post-content th,
.post-content td {
	padding: 12px 14px;
	border: 1px solid var(--glass-border);
}

.post-content th {
	background: rgba(232, 176, 75, 0.08);
	color: var(--accent-color);
	font-family: var(--font-main);
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
}

/* Separator */
.post-content hr,
.post-content .wp-block-separator {
	border: none;
	border-top: 1px solid var(--glass-border);
	margin: 3rem 0;
}

/* Embeds stay responsive */
.post-content iframe,
.post-content video {
	max-width: 100%;
	border-radius: 10px;
}

/* Block editor alignment helpers */
.post-content .aligncenter,
.post-content .wp-block-image.aligncenter {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.post-content .alignleft {
	float: left;
	margin: 0 1.75rem 1.25rem 0;
}

.post-content .alignright {
	float: right;
	margin: 0 0 1.25rem 1.75rem;
}

.post-content .alignwide {
	width: calc(100% + 8rem);
	max-width: calc(100vw - 4rem);
	margin-left: -4rem;
	margin-right: -4rem;
}

.post-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	border-radius: 0;
}

.post-content .wp-block-button__link {
	display: inline-block;
	padding: 12px 30px;
	background-color: var(--accent-color);
	color: var(--bg-color);
	border-radius: 4px;
	font-family: var(--font-main);
	font-weight: bold;
	text-decoration: none;
	border: none;
}

/* Tags under the article */
.post-tags-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 3.5rem;
}

/* Previous / next navigation */
.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 1px solid var(--glass-border);
}

.post-nav__link {
	flex: 1;
	min-width: 220px;
	text-decoration: none;
	font-family: var(--font-main);
}

.post-nav__link--next {
	text-align: right;
}

.post-nav__label {
	display: block;
	font-size: 0.8rem;
	color: var(--accent-color);
	margin-bottom: 0.4rem;
}

.post-nav__title {
	display: block;
	color: var(--text-primary);
	font-size: 0.95rem;
	transition: color 0.3s ease;
}

.post-nav__link:hover .post-nav__title {
	color: var(--neon-blue);
}

/* Single post — responsive */
@media (max-width: 768px) {
	.post-shell {
		padding-top: 7rem;
	}

	.post-title {
		font-size: 1.9rem;
	}

	.post-content {
		font-size: 0.95rem;
		line-height: 1.9;
		text-align: left;
	}

	.post-content .alignwide {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	.post-content .alignleft,
	.post-content .alignright {
		float: none;
		margin: 0 0 1.25rem;
	}

	.post-nav__link--next {
		text-align: left;
	}
}

/* ==========================================================================
   6e. AI-News — prompt library
   ========================================================================== */
.prompts-page {
	max-width: 1400px;
	margin: 0 auto;
	padding: calc(var(--nav-h) + 2.5rem) var(--gutter) 4rem;
}

/* Hero */
.prompts-hero {
	text-align: center;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid var(--glass-border);
	margin-bottom: 2.5rem;
}

.prompts-hero__title {
	font-family: var(--font-main);
	font-size: 3rem;
	font-weight: 700;
	color: var(--neon-blue);
	text-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
	margin-bottom: 1rem;
	line-height: 1.3;
}

.prompts-hero__subtitle {
	max-width: 720px;
	margin: 0 auto 1.25rem;
	color: var(--text-primary);
	font-size: 1.05rem;
	line-height: 1.7;
}

.prompts-hero__stats {
	color: var(--text-secondary);
	font-family: var(--font-main);
	font-size: 0.85rem;
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.prompts-hero__dot {
	color: var(--accent-color);
}

/* Toolbar */
.prompts-toolbar {
	display: flex;
	gap: 1rem;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 1.75rem;
}

.prompts-search {
	position: relative;
	flex: 1;
	min-width: 240px;
}

.prompts-search__icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 15px;
	height: 15px;
	fill: var(--text-secondary);
	pointer-events: none;
}

.prompts-search__input {
	width: 100%;
	padding: 13px 18px 13px 44px;
	border-radius: 30px;
	border: 1px solid var(--glass-border);
	background: var(--glass-bg);
	color: var(--text-primary);
	font-family: var(--font-sans);
	font-size: 0.95rem;
	outline: none;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.prompts-search__input::placeholder {
	color: var(--text-secondary);
}

.prompts-search__input:focus {
	border-color: var(--neon-blue);
	box-shadow: 0 0 12px rgba(0, 243, 255, 0.15);
}

/* Language toggle */
.prompts-lang {
	display: flex;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--glass-border);
	border-radius: 30px;
	background: var(--glass-bg);
}

.prompts-lang__btn {
	padding: 8px 18px;
	border: none;
	border-radius: 30px;
	background: transparent;
	color: var(--text-secondary);
	font-family: var(--font-main);
	font-size: 0.85rem;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
}

.prompts-lang__btn:hover {
	color: var(--text-primary);
}

.prompts-lang__btn.is-active {
	background: var(--accent-color);
	color: var(--bg-color);
	font-weight: 700;
}

/* Category chips */
.prompts-filters {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.prompts-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 30px;
	border: 1px solid var(--glass-border);
	background: var(--glass-bg);
	color: var(--text-primary);
	font-family: var(--font-main);
	font-size: 0.85rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

.prompts-chip:hover {
	border-color: var(--neon-blue);
	color: var(--neon-blue);
}

.prompts-chip.is-active {
	background: var(--accent-color);
	border-color: var(--accent-color);
	color: var(--bg-color);
	font-weight: 700;
}

.prompts-chip__count {
	opacity: 0.7;
	font-size: 0.8rem;
}

.prompts-count {
	color: var(--text-secondary);
	font-family: var(--font-main);
	font-size: 0.85rem;
	margin-bottom: 1.5rem;
}

/* Grid */
.prompts-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.75rem;
}

@media (max-width: 900px) {
	.prompts-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Card */
.prompt-card {
	display: flex;
	flex-direction: column;
	background: var(--glass-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--glass-border);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
	border-radius: 14px;
	padding: 1.75rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prompt-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 15px 40px rgba(232, 176, 75, 0.15);
}

.prompt-card__badge {
	align-self: flex-start;
	font-family: var(--font-main);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bg-color);
	background: var(--accent-color);
	padding: 4px 12px;
	border-radius: 20px;
	margin-bottom: 1rem;
}

.prompt-card__title {
	font-family: var(--font-main);
	font-size: 1.3rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 0.6rem;
	line-height: 1.4;
}

.prompt-card__desc {
	color: var(--text-secondary);
	font-size: 0.92rem;
	line-height: 1.6;
	margin-bottom: 1.25rem;
}

.prompt-card__body {
	background: rgba(11, 16, 32, 0.7);
	border: 1px solid var(--glass-border);
	border-radius: 10px;
	padding: 1rem 1.15rem;
	margin-bottom: 1.25rem;
	max-height: 260px;
	overflow-y: auto;
}

.prompt-card__text {
	margin: 0;
	font-family: var(--font-main);
	font-size: 0.86rem;
	line-height: 1.8;
	color: var(--text-primary);
	white-space: pre-wrap;
	word-wrap: break-word;
}

/* Scrollbar inside the prompt body */
.prompt-card__body::-webkit-scrollbar {
	width: 8px;
}

.prompt-card__body::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.04);
	border-radius: 8px;
}

.prompt-card__body::-webkit-scrollbar-thumb {
	background: rgba(232, 176, 75, 0.35);
	border-radius: 8px;
}

.prompt-card__body::-webkit-scrollbar-thumb:hover {
	background: var(--accent-color);
}

.prompt-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: auto;
}

.prompt-card__tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.prompt-card__tag {
	font-family: var(--font-main);
	font-size: 0.75rem;
	color: var(--text-secondary);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--glass-border);
	padding: 4px 10px;
	border-radius: 20px;
}

.prompt-copy {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 8px;
	border: 1px solid var(--glass-border);
	background: rgba(255, 255, 255, 0.05);
	color: var(--text-primary);
	font-family: var(--font-main);
	font-size: 0.85rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

.prompt-copy:hover {
	border-color: var(--accent-color);
	color: var(--accent-color);
}

.prompt-copy.is-copied {
	border-color: #00e58a;
	color: #00e58a;
}

@media (max-width: 768px) {
	.prompts-page {
		padding-top: 6rem;
	}

	.prompts-hero__title {
		font-size: 2rem;
	}

	.prompts-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.prompts-lang {
		align-self: center;
	}
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.glass-footer {
	font-family: var(--font-main);
	margin-top: 4rem;
	border-top: 1px solid var(--glass-border);
}

/* --- Footer top: brand + tagline --- */
.site-footer__top-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 3rem 5% 1.5rem;
	text-align: center;
}

.site-footer__logo {
	display: inline-block;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--neon-blue);
	text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
	text-decoration: none;
}

.site-footer__logo span {
	color: var(--accent-color);
}

.site-footer__tagline {
	max-width: 520px;
	margin: 12px auto 0;
	font-size: 0.85rem;
	color: var(--text-secondary);
	line-height: 1.5;
	font-family: var(--font-sans);
}

/* --- Footer middle: columns --- */
.site-footer__columns-inner {
	max-width: 1400px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
	padding: 2rem 5% 3rem;
	border-top: 1px solid var(--glass-border);
	text-align: left;
}

.footer-col__title {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent-color);
	font-family: var(--font-main);
}

.footer-col__list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.footer-col__list a,
.footer-col__list li {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-col__list a:hover {
	color: var(--accent-color);
	text-shadow: 0 0 8px var(--accent-color);
}

/* --- Social icons --- */
.social-icons {
	list-style: none;
	display: flex;
	gap: 10px;
	margin: 20px 0 0;
	padding: 0;
}

.social-icons__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--glass-border);
	color: var(--text-secondary);
	transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.social-icons__link:hover {
	color: var(--neon-blue);
	border-color: var(--neon-blue);
	box-shadow: 0 0 10px rgba(0, 243, 255, 0.25);
}

/* --- Footer bottom bar --- */
.site-footer__bottom {
	border-top: 1px solid var(--glass-border);
	background: rgba(11, 16, 32, 0.5);
}

.site-footer__bottom-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 1.25rem 5%;
	text-align: center;
}

.site-footer__copyright {
	margin: 0;
	font-size: 0.85rem;
	color: var(--text-secondary);
}


/* ==========================================================================
   8. Responsive Design
   --------------------------------------------------------------------------
   Breakpoints:
     1100px  grid drops to two columns
      900px  blog page stacks its sidebar
      860px  hamburger replaces the centred menu
      640px  single-column everywhere, tighter type
      400px  smallest phones
   ========================================================================== */

/* --- Tablets --- */
@media (max-width: 1024px) {
	.glitch {
		font-size: 3rem;
	}

	.hero-image {
		width: 340px;
		height: 340px;
	}

	.prompts-hero__title {
		font-size: 2.4rem;
	}
}

/* --- Mobile navigation: hamburger replaces the centred link row --- */
@media (max-width: 860px) {
	.glass-nav {
		flex-wrap: wrap;
		row-gap: 0;
	}

	.nav-brand {
		font-size: 1.05rem;
		flex: 1 1 auto;
	}

	/* On phones the header carries the menu only — the join button lives
	   in the hero and at the end of the mobile menu. */
	.nav-cta {
		display: none;
	}

	.nav-toggle {
		display: flex;
		order: 3;
		width: 34px;
		height: 34px;
		flex-shrink: 0;
	}

	.nav-links {
		position: static;
		transform: none;
		order: 4;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}

	.nav-open .nav-links {
		max-height: 70vh;
		overflow-y: auto;
		margin: 0.75rem 0 0.5rem;
	}

	.nav-links > li > a {
		display: block;
		padding: 12px 4px;
		border-bottom: 1px solid var(--glass-border);
	}

	.nav-links .sub-menu {
		position: static;
		transform: none;
		opacity: 1;
		visibility: visible;
		display: none;
		min-width: 0;
		margin: 0;
		border: none;
		border-radius: 0;
		box-shadow: none;
		background: rgba(232, 176, 75, 0.06);
	}

	.nav-links .menu-item--open > .sub-menu {
		display: block;
	}
}

/* --- Hero stacks --- */
@media (max-width: 768px) {
	.hero-section {
		flex-direction: column;
		justify-content: center;
		text-align: center;
		gap: 1.75rem;
	}

	.hero-content {
		max-width: 100%;
	}

	.glitch {
		font-size: 2.3rem;
		overflow-wrap: break-word;
	}

	.subtitle {
		font-size: 1rem;
	}

	.hero-image {
		width: min(300px, 78vw);
		height: min(300px, 78vw);
	}

	.section-title {
		font-size: 1.7rem;
	}
}

/* --- Phones --- */
@media (max-width: 640px) {
	.container {
		padding: 2.5rem var(--gutter);
	}

	.glitch {
		font-size: 1.95rem;
	}

	.subtitle {
		font-size: 0.95rem;
	}

	.btn-neon {
		padding: 11px 24px;
		font-size: 0.85rem;
		letter-spacing: 1px;
	}

	.section-title {
		font-size: 1.5rem;
		margin-bottom: 1.25rem;
	}

	.blog-grid {
		gap: 1.25rem;
	}

	.glass-card {
		padding: 1.15rem;
		gap: 1rem;
	}

	.glass-card h3 {
		font-size: 1.15rem;
	}

	.glass-card p {
		font-size: 0.9rem;
	}

	/* Blog list page */
	.blog-page-title {
		font-size: 1.8rem;
	}

	.blog-page-subtitle {
		font-size: 0.9rem;
	}

	.blog-list-item {
		padding: 1.15rem;
	}

	.blog-list-title {
		font-size: 1.1rem;
	}

	.blog-list-meta {
		font-size: 0.72rem;
	}

	/* Single post */
	.post-title {
		font-size: 1.5rem;
	}

	.post-meta {
		gap: 1rem;
		font-size: 0.78rem;
		margin-bottom: 2rem;
	}

	.post-featured-image {
		margin-bottom: 1.75rem;
	}

	.post-content {
		font-size: 0.92rem;
		line-height: 1.85;
	}

	.post-content h1 { font-size: 1.3rem; }
	.post-content h2 { font-size: 1.18rem; }
	.post-content h3 { font-size: 1.08rem; }

	.post-content blockquote,
	.post-content pre {
		padding: 1rem;
	}

	.post-nav {
		flex-direction: column;
		gap: 1.25rem;
	}

	.post-nav__link--next {
		text-align: left;
	}

	/* AI-News */
	.prompts-hero__title {
		font-size: 1.7rem;
	}

	.prompts-hero__subtitle {
		font-size: 0.95rem;
	}

	.prompts-hero__stats {
		font-size: 0.78rem;
		gap: 8px;
	}

	.prompt-card {
		padding: 1.25rem;
	}

	.prompt-card__title {
		font-size: 1.1rem;
	}

	.prompt-card__body {
		max-height: 220px;
		padding: 0.85rem;
	}

	.prompt-card__footer {
		align-items: flex-start;
	}

	.prompt-copy {
		width: 100%;
		justify-content: center;
	}

	/* Footer */
	.site-footer__logo {
		font-size: 1.15rem;
	}

	.site-footer__tagline {
		font-size: 0.8rem;
	}
}

/* --- Footer columns --- */
@media (max-width: 860px) {
	.site-footer__columns-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.75rem;
	}
}

@media (max-width: 540px) {
	.site-footer__columns-inner {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* --- Smallest phones --- */
@media (max-width: 400px) {
	.nav-brand {
		font-size: 0.9rem;
	}

	.nav-cta {
		padding: 6px 10px;
		font-size: 0.66rem;
		letter-spacing: 0;
	}

	.glitch {
		font-size: 1.7rem;
	}

	.post-title {
		font-size: 1.3rem;
	}

	.prompts-hero__title {
		font-size: 1.45rem;
	}

	.blog-page-title {
		font-size: 1.55rem;
	}
}

/* --- Touch targets: comfortable tap size on phones --- */
@media (hover: none) {
	.nav-links a,
	.category-item,
	.prompts-chip,
	.prompts-lang__btn {
		min-height: 44px;
		display: flex;
		align-items: center;
	}

	.nav-links a {
		display: block;
		line-height: 20px;
	}
}
