/**
 * NFL Greece — frontend styles
 *
 * Σταθερά ανοιχτό θέμα: δεν υπάρχει μπλοκ prefers-color-scheme, ώστε το
 * widget να δείχνει το ίδιο ανεξάρτητα από τις ρυθμίσεις του επισκέπτη.
 */

.nflgr {
	--nflgr-bg: #ffffff;
	--nflgr-surface: #f7f8fa;
	--nflgr-border: #e2e5ea;
	--nflgr-text: #14181f;
	--nflgr-muted: #6b7280;
	--nflgr-accent: #0b6bcb;
	--nflgr-live: #d8332a;
	--nflgr-ot: #b25c00;
	--nflgr-radius: 10px;

	background: var(--nflgr-bg);
	color: var(--nflgr-text);
	font-size: 15px;
	line-height: 1.45;
}

.nflgr__title {
	margin: 0 0 0.75em;
	color: var(--nflgr-text);
	font-size: 1.15em;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.nflgr__empty {
	color: var(--nflgr-muted);
	font-style: italic;
}

.nflgr__credit {
	margin: 0.9em 0 0;
	color: var(--nflgr-muted);
	font-size: 0.78em;
	text-align: right;
}

/* --- Κάρτες --- */

.nflgr__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
}

.nflgr-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--nflgr-border);
	border-radius: var(--nflgr-radius);
	background: var(--nflgr-bg);
}

.nflgr-card--in {
	border-color: var(--nflgr-live);
	box-shadow: 0 0 0 1px var(--nflgr-live) inset;
}

.nflgr-card__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--nflgr-border);
}

.nflgr-card__status {
	font-size: 0.74em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nflgr-muted);
}

.nflgr-card__status.is-live {
	color: var(--nflgr-live);
}

.nflgr-card__status.is-ot {
	color: var(--nflgr-ot);
}

.nflgr-card__time {
	font-size: 0.8em;
	color: var(--nflgr-muted);
	white-space: nowrap;
}

.nflgr-card__teams {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nflgr-team {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nflgr-team__logo {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	object-fit: contain;
}

.nflgr-team__info {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
}

.nflgr-team__name {
	overflow: hidden;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nflgr-team__record {
	font-size: 0.76em;
	color: var(--nflgr-muted);
}

.nflgr-team__score {
	flex: 0 0 auto;
	min-width: 2ch;
	font-size: 1.35em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.nflgr-team__score--empty {
	color: var(--nflgr-muted);
	font-weight: 400;
}

.nflgr-team.is-winner .nflgr-team__name,
.nflgr-team.is-winner .nflgr-team__score {
	color: var(--nflgr-text);
}

.nflgr-card--post .nflgr-team:not(.is-winner) .nflgr-team__name,
.nflgr-card--post .nflgr-team:not(.is-winner) .nflgr-team__score {
	color: var(--nflgr-muted);
}

.nflgr-card__meta {
	color: var(--nflgr-muted);
	font-size: 0.78em;
}

/* --- Ομάδες σε ρεπό --- */

.nflgr-bye {
	margin-top: 16px;
	padding: 12px 14px;
	border: 1px dashed var(--nflgr-border);
	border-radius: var(--nflgr-radius);
	background: var(--nflgr-surface);
}

.nflgr-bye__title {
	margin: 0 0 8px;
	color: var(--nflgr-muted);
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.nflgr-bye__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nflgr-bye__team {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	font-size: 0.88em;
}

.nflgr-bye__logo {
	width: 26px;
	height: 26px;
	object-fit: contain;
	opacity: 0.75;
}

.nflgr-bye__name {
	color: var(--nflgr-text);
}

/* --- Πίνακας --- */

.nflgr-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--nflgr-bg);
}

.nflgr-table th,
.nflgr-table td {
	padding: 9px 10px;
	border-bottom: 1px solid var(--nflgr-border);
	text-align: left;
	vertical-align: middle;
}

.nflgr-table thead th {
	background: var(--nflgr-surface);
	font-size: 0.78em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--nflgr-muted);
}

.nflgr-table__logo {
	width: 20px;
	height: 20px;
	object-fit: contain;
	vertical-align: -4px;
}

.nflgr-table__score {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	white-space: nowrap;
}

.nflgr-ot-tag {
	display: inline-block;
	padding: 0 5px;
	border-radius: 3px;
	background: var(--nflgr-ot);
	color: #fff;
	font-size: 0.68em;
	font-weight: 700;
	letter-spacing: 0.05em;
	vertical-align: 1px;
}

@media (max-width: 600px) {
	.nflgr-table thead {
		display: none;
	}

	.nflgr-table tr {
		display: block;
		margin-bottom: 10px;
		border: 1px solid var(--nflgr-border);
		border-radius: var(--nflgr-radius);
	}

	.nflgr-table td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		border-bottom: 1px solid var(--nflgr-border);
	}

	.nflgr-table tr td:last-child {
		border-bottom: 0;
	}

	.nflgr-table td::before {
		content: attr(data-label);
		flex: 0 0 auto;
		color: var(--nflgr-muted);
		font-size: 0.75em;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}
}
