/**
 * FC 27 sitewide promo strip — under header.
 * Football-pitch accents; respects pc-theme-light / pc-theme-dark.
 */

.pc-promo-fc27 {
	--pc-fc-ink: #f4f7f2;
	--pc-fc-muted: rgba(244, 247, 242, 0.78);
	--pc-fc-line: rgba(255, 255, 255, 0.12);
	--pc-fc-pitch: #0f3d2e;
	--pc-fc-pitch-2: #0a2a20;
	--pc-fc-gold: #d4af37;
	--pc-fc-gold-soft: #f0d78c;
	--pc-fc-cta: #e8f5e9;
	--pc-fc-cta-ink: #0a2a20;
	position: relative;
	z-index: 1;
	border-block: 1px solid var(--pc-fc-line);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(212, 175, 55, 0.18), transparent 42%),
		radial-gradient(90% 120% at 0% 100%, rgba(34, 197, 94, 0.16), transparent 45%),
		linear-gradient(105deg, var(--pc-fc-pitch-2) 0%, var(--pc-fc-pitch) 48%, #123d2f 100%);
	overflow: hidden;
}

.pc-promo-fc27::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		repeating-linear-gradient(
			-18deg,
			transparent 0 14px,
			rgba(255, 255, 255, 0.018) 14px 15px
		);
	opacity: 0.7;
	animation: pc-fc27-sheen 14s linear infinite;
}

.pc-promo-fc27::after {
	content: '';
	position: absolute;
	inset-inline-end: -8%;
	inset-block: -40%;
	width: 42%;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(circle at center, rgba(212, 175, 55, 0.2), transparent 68%);
	animation: pc-fc27-pulse 5.5s ease-in-out infinite;
}

html.pc-theme-light .pc-promo-fc27 {
	--pc-fc-ink: #10241c;
	--pc-fc-muted: rgba(16, 36, 28, 0.72);
	--pc-fc-line: rgba(16, 36, 28, 0.1);
	--pc-fc-pitch: #e8f3ec;
	--pc-fc-pitch-2: #f4faf6;
	--pc-fc-gold: #9a7b1a;
	--pc-fc-gold-soft: #7a6114;
	--pc-fc-cta: #0f3d2e;
	--pc-fc-cta-ink: #f4f7f2;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(212, 175, 55, 0.14), transparent 42%),
		radial-gradient(90% 120% at 0% 100%, rgba(34, 197, 94, 0.1), transparent 45%),
		linear-gradient(105deg, #f7fcf8 0%, #eaf6ef 55%, #e3f1e8 100%);
}

.pc-promo-fc27__link {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px 18px;
	max-width: 1300px;
	margin-inline: auto;
	padding: 10px 18px;
	text-decoration: none !important;
	color: var(--pc-fc-ink) !important;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.pc-promo-fc27__link:hover,
.pc-promo-fc27__link:focus-visible {
	background: rgba(255, 255, 255, 0.04);
}

.pc-promo-fc27__link:focus-visible {
	outline: 2px solid var(--pc-fc-gold);
	outline-offset: -2px;
}

.pc-promo-fc27__media {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: #061710;
	flex-shrink: 0;
}

html.pc-theme-light .pc-promo-fc27__media {
	box-shadow: 0 6px 16px rgba(16, 36, 28, 0.12);
	border-color: rgba(16, 36, 28, 0.1);
	background: #fff;
}

.pc-promo-fc27__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1.01);
	transition: transform 0.35s ease;
}

.pc-promo-fc27__link:hover .pc-promo-fc27__media img,
.pc-promo-fc27__link:focus-visible .pc-promo-fc27__media img {
	transform: scale(1.06);
}

.pc-promo-fc27__copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pc-promo-fc27__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--pc-fc-gold-soft);
	line-height: 1.2;
}

.pc-promo-fc27__eyebrow::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--pc-fc-gold);
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
	animation: pc-fc27-dot 1.8s ease-in-out infinite;
}

.pc-promo-fc27__title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
	font-size: clamp(14px, 2.4vw, 17px);
	font-weight: 800;
	line-height: 1.35;
	color: var(--pc-fc-ink);
}

.pc-promo-fc27__title-en {
	font-size: 0.78em;
	font-weight: 600;
	opacity: 0.72;
	letter-spacing: 0.02em;
}

.pc-promo-fc27__meta {
	font-size: 12px;
	line-height: 1.4;
	color: var(--pc-fc-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pc-promo-fc27__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--pc-fc-cta);
	color: var(--pc-fc-cta-ink);
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pc-promo-fc27__link:hover .pc-promo-fc27__cta,
.pc-promo-fc27__link:focus-visible .pc-promo-fc27__cta {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.pc-promo-fc27__cta-arrow {
	display: inline-block;
	transition: transform 0.2s ease;
}

.pc-promo-fc27__link:hover .pc-promo-fc27__cta-arrow,
.pc-promo-fc27__link:focus-visible .pc-promo-fc27__cta-arrow {
	transform: translateX(-3px);
}

@keyframes pc-fc27-sheen {
	from {
		transform: translateX(-6%);
	}
	to {
		transform: translateX(6%);
	}
}

@keyframes pc-fc27-pulse {
	0%,
	100% {
		opacity: 0.55;
		transform: scale(1);
	}
	50% {
		opacity: 0.9;
		transform: scale(1.06);
	}
}

@keyframes pc-fc27-dot {
	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(0.85);
		opacity: 0.65;
	}
}

@media (max-width: 767px) {
	.pc-promo-fc27__link {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 10px 12px;
		padding: 10px 12px;
	}

	.pc-promo-fc27__media {
		width: 44px;
		height: 44px;
		border-radius: 10px;
	}

	.pc-promo-fc27__title-en {
		display: none;
	}

	.pc-promo-fc27__meta {
		font-size: 11px;
	}

	.pc-promo-fc27__cta {
		grid-column: 1 / -1;
		width: 100%;
		padding: 11px 14px;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pc-promo-fc27::before,
	.pc-promo-fc27::after,
	.pc-promo-fc27__eyebrow::before,
	.pc-promo-fc27__media img,
	.pc-promo-fc27__cta,
	.pc-promo-fc27__cta-arrow {
		animation: none !important;
		transition: none !important;
	}
}
