/*
Theme Name: mm-portal
Theme URI: https://media-met.hr/
Author: media-met
Description: Mala tema skrivenog WordPressa na media-met.hr – samo za WSM portal za klijente (prijava, lozinka, portal). Bez buildera i bez dodataka; izgled prati statičnu stranicu (posluzitelj/wp-tema/ u repozitoriju media-met-web).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: mm-portal
*/

/* Boje i fontovi kao na statičnoj stranici (sadrzaj/dizajn.yaml). Sadržaj portala je svijetao (WSM: svijetla tema),
   zaglavlje i podnožje tamni. Kontrast teksta ≥ 4,5:1, fokus ≥ 3:1. */
@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url('assets/fontovi/archivo-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url('assets/fontovi/archivo-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--mm-tamna: #0b0a10;
	--mm-tamna-2: #15131c;
	--mm-svijetla: #f4f3f8;
	--mm-tekst: #0b0a10;
	--mm-tekst-2: #4a4560;
	--mm-tekst-na-tamnoj: #ffffff;
	--mm-tekst-na-tamnoj-2: #a8a3b8;
	--mm-glavna: #c8177a;
	--mm-isticanje: #ff6cb8;
	--mm-fokus: #ffd43b;
	--mm-fokus-svijetla: #6d28d9;
	--mm-omot: 75rem;
	color-scheme: light;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	color: var(--mm-tekst);
	background: var(--mm-svijetla);
	font: 400 1rem/1.6 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* WSM portal i obrasci koriste isti font kao ostatak stranice */
.wsm-portal,
.wsm-login-wrap {
	font-family: inherit;
}

/* Naziv na kartici prijave (u WSM-u h1; ovdje je h1 naslov stranice „Prijava za klijente”) – isti izgled */
.wsm-login-header .mm-wsm-naziv {
	margin: 0 0 6px;
	color: var(--mm-text);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

/* Ime i „Odjava” su u zaglavlju teme – isti par u izborniku portala se ne ponavlja */
.wsm-portal .wsm-portal-nav-user {
	display: none;
}

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

a {
	color: inherit;
}

/* Vidljiv fokus: žuti obrub na tamnom (kao statična stranica), ljubičasti na svijetlom */
:focus-visible {
	outline: 3px solid var(--mm-fokus-svijetla);
	outline-offset: 3px;
}

.mm-zaglavlje :focus-visible,
.mm-podnozje :focus-visible,
.mm-preskoci:focus-visible {
	outline-color: var(--mm-fokus);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Skip link: vidljiv tek kad dobije fokus */
.mm-preskoci {
	position: absolute;
	inset: 0.5rem auto auto 0.5rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	color: var(--mm-tamna);
	font-weight: 700;
	background: var(--mm-fokus);
	transform: translateY(-200%);
}

.mm-preskoci:focus {
	transform: none;
}

.mm-omot {
	width: min(100% - 2rem, var(--mm-omot));
	margin-inline: auto;
}

/* ---------- Zaglavlje ---------- */
.mm-zaglavlje {
	color: var(--mm-tekst-na-tamnoj);
	background: var(--mm-tamna);
	border-block-end: 1px solid rgb(255 255 255 / 0.12);
}

.mm-zaglavlje__red {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	align-items: center;
	justify-content: space-between;
	min-height: 4.5rem;
	padding-block: 0.75rem;
}

.mm-logo {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.mm-logo img {
	display: block;
	width: auto;
	height: 2.25rem;
}

.mm-izbornik {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-izbornik a,
.mm-izbornik button {
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
	min-height: 44px;
	padding: 0 0.25rem;
	color: var(--mm-tekst-na-tamnoj);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	background: none;
	border: 0;
}

.mm-izbornik a:hover {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.mm-izbornik__odjava {
	padding: 0 1rem !important;
	border: 1px solid rgb(255 255 255 / 0.35) !important;
}

.mm-izbornik__korisnik {
	color: var(--mm-tekst-na-tamnoj-2);
	font-size: 0.9375rem;
}

/* ---------- Sadržaj ---------- */
.mm-sadrzaj {
	flex: 1;
	padding-block: clamp(1.5rem, 4vw, 3rem);
}

.mm-sadrzaj:focus {
	outline: none;
}

.mm-naslov {
	margin: 0 0 1.5rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	font-stretch: 75%;
	line-height: 1.1;
	text-transform: uppercase;
	word-spacing: 0.32em;
}

.mm-proza {
	max-width: 70ch;
}

.mm-proza a {
	color: #8a1054;
	text-underline-offset: 0.2em;
}

/* ---------- Podnožje ---------- */
.mm-podnozje {
	color: var(--mm-tekst-na-tamnoj-2);
	font-size: 0.9375rem;
	background: var(--mm-tamna);
}

.mm-podnozje__red {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	align-items: center;
	justify-content: space-between;
	padding-block: 1.5rem;
}

.mm-podnozje p {
	margin: 0;
}

.mm-podnozje ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-podnozje a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--mm-tekst-na-tamnoj);
	text-underline-offset: 0.2em;
}

@media (prefers-reduced-motion: no-preference) {
	.mm-preskoci {
		transition: transform 0.15s;
	}
}

@media (forced-colors: active) {
	.mm-izbornik__odjava {
		border-color: ButtonText !important;
	}
}
