/* Football MOM – Frontend Styles */

/* ── Standings ─────────────────────────────────────────────────────── */
.mom-stilling {
	overflow-x: auto;
	margin: 20px 0;
}

.mom-stilling-tabel {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.mom-stilling-tabel th,
.mom-stilling-tabel td {
	padding: 10px 12px;
	border-bottom: 1px solid #e2e4e7;
	text-align: left;
}

.mom-stilling-tabel th {
	background: #f6f7f7;
	font-weight: 600;
}

.mom-stilling-tabel .mom-row.mom-rank-1 td {
	background: #fffbea;
	font-weight: 600;
}

.mom-stilling-tabel th.mom-foto,
.mom-stilling-tabel td.mom-foto {
	width: 52px;
	padding-left: 8px;
	padding-right: 4px;
}

.mom-stilling-tabel .mom-foto img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.mom-stilling-tabel .mom-no-foto {
	font-size: 28px;
	color: #c3c4c7;
	display: block;
}

.mom-stilling-tabel .mom-troejenummer {
	color: #646970;
	font-size: 0.85em;
	margin-right: 4px;
}

.mom-star { color: #f0c040; font-size: 18px; }
.mom-star-empty { color: #ddd; }

/* ── Vote form ──────────────────────────────────────────────────────── */
.mom-stemme-wrapper {
	max-width: 680px;
	margin: 20px auto;
}

.mom-allerede-stemt {
	background: #edfaef;
	border: 1px solid #68de7c;
	border-radius: 4px;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #1a7940;
}

.mom-stemme-vejledning {
	color: #646970;
	margin-bottom: 18px;
}

.mom-stemme-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mom-spiller-kort {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	padding: 12px 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.mom-spiller-kort.mom-valgt {
	border-color: #2271b1;
	background: #f0f6fc;
}

.mom-spiller-foto img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.mom-spiller-foto .dashicons {
	font-size: 42px;
	width: 42px;
	height: 42px;
	color: #c3c4c7;
}

.mom-spiller-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mom-spiller-navn {
	font-weight: 600;
}

.mom-hold-navn {
	font-size: 0.85em;
	color: #646970;
}

.mom-point-vælger {
	display: flex;
	gap: 4px;
}

.mom-point-knap {
	background: #f6f7f7;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.2;
	transition: background 0.15s, border-color 0.15s;
}

.mom-point-knap .mom-star {
	font-size: 16px;
}

.mom-point-knap:hover,
.mom-point-knap.active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.mom-point-knap.active .mom-star {
	color: #f0c040;
}

.mom-indsend-stemme {
	align-self: flex-start;
	margin-top: 8px;
	padding: 10px 22px;
	font-size: 15px;
}

.mom-stemme-besked {
	padding: 10px 0;
	font-weight: 600;
}

.mom-stemme-besked.succes { color: #1a7940; }
.mom-stemme-besked.fejl   { color: #b32d2e; }

.mom-login-prompt,
.mom-ikke-afsluttet,
.mom-ingen-data {
	color: #646970;
	font-style: italic;
	padding: 10px 0;
}

/* Responsive */
@media (max-width: 520px) {
	.mom-spiller-kort {
		flex-wrap: wrap;
	}
	.mom-point-vælger {
		flex-wrap: wrap;
	}
}

/* ── Clickable player name ──────────────────────────────────────────── */
.mom-spiller-link {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font: inherit;
	color: #2271b1;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mom-spiller-link:hover,
.mom-spiller-link:focus {
	color: #135e96;
	outline: none;
}

/* ── Player history modal ───────────────────────────────────────────── */
.mom-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mom-modal[hidden] {
	display: none;
}

.mom-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.mom-modal-indhold {
	position: relative;
	background: #fff;
	border-radius: 8px;
	padding: 24px 28px;
	width: 90%;
	max-width: 800px;
	max-height: 85vh;
	overflow-y: auto;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.mom-modal-luk {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #646970;
	padding: 2px 6px;
}

.mom-modal-luk:hover {
	color: #1d2327;
}

.mom-modal-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}

.mom-modal-foto {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.mom-modal-foto-wrapper .mom-no-foto {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #c3c4c7;
	display: block;
}

.mom-modal-navn {
	font-size: 1.2em;
	margin: 0;
}

/* History table inside modal */
.mom-kamp-historik-tabel {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.mom-kamp-historik-tabel th,
.mom-kamp-historik-tabel td {
	padding: 8px 10px;
	border-bottom: 1px solid #e2e4e7;
	text-align: left;
}

.mom-kamp-historik-tabel th {
	background: #f6f7f7;
	font-weight: 600;
}

.mom-kamp-historik-tabel tr:last-child td {
	border-bottom: none;
}

.mom-loading {
	color: #646970;
	font-style: italic;
}

/* ── Standings widget ───────────────────────────────────────────────── */
.mom-stilling-widget {
	list-style: none;
	margin: 16px 0;
	padding: 0;
	max-width: 360px;
}

.mom-widget-rad {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-bottom: 1px solid #e2e4e7;
}

.mom-widget-rad:last-child {
	border-bottom: none;
}

.mom-widget-rad.mom-widget-rank-1 {
	background: #fffbea;
	font-weight: 600;
	border-radius: 4px 4px 0 0;
}

.mom-widget-rank {
	min-width: 22px;
	text-align: center;
	font-weight: 700;
	color: #646970;
	font-size: 0.9em;
}

.mom-widget-rad.mom-widget-rank-1 .mom-widget-rank {
	color: #1d2327;
}

.mom-widget-foto img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.mom-widget-foto .mom-no-foto {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: #c3c4c7;
	display: block;
}

.mom-widget-navn {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mom-widget-point {
	font-weight: 700;
	color: #2271b1;
	white-space: nowrap;
}

.mom-widget-point-label {
	font-size: 0.8em;
	font-weight: 400;
	color: #646970;
	margin-left: 2px;
}



/* =========================================================
   [mom_mine_stemmer] – User vote history
   ========================================================= */

.mom-mine-stemmer {
max-width: 700px;
}

.mom-mine-stemmer-kamp {
margin-bottom: 2em;
}

.mom-mine-stemmer-overskrift {
font-size: 1em;
font-weight: 600;
background: #f0f0f1;
padding: 8px 12px;
margin: 0 0 4px;
border-radius: 4px;
}

.mom-mine-stemmer-tabel {
width: 100%;
border-collapse: collapse;
}

.mom-mine-stemmer-tabel th,
.mom-mine-stemmer-tabel td {
padding: 6px 10px;
text-align: left;
border-bottom: 1px solid #f0f0f1;
vertical-align: middle;
}

.mom-mine-stemmer-tabel thead th {
font-size: 0.8em;
color: #646970;
text-transform: uppercase;
letter-spacing: 0.04em;
}

.mom-mine-stemmer-tabel .mom-foto {
width: 36px;
}

.mom-mine-stemmer-tabel .mom-foto img {
width: 28px;
height: 28px;
border-radius: 50%;
object-fit: cover;
}

.mom-mine-stemmer-tabel .mom-no-foto {
font-size: 24px;
width: 24px;
height: 24px;
color: #c3c4c7;
display: block;
}

.mom-mine-stemmer-tabel .mom-point .mom-star {
font-size: 0.95em;
}

.mom-mine-stemmer-tabel .mom-point-tal {
font-weight: 700;
color: #2271b1;
margin-left: 4px;
}
