/* ==========================================================================
   Snowboard Travel Guide — adventure.css
   The unforgettable centerpiece: "Plan My Snowboard Adventure" 4-stage flow.
   Plus kit-catalog grid and live snowfall ticker inside Today on the Mountain.
   Loaded after polish.css.
   ========================================================================== */

/* =====================================================================
   ADVENTURE — cinematic 4-stage planning dashboard
   ===================================================================== */
.stg-section--adv {
	position: relative;
	padding: clamp(72px, 10vw, 120px) 0;
	color: #fff;
	overflow: hidden;
	isolation: isolate;
	background: #04091a; /* fallback while bg svg paints */
}
.stg-section--adv::before { display: none; } /* override the radial-glow from cinematic.css */
.stg-adv__bg { position: absolute; inset: 0; z-index: -2; }
.stg-adv__bg svg { width: 100%; height: 100%; object-fit: cover; }
.stg-section--adv::after {
	content: '';
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(900px 460px at 50% 20%, rgba(31,111,235,.18), transparent 65%),
	            radial-gradient(700px 380px at 10% 90%, rgba(92,209,201,.10), transparent 65%);
}

.stg-adv__inner { position: relative; z-index: 1; }
.stg-adv__head { max-width: 720px; margin: 0 auto clamp(36px, 4vw, 56px); text-align: center; }
.stg-adv__pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--stg-secondary); margin-right: 6px; box-shadow: 0 0 0 0 rgba(92,209,201,.7); animation: stg-pulse 1.8s cubic-bezier(.66,0,0,1) infinite; }
.stg-adv__title { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 8px 0 14px; letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(31,111,235,.3); }
.stg-adv__sub { color: #cfe7f7; font-size: clamp(1rem, 1.6vw, 1.15rem); margin: 0 0 28px; }

/* progress strip */
.stg-adv__progress {
	display: inline-flex; align-items: center; gap: 14px;
	padding: 10px 18px;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 999px;
	backdrop-filter: blur(14px);
	font-size: .9rem;
}
.stg-adv__progress-bar { width: 200px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.10); overflow: hidden; }
.stg-adv__progress-bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #5cd1c9, #1f6feb, #5cd1c9); background-size: 200% 100%; animation: stg-shimmer 3s linear infinite; transition: width 1.2s var(--stg-easing); }
.stg-adv__progress-num { color: #fff; font-family: var(--stg-font-head); font-weight: 700; font-variant-numeric: tabular-nums; }
.stg-adv__progress-num em { color: var(--stg-secondary); font-style: normal; opacity: .6; margin-left: 2px; }

/* stages — 4 across, asymmetric stacked on mobile */
.stg-adv__stages {
	list-style: none; padding: 0; margin: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	position: relative;
}
@media (max-width: 980px) { .stg-adv__stages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stg-adv__stages { grid-template-columns: 1fr; } }

.stg-adv-stage { position: relative; }
.stg-adv-stage__connector {
	display: none;
	position: absolute; top: 38px; left: 100%; right: -18px; width: 18px; height: 2px;
	background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
	z-index: 0;
}
@media (min-width: 981px) {
	.stg-adv-stage:not(:last-child) .stg-adv-stage__connector { display: block; }
}
.stg-adv-stage__shell {
	padding: 22px;
	display: flex; flex-direction: column; gap: 14px;
	min-height: 260px;
	transition: transform .25s var(--stg-easing), border-color .25s var(--stg-easing), box-shadow .25s var(--stg-easing);
	position: relative;
	overflow: hidden;
}
.stg-adv-stage__shell::before {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(92,209,201,.08), transparent 60%);
	opacity: 0; transition: opacity .25s var(--stg-easing);
}
.stg-adv-stage__shell:hover { transform: translateY(-2px); border-color: rgba(92,209,201,.32); }
.stg-adv-stage__shell:hover::before { opacity: 1; }

.stg-adv-stage header { display: flex; gap: 14px; align-items: flex-start; }
.stg-adv-stage header > div { flex: 1; min-width: 0; }
.stg-adv-stage header .stg-eyebrow { margin: 0 0 4px; padding: 0; }
.stg-adv-stage header .stg-eyebrow::after { display: none; }
.stg-adv-stage header h3 { color: #fff; font-size: 1.1rem; margin: 0; line-height: 1.2; }

.stg-adv-stage__num {
	width: 40px; height: 40px; border-radius: 50%;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.16);
	display: grid; place-items: center;
	flex: 0 0 auto;
	transition: background .25s var(--stg-easing), border-color .25s var(--stg-easing);
}
.stg-adv-stage__num-dot { color: #cfe7f7; font-weight: 700; font-family: var(--stg-font-head); font-size: 1.05rem; }
.stg-adv-stage__check { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.06); display: grid; place-items: center; color: rgba(255,255,255,.25); flex: 0 0 auto; transition: all .25s var(--stg-easing); }

.stg-adv-stage__body { flex: 1; min-height: 60px; }
.stg-adv-stage__empty { color: #9fb3cc; font-size: .92rem; line-height: 1.45; margin: 0; }

/* Filled state — saved data view */
.stg-adv-stage__data { display: flex; flex-direction: column; gap: 8px; }
.stg-adv-stage__data-tag {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 12px;
	background: rgba(92,209,201,.15);
	border: 1px solid rgba(92,209,201,.35);
	border-radius: 999px;
	color: var(--stg-secondary);
	font-size: .82rem;
	font-weight: 700;
	text-transform: capitalize;
	letter-spacing: .02em;
	align-self: flex-start;
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.stg-adv-stage__data-summary { color: #fff; font-size: .95rem; line-height: 1.45; margin: 0; }
.stg-adv-stage__data-summary strong { color: #fff; }
.stg-adv-stage__data-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.stg-adv-stage__data-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--stg-secondary), var(--stg-primary)); width: 0%; transition: width 1s var(--stg-easing); }

/* Completed state */
.stg-adv-stage.is-done .stg-adv-stage__num { background: linear-gradient(135deg, var(--stg-secondary), var(--stg-primary)); border-color: transparent; }
.stg-adv-stage.is-done .stg-adv-stage__num-dot { color: #fff; }
.stg-adv-stage.is-done .stg-adv-stage__check { background: var(--stg-secondary); color: var(--stg-dark); animation: stg-check-pop .4s var(--stg-easing); }
.stg-adv-stage.is-done .stg-adv-stage__shell { border-color: rgba(92,209,201,.30); }
@keyframes stg-check-pop { from { transform: scale(.4); } to { transform: scale(1); } }

/* Active (next-up) state */
.stg-adv-stage.is-next .stg-adv-stage__num { background: rgba(31,111,235,.20); border-color: rgba(31,111,235,.40); }
.stg-adv-stage.is-next .stg-adv-stage__num-dot { color: #fff; }
.stg-adv-stage.is-next .stg-adv-stage__shell { border-color: rgba(31,111,235,.32); box-shadow: 0 0 0 1px rgba(31,111,235,.10), 0 16px 40px rgba(31,111,235,.20); }
.stg-adv-stage.is-next .stg-adv-stage__shell::before { opacity: .4; background: linear-gradient(180deg, rgba(31,111,235,.18), transparent 60%); }

.stg-adv-stage [data-adv-cta] { align-self: flex-start; }
.stg-adv-stage.is-done [data-adv-cta] { background: rgba(255,255,255,.06); color: #cfe7f7; box-shadow: none; border: 1px solid rgba(255,255,255,.16); }
.stg-adv-stage.is-done [data-adv-cta]::before { display: none; }

.stg-adv__foot { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: clamp(28px, 3vw, 40px); }

@media (prefers-reduced-motion: reduce) {
	.stg-adv__pulse, .stg-adv__progress-bar span { animation: none; }
}

/* =====================================================================
   KIT CATALOG — premium visual bundle cards
   ===================================================================== */
.stg-section--kits .stg-section__head { margin-bottom: clamp(24px, 3vw, 40px); }
.stg-kits {
	list-style: none; padding: 0; margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}
.stg-kit-card {
	background: #fff;
	border: 1px solid var(--stg-line);
	border-radius: var(--stg-radius-lg);
	overflow: hidden;
	display: flex; flex-direction: column;
	box-shadow: 0 1px 1px rgba(255,255,255,.75) inset, 0 12px 32px rgba(11,31,58,.08);
	transition: transform .3s var(--stg-easing), box-shadow .3s var(--stg-easing);
	position: relative;
}
.stg-kit-card:hover { transform: translateY(-4px); box-shadow: 0 1px 1px rgba(255,255,255,.75) inset, 0 24px 56px rgba(11,31,58,.16); }
.stg-kit-card__art { position: relative; aspect-ratio: 16/9; }
.stg-kit-card__art svg { width: 100%; height: 100%; }
.stg-kit-card__icon {
	position: absolute; left: 18px; bottom: 18px;
	width: 52px; height: 52px; border-radius: 16px;
	background: rgba(255,255,255,.92);
	box-shadow: 0 8px 22px rgba(11,31,58,.18);
	color: var(--stg-primary);
	display: grid; place-items: center;
}
.stg-kit-card__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.stg-kit-card__count { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--stg-primary); }
.stg-kit-card__body h3 { font-size: 1.15rem; margin: 0; line-height: 1.3; }
.stg-kit-card__body p { color: var(--stg-text-2); font-size: .92rem; margin: 0; line-height: 1.45; }
.stg-kit-card__items { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.stg-kit-card__items li { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--stg-text-2); }
.stg-kit-card__items svg { color: #0d6e57; flex: 0 0 auto; }
.stg-kit-card .stg-btn { margin-top: auto; }

/* =====================================================================
   TODAY ON THE MOUNTAIN — live snowfall ticker
   ===================================================================== */
.stg-today__ticker {
	display: flex; align-items: center; gap: 14px;
	padding: 12px 18px;
	margin-bottom: 20px;
	background: linear-gradient(135deg, rgba(11,31,58,.06), rgba(255,255,255,.7));
	border: 1px solid var(--stg-line);
	border-radius: 999px;
	overflow: hidden;
	white-space: nowrap;
}
.stg-today__ticker-label { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--stg-primary); }
.stg-today__ticker-track { display: inline-flex; gap: 24px; flex: 1 1 auto; animation: stg-marquee 35s linear infinite; }
.stg-today__ticker-item { display: inline-flex; align-items: center; gap: 8px; color: var(--stg-text-2); font-size: .85rem; }
.stg-today__ticker-item b { color: var(--stg-text); font-weight: 700; }
.stg-today__ticker-item em { color: var(--stg-primary); font-style: normal; font-weight: 700; padding: 2px 8px; background: rgba(92,209,201,.14); border-radius: 999px; font-size: .78rem; }
.stg-today__ticker-item .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(11,31,58,.2); }
@media (prefers-reduced-motion: reduce) { .stg-today__ticker-track { animation: none; } }
@media (max-width: 720px) {
	.stg-today__ticker { padding: 10px 14px; }
	.stg-today__ticker-label { font-size: .65rem; }
	.stg-today__ticker-item { font-size: .78rem; }
}

/* =====================================================================
   MOBILE — adventure compactness
   ===================================================================== */
@media (max-width: 720px) {
	.stg-section--adv { padding: clamp(48px, 8vw, 72px) 0; }
	.stg-adv__head { margin-bottom: 28px; }
	.stg-adv__title { font-size: clamp(1.7rem, 6vw, 2.2rem); margin: 6px 0 10px; }
	.stg-adv__sub { font-size: .92rem; margin-bottom: 18px; }
	.stg-adv__progress { padding: 8px 14px; gap: 10px; font-size: .82rem; }
	.stg-adv__progress-bar { width: 140px; }
	.stg-adv-stage__shell { padding: 18px; min-height: 220px; gap: 10px; }
	.stg-adv-stage__num { width: 36px; height: 36px; }
	.stg-adv-stage header h3 { font-size: 1.02rem; }
	.stg-adv-stage__empty { font-size: .85rem; }
	.stg-adv__foot { flex-direction: column; }
	.stg-adv__foot .stg-btn { width: 100%; }
	.stg-kit-card__art { aspect-ratio: 5/3; }
}

/* =====================================================================
   PLATFORM-MODE: when Adventure is fully complete, lift it visually
   ===================================================================== */
.stg-section--adv.is-complete .stg-adv__title::after {
	content: ' 🎿';
	font-size: .8em;
}
