/*
Theme Name: TechZeitgeist FSE
Theme URI: https://www.techzeitgeist.de
Author: TechZeitgeist Dev
Author URI: https://www.techzeitgeist.de
Description: Modernes Block-Theme für einen Tech- & Wirtschafts-Newsblog, optimiert für Performance, SEO und Lesbarkeit.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Tags: block-theme, news, one-column, accessibility-ready, custom-colors, seo-optimized
*/

/* ===================================================================
   DESIGN SYSTEM VARIABLES
   =================================================================== */
:root {
	/* Shadows */
	--tz-shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
	--tz-shadow-sm: 0 4px 12px rgba(17, 24, 39, 0.06);
	--tz-shadow-soft: 0 12px 30px rgba(17, 24, 39, 0.08);
	--tz-shadow-strong: 0 18px 60px rgba(17, 24, 39, 0.14);
	--tz-shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
	--tz-shadow-card-hover: 0 24px 48px rgba(37, 99, 235, 0.12);

	/* Transitions */
	--tz-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
	--tz-transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
	--tz-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
	--tz-transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

	/* Blur effects */
	--tz-blur-sm: 8px;
	--tz-blur-md: 14px;
	--tz-blur-lg: 24px;

	/* Border radius */
	--tz-radius-sm: 10px;
	--tz-radius-md: 14px;
	--tz-radius-lg: 18px;
	--tz-radius-xl: 24px;
	--tz-radius-full: 999px;

	/* Z-index layers */
	--tz-z-base: 1;
	--tz-z-dropdown: 10;
	--tz-z-sticky: 50;
	--tz-z-modal: 100;
	--tz-z-top: 999;
}

/* ===================================================================
   BASE STYLES & TYPOGRAPHY
   =================================================================== */
html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-feature-settings: "liga" 1, "tnum" 1, "lnum" 1;
	background:
		radial-gradient(ellipse 900px 600px at 18% 8%, rgba(37, 99, 235, 0.07), transparent 60%),
		radial-gradient(ellipse 800px 500px at 85% 5%, rgba(16, 185, 129, 0.05), transparent 55%),
		linear-gradient(180deg, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 1) 50%);
	min-height: 100vh;
}

/* Improved focus states for accessibility */
:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.5);
	outline-offset: 3px;
	border-radius: var(--tz-radius-sm);
}

/* Skip link for accessibility */
.skip-link {
	position: absolute;
	top: -100%;
	left: 50%;
	transform: translateX(-50%);
	padding: 1rem 2rem;
	background: var(--wp--preset--color--primary);
	color: white;
	border-radius: var(--tz-radius-full);
	z-index: var(--tz-z-top);
	transition: top var(--tz-transition-fast);
}

.skip-link:focus {
	top: 1rem;
}

/* Selection colors */
::selection {
	background: rgba(37, 99, 235, 0.2);
	color: #111827;
}

/* ===================================================================
   HEADER STYLES
   =================================================================== */
.tz-header {
	position: sticky;
	top: 0;
	z-index: var(--tz-z-sticky);
	backdrop-filter: blur(var(--tz-blur-md)) saturate(180%);
	-webkit-backdrop-filter: blur(var(--tz-blur-md)) saturate(180%);
	transition: all var(--tz-transition-base);
}

.tz-header.has-contrast-background-color {
	background-color: rgba(255, 255, 255, 0.92) !important;
}

/* Header scroll state */
.tz-header.scrolled {
	box-shadow: var(--tz-shadow-sm);
}

.tz-header a {
	color: inherit;
}

.tz-header .wp-block-site-title a {
	text-decoration: none;
	background: linear-gradient(135deg, #111827 0%, #2563EB 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.tz-header .wp-block-site-title a:hover {
	text-decoration: none;
	opacity: 0.9;
}

/* Navigation styling */
.wp-block-navigation .wp-block-navigation-item__content {
	padding: 0.45rem 0.75rem;
	border-radius: var(--tz-radius-sm);
	transition: all var(--tz-transition-fast);
	position: relative;
}

.wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	bottom: 4px;
	left: 50%;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, #2563EB, #10B981);
	border-radius: 2px;
	transition: all var(--tz-transition-base);
	transform: translateX(-50%);
}

.wp-block-navigation .wp-block-navigation-item__content:hover::after {
	width: calc(100% - 1.5rem);
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
	background: rgba(37, 99, 235, 0.06);
	color: #2563EB;
}

/* Category navigation */
.tz-catnav .wp-block-categories-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tz-catnav .wp-block-categories-list li {
	margin: 0;
}

.tz-catnav .wp-block-categories-list a {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.9rem;
	border-radius: var(--tz-radius-full);
	background: rgba(17, 24, 39, 0.03);
	border: 1px solid rgba(17, 24, 39, 0.06);
	color: rgba(17, 24, 39, 0.85);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.01em;
	transition: all var(--tz-transition-fast);
}

.tz-catnav .wp-block-categories-list a:hover {
	background: rgba(37, 99, 235, 0.08);
	border-color: rgba(37, 99, 235, 0.2);
	color: #2563EB;
	transform: translateY(-1px);
}

.tz-catnav .wp-block-categories-list li.current-cat > a,
.tz-catnav .wp-block-categories-list li.current-cat-parent > a {
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.08));
	border-color: rgba(37, 99, 235, 0.3);
	color: #1d4ed8;
	font-weight: 800;
}

/* Search styling */
.tz-nav-search .wp-block-search__inside-wrapper,
.tz-index-search .wp-block-search__inside-wrapper {
	gap: 0.45rem;
}

.tz-header .wp-block-search__input {
	background: rgba(243, 244, 246, 0.95);
	border: 1px solid rgba(17, 24, 39, 0.1);
	color: rgba(17, 24, 39, 0.92);
	transition: all var(--tz-transition-fast);
}

.tz-header .wp-block-search__input:focus {
	border-color: rgba(37, 99, 235, 0.4);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tz-header .wp-block-search__input::placeholder {
	color: rgba(17, 24, 39, 0.5);
}

.tz-index-search {
	max-width: 380px;
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.tz-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(3rem, 8vw, 5rem) 0;
}

.tz-hero::before {
	content: "";
	position: absolute;
	inset: -40% auto auto 50%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle at center, rgba(37, 99, 235, 0.25), rgba(37, 99, 235, 0) 70%);
	filter: blur(80px);
	opacity: 0.6;
	transform: translateX(-50%);
	animation: heroGlow 8s ease-in-out infinite alternate;
}

.tz-hero::after {
	content: "";
	position: absolute;
	top: 20%;
	right: 10%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle at center, rgba(16, 185, 129, 0.2), transparent 70%);
	filter: blur(60px);
	animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
	0% {
		transform: translateX(-50%) scale(1);
		opacity: 0.5;
	}
	100% {
		transform: translateX(-50%) scale(1.15);
		opacity: 0.7;
	}
}

.tz-hero > * {
	position: relative;
	z-index: 2;
}

.tz-hero h1,
.tz-hero .wp-block-heading {
	background: linear-gradient(135deg, #a5c6e4 0%, #374151 50%, #2563EB 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ===================================================================
   CARD STYLES
   =================================================================== */
.tz-card {
	box-shadow: var(--tz-shadow-soft);
	transition: all var(--tz-transition-base);
	position: relative;
	overflow: hidden;
}

.tz-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(16, 185, 129, 0.02));
	opacity: 0;
	transition: opacity var(--tz-transition-base);
	pointer-events: none;
	z-index: 0;
}

.tz-card:hover::before {
	opacity: 1;
}

.tz-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--tz-shadow-card-hover);
	border-color: rgba(37, 99, 235, 0.25) !important;
}

.tz-card > * {
	position: relative;
	z-index: 1;
}

/* Featured image hover effect */
.tz-card .wp-block-post-featured-image {
	overflow: hidden;
	border-radius: var(--tz-radius-md) !important;
}

.tz-card .wp-block-post-featured-image img {
	transition: transform var(--tz-transition-slow);
	will-change: transform;
}

.tz-card:hover .wp-block-post-featured-image img {
	transform: scale(1.05);
}

/* Card title styling */
.tz-card .wp-block-post-title a {
	text-decoration: none;
	background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	transition: all var(--tz-transition-fast);
}

.tz-card:hover .wp-block-post-title a {
	background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Badge styling */
.tz-badge a {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	border-radius: var(--tz-radius-full);
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.06));
	text-decoration: none;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	color: #2563EB;
	transition: all var(--tz-transition-fast);
}

.tz-badge a:hover {
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.1));
	transform: translateY(-1px);
}

/* Read more link */
.wp-block-read-more,
.read-more-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
	color: #2563EB;
	text-decoration: none;
	transition: all var(--tz-transition-fast);
}

.wp-block-read-more::after,
.read-more-link::after {
	content: "→";
	transition: transform var(--tz-transition-fast);
}

.wp-block-read-more:hover::after,
.read-more-link:hover::after {
	transform: translateX(4px);
}

.wp-block-read-more:hover,
.read-more-link:hover {
	color: #1d4ed8;
}

/* ===================================================================
   SINGLE POST STYLES
   =================================================================== */
.wp-block-post-content {
	font-size: 1.125rem;
	line-height: 1.8;
	color: rgba(17, 24, 39, 0.9);
}

.wp-block-post-content > *:first-child {
	margin-top: 0;
}

.wp-block-post-content a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	text-decoration-color: rgba(37, 99, 235, 0.4);
	transition: text-decoration-color var(--tz-transition-fast);
}

.wp-block-post-content a:hover {
	text-decoration-color: #2563EB;
}

/* Post navigation */
.wp-block-post-navigation-link a {
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	border-radius: var(--tz-radius-md);
	background: rgba(243, 244, 246, 0.8);
	border: 1px solid rgba(17, 24, 39, 0.08);
	text-decoration: none;
	transition: all var(--tz-transition-fast);
}

.wp-block-post-navigation-link a:hover {
	background: rgba(37, 99, 235, 0.08);
	border-color: rgba(37, 99, 235, 0.2);
	transform: translateY(-2px);
}

/* ===================================================================
   SIDEBAR & STICKY ELEMENTS
   =================================================================== */
@media (min-width: 960px) {
	.tz-sticky {
		position: sticky;
		top: 6rem;
	}
}

/* Table of Contents */
.tz-aside .wp-block-table-of-contents ol,
.tz-aside .wp-block-table-of-contents ul {
	margin: 0;
	padding-left: 1.1rem;
}

.tz-aside .wp-block-table-of-contents li {
	margin-bottom: 0.5rem;
}

.tz-aside .wp-block-table-of-contents a {
	color: rgba(17, 24, 39, 0.75);
	text-decoration: none;
	transition: all var(--tz-transition-fast);
	display: inline-block;
	padding: 0.2rem 0;
}

.tz-aside .wp-block-table-of-contents a:hover {
	color: #2563EB;
	transform: translateX(4px);
}

.tz-toc {
	background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
	border-radius: var(--tz-radius-lg);
	padding: 1.5rem;
	border: 1px solid rgba(17, 24, 39, 0.06);
	box-shadow: var(--tz-shadow-sm);
}

.tz-toc-title {
	font-weight: 800;
	font-size: 0.9rem;
	margin-bottom: 0.75rem;
	color: rgba(17, 24, 39, 0.6);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* ===================================================================
   CODE BLOCKS
   =================================================================== */
pre.wp-block-code {
	background: linear-gradient(145deg, #1a1f2e 0%, #0f1219 100%);
	border-radius: var(--tz-radius-lg);
	padding: 1.75rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: var(--tz-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	overflow-x: auto;
}

.wp-block-code code {
	font-family: var(--wp--preset--font-family--monospace);
	color: #e5e7eb;
	font-size: 0.9rem;
	line-height: 1.7;
}

/* ===================================================================
   SCROLL TO TOP BUTTON
   =================================================================== */
.tz-scroll-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 52px;
	height: 52px;
	background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all var(--tz-transition-bounce);
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
	z-index: var(--tz-z-top);
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px) scale(0.9);
	border: none;
}

.tz-scroll-top.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.tz-scroll-top:hover {
	transform: translateY(-4px) scale(1.05);
	box-shadow: 0 14px 36px rgba(37, 99, 235, 0.45);
}

.tz-scroll-top:active {
	transform: translateY(-2px) scale(0.98);
}

.tz-scroll-top svg {
	width: 22px;
	height: 22px;
	fill: white;
	transition: transform var(--tz-transition-fast);
}

.tz-scroll-top:hover svg {
	transform: translateY(-2px);
}

/* ===================================================================
   READING PROGRESS BAR
   =================================================================== */
.tz-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: rgba(243, 244, 246, 0.4);
	z-index: calc(var(--tz-z-top) + 1);
}

.tz-reading-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #2563EB 0%, #10B981 50%, #2563EB 100%);
	background-size: 200% 100%;
	width: 0%;
	transition: width 80ms ease-out;
	box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
	animation: progressShine 3s ease-in-out infinite;
}

@keyframes progressShine {
	0%, 100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}

/* ===================================================================
   BREADCRUMBS
   =================================================================== */
.tz-breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: rgba(17, 24, 39, 0.6);
	margin-bottom: 1.5rem;
	padding: 0.75rem 1rem;
	background: rgba(243, 244, 246, 0.6);
	border-radius: var(--tz-radius-md);
}

.tz-breadcrumbs a {
	color: rgba(17, 24, 39, 0.7);
	text-decoration: none;
	font-weight: 600;
	transition: color var(--tz-transition-fast);
}

.tz-breadcrumbs a:hover {
	color: #2563EB;
}

.tz-breadcrumbs .separator {
	color: rgba(17, 24, 39, 0.3);
	user-select: none;
	font-size: 0.8rem;
}

.tz-breadcrumbs .current {
	color: rgba(17, 24, 39, 0.9);
	font-weight: 700;
}

/* ===================================================================
   SOCIAL SHARE BUTTONS
   =================================================================== */
.tz-social-share {
	display: flex;
	gap: 0.6rem;
	align-items: center;
	flex-wrap: wrap;
	padding: 1.25rem;
	background: rgba(243, 244, 246, 0.6);
	border-radius: var(--tz-radius-lg);
	border: 1px solid rgba(17, 24, 39, 0.06);
}

.tz-social-share-label {
	font-weight: 700;
	font-size: 0.85rem;
	color: rgba(17, 24, 39, 0.6);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-right: 0.5rem;
}

.tz-social-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--tz-radius-md);
	text-decoration: none;
	transition: all var(--tz-transition-base);
	position: relative;
	overflow: hidden;
}

.tz-social-share-btn:hover {
	transform: translateY(-3px);
}

.tz-social-share-btn svg {
	width: 20px;
	height: 20px;
	position: relative;
	z-index: 1;
	fill: currentColor;
	transition: transform var(--tz-transition-fast);
}

.tz-social-share-btn:hover svg {
	transform: scale(1.1);
}

.tz-share-twitter {
	background: rgba(29, 161, 242, 0.1);
	color: #1DA1F2;
}

.tz-share-twitter:hover {
	background: rgba(29, 161, 242, 0.2);
	box-shadow: 0 6px 20px rgba(29, 161, 242, 0.25);
}

.tz-share-linkedin {
	background: rgba(0, 119, 181, 0.1);
	color: #0077B5;
}

.tz-share-linkedin:hover {
	background: rgba(0, 119, 181, 0.2);
	box-shadow: 0 6px 20px rgba(0, 119, 181, 0.25);
}

.tz-share-facebook {
	background: rgba(24, 119, 242, 0.1);
	color: #1877F2;
}

.tz-share-facebook:hover {
	background: rgba(24, 119, 242, 0.2);
	box-shadow: 0 6px 20px rgba(24, 119, 242, 0.25);
}

.tz-share-email {
	background: rgba(107, 114, 128, 0.1);
	color: #6B7280;
}

.tz-share-email:hover {
	background: rgba(107, 114, 128, 0.2);
	box-shadow: 0 6px 20px rgba(107, 114, 128, 0.2);
}

.tz-share-copy {
	background: rgba(16, 185, 129, 0.1);
	color: #10B981;
}

.tz-share-copy:hover {
	background: rgba(16, 185, 129, 0.2);
	box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.tz-share-copy.copied {
	background: rgba(16, 185, 129, 0.25);
	animation: copiedPulse 500ms ease;
}

@keyframes copiedPulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

/* ===================================================================
   RELATED POSTS
   =================================================================== */
.tz-related-posts {
	background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.95) 100%);
	border-radius: var(--tz-radius-xl);
	padding: 2.5rem;
	border: 1px solid rgba(17, 24, 39, 0.06);
	box-shadow: var(--tz-shadow-sm);
}

.tz-related-posts-title {
	font-size: 1.4rem;
	font-weight: 800;
	margin-bottom: 1.5rem;
	color: rgba(17, 24, 39, 0.95);
}

.tz-related-post-item {
	display: flex;
	gap: 1.25rem;
	padding: 1.25rem;
	background: white;
	border-radius: var(--tz-radius-lg);
	border: 1px solid rgba(17, 24, 39, 0.05);
	transition: all var(--tz-transition-base);
	text-decoration: none;
	color: inherit;
}

.tz-related-post-item:hover {
	transform: translateX(8px);
	border-color: rgba(37, 99, 235, 0.2);
	box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.tz-related-post-thumbnail {
	width: 110px;
	height: 110px;
	border-radius: var(--tz-radius-md);
	object-fit: cover;
	flex-shrink: 0;
	transition: transform var(--tz-transition-base);
}

.tz-related-post-item:hover .tz-related-post-thumbnail {
	transform: scale(1.03);
}

.tz-related-post-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	justify-content: center;
}

.tz-related-post-title {
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.35;
	color: rgba(17, 24, 39, 0.95);
	transition: color var(--tz-transition-fast);
}

.tz-related-post-item:hover .tz-related-post-title {
	color: #2563EB;
}

.tz-related-post-date {
	font-size: 0.85rem;
	color: rgba(107, 114, 128, 0.9);
	font-weight: 600;
}

/* ===================================================================
   AUTHOR BOX
   =================================================================== */
.tz-author-box {
	display: flex;
	gap: 1.5rem;
	padding: 2rem;
	background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
	border-radius: var(--tz-radius-xl);
	border: 1px solid rgba(17, 24, 39, 0.06);
	align-items: center;
	box-shadow: var(--tz-shadow-sm);
}

.tz-author-avatar {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
	border: 4px solid white;
	transition: transform var(--tz-transition-base);
}

.tz-author-box:hover .tz-author-avatar {
	transform: scale(1.05);
}

.tz-author-info {
	flex: 1;
}

.tz-author-label {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(17, 24, 39, 0.5);
	margin-bottom: 0.25rem;
}

.tz-author-name {
	font-weight: 800;
	font-size: 1.25rem;
	margin-bottom: 0.35rem;
	color: rgba(17, 24, 39, 0.95);
}

.tz-author-bio {
	font-size: 0.98rem;
	color: rgba(107, 114, 128, 0.95);
	line-height: 1.65;
}

/* ===================================================================
   TAGS STYLING
   =================================================================== */
.tz-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tz-tag,
.tz-tags a {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 1rem;
	background: rgba(243, 244, 246, 0.9);
	border: 1px solid rgba(17, 24, 39, 0.06);
	border-radius: var(--tz-radius-full);
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(17, 24, 39, 0.75);
	text-decoration: none;
	transition: all var(--tz-transition-fast);
}

.tz-tag:hover,
.tz-tags a:hover {
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.06));
	border-color: rgba(37, 99, 235, 0.25);
	color: #2563EB;
	transform: translateY(-2px);
}

/* ===================================================================
   NEWSLETTER CTA
   =================================================================== */
.tz-newsletter-cta {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
	border-radius: var(--tz-radius-xl);
	padding: clamp(2.5rem, 5vw, 4rem);
	position: relative;
	overflow: hidden;
}

.tz-newsletter-cta::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.15), transparent 50%),
	            radial-gradient(circle at 70% 70%, rgba(16, 185, 129, 0.1), transparent 50%);
	animation: newsletterGlow 15s ease-in-out infinite;
}

@keyframes newsletterGlow {
	0%, 100% { transform: rotate(0deg); }
	50% { transform: rotate(180deg); }
}

.tz-newsletter-cta > * {
	position: relative;
	z-index: 2;
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.wp-block-button__link {
	transition: all var(--tz-transition-base);
	box-shadow: var(--tz-shadow-xs);
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.wp-block-button__link:active {
	transform: translateY(0);
}

/* Primary button glow effect */
.wp-block-button__link.has-primary-background-color {
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.wp-block-button__link.has-primary-background-color:hover {
	box-shadow: 0 8px 28px rgba(37, 99, 235, 0.35);
}

/* ===================================================================
   FOOTER STYLES
   =================================================================== */
.tz-footer {
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.tz-footer .wp-block-social-links a {
	transition: all var(--tz-transition-fast);
}

.tz-footer .wp-block-social-links a:hover {
	transform: translateY(-3px);
}

/* ===================================================================
   DARK MODE STYLES
   =================================================================== */
body.dark-mode {
	background: linear-gradient(180deg, #0B1220 0%, #111827 100%);
	color: #E5E7EB;
}

body.dark-mode .tz-header {
	background-color: rgba(17, 24, 39, 0.95) !important;
	border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .tz-card {
	background: linear-gradient(145deg, #1F2937 0%, #1a2234 100%);
	border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .tz-card:hover {
	border-color: rgba(37, 99, 235, 0.4) !important;
}

body.dark-mode .tz-catnav .wp-block-categories-list a {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .tz-toc,
body.dark-mode .tz-related-posts,
body.dark-mode .tz-author-box {
	background: linear-gradient(135deg, #1F2937 0%, #1a2234 100%);
	border-color: rgba(255, 255, 255, 0.08);
}

/* Dark mode toggle */
.tz-dark-mode-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: rgba(17, 24, 39, 0.05);
	border-radius: var(--tz-radius-md);
	border: 1px solid rgba(17, 24, 39, 0.08);
	cursor: pointer;
	transition: all var(--tz-transition-fast);
}

.tz-dark-mode-toggle:hover {
	background: rgba(37, 99, 235, 0.1);
	border-color: rgba(37, 99, 235, 0.25);
}

.tz-dark-mode-toggle svg {
	width: 20px;
	height: 20px;
	fill: rgba(17, 24, 39, 0.75);
	transition: all var(--tz-transition-fast);
}

/* ===================================================================
   ANIMATIONS & TRANSITIONS
   =================================================================== */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(25px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tz-fade-in-up {
	animation: fadeInUp 500ms ease-out forwards;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.tz-fade-in {
	animation: fadeIn 400ms ease-out forwards;
}

/* Staggered card animation */
.wp-block-post-template > *:nth-child(1) { animation-delay: 0ms; }
.wp-block-post-template > *:nth-child(2) { animation-delay: 80ms; }
.wp-block-post-template > *:nth-child(3) { animation-delay: 160ms; }
.wp-block-post-template > *:nth-child(4) { animation-delay: 240ms; }
.wp-block-post-template > *:nth-child(5) { animation-delay: 320ms; }
.wp-block-post-template > *:nth-child(6) { animation-delay: 400ms; }

/* ===================================================================
   PAGINATION
   =================================================================== */
.wp-block-query-pagination {
	margin-top: 2.5rem;
	gap: 0.75rem;
}

.wp-block-query-pagination-numbers {
	display: flex;
	gap: 0.35rem;
}

.wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.75rem;
	background: rgba(243, 244, 246, 0.9);
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: var(--tz-radius-md);
	font-weight: 600;
	text-decoration: none;
	color: rgba(17, 24, 39, 0.75);
	transition: all var(--tz-transition-fast);
}

.wp-block-query-pagination-numbers .page-numbers:hover {
	background: rgba(37, 99, 235, 0.1);
	border-color: rgba(37, 99, 235, 0.25);
	color: #2563EB;
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background: linear-gradient(135deg, #2563EB, #1d4ed8);
	border-color: transparent;
	color: white;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ===================================================================
   COMMENTS
   =================================================================== */
.wp-block-comments {
	background: rgba(248, 250, 252, 0.6);
	border-radius: var(--tz-radius-xl);
	padding: 2rem;
	border: 1px solid rgba(17, 24, 39, 0.06);
}

.wp-block-comment-template {
	list-style: none;
	padding: 0;
}

.wp-block-avatar img {
	border-radius: 50%;
	box-shadow: var(--tz-shadow-sm);
}

/* ===================================================================
   RESPONSIVE STYLES
   =================================================================== */
@media (max-width: 1024px) {
	.tz-hero::before {
		width: 350px;
		height: 350px;
	}

	.tz-hero::after {
		width: 200px;
		height: 200px;
	}
}

@media (max-width: 900px) {
	.tz-hero::before {
		inset: -10% auto auto 60%;
		width: 280px;
		height: 280px;
	}

	.tz-hero::after {
		display: none;
	}
}

@media (max-width: 780px) {
	.tz-catnav .wp-block-categories-list {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 0.5rem;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.tz-catnav .wp-block-categories-list::-webkit-scrollbar {
		display: none;
	}

	.tz-catnav .wp-block-categories-list li {
		flex: 0 0 auto;
	}

	.tz-index-search {
		width: 100%;
		max-width: 100%;
	}

	.tz-header .wp-block-search {
		width: 100%;
	}

	.tz-social-share {
		justify-content: center;
	}
}

@media (max-width: 640px) {
	.tz-scroll-top {
		bottom: 1.25rem;
		right: 1.25rem;
		width: 48px;
		height: 48px;
	}

	.tz-related-post-item {
		flex-direction: column;
		gap: 1rem;
	}

	.tz-related-post-thumbnail {
		width: 100%;
		height: 160px;
	}

	.tz-author-box {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.tz-author-avatar {
		width: 80px;
		height: 80px;
	}

	.wp-block-post-content {
		font-size: 1.05rem;
	}

	.tz-newsletter-cta {
		padding: 2rem 1.5rem;
	}
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */
@media print {
	.tz-header,
	.tz-footer,
	.tz-scroll-top,
	.tz-reading-progress,
	.tz-social-share,
	.tz-newsletter-cta,
	.wp-block-navigation,
	.wp-block-search {
		display: none !important;
	}

	body {
		background: white !important;
		color: black !important;
	}

	.wp-block-post-content {
		max-width: 100% !important;
	}

	a {
		text-decoration: underline !important;
		color: #2563EB !important;
	}

	a::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
	}
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	html {
		scroll-behavior: auto;
	}
}
