/*
Theme Name: eFootball Coins Landing
Theme URI: https://example.com/
Author: Landing Theme Author
Author URI: https://example.com/
Description: A lightweight, mobile-first landing page theme for a single affiliate offer. Every call-to-action button links to one Offer URL that you set in Appearance > Landing Settings. No tracking scripts, no external libraries, no fake rewards.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: efootball-coins-landing
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ink: #04060d;
	--navy: #08112b;
	--navy-2: #0d1d4a;
	--blue: #2f7dff;
	--blue-hi: #6aaeff;
	--gold: #f6b93b;
	--gold-hi: #ffe08a;
	--gold-lo: #c98a0b;
	--text: #eef3ff;
	--muted: #a3b3d8;
	--line: rgba(106, 174, 255, 0.22);
	--radius: 20px;
	--wrap: 1120px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text);
	background:
		radial-gradient(120% 70% at 85% -8%, #153a86 0%, rgba(21, 58, 134, 0) 58%),
		radial-gradient(90% 55% at 0% 100%, #0b2d6e 0%, rgba(11, 45, 110, 0) 55%),
		linear-gradient(180deg, #070e26 0%, var(--ink) 100%);
	background-color: var(--ink);
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	max-width: 100%;
}

a {
	color: var(--blue-hi);
}

:focus-visible {
	outline: 3px solid var(--gold-hi);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--gold);
	color: #1b1200;
	font-weight: 700;
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
}

.wrap {
	width: min(calc(100% - 40px), var(--wrap));
	margin-inline: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	padding: 16px 0 0;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--text);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.brand__coin {
	display: block;
	width: 30px;
	height: 30px;
	flex: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:active {
	transform: translateY(1px) scale(0.99);
}

.btn--gold {
	color: #1b1200;
	background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, #dd9c16 100%);
	box-shadow: 0 12px 32px -10px rgba(246, 185, 59, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.btn--gold:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 36px -10px rgba(246, 185, 59, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.btn--blue {
	color: #dbe8ff;
	background: rgba(47, 125, 255, 0.16);
	border-color: rgba(106, 174, 255, 0.5);
}

.btn--blue:hover {
	color: #fff;
	background: var(--blue);
	border-color: var(--blue);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	padding: 20px 0 44px;
	overflow: hidden;
}

.hero__grid {
	display: grid;
	gap: 28px;
}

.hero__copy {
	display: grid;
	gap: 16px;
	justify-items: stretch;
	align-content: start;
}

.hero h1 {
	margin: 0;
	font-size: clamp(2.1rem, 9vw, 3.9rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

.hero__sub {
	margin: 0;
	max-width: 34em;
	font-size: clamp(1rem, 3.8vw, 1.2rem);
	color: var(--muted);
}

.hero__cta .btn {
	width: 100%;
}

.hero__note {
	margin: 0;
	font-size: 0.875rem;
	color: var(--muted);
}

.admin-note,
.unavailable {
	margin: 0;
	padding: 14px 16px;
	border-radius: 14px;
	font-size: 0.95rem;
}

.admin-note {
	border: 1px solid var(--gold);
	background: rgba(246, 185, 59, 0.12);
	color: var(--gold-hi);
}

.admin-note a {
	color: #fff;
}

.unavailable {
	border: 1px solid var(--line);
	background: rgba(10, 20, 52, 0.6);
	color: var(--muted);
}

/* Coin illustration */
.stage {
	position: relative;
	width: min(100%, 400px);
	aspect-ratio: 1 / 1;
	margin-inline: auto;
}

.stage::before {
	content: "";
	position: absolute;
	inset: 4%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(47, 125, 255, 0.55) 0%, rgba(47, 125, 255, 0.18) 46%, rgba(47, 125, 255, 0) 70%);
}

.stage__ring {
	position: absolute;
	border: 1px solid var(--line);
	border-radius: 50%;
}

.stage__ring--1 {
	inset: 3%;
}

.stage__ring--2 {
	inset: 17%;
	border-color: rgba(246, 185, 59, 0.28);
}

.coin {
	--r: 0deg;
	position: absolute;
	display: block;
	aspect-ratio: 1 / 1;
	height: auto;
	transform: rotate(var(--r));
	filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 20px rgba(246, 185, 59, 0.32));
	animation:
		coin-drop 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both,
		coin-bob 6s ease-in-out 0.9s infinite;
}

.coin--a {
	width: 54%;
	left: 23%;
	top: 21%;
}

.coin--b {
	--r: -14deg;
	width: 30%;
	left: 5%;
	top: 56%;
	animation-delay: 0.12s, 1.02s;
}

.coin--c {
	--r: 16deg;
	width: 25%;
	right: 6%;
	top: 10%;
	animation-delay: 0.24s, 1.14s;
}

.coin--d {
	--r: 8deg;
	width: 17%;
	right: 14%;
	bottom: 9%;
	animation-delay: 0.36s, 1.26s;
}

@keyframes coin-drop {
	from {
		opacity: 0;
		transform: translateY(-36px) rotate(var(--r)) scale(0.92);
	}

	to {
		opacity: 1;
		transform: translateY(0) rotate(var(--r)) scale(1);
	}
}

@keyframes coin-bob {
	0%,
	100% {
		transform: translateY(0) rotate(var(--r));
	}

	50% {
		transform: translateY(-9px) rotate(var(--r));
	}
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
	padding: 44px 0;
}

.section h2 {
	margin: 0;
	font-size: clamp(1.6rem, 5.5vw, 2.3rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.section__lede {
	max-width: 40em;
	margin: 10px 0 0;
	color: var(--muted);
}

/* Coin cards */
.cards {
	display: grid;
	gap: 14px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.card {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"pile text"
		"cta cta";
	align-items: center;
	gap: 8px 18px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(160deg, rgba(24, 48, 112, 0.6) 0%, rgba(8, 14, 36, 0.92) 100%);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
	transform: translateY(-3px);
	border-color: rgba(246, 185, 59, 0.55);
}

.card .btn {
	grid-area: cta;
	width: 100%;
	margin-top: 8px;
}

.card__text {
	grid-area: text;
	min-width: 0;
}

.card__label {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
}

.card__note {
	margin: 2px 0 0;
	font-size: 0.85rem;
	color: var(--muted);
}

/* The number of stacked coins grows with each card. */
.pile {
	--u: 1px;
	position: relative;
	grid-area: pile;
	width: calc(96 * var(--u));
	height: calc(80 * var(--u));
}

.pile__coin {
	position: absolute;
	display: block;
	aspect-ratio: 1 / 1;
	height: auto;
	filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5));
}

.pile--1 .pile__coin {
	width: calc(54 * var(--u));
	left: calc(21 * var(--u));
	top: calc(12 * var(--u));
}

.pile--2 .pile__coin {
	width: calc(48 * var(--u));
}

.pile--2 .pile__coin:nth-child(1) {
	left: calc(6 * var(--u));
	top: calc(22 * var(--u));
}

.pile--2 .pile__coin:nth-child(2) {
	left: calc(40 * var(--u));
	top: calc(8 * var(--u));
}

.pile--3 .pile__coin {
	width: calc(44 * var(--u));
}

.pile--3 .pile__coin:nth-child(1) {
	left: calc(2 * var(--u));
	top: calc(28 * var(--u));
}

.pile--3 .pile__coin:nth-child(2) {
	left: calc(50 * var(--u));
	top: calc(26 * var(--u));
}

.pile--3 .pile__coin:nth-child(3) {
	left: calc(26 * var(--u));
	top: calc(6 * var(--u));
	width: calc(48 * var(--u));
}

/* Steps */
.steps {
	display: grid;
	gap: 18px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.step {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 16px;
	align-items: start;
	align-content: start;
	counter-increment: step;
}

.step::before {
	content: counter(step);
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(246, 185, 59, 0.6);
	border-radius: 50%;
	background: rgba(246, 185, 59, 0.1);
	color: var(--gold-hi);
	font-weight: 800;
}

.step__title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.3;
}

.step__text {
	margin: 4px 0 0;
	color: var(--muted);
}

/* FAQ */
.faq {
	display: grid;
	gap: 10px;
	max-width: 760px;
	margin-top: 24px;
}

.faq details {
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(10, 20, 52, 0.6);
}

.faq summary {
	position: relative;
	display: block;
	padding: 16px 48px 16px 18px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--gold);
	border-bottom: 2px solid var(--gold);
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.2s ease;
}

.faq details[open] summary::after {
	transform: translateY(-30%) rotate(-135deg);
}

.faq p {
	margin: 0;
	padding: 0 18px 18px;
	color: var(--muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	margin-top: 24px;
	padding: 32px 0 44px;
	border-top: 1px solid var(--line);
	background: rgba(0, 0, 0, 0.35);
	font-size: 0.875rem;
	color: var(--muted);
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.footer-links a {
	color: var(--text);
}

.site-footer p {
	max-width: 64em;
	margin: 0 0 10px;
}

/* ==========================================================================
   Pages, posts and 404 (Privacy Policy, Terms and Conditions, etc.)
   ========================================================================== */
.entry {
	max-width: 760px;
	padding: 28px 0 56px;
}

.entry__title {
	margin: 0 0 16px;
	font-size: clamp(1.8rem, 6vw, 2.6rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.entry__content {
	overflow-wrap: anywhere;
}

.entry__content img {
	height: auto;
}

.entry__content pre {
	overflow: auto;
}

.entry__content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.entry__content h2,
.entry__content h3 {
	margin: 1.6em 0 0.5em;
	line-height: 1.25;
}

.navigation.pagination {
	padding-bottom: 40px;
}

/* ==========================================================================
   Larger screens
   ========================================================================== */
@media (min-width: 640px) {
	.hero__cta .btn {
		width: auto;
		min-width: 280px;
	}

	.hero__copy {
		justify-items: start;
	}
}

@media (min-width: 760px) {
	.hero {
		padding: 36px 0 64px;
	}

	.hero__grid {
		grid-template-columns: 1.1fr 0.9fr;
		align-items: center;
		gap: 40px;
	}

	.hero h1 {
		font-size: clamp(2.3rem, 5.2vw, 3.9rem);
	}

	.section {
		padding: 64px 0;
	}

	.cards {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}

	.card {
		grid-template-columns: 1fr;
		grid-template-areas:
			"pile"
			"text"
			"cta";
		justify-items: center;
		gap: 10px;
		padding: 28px 22px 24px;
		text-align: center;
	}

	.pile {
		--u: 1.35px;
	}

	.steps {
		grid-template-columns: repeat(3, 1fr);
		gap: 28px;
	}

	.step {
		grid-template-columns: 1fr;
		row-gap: 0;
	}

	.step::before {
		grid-row: auto;
		margin-bottom: 14px;
	}
}

@media (min-width: 1024px) {
	.hero__grid {
		gap: 64px;
	}

	.stage {
		width: min(100%, 460px);
	}
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
