/*
Theme Name: Zodiac
Theme URI: https://example.com/zodiac
Author: Vladimir
Author URI: https://example.com
Description: Mistična zodiac blog tema — zvezdano nebo, zlatni akcenti i potpuno podesive boje kroz Customizer.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zodiac
Tags: blog, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   CSS varijable — vrednosti se prepisuju iz Customizer-a (inline style)
   ========================================================================== */
:root {
	--zdc-bg: #1e1932;
	--zdc-surface: #2a2344;
	--zdc-surface-2: #241e3a;
	--zdc-text: #efe8db;
	--zdc-text-muted: #a99cc4;
	--zdc-heading: #f4edde;
	--zdc-accent: #d4af6e;
	--zdc-accent-2: #b9a7d8;
	--zdc-link: #d4af6e;
	--zdc-link-hover: #e8cf9a;
	--zdc-border: #3d3560;
	--zdc-header-bg: #171226;
	--zdc-header-text: #efe8db;
	--zdc-footer-bg: #171226;
	--zdc-footer-text: #a99cc4;
	--zdc-button-bg: #d4af6e;
	--zdc-button-text: #1e1932;
	--zdc-radius: 14px;
	--zdc-container: 1200px;
	--zdc-content: 760px;
	--zdc-font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--zdc-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   Reset / osnovno
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--zdc-font-heading);
	color: var(--zdc-heading);
	line-height: 1.25;
	margin: 0 0 0.6em;
	font-weight: 600;
	letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }

a { color: var(--zdc-link); text-decoration: none; transition: color 0.2s ease; }
a:hover, a:focus { color: var(--zdc-link-hover); }

blockquote {
	margin: 1.5em 0;
	padding: 0.8em 1.4em;
	border-left: 3px solid var(--zdc-accent);
	background: var(--zdc-surface-2);
	border-radius: 0 var(--zdc-radius) var(--zdc-radius) 0;
	font-style: italic;
	color: var(--zdc-text-muted);
}

pre, code {
	background: var(--zdc-surface-2);
	border-radius: 6px;
	font-size: 0.9em;
}
code { padding: 0.15em 0.4em; }
pre { padding: 1em; overflow-x: auto; }

table { border-collapse: collapse; width: 100%; margin: 1.5em 0; }
th, td { border: 1px solid var(--zdc-border); padding: 0.6em 0.9em; text-align: left; }
th { background: var(--zdc-surface-2); }

hr {
	border: none;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--zdc-accent), transparent);
	margin: 2.5em 0;
}

::selection { background: var(--zdc-accent); color: var(--zdc-button-text); }

/* ==========================================================================
   Zvezdano nebo (opciono, toggle u Customizer-u)
   ========================================================================== */
body.zdc-stars::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image:
		radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.55) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 28% 68%, rgba(232,207,154,0.5) 50%, transparent 51%),
		radial-gradient(1px 1px at 44% 12%, rgba(255,255,255,0.4) 50%, transparent 51%),
		radial-gradient(2px 2px at 58% 48%, rgba(232,207,154,0.45) 50%, transparent 51%),
		radial-gradient(1px 1px at 66% 82%, rgba(255,255,255,0.5) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 78% 28%, rgba(255,255,255,0.35) 50%, transparent 51%),
		radial-gradient(1px 1px at 88% 62%, rgba(232,207,154,0.5) 50%, transparent 51%),
		radial-gradient(1px 1px at 8% 88%, rgba(255,255,255,0.4) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 94% 8%, rgba(255,255,255,0.45) 50%, transparent 51%),
		radial-gradient(1px 1px at 36% 92%, rgba(232,207,154,0.4) 50%, transparent 51%);
	animation: zdc-twinkle 6s ease-in-out infinite alternate;
}

@keyframes zdc-twinkle {
	from { opacity: 0.55; }
	to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	body.zdc-stars::before { animation: none; }
}

body > * { position: relative; z-index: 1; }

/* ==========================================================================
   Layout
   ========================================================================== */
.zdc-container {
	max-width: var(--zdc-container);
	margin: 0 auto;
	padding: 0 24px;
}

.site-main { padding: 48px 0 72px; }

.zdc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
}

body.zdc-has-sidebar .zdc-layout {
	grid-template-columns: minmax(0, 1fr) 320px;
}

@media (max-width: 960px) {
	body.zdc-has-sidebar .zdc-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	background: var(--zdc-header-bg);
	color: var(--zdc-header-text);
	border-bottom: 1px solid var(--zdc-border);
	position: relative;
}

body.zdc-sticky-header .site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.zdc-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 84px;
	padding: 10px 0;
}

.site-branding { display: flex; align-items: center; gap: 16px; min-width: 0; }

.custom-logo-link img,
.zdc-logo img,
.zdc-default-logo img {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--zdc-accent);
	box-shadow: 0 0 18px rgba(212, 175, 110, 0.35);
	display: block;
}

.site-title {
	font-family: var(--zdc-font-heading);
	font-size: 1.7rem;
	margin: 0;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.site-title a { color: var(--zdc-header-text); }
.site-title a:hover { color: var(--zdc-accent); }

.site-description {
	margin: 2px 0 0;
	font-size: 0.82rem;
	color: var(--zdc-text-muted);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Navigacija */
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap;
}

.main-navigation a {
	display: block;
	padding: 10px 16px;
	color: var(--zdc-header-text);
	font-size: 0.92rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: 8px;
	transition: color 0.2s ease, background 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: var(--zdc-accent);
	background: rgba(255, 255, 255, 0.05);
}

/* Padajući meni */
.main-navigation ul ul {
	display: none;
	position: absolute;
	background: var(--zdc-header-bg);
	border: 1px solid var(--zdc-border);
	border-radius: 10px;
	padding: 6px;
	min-width: 200px;
	flex-direction: column;
	gap: 2px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	z-index: 50;
}
.main-navigation li { position: relative; }
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul { display: flex; }
.main-navigation ul ul a { text-transform: none; letter-spacing: 0; }

@media (max-width: 820px) {
	.main-navigation { display: none; }
}

/* Side menu (off-canvas) */
.zdc-side-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	background: none;
	border: 1px solid var(--zdc-border);
	border-radius: 8px;
	color: var(--zdc-header-text);
	line-height: 1;
	width: 42px;
	height: 42px;
	padding: 0;
	cursor: pointer;
	flex-shrink: 0;
	transition: border-color 0.2s ease, color 0.2s ease;
}
body.zdc-side-enabled .zdc-side-toggle { display: inline-flex; }
@media (max-width: 820px) {
	.zdc-side-toggle { display: inline-flex; }
}
.zdc-side-toggle:hover {
	border-color: var(--zdc-accent);
	color: var(--zdc-accent);
	filter: none;
	transform: none;
	background: none;
}

/* Primary menu clone inside the panel: mobile only */
.zdc-side-primary { display: none; }
@media (max-width: 820px) {
	.zdc-side-primary { display: block; }
}

.zdc-side-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 7, 20, 0.55);
	backdrop-filter: blur(2px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 998;
}
body.zdc-side-open .zdc-side-overlay { opacity: 1; pointer-events: auto; }

.zdc-side-menu {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 340px;
	max-width: 88vw;
	background: var(--zdc-header-bg);
	border-left: 1px solid var(--zdc-border);
	box-shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
	z-index: 999;
	transform: translateX(102%);
	transition: transform 0.3s ease;
	overflow-y: auto;
	padding: 64px 28px 32px;
}
body.zdc-side-open .zdc-side-menu { transform: none; }

.zdc-side-close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 1px solid var(--zdc-border);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	padding: 0;
	color: var(--zdc-header-text);
	cursor: pointer;
}
.zdc-side-close:hover { border-color: var(--zdc-accent); color: var(--zdc-accent); filter: none; transform: none; background: none; }

.zdc-side-nav ul {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}
.zdc-side-nav a {
	display: block;
	padding: 12px 4px;
	color: var(--zdc-header-text);
	font-family: var(--zdc-font-heading);
	font-size: 1.25rem;
	border-bottom: 1px solid var(--zdc-border);
}
.zdc-side-nav a:hover { color: var(--zdc-accent); padding-left: 10px; transition: all 0.2s ease; }
.zdc-side-nav ul ul { margin: 0 0 0 18px; }
.zdc-side-nav ul ul a { font-size: 1.05rem; font-family: var(--zdc-font-body); }

.zdc-side-widgets .widget { margin-bottom: 26px; }
.zdc-side-widgets .widget-title {
	font-size: 1.05rem;
	color: var(--zdc-accent);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 12px;
}
.zdc-side-widgets .widget ul { list-style: none; margin: 0; padding: 0; }
.zdc-side-widgets .widget li { padding: 6px 0; border-bottom: 1px solid var(--zdc-border); font-size: 0.92rem; }
.zdc-side-widgets .widget a { color: var(--zdc-text-muted); }
.zdc-side-widgets .widget a:hover { color: var(--zdc-accent); }

@media (prefers-reduced-motion: reduce) {
	.zdc-side-menu, .zdc-side-overlay { transition: none; }
}

/* Reading progress bar */
.zdc-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	background: linear-gradient(90deg, var(--zdc-accent), var(--zdc-accent-2));
	z-index: 1001;
	pointer-events: none;
}

/* Back to top */
.zdc-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border-radius: 50%;
	z-index: 900;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
	opacity: 0.92;
}
.zdc-top[hidden] { display: none; }

/* Zlatna linija ispod headera */
.zdc-header-ornament {
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--zdc-accent) 30%, var(--zdc-accent-2) 50%, var(--zdc-accent) 70%, transparent);
	opacity: 0.8;
}

/* ==========================================================================
   Kartice članaka (arhiva / naslovna)
   ========================================================================== */
.zdc-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
}

body.zdc-list-layout .zdc-posts-grid { grid-template-columns: 1fr; }

.zdc-card {
	position: relative;
	background: var(--zdc-surface);
	border: 1px solid var(--zdc-border);
	border-radius: var(--zdc-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Ceo card je klikabilan: link naslova se razvlači preko cele kartice,
   a unutrašnji linkovi (kategorija, autor, read more) ostaju iznad. */
.zdc-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.zdc-card .zdc-cat-badge,
.zdc-card .zdc-read-more,
.zdc-card .zdc-meta a {
	position: relative;
	z-index: 2;
}

.zdc-card:hover {
	transform: translateY(-4px);
	border-color: var(--zdc-accent);
	box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 110, 0.15);
}

.zdc-card-thumb { display: block; overflow: hidden; aspect-ratio: 16 / 9; }
.zdc-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
	display: block;
}
.zdc-card:hover .zdc-card-thumb img { transform: scale(1.05); }

.zdc-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }

.zdc-card-title { font-size: 1.45rem; margin-bottom: 0.4em; }
.zdc-card-title a { color: var(--zdc-heading); }
.zdc-card-title a:hover { color: var(--zdc-accent); }

.zdc-card-excerpt { color: var(--zdc-text-muted); font-size: 0.95rem; flex: 1; }

.zdc-read-more {
	display: inline-block;
	margin-top: 14px;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
	padding-bottom: 2px;
	align-self: flex-start;
}
.zdc-read-more:hover { border-bottom-color: var(--zdc-accent); }

/* Kategorija badge */
.zdc-cat-badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--zdc-accent);
	border: 1px solid var(--zdc-accent);
	border-radius: 999px;
	padding: 3px 12px;
	margin-bottom: 12px;
	align-self: flex-start;
}
a.zdc-cat-badge:hover { background: var(--zdc-accent); color: var(--zdc-button-text); }

/* ==========================================================================
   Meta podaci (autor, datum, pregledi, vreme čitanja)
   ========================================================================== */
.zdc-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	font-size: 0.83rem;
	color: var(--zdc-text-muted);
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--zdc-border);
}

.zdc-meta-item { display: inline-flex; align-items: center; gap: 7px; }
.zdc-meta-item svg { width: 15px; height: 15px; fill: none; stroke: var(--zdc-accent); stroke-width: 1.8; flex-shrink: 0; }
.zdc-meta-item a { color: inherit; }
.zdc-meta-item a:hover { color: var(--zdc-accent); }

.zdc-avatar { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--zdc-accent); }

/* ==========================================================================
   Pojedinačni članak
   ========================================================================== */
.zdc-single { max-width: var(--zdc-content); margin: 0 auto; }

.zdc-single-header { text-align: center; margin-bottom: 36px; }
.zdc-single-header .zdc-cat-badge { align-self: center; }
.zdc-single-header .zdc-meta { justify-content: center; border-top: none; }

.zdc-single-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }

.zdc-single-thumb { margin: 0 0 36px; }
.zdc-single-thumb img {
	border-radius: var(--zdc-radius);
	width: 100%;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.zdc-content { font-size: 1.05rem; }
.zdc-content > *:first-child { margin-top: 0; }
.zdc-content a { text-decoration: underline; text-underline-offset: 3px; }
.zdc-content img { border-radius: calc(var(--zdc-radius) / 2); }

/* Ornament razdelnik: linija sa malim rombom (ili tekst iz Customizer-a) */
.zdc-divider {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 44px 0 28px;
	user-select: none;
}
.zdc-divider::before,
.zdc-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--zdc-border));
}
.zdc-divider::after {
	background: linear-gradient(90deg, var(--zdc-border), transparent);
}
.zdc-divider-diamond {
	width: 7px;
	height: 7px;
	transform: rotate(45deg);
	border: 1px solid var(--zdc-accent);
	flex-shrink: 0;
}
.zdc-divider-text {
	color: var(--zdc-accent);
	font-size: 0.9rem;
	letter-spacing: 0.3em;
	padding-left: 0.3em;
	text-transform: uppercase;
	flex-shrink: 0;
}

/* Tagovi */
.zdc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.zdc-tags a {
	font-size: 0.78rem;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--zdc-surface-2);
	border: 1px solid var(--zdc-border);
	color: var(--zdc-text-muted);
}
.zdc-tags a:hover { border-color: var(--zdc-accent); color: var(--zdc-accent); }

/* Autor kutija */
.zdc-author-box {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	background: var(--zdc-surface);
	border: 1px solid var(--zdc-border);
	border-radius: var(--zdc-radius);
	padding: 26px;
	margin-top: 40px;
}
.zdc-author-box img { border-radius: 50%; border: 2px solid var(--zdc-accent); flex-shrink: 0; }
.zdc-author-box h3 { margin-bottom: 0.3em; font-size: 1.3rem; }
.zdc-author-box p { margin: 0; color: var(--zdc-text-muted); font-size: 0.95rem; }

/* Navigacija prethodni/sledeći */
.zdc-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 40px;
}
.zdc-post-nav a {
	display: block;
	background: var(--zdc-surface);
	border: 1px solid var(--zdc-border);
	border-radius: var(--zdc-radius);
	padding: 18px 22px;
	transition: border-color 0.2s ease;
}
.zdc-post-nav a:hover { border-color: var(--zdc-accent); }
.zdc-post-nav .zdc-nav-label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--zdc-text-muted);
	margin-bottom: 4px;
}
.zdc-post-nav .zdc-nav-title { color: var(--zdc-heading); font-family: var(--zdc-font-heading); font-size: 1.1rem; }
.zdc-post-nav .zdc-nav-next { text-align: right; }
@media (max-width: 640px) { .zdc-post-nav { grid-template-columns: 1fr; } }

/* ==========================================================================
   Sidebar / widgeti
   ========================================================================== */
.zdc-sidebar .widget {
	background: var(--zdc-surface);
	border: 1px solid var(--zdc-border);
	border-radius: var(--zdc-radius);
	padding: 24px;
	margin-bottom: 28px;
}
.zdc-sidebar .widget-title {
	font-size: 1.2rem;
	padding-bottom: 12px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--zdc-border);
	position: relative;
}
.zdc-sidebar .widget-title::after {
	content: "";
	position: absolute;
	left: 0; bottom: -1px;
	width: 48px; height: 1px;
	background: var(--zdc-accent);
}
.zdc-sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.zdc-sidebar .widget li { padding: 7px 0; border-bottom: 1px solid var(--zdc-border); font-size: 0.93rem; }
.zdc-sidebar .widget li:last-child { border-bottom: none; }
.zdc-sidebar .widget a { color: var(--zdc-text-muted); }
.zdc-sidebar .widget a:hover { color: var(--zdc-accent); }

/* ==========================================================================
   Forme i dugmad
   ========================================================================== */
input[type="text"], input[type="email"], input[type="url"],
input[type="search"], input[type="password"], textarea, select {
	width: 100%;
	background: var(--zdc-surface-2);
	border: 1px solid var(--zdc-border);
	border-radius: 8px;
	color: var(--zdc-text);
	padding: 11px 14px;
	font-family: inherit;
	font-size: 0.95rem;
}
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--zdc-accent);
	box-shadow: 0 0 0 3px rgba(212, 175, 110, 0.18);
}

button, input[type="submit"], .zdc-button, .wp-block-button__link {
	display: inline-block;
	background: var(--zdc-button-bg);
	color: var(--zdc-button-text);
	border: none;
	border-radius: 8px;
	padding: 12px 26px;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter 0.2s ease, transform 0.15s ease;
}
button:hover, input[type="submit"]:hover, .zdc-button:hover { filter: brightness(1.12); transform: translateY(-1px); }

.zdc-search-form { display: flex; gap: 10px; }
.zdc-search-form input[type="search"] { flex: 1; }
.zdc-search-form button { padding: 11px 18px; }

/* ==========================================================================
   Paginacija
   ========================================================================== */
.zdc-pagination { margin-top: 48px; text-align: center; }
.zdc-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	margin: 0 3px;
	border: 1px solid var(--zdc-border);
	border-radius: 10px;
	color: var(--zdc-text-muted);
	font-size: 0.9rem;
}
.zdc-pagination .page-numbers.current,
.zdc-pagination .page-numbers:hover {
	background: var(--zdc-accent);
	border-color: var(--zdc-accent);
	color: var(--zdc-button-text);
}

/* ==========================================================================
   Naslov arhive / stranice
   ========================================================================== */
.zdc-page-header { text-align: center; margin-bottom: 44px; }
.zdc-page-header .zdc-page-title { font-size: 2.4rem; margin-bottom: 0.2em; }
.zdc-page-header .zdc-page-desc { color: var(--zdc-text-muted); max-width: 640px; margin: 0 auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--zdc-footer-bg);
	color: var(--zdc-footer-text);
	border-top: 1px solid var(--zdc-border);
	margin-top: 40px;
}
.zdc-footer-ornament {
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--zdc-accent) 30%, var(--zdc-accent-2) 50%, var(--zdc-accent) 70%, transparent);
	opacity: 0.8;
}
.zdc-footer-logo {
	text-align: center;
	padding: 40px 0 0;
}
.zdc-footer-logo img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--zdc-accent);
	box-shadow: 0 0 22px rgba(212, 175, 110, 0.3);
	transition: transform 0.3s ease;
}
.zdc-footer-logo a:hover img { transform: rotate(8deg) scale(1.05); }

.zdc-footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 40px;
	padding: 52px 0 36px;
}
.zdc-footer-widgets .widget-title {
	font-size: 1.1rem;
	color: var(--zdc-heading);
	margin-bottom: 16px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.zdc-footer-widgets .widget ul { list-style: none; margin: 0; padding: 0; }
.zdc-footer-widgets .widget li { padding: 5px 0; }
.zdc-footer-widgets a { color: var(--zdc-footer-text); }
.zdc-footer-widgets a:hover { color: var(--zdc-accent); }

.zdc-footer-bottom {
	border-top: 1px solid var(--zdc-border);
	padding: 22px 0;
	text-align: center;
	font-size: 0.85rem;
}
.zdc-footer-bottom a { color: var(--zdc-accent); }

.zdc-footer-menu {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 22px;
}
.zdc-footer-menu a { color: var(--zdc-footer-text); }
.zdc-footer-menu a:hover { color: var(--zdc-accent); }
.zdc-copyright { margin: 0; }

/* ==========================================================================
   Razno
   ========================================================================== */
.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;
}
.screen-reader-text:focus {
	background-color: var(--zdc-surface);
	clip: auto !important; clip-path: none;
	color: var(--zdc-accent);
	display: block; font-size: 0.9rem; font-weight: 600;
	height: auto; left: 5px; top: 5px; width: auto;
	padding: 15px 23px 14px; z-index: 100000;
}

.zdc-404 { text-align: center; padding: 60px 0; }
.zdc-404 .zdc-404-code {
	font-family: var(--zdc-font-heading);
	font-size: clamp(4rem, 3rem + 5vw, 6.5rem);
	line-height: 1;
	color: var(--zdc-accent);
	letter-spacing: 0.08em;
}
.zdc-404 h1 { margin: 0.3em 0; }
.zdc-404 p { color: var(--zdc-text-muted); max-width: 480px; margin: 0 auto 28px; }
.zdc-404 .zdc-search-form { max-width: 420px; margin: 0 auto; }

.sticky { border-color: var(--zdc-accent); }

.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-block-image figcaption {
	color: var(--zdc-text-muted);
	font-size: 0.85rem;
	text-align: center;
	margin-top: 8px;
}

.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto; }

/* Stranice (bez posta metadata) */
.zdc-page-content { max-width: var(--zdc-content); margin: 0 auto; }

/* ==========================================================================
   Social ikonice
   ========================================================================== */
.zdc-social { display: flex; align-items: center; gap: 4px; }
.zdc-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: var(--zdc-header-text);
	transition: color 0.2s ease, background 0.2s ease;
}
.zdc-social-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zdc-social-link:hover { color: var(--zdc-accent); background: rgba(255, 255, 255, 0.06); }

.zdc-social-footer { justify-content: center; margin-bottom: 14px; }
.zdc-social-footer .zdc-social-link { color: var(--zdc-footer-text); }
.zdc-social-footer .zdc-social-link:hover { color: var(--zdc-accent); }

@media (max-width: 960px) {
	.zdc-social-header { display: none; }
}

/* ==========================================================================
   Zodiac signs grid
   ========================================================================== */
.zdc-signs { margin-bottom: 52px; }
.zdc-signs-title {
	text-align: center;
	font-size: 1.9rem;
	margin-bottom: 26px;
	position: relative;
}
.zdc-signs-title::after {
	content: "";
	display: block;
	width: 72px;
	height: 2px;
	margin: 12px auto 0;
	background: linear-gradient(90deg, transparent, var(--zdc-accent), transparent);
}

.zdc-signs-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px 12px;
}
@media (max-width: 960px) { .zdc-signs-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .zdc-signs-grid { grid-template-columns: repeat(3, 1fr); gap: 16px 8px; } }

.zdc-sign {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}
.zdc-sign img {
	width: 100%;
	max-width: 110px;
	aspect-ratio: 1;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--zdc-border);
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
a.zdc-sign:hover img {
	border-color: var(--zdc-accent);
	box-shadow: 0 0 22px rgba(212, 175, 110, 0.4);
	transform: translateY(-3px);
}
.zdc-sign-name {
	font-family: var(--zdc-font-heading);
	font-size: 1.02rem;
	color: var(--zdc-heading);
	letter-spacing: 0.04em;
}
a.zdc-sign:hover .zdc-sign-name { color: var(--zdc-accent); }
.zdc-sign-symbol { color: var(--zdc-accent); }
.zdc-sign-static { cursor: default; }

@media (hover: none) {
	a.zdc-sign:hover img { transform: none; box-shadow: none; }
}

/* ==========================================================================
   Related posts
   ========================================================================== */
.zdc-related { margin-top: 48px; }
.zdc-related-title {
	font-size: 1.6rem;
	text-align: center;
	margin-bottom: 24px;
}
.zdc-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
@media (max-width: 720px) { .zdc-related-grid { grid-template-columns: 1fr; } }
.zdc-related-card .zdc-card-title { font-size: 1.15rem; margin-bottom: 6px; }
.zdc-related-card .zdc-card-body { padding: 16px 18px 18px; }
.zdc-related-date { font-size: 0.8rem; color: var(--zdc-text-muted); }

/* ==========================================================================
   Widget: najčitanije
   ========================================================================== */
.zdc-popular-list { list-style: none; margin: 0; padding: 0; }
.zdc-popular-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 10px 0 !important;
}
.zdc-popular-rank {
	font-family: var(--zdc-font-heading);
	font-size: 1.5rem;
	line-height: 1.1;
	color: var(--zdc-accent);
	min-width: 26px;
	text-align: center;
	flex-shrink: 0;
}
.zdc-popular-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zdc-popular-text a { color: var(--zdc-heading) !important; font-weight: 500; line-height: 1.4; }
.zdc-popular-text a:hover { color: var(--zdc-accent) !important; }
.zdc-popular-views { font-size: 0.78rem; color: var(--zdc-text-muted); }

/* ==========================================================================
   Mobilna optimizacija
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Touch uređaji: bez hover animacija (štedi GPU, sprečava "zaglavljen" hover) */
@media (hover: none) {
	.zdc-card:hover { transform: none; box-shadow: none; }
	.zdc-card:hover .zdc-card-thumb img { transform: none; }
	button:hover, input[type="submit"]:hover, .zdc-button:hover { transform: none; }
	.zdc-card-thumb img { transition: none; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }

	.zdc-container { padding: 0 16px; }
	.site-main { padding: 28px 0 48px; }
	.zdc-layout { gap: 32px; }

	.zdc-header-inner { min-height: 64px; }
	.custom-logo-link img,
	.zdc-default-logo img { width: 44px; height: 44px; }
	.site-title { font-size: 1.3rem; }
	.site-description { display: none; }

	.zdc-posts-grid { grid-template-columns: 1fr; gap: 18px; }
	.zdc-card-body { padding: 16px 18px 18px; }
	.zdc-card-title { font-size: 1.3rem; }
	.zdc-meta { gap: 6px 14px; font-size: 0.8rem; }

	.zdc-page-header { margin-bottom: 28px; }

	.zdc-single-thumb { margin-bottom: 24px; }
	.zdc-content { font-size: 1rem; }
	.zdc-author-box { flex-direction: column; padding: 20px; }
	.zdc-divider { margin: 32px 0 20px; }

	.zdc-footer-widgets { gap: 28px; padding: 36px 0 24px; }

	.alignleft, .alignright { float: none; margin: 16px 0; }

	/* Zvezde bez animacije na telefonu — štedi bateriju */
	body.zdc-stars::before { animation: none; opacity: 0.7; }

	/* Veći tap target za paginaciju */
	.zdc-pagination .page-numbers { min-width: 44px; height: 44px; }

	.zdc-top { right: 16px; bottom: 16px; }
	.zdc-side-menu { padding: 60px 22px 28px; }
}
