@font-face {
	font-family: Arvo;
	src: url("/wp-content/themes/KinoKlubBjelovar2026/fonts/Arvo.ttf")
}

:root {
	--font-kkb-primary: 'Arvo';
	--font-kkb-secondary: 'Arvo';
	--font-kkb-body: 'Montserrat';

	--color-kkb-3d-background--light: linear-gradient(154deg, rgba(255, 251, 244, 1) 0%, rgba(242, 239, 231, 1) 50%, rgba(216, 210, 205, 1) 100%);

	--color-kkb-red: #c20202;
	--color-kkb-primary: #F2EFE7;

	--content-size: 840px;
	--wide-size: 1100px;

	--color-kkb-disabled: #6a6861;
	--color-kkb-background: oklch(20.5% 0 0);
	--color-kkb-card: oklch(30.5% 0 0);
	--color-kkb-card-outline: oklch(40.5% 0 0);
	--color-kkb-foreground: #ffffff;

	--color-kkb-faint--light: oklch(50% 0 0);
	--color-kkb-faint--dark: oklch(60% 0 0);

	--drop-shadow-button: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.2));

	--text-xs: var(--wp--preset--font-size--xs, 0.75rem);
	--text-sm: var(--wp--preset--font-size--sm, 0.875rem);
	--text-base: var(--wp--preset--font-size--base, 1rem);
	--text-lg: var(--wp--preset--font-size--lg, 1.125rem);
	--text-xl: var(--wp--preset--font-size--xl, 1.25rem);
	--text-2xl: var(--wp--preset--font-size--2xl, 1.5rem);
	--text-3xl: var(--wp--preset--font-size--3xl, 1.875rem);
	--text-4xl: var(--wp--preset--font-size--4xl, 2.25rem);
	--text-5xl: var(--wp--preset--font-size--5xl, 3rem);
	--text-6xl: var(--wp--preset--font-size--6xl, 3.75rem);
	--text-7xl: var(--wp--preset--font-size--7xl, 4.5rem);
	--text-8xl: var(--wp--preset--font-size--8xl, 6rem);
	--text-9xl: var(--wp--preset--font-size--9xl, 8rem);
}


html {
	background-color: var(--color-kkb-primary);
}

* {
	scroll-behavior: smooth;
}



a {
	text-decoration: none;
	color: inherit;

}

img {
	width: 100%;
	height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-kkb-primary);
}

.kkb-body {
	background-color: var(--color-kkb-background);
	color: var(--color-kkb-foreground);
	font-family: var(--font-kkb-body);

}

.kkb-main-header {
	overflow: visible;
	position: relative;
	color: var(--color-kkb-background);
	font-family: var(--font-kkb-primary);
	padding: 0.5rem 5rem;
	z-index: 10;

	.background-color-overlay {
		background: var(--color-kkb-primary);
		position: absolute;
		width: 100%;
		height: 100%;
		left: 0;
		top: 0;
	}


	@media(max-width: 768px) {
		padding: 0.5rem 2rem;
	}

	.container {
		position: relative;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.left-side {
		display: flex;
		gap: 12px;
		align-items: center;
	}

	.site-title-container {
		position: relative;
		top: -1px;
		display: flex;
		flex-direction: column;
	}


	.site-title {
		font-size: var(--text-lg);
	}

	.site-description {
		font-size: var(--text-sm);
		color: var(--color-kkb-faint--light)
	}

	.custom-logo-link {
		display: inline-flex;
		align-items: center;
	}

	.custom-logo {
		width: 84px;
		height: auto;
	}

	.header-nav--desktop {
		ul {
			list-style: none;
			margin: 0;
			display: flex;
			gap: 12px;
			font-size: var(--text-sm);
			text-transform: uppercase;
			padding: 0;
		}

		a {
			color: var(--color-kkb-background);
			text-decoration: none;

			background-image: linear-gradient(90deg, var(--color-kkb-faint--light), var(--color-kkb-faint--light));
			background-size: 0% 1px;
			background-repeat: no-repeat;
			background-position: left 1.5em;
			padding-block: .25em;
			transition: background-size 500ms;
		}

		a:hover,
		a:focus {
			background-size: 80% 2px;
			outline-color: transparent;
		}
	}

	.mobile-toggle-input {
		display: none;
	}

	.header-nav-container--mobile {
		background-color: var(--color-kkb-primary);
		width: 100%;
		position: absolute;
		left: 0;
		bottom: 0;
		height: auto;
		transition: transform 0.3s ease-in-out;
		border-bottom-left-radius: 8px;
		border-bottom-right-radius: 8px;

		@media (min-width: 768px) {
			display: none;
		}
	}

	#header-nav-mobile-toggle-input:checked~.header-nav-container--mobile {
		transform: translate(0, 100%) translate(0, -1px);
	}




	.header-nav--mobile {
		padding: 1rem 2rem;

		ul {
			padding: 0;
			list-style: none;
			margin: 0;
			display: flex;
			flex-direction: column;
			align-items: end;
			gap: 6px;
			font-size: var(--text-base);
			text-transform: uppercase;
		}

		a {
			color: var(--color-kkb-background);
			text-decoration: none;
		}

		a:hover {
			font-weight: bold;
		}

		a:focus {
			font-weight: bold;
			outline-offset: 2px;
		}
	}



	.mobile-toggle {
		display: none;
	}

	@media (max-width: 640px) {
		.mobile-toggle {
			display: block;
			width: 20px;
			height: 20px;
		}

		.header-nav-container {


			.header-nav--desktop {
				display: none;
			}

		}
	}
}



.kkb-hero-container {
	height: 768px;
	position: relative;
}

.kkb-hero-container {
	>* {
		position: relative;
	}

	.background-image-container {
		overflow: clip;
		width: 100%;
		height: 100%;
		position: absolute;
		left: 0;
		top: 0;

		img {
			object-fit: cover;
			scale: 105%;
		}
	}

	.site-title-container {
		display: flex;
		flex-direction: column;
		align-items: start;
		justify-content: center;
		gap: 1rem;
		height: 80%;
		max-width: var(--wide-size);
		margin: 0 auto;
		padding: 1rem 2rem;
	}

	.site-title-container {
		.site-title {
			font-family: var(--font-kkb-primary);
			font-size: clamp(var(--text-lg), 4vw + 1rem, var(--text-6xl));
			font-weight: bold;
		}

		.action-buttons-container {
			display: flex;
			gap: 1rem;
		}
	}
}

.kkb-prijavnica {
	.prijave-datum-container {
		color: var(--color-kkb-faint--dark);
		display: block;
	}

	.prijave-datum {
		color: white;
	}
}

.hero-news,
.hero-aktualneprijavnice {
	margin-top: 4rem;

	.kkb-post-grid {
		gap: 2rem;
	}

	h1 {
		scroll-margin-top: 4rem;
		margin: 0;
		margin-bottom: 2rem;
		text-align: center;
		font-size: clamp(var(--text-lg), 2vw + 1rem, var(--text-4xl));
	}
}


.kkb-main-footer {
	background-color: var(--color-kkb-primary);
	color: var(--color-kkb-background);
	padding: 1.5rem 4rem 2rem 4rem;

	.container {
		display: flex;
		justify-content: space-between;
		max-width: var(--wide-size);
		margin: 0 auto 4rem auto;
		position: relative;
		gap: 2rem 0;
		background-color: var(--color-kkb-primary);

		@media(max-width: 768px) {
			flex-direction: column;
			align-items: center;
		}
	}


	.left-column {

		@media(max-width: 768px) {
			text-align: center;
		}
	}

	.site-title {
		font-family: var(--font-kkb-primary);
		font-size: var(--text-base);
		display: block;
	}

	.site-description {
		font-family: var(--font-kkb-primary);
		font-size: var(--text-xs);
		color: var(--color-kkb-faint--light);
		display: block;
	}

	.nonprofit-details {
		margin-top: 0.75rem;


		span {
			font-size: var(--text-xs);
			color: var(--color-kkb-faint--light);
			display: block;
		}
	}

	.custom-logo-link {
		display: inline-flex;
		align-items: center;
	}

	.custom-logo {
		width: 64px;
		height: auto;
	}

	.copyright-year {
		font-family: var(--font-kkb-primary);
		font-size: var(--text-xs);
		color: var(--color-kkb-faint--light);
		text-align: center;
	}

	.right-column {
		display: flex;
		align-items: end;
		gap: 2rem;

		@media(max-width: 768px) {
			flex-direction: column;

			align-items: end;
		}

		nav {
			text-align: right;

			h3 {
				margin-top: 0;
				margin-bottom: 0.5rem;
				font-size: var(--text-lg);
				font-family: var(--font-kkb-primary);
			}

			ul {
				list-style: none;
				margin: 0;
				padding: 0;
				gap: 12px;
				font-size: var(--text-sm);
			}

			a {
				color: var(--color-kkb-background);
				text-decoration: none;
			}

			a:hover {
				font-weight: bold;
			}

			a:focus {
				font-weight: bold;
				outline-offset: 2px;
			}

		}
	}
}






.onama-container {


	.intro-section-container {
		height: 640px;
		background-size: cover;
		background-position: center;

		.gradient-overlay {
			display: flex;
			height: 100%;
			width: 100%;
			background: #000000;
			background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0) 100%);

		}



		.contents-container {
			padding: 2rem 1rem 4rem 1rem;
			display: flex;
			flex-direction: column;
			justify-content: end;
			align-items: start;
			max-width: var(--wide-size);
			margin: 0 auto;

			.contents {
				max-width: 45%;

				@media(max-width: 640px) {
					max-width: 100%;
				}
			}

			h1 {
				margin-top: 0;
			}
		}
	}

	.onama-1 {
		.container {
			display: grid;
			grid-template-columns: repeat(2, 1fr);
			padding: 2rem 1rem 4rem 1rem;
			margin: 0 auto;
			max-width: var(--wide-size);
			gap: 1rem;

			@media(max-width: 640px) {
				grid-template-columns: repeat(1, 1fr);
			}

			img {
				border-radius: 4px;
				object-fit: cover;
			}
		}
	}

}









/*
* PAGES
*/

.single-header {
	height: 576px;
	margin-bottom: 3rem;

	.single-title {}

	.single-header--thumbnail {
		position: relative;
		height: 100%;

		img {
			object-fit: cover;
		}
	}

	.single-title--thumbnail {
		background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
		width: 100%;

		position: absolute;
		left: 0;
		bottom: 0;


		h1 {
			font-size: clamp(var(--text-xl), calc(2vw + 1rem), var(--text-4xl));
			margin-left: clamp(1rem, calc(5vw + 1rem), 4rem);
			margin-right: clamp(1rem, calc(5vw + 1rem), 4rem);
			margin-top: 2rem;
			margin-bottom: 4rem;
		}
	}
}

.kkb-content {
	padding: 0rem 1rem 8rem 1rem;

	p {
		font-size: var(--text-xl);
		margin-bottom: 2rem;
	}

	.container-wide {
		max-width: var(--wide-size);
		margin: 0 auto;
	}

	.container-reading {
		max-width: var(--content-size);
		margin: 0 auto;
	}


}


















/*
* COMPONENTS
*/


.kkb-button {
	transition: scale 0.1s ease-in-out;
	text-decoration: none;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	font-size: var(--text-sm);

	@media(max-width: 640px) {
		font-size: var(--text-xs);

	}

	&:hover {
		scale: 105%
	}

	&:focus {
		scale: 105%;
		outline-offset: 2px;
	}

	&[class*='--primary'] {
		filter: var(--drop-shadow-button);
		background-color: var(--color-kkb-primary);
		color: var(--color-kkb-background);
	}

	&[class*='--outline'] {
		color: var(--color-kkb-foreground);
		background-color: #2020205e;
		border: 1px solid #3e3e3e;
	}

}


.kkb-post-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1rem;

	@media (max-width: 1024px) {
		grid-template-columns: 1fr 1fr;
	}

	@media (max-width: 640px) {
		grid-template-columns: 1fr;
	}
}

.kkb-post-card {
	display: block;
	width: auto;
	border-radius: 4px;
	overflow: clip;
	border: 1px solid;
	border-color: var(--color-kkb-card-outline);
	background-color: var(--color-kkb-card);

	.content {
		width: 100%;
		height: 100%;
		background-size: cover;
		backdrop-filter: blur(4px) brightness(0.2);
	}

	.thumbnail {
		width: 100%;
		height: 200px;
		color: var(--color-kkb-foreground);
		text-decoration: none;
		display: block;
		overflow: clip;

		img {
			object-fit: cover;
			transition: scale 0.1s ease-in-out;

		}


		&:hover img,
		&:focus img {
			scale: 105%;
		}
	}

	.details {
		padding: 0.75rem 1rem;

		p {
			font-size: var(--text-lg);
		}
	}

	.post-title {
		display: block;
		font-family: var(--font-kkb-primary);
		font-size: var(--text-xl);
		margin-bottom: 0.5rem;
	}

	.post-author {
		text-decoration: none;
		color: var(--color-kkb-faint--dark);
		font-size: var(--text-sm);

		&:hover,
		&:focus {
			color: var(--color-kkb-foreground);
		}
	}

	.read-more {
		color: var(--color-kkb-faint--dark);
		text-decoration: none;
		transition: color 0.1s;
		font-size: var(--text-sm);

		span {
			display: inline-block;
			opacity: 0;
			transform: translateX(-100%);
			transition: all 0.1s;
		}

		&:hover,
		&:focus {
			color: var(--color-kkb-foreground);

			span {
				opacity: 1;
				transform: translateX(0);
			}
		}



	}
}



.wordpress-page {
	a:has(img) {
		transition: scale 0.1s ease-in-out;

		img {
			outline: 1px solid;
			outline-color: var(--color-kkb-card-outline);
		}

		&:hover,
		&:focus {
			scale: 105%;
		}
	}
}
