/**
 * HAMK Mladost – dodatni stilovi teme
 *
 * Običan CSS (bez kompajliranja). Učitava se nakon css/main.css,
 * preko functions.php (hamk_enqueue_assets).
 */

/* =========================================================
   Pristupačnost
   ========================================================= */

/* Tekst vidljiv samo čitačima ekrana i pretraživačima */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* =========================================================
   Podnožje – društvene mreže
   ========================================================= */

#footer .container {
	position: relative;
}

#social {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	align-items: center;
	transform: translate(-50%, -50%);
}

#social a {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	transition: transform 0.2s, opacity 0.2s;
}

#social a:hover,
#social a:focus-visible {
	opacity: 0.85;
	transform: scale(1.1);
}

#social img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
}

#social .social-handle {
	margin-top: 0.2rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: #c80f0f;
}

@media (max-width: 768px) {

	#social {
		position: static;
		flex-direction: row;
		justify-content: center;
		margin: 1rem 0;
		transform: none;
	}
}

/* =========================================================
   Bočna traka
   ========================================================= */

#sidebar .sidebar-box {
	margin-bottom: 2rem;
	padding: 1.4rem 1.5rem 1.6rem;
	background: #efefef;
	border-bottom: 3px solid #d7d7d7;
}

#sidebar .sidebar-title {
	margin: 0 0 1.2rem;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
	color: #222;
	text-transform: uppercase;
}

#sidebar .sidebar-subtitle {
	margin: 1.2rem 0 0.4rem;
	font-size: 1.1rem;
	font-weight: 400;
	color: #c80f0f;
}

#sidebar .sidebar-title + .sidebar-subtitle {
	margin-top: 0;
}

#sidebar .sidebar-box p {
	margin: 0;
	font-size: 0.9rem;
	color: #222;
}

#sidebar #sb_instagram {
	padding-bottom: 0 !important;
}

#sidebar #sb_instagram .sbi_photo {
	border-radius: 2px;
}

#sidebar .insta-follow {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
	margin-top: 1rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #c80f0f;
	text-decoration: none;
}

#sidebar .insta-follow img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

#sidebar .insta-follow:hover span,
#sidebar .insta-follow:focus-visible span {
	text-decoration: underline;
}

/* =========================================================
   Naslovnica – gumb "Sve novosti"
   ========================================================= */

.all-news {
	margin: 2rem 0;
	text-align: center;
}

.all-news-button {
	display: inline-block;
	padding: 0.8em 1.8em;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none;
	text-transform: uppercase;
	background: #c80f0f;
	border-bottom: 3px solid #a00c0c;
	transition: background 0.2s;
}

.all-news-button:hover,
.all-news-button:focus-visible {
	background: #a00c0c;
}

/* =========================================================
   Stranice – gumb "Podijeli na Facebooku"
   ========================================================= */

.share {
	margin-top: 2rem;
}

.share-facebook {
	display: inline-block;
	padding: 0.4em 0.9em;
	font-size: 0.85rem;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none;
	background: #1877f2;
	border-radius: 4px;
}

.share-facebook:hover,
.share-facebook:focus-visible {
	background: #0d65d9;
}

/* =========================================================
   Pojedinačna objava – datum, kategorije, navigacija
   ========================================================= */

.entry-meta {
	margin: 1.5rem 0 0.25rem;
	font-size: 0.8rem;
	color: #666;
}

.entry-meta a {
	color: #c80f0f;
	text-decoration: none;
}

.entry-meta a:hover,
.entry-meta a:focus-visible {
	text-decoration: underline;
}

.post-navigation {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 3px solid #efefef;
}

.post-navigation .nav-links {
	display: flex;
	gap: 1.5rem;
	justify-content: space-between;
}

.post-navigation .nav-next {
	margin-left: auto;
	text-align: right;
}

.post-navigation a {
	display: block;
	text-decoration: none;
}

.post-navigation .nav-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	color: #666;
	text-transform: uppercase;
}

.post-navigation .nav-title {
	display: block;
	margin-top: 0.25rem;
	color: #c80f0f;
}

.post-navigation a:hover .nav-title,
.post-navigation a:focus-visible .nav-title {
	text-decoration: underline;
}

@media (max-width: 600px) {

	.post-navigation .nav-links {
		flex-direction: column;
	}
}

/* =========================================================
   Ispravci za css/main.css
   ========================================================= */

/* Strelica uz "Izbornik" na mobitelu: u main.css piše neispravno
   "position: inline-block" umjesto "display: inline-block" */
.menu-trigger:after,
.menu-trigger.open:after {
	display: inline-block;
}

/* Vidljiv okvir pri kretanju tipkovnicom (main.css ga uklanja) */
a:focus-visible,
button:focus-visible {
	outline: 2px solid #c80f0f;
	outline-offset: 2px;
}

/* Označeni tekst u boji kluba umjesto zadane plave */
::selection {
	color: #fff;
	background: #c80f0f;
}

/* =========================================================
   Sažeci objava – naslovi i objave bez slike
   ========================================================= */

/* Naslov sažetka je <h2> (radi SEO-a), ali iste veličine kao prije */
.post-excerpt .entry-title,
.lead-post-excerpt .entry-title {
	margin-top: 0;
	font-size: 1.602em;
}

@media screen and (min-width: 600px) {

	.post-excerpt .entry-title,
	.lead-post-excerpt .entry-title {
		font-size: 2.074em;
	}
}

/* Objava bez istaknute slike: grb kluba na sivoj podlozi */
.post-excerpt .image-placeholder a {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 15%;
	background: #efefef;
	border-bottom: 3px solid #d7d7d7;
}

.post-excerpt .image-placeholder img {
	width: 100%;
	height: auto;
	opacity: 0.6;
}

/* =========================================================
   Zaglavlje – naslov u okviru "Upis novih članova"
   (prije <h1>, sada <h2> – isti izgled)
   ========================================================= */

.overlay .overlay-title {
	margin-top: 0;
	font-size: 1.5em;
	font-weight: 700;
	color: #efefef;
}

/* =========================================================
   Turniri – naslov turnira (prije <h2>, sada <h3> – isti izgled)
   ========================================================= */

.tournament .tournament-title {
	margin-top: 0;
	font-size: 1.125em;
	font-weight: 500;
	color: #2c2b2b;
}

/* =========================================================
   Treneri – kartica (stranica "Treneri" i naslovnica)
   ========================================================= */

.trainer .trainer-name {
	margin: 0 0 0.25em;
	font-size: 1.3125em;
	color: #c80f0f;
}

.trainer .trainer-role {
	margin: 0 0 0.75em;
	font-size: 0.9em;
	font-weight: 500;
}

.trainer .function {
	margin: 0 0 1.45em;
}

.trainer .function span {
	display: block;
}

.trainer .img-container {
	margin-bottom: 1em;
}

.trainer .img-container img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Trener bez fotografije: grb kluba */
.trainer .img-placeholder {
	background: #fff;
}

.trainer .img-placeholder img {
	padding: 20%;
	object-fit: contain;
	opacity: 0.6;
}

/* Stranica "Treneri": mreža kartica */
.trainers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 0 1.5rem;
	margin-top: 2rem;
}

#trainers.trainers-grid .trainer {
	float: none;
	width: auto;
	margin-right: 0;
	padding: 0 1rem 0.5rem;
}

/* =========================================================
   Naslovnica – izmjenjivi okvir "Naši treneri" (bočna traka)
   ========================================================= */

.trainers-slider .trainer {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}

.trainers-slider .img-container {
	width: 140px;
	margin-top: 0;
	border-radius: 50%;
}

.trainers-slider .trainer .function {
	margin-bottom: 0;
	font-size: 0.75em;
}

.trainers-slide.is-active {
	animation: hamk-fade 0.5s ease;
}

@keyframes hamk-fade {

	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {

	.trainers-slide.is-active {
		animation: none;
	}
}

.trainers-controls {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	justify-content: center;
	margin-top: 1rem;
}

.trainers-controls button {
	padding: 0.3em 0.6em;
	font-size: 1rem;
	line-height: 1;
	text-transform: none;
	background: #fff;
	border-bottom-width: 2px;
}

.trainers-dots {
	display: flex;
	gap: 0.4rem;
}

.trainers-controls .trainers-dot {
	width: 12px;
	height: 12px;
	padding: 0;
	background: #d7d7d7;
	border: 0;
	border-radius: 50%;
}

.trainers-controls .trainers-dot.is-active {
	background: #c80f0f;
}

.trainers-more {
	margin: 1rem 0 0 !important;
	text-align: center;
}

.trainers-more a {
	font-weight: 600;
	text-decoration: none;
}

.trainers-more a:hover,
.trainers-more a:focus-visible {
	text-decoration: underline;
}