/*
Theme Name: ZSU Koprivnica
Theme URI: https://zsu-kc.hr/
Author: Zajednica sportskih udruga Grada Koprivnice
Description: Lagana prilagođena block tema za Zajednicu športskih udruga Grada Koprivnice.
Version: 0.3.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: zsu-kc
*/

:root {
	--zsu-shadow: 0 18px 45px rgba(8, 39, 72, 0.12);
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
}

a {
	text-underline-offset: 0.18em;
}

.wp-site-blocks {
	min-height: 100vh;
}

.zsu-header {
	border-bottom: 1px solid var(--wp--preset--color--outline);
	position: relative;
	z-index: 20;
}

.zsu-site-logo img {
	display: block;
	height: auto;
	max-width: min(100%, 390px);
	object-fit: contain;
	width: 100%;
}

.zsu-hero {
	background:
		radial-gradient(circle at 85% 15%, rgba(90, 190, 42, 0.22), transparent 32%),
		linear-gradient(135deg, #06376a 0%, #006db5 68%, #0084c7 100%);
	overflow: hidden;
	position: relative;
}

.zsu-hero::after {
	border: 42px solid rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	content: "";
	height: 250px;
	position: absolute;
	right: -90px;
	top: -100px;
	width: 250px;
}

.zsu-card {
	box-shadow: var(--zsu-shadow);
	height: 100%;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.zsu-card:hover {
	box-shadow: 0 22px 55px rgba(8, 39, 72, 0.18);
	transform: translateY(-4px);
}

.zsu-eyebrow {
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.zsu-section-heading {
	max-width: 760px;
}

.zsu-actions {
	position: relative;
	z-index: 4;
}

.zsu-page-intro {
	background:
		radial-gradient(circle at 90% 20%, rgba(90, 190, 42, 0.16), transparent 28%),
		var(--wp--preset--color--surface);
}

.zsu-news-list .wp-block-post {
	border-top: 1px solid var(--wp--preset--color--outline);
	padding-block: 1.5rem;
}

.zsu-news-list .wp-block-post:first-child {
	border-top: 0;
}

.zsu-news-list .wp-block-post-featured-image {
	margin-block-end: var(--wp--preset--spacing--30);
}

.zsu-news-list .wp-block-post-featured-image img {
	aspect-ratio: 16 / 9;
	border-radius: 16px;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.wp-block-post-title,
main h1 {
	overflow-wrap: anywhere;
	text-wrap: balance;
}

main > .wp-block-group .wp-block-post-featured-image img {
	border-radius: 18px;
	height: auto;
	max-width: 100%;
}

.zsu-footer {
	margin-block-start: 0;
}

.zsu-footer a,
#o-nama a {
	color: var(--wp--preset--color--white);
}

@media (max-width: 781px) {
	.zsu-header-inner {
		gap: 1rem;
	}

	.zsu-site-logo {
		max-width: 210px;
	}
}

@media (max-width: 1100px) {
	.zsu-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.zsu-header .wp-block-navigation__responsive-container-open {
		display: flex !important;
	}

	.zsu-site-logo {
		max-width: 300px;
	}
}

@media (max-width: 600px) {
	.zsu-site-logo {
		max-width: 210px;
	}
}

@media (max-width: 380px) {
	.zsu-site-logo {
		max-width: 165px;
	}
}

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

	.zsu-card {
		transition: none;
	}
}
