/**
 * AgentX Offer Landing Page styles.
 *
 * @package AgentX_Discount_Engine
 * @author  SPX Circle
 */

/* ==========================================================================
   Hero banner
   ========================================================================== */

.agentx-offer-hero {
	position: relative;
	background: linear-gradient(135deg, #1d2327 0%, #3a3f47 100%);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 72px 24px 88px;
	text-align: center;
	overflow: hidden;
}

.agentx-offer-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(13, 16, 24, 0.55);
}

.agentx-offer-hero__overlay {
	position: relative;
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 32px;
	border-radius: 20px;
	background: rgba(17, 24, 39, 0.72);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.agentx-offer-hero__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 16px;
}

.agentx-offer-hero__badge,
.agentx-offer-hero__deal {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.agentx-offer-hero__badge {
	color: #fff;
}

.agentx-offer-hero__deal {
	background: var(--agentx-accent, #e63946);
	color: #fff;
}

.agentx-offer-hero__title {
	font-size: clamp(28px, 5vw, 42px);
	line-height: 1.15;
	margin: 0 0 14px;
	color: #fff;
}

.agentx-offer-hero__desc {
	font-size: 16px;
	line-height: 1.6;
	opacity: 0.92;
	margin: 0 0 22px;
}

/* Countdown ------------------------------------------------------------- */

.agentx-offer-countdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-bottom: 26px;
}

.agentx-offer-countdown__label {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #ffd166;
	background: rgba(255, 209, 102, 0.12);
	border: 1px solid rgba(255, 209, 102, 0.4);
	border-radius: 999px;
	padding: 6px 18px;
	box-shadow: 0 0 18px rgba(255, 209, 102, 0.18);
}

.agentx-offer-countdown__timer {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 8px;
}

.agentx-offer-countdown__box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 74px;
	padding: 14px 12px 12px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 14px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.agentx-offer-countdown__d,
.agentx-offer-countdown__h,
.agentx-offer-countdown__m,
.agentx-offer-countdown__s {
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.agentx-offer-countdown__cap {
	margin-top: 7px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.75);
}

.agentx-offer-countdown__sep {
	align-self: center;
	font-size: 26px;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.4);
}

.agentx-offer-countdown__box--seconds {
	background: linear-gradient(180deg, rgba(255, 209, 102, 0.22), rgba(255, 209, 102, 0.06));
	border-color: rgba(255, 209, 102, 0.45);
}

.agentx-offer-countdown__box--seconds .agentx-offer-countdown__s {
	color: #ffd166;
	animation: agentx-countdown-pulse 1s ease-in-out infinite;
}

@keyframes agentx-countdown-pulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.1);
		opacity: 0.82;
	}
}

.agentx-offer-countdown--expired {
	opacity: 0.6;
}

.agentx-offer-countdown--expired .agentx-offer-countdown__box--seconds .agentx-offer-countdown__s {
	animation: none;
}

/* Stats ---------------------------------------------------------------- */

.agentx-offer-hero__stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: 26px;
}

.agentx-offer-hero__stat {
	min-width: 140px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	padding: 12px 18px;
}

.agentx-offer-hero__stat strong {
	display: block;
	font-size: 18px;
	line-height: 1.3;
	color: #fff;
}

.agentx-offer-hero__stat span {
	display: block;
	font-size: 12px;
	opacity: 0.8;
	margin-top: 2px;
}

/* CTA ------------------------------------------------------------------- */

.agentx-offer-hero__cta {
	display: inline-block;
	background: var(--agentx-accent, #e63946);
	color: #fff;
	padding: 14px 34px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 10px 24px rgba(230, 57, 70, 0.35);
}

.agentx-offer-hero__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(230, 57, 70, 0.45);
	color: #fff;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.agentx-offer-details,
.agentx-offer-how-it-works,
.agentx-offer-products,
.agentx-offer-related {
	max-width: 1120px;
	margin: 0 auto;
	padding: 48px 24px;
}

.agentx-offer-section__title {
	font-size: 26px;
	line-height: 1.25;
	margin: 0 0 8px;
	text-align: center;
}

.agentx-offer-section__title::after {
	content: '';
	display: block;
	width: 56px;
	height: 4px;
	border-radius: 2px;
	margin: 12px auto 0;
	background: var(--agentx-accent, #e63946);
}

.agentx-offer-details {
	font-size: 15px;
	line-height: 1.7;
	color: #4b5563;
}

/* ==========================================================================
   How it works
   ========================================================================== */

.agentx-offer-how-it-works {
	background: #f6f7f9;
	border-radius: 20px;
}

.agentx-offer-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 28px;
}

.agentx-offer-step {
	background: #fff;
	border: 1px solid #eceef1;
	border-radius: 14px;
	padding: 24px 20px;
	text-align: center;
}

.agentx-offer-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--agentx-accent, #e63946);
	color: #fff;
	font-weight: 700;
	font-size: 17px;
	margin-bottom: 12px;
}

.agentx-offer-step h3 {
	font-size: 15px;
	margin: 0 0 6px;
}

.agentx-offer-step p {
	font-size: 13px;
	line-height: 1.55;
	color: #6b7280;
	margin: 0;
}

.agentx-offer-how-it-works__summary {
	text-align: center;
	font-size: 13px;
	color: #6b7280;
	margin: 24px 0 0;
}

/* ==========================================================================
   Eligible products
   ========================================================================== */

.agentx-offer-section__head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 8px;
}

.agentx-offer-section__head .agentx-offer-section__title {
	margin-bottom: 0;
}

.agentx-offer-products__count {
	display: inline-block;
	background: #eef0f3;
	color: #374151;
	border-radius: 999px;
	padding: 3px 12px;
	font-size: 13px;
	font-weight: 700;
}

.agentx-offer-products__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 28px 0 0;
}

/* Card ------------------------------------------------------------------- */

.agentx-offer-product-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #eceef1;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.agentx-offer-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(17, 24, 39, 0.12);
}

.agentx-offer-product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f3f4f6;
}

.agentx-offer-product-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.agentx-offer-product-card:hover .agentx-offer-product-card__img {
	transform: scale(1.06);
}

.agentx-offer-product-card__ribbon {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--agentx-accent, #e63946);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 4px 10px;
	border-radius: 999px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.agentx-offer-product-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px;
}

.agentx-offer-product-card__cat {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--agentx-accent, #e63946);
	margin-bottom: 6px;
}

.agentx-offer-product-card__title {
	font-size: 15px;
	line-height: 1.35;
	margin: 0 0 8px;
}

.agentx-offer-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.agentx-offer-product-card__title a:hover {
	color: var(--agentx-primary, #111);
	text-decoration: underline;
}

/* Stars ----------------------------------------------------------------- */

.agentx-offer-product-card__rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.agentx-offer-product-card__stars {
	position: relative;
	display: inline-block;
	font-size: 14px;
	line-height: 1;
}

.agentx-offer-product-card__stars::before {
	content: '\2605\2605\2605\2605\2605';
	letter-spacing: 2px;
	color: #d1d5db;
}

.agentx-offer-product-card__stars > span {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	overflow: hidden;
	white-space: nowrap;
}

.agentx-offer-product-card__stars > span::before {
	content: '\2605\2605\2605\2605\2605';
	letter-spacing: 2px;
	color: #f5a623;
}

.agentx-offer-product-card__rating-count {
	font-size: 12px;
	color: #9ca3af;
}

/* Price ----------------------------------------------------------------- */

.agentx-offer-product-card__price {
	font-size: 17px;
	font-weight: 700;
	color: var(--agentx-primary, #111);
	margin-bottom: 14px;
}

.agentx-offer-product-card__price del {
	color: #9ca3af;
	font-weight: 400;
	font-size: 14px;
	margin-right: 6px;
}

.agentx-offer-product-card__price ins {
	text-decoration: none;
}

.agentx-offer-product-card__price .woocommerce-Price-amount {
	color: inherit;
}

/* Actions ---------------------------------------------------------------- */

.agentx-offer-product-card__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
}

.agentx-offer-product-card__add-to-cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	background: var(--agentx-accent, #e63946);
	border: none;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 10px 14px;
	border-radius: 10px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.agentx-offer-product-card__actions .agentx-offer-product-card__add-to-cart {
	background: var(--agentx-accent, #e63946);
	border: none;
	color: #fff;
}

.agentx-offer-product-card__actions .agentx-offer-product-card__add-to-cart:hover {
	background: var(--agentx-primary, #111);
	color: #fff;
	transform: translateY(-1px);
}

.agentx-offer-product-card__add-to-cart.added {
	display: none !important;
}

.agentx-offer-product-card__add-to-cart.loading::before {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 8px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: agentx-spin 0.6s linear infinite;
}

.agentx-offer-product-card__view {
	font-size: 13px;
	font-weight: 600;
	color: #6b7280;
	text-decoration: none;
	white-space: nowrap;
}

.agentx-offer-product-card__view:hover {
	color: var(--agentx-accent, #e63946);
}

@keyframes agentx-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Pagination -------------------------------------------------------------- */

.agentx-offer-products__pagination {
	text-align: center;
	margin-top: 32px;
}

.agentx-offer-products__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	margin: 0 3px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	color: #374151;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.agentx-offer-products__pagination .page-numbers:hover {
	border-color: var(--agentx-accent, #e63946);
}

.agentx-offer-products__pagination .page-numbers.current {
	background: var(--agentx-accent, #e63946);
	border-color: var(--agentx-accent, #e63946);
	color: #fff;
}

/* ==========================================================================
   Requirements (How to get this offer)
   ========================================================================== */

.agentx-offer-requirements {
	max-width: 720px;
	margin: 0 auto;
	padding: 40px 24px 8px;
}

.agentx-offer-requirements__list {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.agentx-offer-requirements__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #fff;
	border: 1px solid #eceef1;
	border-radius: 12px;
	padding: 14px 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.agentx-offer-requirements__check {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--agentx-accent, #e63946);
	position: relative;
	margin-top: 2px;
}

.agentx-offer-requirements__check::after {
	content: '';
	position: absolute;
	left: 7px;
	top: 4px;
	width: 6px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.agentx-offer-requirements__text {
	font-size: 14px;
	line-height: 1.55;
	color: #374151;
}

.agentx-offer-requirements__logic {
	display: inline-block;
	margin-right: 6px;
	background: #eef0f3;
	border-radius: 999px;
	padding: 1px 8px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #6b7280;
	vertical-align: 1px;
}

/* ==========================================================================
   Related offers
   ========================================================================== */

.agentx-offer-related {
	background: #f6f7f9;
	border-radius: 20px;
}

.agentx-offer-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
	list-style: none;
	padding: 0;
	margin: 28px 0 0;
}

.agentx-offer-related__card a {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: #fff;
	border: 1px solid #eceef1;
	border-radius: 14px;
	padding: 12px;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.agentx-offer-related__card a:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 24px rgba(17, 24, 39, 0.1);
}

.agentx-offer-related__media {
	flex-shrink: 0;
	width: 96px;
	height: 96px;
	border-radius: 10px;
	overflow: hidden;
	display: block;
	background: #eef0f3;
}

.agentx-offer-related__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.agentx-offer-related__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--agentx-accent, #e63946);
	font-weight: 700;
	font-size: 18px;
}

.agentx-offer-related__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.agentx-offer-related__badge {
	align-self: flex-start;
	background: var(--agentx-accent, #e63946);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 2px 8px;
	border-radius: 999px;
}

.agentx-offer-related__title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: #111827;
}

.agentx-offer-related__desc {
	font-size: 12px;
	line-height: 1.45;
	color: #6b7280;
}

.agentx-offer-related__cta {
	font-size: 12px;
	font-weight: 700;
	color: var(--agentx-accent, #e63946);
	margin-top: 2px;
}

/* ==========================================================================
   Social proof
   ========================================================================== */

.agentx-offer-social-proof {
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--agentx-accent, #e63946);
	padding: 0 24px 48px;
	margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 720px) {
	.agentx-offer-hero {
		padding: 32px 16px 48px;
	}

	.agentx-offer-hero__overlay {
		padding: 26px 16px;
	}

	.agentx-offer-hero__stats {
		gap: 8px;
	}

	.agentx-offer-hero__stat {
		min-width: 0;
		flex: 1 1 40%;
		padding: 10px 12px;
	}

	.agentx-offer-countdown__timer {
		flex-wrap: wrap;
		gap: 6px;
	}

	.agentx-offer-countdown__box {
		min-width: 64px;
		padding: 10px 8px 8px;
	}

	.agentx-offer-countdown__d,
	.agentx-offer-countdown__h,
	.agentx-offer-countdown__m,
	.agentx-offer-countdown__s {
		font-size: 24px;
	}

	.agentx-offer-countdown__sep {
		font-size: 20px;
	}

	.agentx-offer-requirements,
	.agentx-offer-details,
	.agentx-offer-how-it-works,
	.agentx-offer-products,
	.agentx-offer-related {
		padding: 32px 16px;
	}

	.agentx-offer-requirements {
		padding-bottom: 8px;
	}

	.agentx-offer-steps {
		grid-template-columns: 1fr;
	}

	.agentx-offer-products__grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 12px;
	}

	.agentx-offer-product-card__body {
		padding: 12px;
	}

	.agentx-offer-product-card__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.agentx-offer-product-card__view {
		text-align: center;
	}

	.agentx-offer-related__grid {
		grid-template-columns: 1fr;
	}

	.agentx-offer-products__pagination {
		overflow-x: auto;
		padding-bottom: 6px;
		-webkit-overflow-scrolling: touch;
	}

	.agentx-offer-products__pagination .page-numbers {
		min-width: 34px;
		height: 34px;
	}
}

@media (max-width: 420px) {
	.agentx-offer-hero__title {
		font-size: 24px;
	}

	.agentx-offer-hero__stat strong {
		font-size: 15px;
	}

	.agentx-offer-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.agentx-offer-product-card__price {
		font-size: 15px;
	}
}
