/*
 * MV Autori Widget — frontend CSS
 *
 * Bazne strukture i defaults. Elementor controls injectaju per-widget inline
 * stilove kroz `selectors` mapping pa override-aju ove default vrijednosti.
 *
 * Brand defaults (Navy #162394, Orange #F56306, Yellow #F4B107) — koriste se
 * kao fallback kad widget nije instanciran s vlastitim postavkama (npr. u
 * Elementor editor preview-u prije nego korisnik dirne kontrole).
 *
 * @since 1.0.11.0
 */

.mv-authors-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.mv-authors-empty {
	padding: 24px;
	background: #fff7e6;
	border-left: 4px solid #F4B107;
	color: #6b5a1f;
	font-size: 14px;
	border-radius: 4px;
}

/* ============================================================
   Card
   ============================================================ */
.mv-author-card {
	background: #ffffff;
	border-radius: 12px;
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 20px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(22, 35, 148, 0.06);
	align-items: center;
	position: relative;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mv-author-card:hover {
	box-shadow: 0 12px 32px rgba(22, 35, 148, 0.14);
	transform: translateX(2px);
}

/* Accent border, pozicija upravljana kroz prefix_class na widget wrapper-u */
.mv-accent-pos-left .mv-author-card {
	border-left: 4px solid #F56306;
}
.mv-accent-pos-top .mv-author-card {
	border-top: 4px solid #F56306;
}
.mv-accent-pos-none .mv-author-card {
	border-left: none;
	border-top: none;
}

/* Full-card click overlay */
.mv-author-card .mv-card-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	text-decoration: none;
	border-radius: 12px;
}
.mv-author-card .mv-card-link:focus-visible {
	outline: 3px solid #F4B107;
	outline-offset: 2px;
}

/* Sve direktne djecu kartice idu iznad overlay-a */
.mv-author-card > * {
	position: relative;
	z-index: 2;
}

/* Email, web — linkovi unutar kartice idu još iznad da preuzmu klik */
.mv-author-card a:not(.mv-card-link) {
	position: relative;
	z-index: 3;
}

/* ============================================================
   Avatar
   ============================================================ */
.mv-avatar {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	overflow: hidden;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.mv-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Placeholder zadržava Navy bg + žute inicijale jer mu pravo treba čvrsto popunjavanje
   kruga (bez foto-a, samo tekst). Kad ima sliku, .mv-avatar bg ostaje transparentno. */
.mv-avatar-placeholder {
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: 38px;
	font-weight: 600;
	color: #F4B107;
	background: #162394;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ============================================================
   Content
   ============================================================ */
.mv-content {
	min-width: 0;
}

.mv-author-name {
	font-family: 'Poppins', system-ui, sans-serif;
	font-weight: 700;
	font-size: 20px;
	color: #162394;
	margin: 0 0 2px;
	line-height: 1.25;
}

.mv-author-role {
	font-size: 13px;
	font-weight: 600;
	color: #F56306;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 12px;
}

.mv-author-bio {
	font-size: 14px;
	color: #444444;
	line-height: 1.6;
	margin: 0 0 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ============================================================
   Icons row (email + web)
   Stacked layout u .mv-content: name → role → icons → bio → archive
   ============================================================ */
.mv-author-icons {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

/* Icon-only linkovi (email + web) — kružni hit area s blagim hover bg */
.mv-author-meta-icon {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #162394;
	text-decoration: none;
	border-radius: 50%;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.mv-author-meta-icon:hover,
.mv-author-meta-icon:focus-visible {
	background-color: rgba(22, 35, 148, 0.08);
	color: #F56306;
}

.mv-author-meta-icon svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
	flex-shrink: 0;
}

/* Archive link — vlastiti blok ispod bio-a */
.mv-author-archive-link {
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #162394;
	text-decoration: none;
	display: inline-block;
	opacity: 0.7;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.mv-author-archive-link:hover,
.mv-author-archive-link:focus-visible,
.mv-author-card:hover .mv-author-archive-link {
	opacity: 1;
	color: #F56306;
}

/* ============================================================
   Responsive — fallback breakpointi (Elementor responsive kontrole
   nadjačavaju ove kad korisnik podesi tablet/mobile vrijednosti)
   ============================================================ */
@media (max-width: 900px) {
	.mv-authors-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.mv-author-card {
		grid-template-columns: 100px 1fr;
		padding: 18px;
		gap: 14px;
	}
	.mv-avatar {
		width: 100px;
		height: 100px;
	}
}
