/* Self-hosted Roboto (latin, variable) — no third-party requests, GDPR-safe.
   URL is relative to this file: assets/css/ -> assets/fonts/. */
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/roboto-latin.woff2") format("woff2");
}

.nfl-schedule {
	--nfl-dark: #23272e;
	--nfl-dark-2: #2c313a;
	--nfl-line: #e3e6ea;
	--nfl-matchup-bg: #e9eaec;
	--nfl-text: #1b1f24;
	--nfl-text-dim: #6b7280;
	--nfl-accent: #ff4b2b;
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 12px 40px;
	color: var(--nfl-text);
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

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

.nfl-schedule__title {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 8px;
	color: var(--nfl-text);
}

.nfl-schedule__intro {
	margin: 0 0 20px;
	color: var(--nfl-text-dim);
	font-size: 16px;
	line-height: 1.5;
	max-width: 760px;
}

/* ---------- Hero ---------- */
.nfl-hero {
	position: relative;
	background-size: cover;
	background-position: center bottom;
	border-radius: 14px;
	overflow: hidden;
	margin: 0 0 28px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16), 0 8px 24px rgba(0, 0, 0, 0.12);
}

.nfl-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(6, 12, 28, 0.55) 0%, rgba(6, 12, 28, 0.25) 55%, rgba(6, 12, 28, 0.45) 100%);
}

.nfl-hero__inner {
	position: relative;
	text-align: center;
	padding: 56px 28px 150px;
	max-width: 1080px;
	margin: 0 auto;
}

.nfl-hero__title {
	margin: 0 0 14px;
	color: #fff !important;
	font-size: 56px;
	white-space: nowrap;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.nfl-hero__subtitle {
	margin: 0;
	color: #fff !important;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.4;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

@media (max-width: 640px) {
	.nfl-hero__inner {
		padding: 40px 18px 46px;
	}

	.nfl-hero__title {
		font-size: 30px;
		white-space: normal;
	}

	.nfl-hero__subtitle {
		font-size: 16px;
	}
}

/* ---------- Team picker ---------- */
.nfl-picker__heading {
	color: #1d232b !important;
	font-size: 20px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 8px 0 18px;
}

.nfl-picker__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

@media (max-width: 900px) {
	.nfl-picker__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 600px) {
	.nfl-picker__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.nfl-team-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 16px 6px 6px;
	background: #e5e5e5;
	border-radius: 999px;
	text-decoration: none;
	color: #000 !important;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.nfl-team-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.nfl-team-btn__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--team-color, #23272e);
	flex: 0 0 auto;
}

.nfl-team-btn__badge svg {
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.nfl-team-btn__abbr,
a.nfl-team-btn .nfl-team-btn__abbr,
a.nfl-team-btn:link .nfl-team-btn__abbr,
a.nfl-team-btn:visited .nfl-team-btn__abbr,
a.nfl-team-btn:hover .nfl-team-btn__abbr,
a.nfl-team-btn:active .nfl-team-btn__abbr,
a.nfl-team-btn:focus .nfl-team-btn__abbr {
	color: #000 !important;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

/* ---------- Team header ---------- */
.nfl-schedule__back {
	display: inline-block;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--nfl-accent);
	text-decoration: none;
}

.nfl-schedule__back:hover {
	text-decoration: underline;
}

.nfl-team-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 22px;
}

.nfl-team-header__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: var(--team-color, #23272e);
	flex: 0 0 auto;
}

.nfl-team-header__name {
	font-size: 30px;
	font-weight: 800;
	margin: 0;
	line-height: 1.1;
}

.nfl-team-header__intro {
	margin: 6px 0 0;
	color: var(--nfl-text-dim);
	font-size: 16px;
	line-height: 1.5;
	max-width: 760px;
}

/* ---------- Cards ---------- */
.nfl-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
}

.nfl-card {
	background: #fff;
	border: 1px solid var(--nfl-line);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16), 0 8px 24px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
}

.nfl-card__date {
	background: var(--nfl-dark);
	color: #fff;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 12px 14px;
}

.nfl-card__matchup {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: var(--nfl-matchup-bg);
	padding: 16px 12px;
}

.nfl-card__team {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 64px;
}

.nfl-card__abbr {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.03em;
	color: var(--nfl-text);
}

.nfl-card__at {
	font-size: 32px;
	font-weight: 700;
	color: #9aa1ab;
}

.nfl-card__section-h {
	background: var(--nfl-dark);
	color: #fff;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 7px 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nfl-tooltip {
	position: relative;
	cursor: help;
	border-bottom: 1px dotted rgba(255, 255, 255, 0.55);
	outline: none;
}

.nfl-tooltip::after {
	content: attr(data-tip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	width: 230px;
	background: #fff;
	color: #1d232b;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: normal;
	text-transform: none;
	text-align: center;
	padding: 10px 12px;
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease;
	pointer-events: none;
	z-index: 20;
}

.nfl-tooltip::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: calc(100% + 2px);
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #fff;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease;
	pointer-events: none;
	z-index: 20;
}

.nfl-tooltip:hover::after,
.nfl-tooltip:hover::before,
.nfl-tooltip:focus::after,
.nfl-tooltip:focus::before {
	opacity: 1;
	visibility: visible;
}

.nfl-card__section-b {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 12px 10px;
	text-align: center;
}

.nfl-card__val {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--nfl-text);
}

.nfl-card__none {
	color: #b3b8c0;
	font-weight: 700;
}

.nfl-card__watch {
	margin: auto 12px 14px;
	text-align: center;
	background: var(--nfl-accent);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
	padding: 10px 12px;
	border-radius: 8px;
}

.nfl-card__watch:hover {
	filter: brightness(1.05);
}

.nfl-schedule--empty {
	padding: 32px;
	text-align: center;
	color: var(--nfl-text-dim);
}

@media (max-width: 480px) {
	.nfl-schedule__title {
		font-size: 22px;
	}
	.nfl-team-header__name {
		font-size: 24px;
	}
	.nfl-cards {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
}
