/*
Theme Name: NAVIGATE A3
Description: Svijetla tema za projekt NAVIGATE – Život mladih nakon izlaska iz skrbi. Raspored prema prijedlogu A1, paleta boja prema prijedlogu A2 (šljiva, ružičasta, koralj, breskva).
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: navigate
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ---------- Tokeni ---------- */
:root {
	--ink: #202028;
	--text: #5e5868;
	--muted: #8a8494;
	--line: #efe5ec;
	--bg: #ffffff;
	--soft: #fdf8fa;
	--blush: #fbe9f0;
	--peach: #ffefdf;
	--pink: #e5369a;
	--grad: linear-gradient(90deg, #82338c 0%, #b9406b 50%, #ee745c 100%);
	--grad-line: linear-gradient(90deg, #f82d87, #fd6f65);
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 1px 2px rgba(60, 20, 60, .04), 0 8px 24px -12px rgba(130, 51, 140, .16);
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1120px;
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #c6617f; outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow);
}
.icon { width: 24px; height: 24px; flex: none; }
.icon .acc { stroke: var(--pink); }

/* ---------- Zaglavlje ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); margin-right: auto; }
.brand-mark { width: 46px; height: 46px; }
.brand-mark--img { width: auto; max-height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }
.brand-tagline { font-size: 14px; color: var(--ink); margin-top: 2px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 36px; }
.site-nav a {
	position: relative; display: block; padding: 8px 0;
	font-size: 14px; font-weight: 500; color: var(--text);
}
.site-nav a:hover { color: var(--ink); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--ink); font-weight: 600; }
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0;
	height: 3px; border-radius: 3px; background: var(--grad-line);
}
/* Podizbornik */
.site-nav li { position: relative; }
.site-nav .sub-menu {
	position: absolute; top: 100%; left: -16px; min-width: 220px; padding: 8px;
	background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { padding: 8px 12px; border-radius: 8px; }
.site-nav .sub-menu a:hover { background: var(--soft); }

.header-tools { display: flex; align-items: center; padding-left: 24px; border-left: 1px solid var(--line); height: 32px; }
.icon-btn, .menu-toggle {
	display: inline-grid; place-items: center; width: 42px; height: 42px;
	border: 0; background: none; color: var(--ink); border-radius: 50%; cursor: pointer;
}
.icon-btn:hover, .menu-toggle:hover { background: var(--soft); }
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }

.header-search { display: none; border-top: 1px solid var(--line); padding: 16px 0; background: #fff; }
.header-search.is-open { display: block; }

/* Obrazac pretrage */
.search-form { display: flex; max-width: 560px; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.search-field { flex: 1; min-width: 0; border: 0; padding: 12px 20px; font: inherit; color: var(--ink); background: none; }
.search-field:focus { outline: none; }
.search-form:focus-within { border-color: #dba0b8; box-shadow: 0 0 0 3px #f8e3ec; }
.search-submit { border: 0; background: none; padding: 0 16px; color: var(--ink); cursor: pointer; }

/* ---------- Gumbi ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 52px; padding: 0 30px; border-radius: 999px;
	font-weight: 500; font-size: 17px; line-height: 1; cursor: pointer; border: 0;
	transition: transform .15s ease, box-shadow .15s ease;
}
.btn .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -12px rgba(130, 51, 140, .6); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(185, 64, 107, .75); }
.btn--outline {
	color: var(--ink); background:
		linear-gradient(#fff, #fff) padding-box,
		var(--grad) border-box;
	border: 1.5px solid transparent;
	padding: 0 38px;
}
.btn--outline:hover { background: linear-gradient(#fdf4f7, #fdf4f7) padding-box, var(--grad) border-box; }

/* ---------- Hero ---------- */
.home .site-main {
	background:
		radial-gradient(640px 520px at 100% 0%, #f6e0ec 0%, rgba(246, 224, 236, 0) 70%),
		radial-gradient(520px 420px at 100% 55%, #ffecd6 0%, rgba(255, 236, 214, 0) 70%),
		radial-gradient(520px 520px at 0% 70%, #fbe9ee 0%, rgba(251, 233, 238, 0) 70%),
		#fdfbfc;
}
.hero { position: relative; }
.hero__inner {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 24px;
}
.hero__title {
	font-size: clamp(36px, 4.6vw, 58px); font-weight: 800; line-height: 1.02;
	letter-spacing: -0.035em; margin-bottom: 14px;
}
.hero__lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.3; color: var(--text); max-width: 26ch; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__art img { width: 100%; }

/* ---------- Odjeljci ---------- */
.section { padding: 28px 0; }
.section--cards { padding-top: 8px; }
.section--last { padding-bottom: 72px; }
.section-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 20px; }
.section-title::after, .title-line {
	content: ""; display: block; width: 36px; height: 3px; margin-top: 6px;
	border-radius: 3px; background: var(--grad-line);
}

.icon-bubble {
	display: inline-grid; place-items: center; flex: none;
	width: 64px; height: 64px; border-radius: 50%; background: var(--blush); color: var(--ink);
}
.icon-bubble .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.icon-bubble--2 { background: #fdebe4; }
.icon-bubble--3 { background: var(--peach); }
.icon-bubble--4 { background: #f5e8f3; }

/* Istaknute kartice */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card {
	display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
	transition: border-color .15s ease;
}
.feature-card .icon-bubble { width: 68px; height: 68px; }
.feature-card:hover { border-color: #e7bccd; }
.feature-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.feature-card__title { color: var(--ink); font-weight: 700; font-size: 17px; }
.feature-card__text { font-size: 13px; line-height: 1.35; color: var(--text); }
.feature-card__arrow, .topic-pill__arrow, .material-card__arrow { color: var(--pink); flex: none; align-self: flex-end; margin-bottom: 4px; }

/* Teme */
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.topic-pill {
	display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 14px;
	background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow);
	transition: border-color .15s ease;
}
.topic-pill:hover { border-color: #e7bccd; }
.topic-pill .icon-bubble { width: 54px; height: 54px; }
.topic-pill .icon-bubble .icon { width: 26px; height: 26px; }
.topic-pill__label { flex: 1; color: var(--ink); font-weight: 500; font-size: 15px; }
.topic-pill__arrow { align-self: center; margin: 0; }

/* Materijali */
.material-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.material-card {
	display: flex; align-items: center; gap: 20px; padding: 12px 24px 12px 12px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
	transition: border-color .15s ease;
}
.material-card:hover { border-color: #e7bccd; }
.material-card__media { flex: none; width: 124px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--soft); }
.material-card__media img { width: 100%; height: 100%; object-fit: cover; }
.material-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.material-card__title { color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.3; }
.material-card__text { font-size: 13px; color: var(--text); }
.material-card__arrow { align-self: center; margin: 0; }

.thumb-placeholder {
	display: block; width: 100%; height: 100%; min-height: 80px;
	background: linear-gradient(135deg, #82338c, #c6617f 50%, #ffce94);
}

/* ---------- Podstranice ---------- */
.page-head {
	padding: 56px 0 32px;
	background: radial-gradient(420px 220px at 95% 0%, #f6e0ec 0%, transparent 70%), linear-gradient(180deg, #fff, #fdf8fa);
	border-bottom: 1px solid var(--line);
	margin-bottom: 40px;
}
.page-title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.page-title span { color: var(--pink); }
.page-head .title-line { width: 48px; margin-top: 14px; }
.page-lead { margin-top: 16px; max-width: 60ch; font-size: 18px; }
.entry-date, .post-card__date { font-size: 14px; color: var(--muted); display: block; margin-bottom: 8px; }
.entry-hero-img { margin-bottom: 36px; border-radius: var(--radius-lg); overflow: hidden; }
.entry-hero-img img { width: 100%; }

.entry-content { max-width: 760px; padding-bottom: 72px; color: #2f2a38; font-size: 18px; line-height: 1.7; }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; }
.entry-content h3 { font-size: 22px; margin-top: 1.4em; }
.entry-content a { color: #9e3a7e; text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote {
	margin-left: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--pink); color: var(--ink); font-size: 20px;
}
.entry-content .alignwide { max-width: 1072px; margin-left: calc((760px - 1072px) / 2); }
.entry-content .wp-block-button__link { background: var(--grad); border-radius: 999px; color: #fff; text-decoration: none; padding: 14px 28px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card__link {
	position: relative; display: flex; flex-direction: column; height: 100%;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.post-card__link:hover { border-color: #e7bccd; }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px 56px; }
.post-card__title { color: var(--ink); font-weight: 700; font-size: 19px; line-height: 1.3; }
.post-card__excerpt { font-size: 15px; }
.post-card .arrow-btn { position: absolute; right: 20px; bottom: 16px; color: var(--pink); }

.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 48px; font-size: 16px; }
.post-nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.empty { padding-bottom: 72px; }

/* Komentari */
.comments { margin-top: 48px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit;
}
.comment-form .submit { background: var(--grad); color: #fff; border: 0; border-radius: 999px; padding: 14px 28px; font: inherit; cursor: pointer; }

/* ---------- Podnožje ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding-top: 48px; font-size: 15px; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.site-footer__brand { flex: 0 1 340px; }
.site-footer__nav, .site-footer__widgets { margin-left: auto; }

/* Partneri u podnožju: sve pločice iste veličine, logotip se prilagođava unutra */
.site-footer__partners { flex: 1 1 420px; }
.site-footer__heading { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin: 6px 0 16px; }
.site-footer__heading::after { content: ""; display: block; width: 32px; height: 3px; margin-top: 6px; border-radius: 3px; background: var(--grad-line); }
.footer-partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.footer-partner {
	display: grid; place-items: center; box-sizing: border-box;
	width: 176px; height: 92px; padding: 14px 20px;
	background: #fff; border: 1px solid var(--line); border-radius: 12px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.footer-partner img { display: block; width: auto; height: auto; max-width: 136px; max-height: 60px; object-fit: contain; }
a.footer-partner:hover { border-color: #e7bccd; box-shadow: var(--shadow); }
.site-footer .brand { margin-bottom: 12px; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer__nav a:hover { color: var(--ink); }
.site-footer__widgets { display: flex; flex-wrap: wrap; gap: 32px; }
.footer-widget { min-width: 180px; }
.footer-widget__title, .footer-widget h2 { font-size: 16px; margin-bottom: 10px; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-widget a:hover { color: var(--ink); }
.site-footer__bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; padding-bottom: 24px; font-size: 13px; color: var(--muted); }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.site-footer__bottom p { margin: 0; }
.site-footer__privacy { padding-left: 16px; border-left: 1px solid #ddd3dc; }
.site-footer__privacy a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__privacy a:hover { color: var(--pink); }

/* ---------- Prilagodba ekranima ---------- */
@media (max-width: 1024px) {
	.site-nav > ul { gap: 24px; }
	.topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.site-header__inner { min-height: 64px; gap: 8px; }
	.brand-name { font-size: 22px; }
	.brand-mark { width: 40px; height: 40px; }
	.menu-toggle { display: inline-grid; order: 3; }
	.header-tools { border-left: 0; padding-left: 0; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		display: none; padding: 8px 24px 20px;
	}
	.site-nav.is-open { display: block; }
	.site-nav > ul { flex-direction: column; gap: 0; }
	.site-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
	.site-nav .current-menu-item > a::after { display: none; }
	.site-nav .current-menu-item > a { color: var(--pink); }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; }

	.hero__inner { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 36px; }
	.hero__art { order: -1; max-width: 460px; margin: 0 auto -8px; }
	.feature-grid, .material-grid { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

@media (max-width: 520px) {
	body { font-size: 16px; }
	.container { padding: 0 18px; }
	.topic-grid { grid-template-columns: 1fr; }
	.footer-partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.footer-partner { width: 100%; height: 80px; padding: 12px 16px; }
	.footer-partner img { max-width: 100%; max-height: 52px; }
	.btn { width: 100%; }
	.material-card__media { width: 96px; }
	.post-nav { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
