/* /casino-offers/: blue artwork hero, dark offer band, glowing cards.
   Same visual language as the offer band and the article deck. */

/* ---------- hero ---------- */
.cf-op-hero {
	position: relative; isolation: isolate; overflow: hidden; color: #fff;
	background: #2A44C9 url("../../themes/casinofigure-v3/assets/img/offer-bg.webp") center / cover no-repeat;
}
.cf-op-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	/* Top layer first: the bottom fade has to sit above the left-hand wash,
	   or the wash leaves a navy edge where the dark band starts. */
	/* Top layer first: the bottom fade sits above the left wash so the hero
	   ends in exactly the band colour; the copy sits above all of it. */
	background:
		linear-gradient(180deg, transparent calc(100% - 190px), rgb(17 17 17 / .6) calc(100% - 90px), #111),
		radial-gradient(55% 120% at 18% 50%, rgb(14 26 110 / .85), rgb(14 26 110 / .4) 60%, transparent 90%),
		linear-gradient(180deg, rgb(10 20 90 / .2), rgb(10 20 90 / .45));
}
/* Moving light across the artwork, as on the offer band. */
.cf-op-hero::after {
	content: ""; position: absolute; z-index: -1; top: -60%; left: -40%; width: 40%; height: 220%; pointer-events: none;
	background: linear-gradient(100deg, transparent, rgb(255 255 255 / .13), transparent);
	transform: rotate(8deg); animation: cf-op-sheen 7s ease-in-out infinite;
}
@keyframes cf-op-sheen { 0%, 50% { left: -50%; } 100% { left: 130%; } }
.cf-op-hero .rs-wrap { padding-block: 36px 150px; position: relative; z-index: 2; }
.cf-op-hero .rs-crumbs { font-size: 14px; color: #C8D2FF; margin-bottom: 40px; }
.cf-op-hero .rs-crumbs a { color: #C8D2FF; }
.cf-op-hero .rs-crumbs a:hover, .cf-op-hero .rs-crumbs > span:last-child { color: #fff; }
.cf-op-hero__copy { max-width: 640px; }
.cf-op-hero__label {
	display: inline-flex; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
	border: 1px solid rgb(220 227 255 / .35); background: rgb(10 20 90 / .35); backdrop-filter: blur(4px);
	font-size: 13px; font-weight: 600; color: #DCE3FF;
}
.cf-op-hero h1 {
	margin: 0; color: #fff; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -1.5px;
	text-shadow: 0 0 28px rgb(140 170 255 / .55), 0 4px 30px rgb(10 20 90 / .6);
}
.cf-op-hero__lede { margin: 20px 0 0; font-size: 18px; line-height: 1.55; color: #DCE3FF; max-width: 560px; }
.cf-op-hero__chips { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cf-op-hero__chips li {
	padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #fff;
	background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .22); backdrop-filter: blur(6px);
}

/* ---------- dark band ---------- */
.cf-op-band {
	/* flow-root: stops the grid's negative margin collapsing through the band,
	   which pulled the whole band up over the bottom of the hero. */
	display: flow-root; position: relative; background: #111; color: #fff; padding: 0 0 72px;
	background-image: radial-gradient(900px 420px at 50% 30%, rgb(52 80 209 / .2), transparent 70%);
}
.cf-op-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px;
	margin-top: -96px; position: relative; z-index: 3;
}

/* ---------- card ---------- */
.cf-op-card {
	--mx: 50%; --my: 0%;
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column; gap: 18px; padding: 28px;
	border-radius: 22px; background: #16171B; border: 1px solid rgb(255 255 255 / .09);
	box-shadow: 0 24px 60px rgb(0 0 0 / .5), 0 0 0 1px rgb(120 145 255 / .06) inset;
	transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .35s ease, box-shadow .35s ease;
}
/* Light that follows the pointer (offers-page.js sets --mx/--my). */
.cf-op-card__glow {
	position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55; transition: opacity .35s ease;
	background: radial-gradient(420px circle at var(--mx) var(--my), rgb(90 120 255 / .22), transparent 60%);
}
.cf-op-card:hover { transform: translateY(-4px); border-color: rgb(140 162 255 / .4); box-shadow: 0 30px 70px rgb(0 0 0 / .55), 0 0 40px rgb(80 110 255 / .18); }
.cf-op-card:hover .cf-op-card__glow { opacity: 1; }

.cf-op-card__top { display: flex; align-items: center; gap: 16px; }
.cf-op-card__logo { width: 72px; height: 72px; border-radius: 16px; flex: none; margin: 0; background: #0A0A0A; border: 1px solid rgb(255 255 255 / .1); }
.cf-op-card__id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cf-op-card__name { margin: 0; color: #fff; font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.cf-op-card__domain { font-size: 14px; color: #9A9A9A; }

.cf-op-card__offer {
	padding: 20px 22px; border-radius: 16px; position: relative; overflow: hidden;
	background: linear-gradient(135deg, #2238B8, #3450D1 55%, #4B66E8);
	box-shadow: 0 0 0 1px rgb(160 180 255 / .25) inset, 0 12px 30px rgb(30 50 180 / .35);
}
.cf-op-card__offer::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: url("../../themes/casinofigure-v3/assets/img/offer-bg-800.webp") center / cover no-repeat; opacity: .22; mix-blend-mode: screen;
	-webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 70%); mask-image: linear-gradient(90deg, transparent 15%, #000 70%);
}
.cf-op-card__offer span { position: relative; z-index: 1; display: block; font-size: 13px; font-weight: 600; color: #DCE3FF; margin-bottom: 4px; }
.cf-op-card__offer p { position: relative; z-index: 1; margin: 0; font-size: clamp(26px, 3vw, 32px); font-weight: 700; line-height: 1.12; letter-spacing: -.5px; color: #fff; }
.cf-op-card__offer b { color: #fff; text-shadow: 0 0 16px rgb(190 205 255 / .95), 0 0 36px rgb(140 165 255 / .6); }

.cf-op-card__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 0; }
.cf-op-card__facts div { padding: 12px 14px; border-radius: 12px; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .06); min-width: 0; }
.cf-op-card__facts dt { font-size: 12px; color: #9A9A9A; margin: 0 0 3px; }
.cf-op-card__facts dd { margin: 0; font-size: 15px; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.cf-op-card__summary { margin: 0; font-size: 13px; line-height: 1.55; color: #A9A9AE; }

.cf-op-card__actions { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cf-op-card__cta {
	width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border-radius: 999px;
	background: #fff; color: #2238B8; font-size: 17px; font-weight: 700; text-decoration: none;
	box-shadow: 0 0 0 1px rgb(255 255 255 / .6), 0 0 24px rgb(150 175 255 / .7), 0 10px 30px rgb(10 20 90 / .5);
	animation: cf-op-pulse 2.8s ease-in-out infinite; transition: transform .16s ease;
}
.cf-op-card__cta:hover { color: #1A2C99; transform: translateY(-1px); }
@keyframes cf-op-pulse {
	0%, 100% { box-shadow: 0 0 0 1px rgb(255 255 255 / .6), 0 0 18px rgb(150 175 255 / .5), 0 10px 30px rgb(10 20 90 / .5); }
	50% { box-shadow: 0 0 0 1px rgb(255 255 255 / .8), 0 0 34px rgb(150 175 255 / .95), 0 10px 30px rgb(10 20 90 / .5); }
}
.cf-op-card__terms { font-size: 13px; color: #C8D2FF; text-decoration: underline; text-underline-offset: 2px; }
.cf-op-card__terms:hover { color: #fff; }
.cf-op-card__cta:focus-visible, .cf-op-card__terms:focus-visible { outline: 2px solid #9DB2FF; outline-offset: 3px; }

/* ---------- promo code card ---------- */
.cf-op-card__offer--code { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.cf-op-card__offer--code span { margin: 0; }
.cf-op-card__codebtn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border: 2px dashed rgb(255 255 255 / .7); border-radius: 12px; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; font: inherit; }
.cf-op-card__codebtn code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: 1px; color: #fff; background: none; padding: 0; user-select: all; }
.cf-op-card__codebtn em { font-style: normal; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px; background: #fff; color: #2238B8; }
.cf-op-card__codebtn:hover { background: rgb(255 255 255 / .2); }
.cf-op-card__codebtn:focus-visible { outline: 2px solid #9DB2FF; outline-offset: 3px; }

/* ---------- notes + empty ---------- */
.cf-op-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 40px; }
.cf-op-note { padding: 22px 24px; border-radius: 18px; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .08); }
.cf-op-note h2 { margin: 0 0 8px; color: #fff; font-size: 17px; font-weight: 700; }
.cf-op-note p { margin: 0; font-size: 14px; line-height: 1.6; color: #B5B5B5; }
.cf-op-empty { position: relative; z-index: 3; margin-top: -96px; padding: 32px; border-radius: 22px; background: #16171B; border: 1px solid rgb(255 255 255 / .09); }
.cf-op-empty h2 { color: #fff; margin: 0 0 8px; font-size: 22px; }
.cf-op-empty p { margin: 0; color: #B5B5B5; }

/* The safety panel normally follows a white page; here it continues the dark band. */
.cf-op-band + .rs-rg { padding-top: 0; }

@media (max-width: 640px) {
	.cf-op-hero .rs-wrap { padding-block: 24px 120px; }
	.cf-op-hero .rs-crumbs { margin-bottom: 26px; }
	.cf-op-hero__lede { font-size: 16px; }
	.cf-op-card { padding: 20px; gap: 16px; border-radius: 20px; }
	.cf-op-card__logo { width: 60px; height: 60px; border-radius: 14px; }
	.cf-op-card__name { font-size: 21px; }
	.cf-op-card__facts { grid-template-columns: 1fr 1fr; }
	.cf-op-band { padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
	.cf-op-hero::after, .cf-op-card__cta { animation: none; }
	.cf-op-card, .cf-op-card:hover { transition: none; transform: none; }
}

/* Editorial content under the offers (11 Oct 2026). Light page section, like an article. */
.cf-op-content { background: var(--rs-bg, #fff); padding-block: 56px 64px; }
.cf-op-content .rs-article { margin-top: 0; }
.cf-op-band + .cf-op-content + .rs-rg { padding-top: revert; }
.cf-op-updated { margin-top: 32px; }
@media (max-width: 640px) { .cf-op-content { padding-block: 36px 44px; } }
