/* ==========================================================================
   Snowboard Travel Guide — polish.css
   The final refinement pass: Today on the Mountain dashboard, emotional
   product framing, dashboard-style continue-planning, premium card depth,
   atmospheric gradients, mobile vertical-rhythm tightening.
   Loaded after elite.css.
   ========================================================================== */

/* ============================================================
   PREMIUM DEPTH — refined shadow + gradient stack
   ============================================================ */
:root {
	--stg-edge: rgba(255, 255, 255, .65);
	--stg-edge-dark: rgba(255, 255, 255, .12);
}
.stg-glass {
	background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.65) 100%);
	border: 1px solid var(--stg-edge);
	box-shadow:
		0 1px 1px rgba(255,255,255,.7) inset,
		0 16px 48px rgba(11, 31, 58, .12),
		0 4px 12px rgba(11, 31, 58, .06);
}
.stg-glass--dark {
	background: linear-gradient(180deg, rgba(11,31,58,.65) 0%, rgba(6,18,42,.55) 100%);
	border: 1px solid var(--stg-edge-dark);
	box-shadow:
		0 1px 1px rgba(255,255,255,.06) inset,
		0 24px 60px rgba(0, 0, 0, .35),
		0 6px 16px rgba(0, 0, 0, .2);
}

/* Cards: subtle highlight along the top edge for premium "lit-from-above" depth */
.stg-resort-card, .stg-edit-card, .stg-card-tile, .stg-pcard, .stg-tools-card,
.stg-faq__item, .stg-eeat__card, .stg-cat, .stg-pbox, .stg-card,
.stg-method__card, .stg-resort-story__card {
	position: relative;
	box-shadow:
		0 1px 1px rgba(255,255,255,.75) inset,
		0 1px 2px rgba(11,31,58,.04),
		0 8px 22px rgba(11,31,58,.06);
}
.stg-resort-card::before, .stg-edit-card::before, .stg-pcard::before {
	content: '';
	position: absolute; inset: 0;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 32%);
	pointer-events: none;
	z-index: 1;
}
.stg-resort-card > *, .stg-edit-card > *, .stg-pcard > * { position: relative; z-index: 2; }

/* ============================================================
   TODAY ON THE MOUNTAIN — dashboard
   ============================================================ */
.stg-section--today { background: linear-gradient(180deg, var(--stg-bg) 0%, var(--stg-bg-soft) 100%); }
.stg-today__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;
}

/* 5-card asymmetric grid:
   [ FEATURE (large)  ] [ alerts ]
   [ FEATURE (large)  ] [ trends ]
   [ weather ] [ favs ] [ ----- ]
   On wide screens; collapses gracefully. */
.stg-today__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: auto auto;
	gap: 16px;
}
.stg-today-card { border-radius: var(--stg-radius-lg); overflow: hidden; padding: 22px; background: #fff; border: 1px solid var(--stg-line); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 1px rgba(255,255,255,.75) inset, 0 12px 32px rgba(11,31,58,.08); transition: transform .25s var(--stg-easing), box-shadow .25s var(--stg-easing); position: relative; }
.stg-today-card:hover { transform: translateY(-3px); box-shadow: 0 1px 1px rgba(255,255,255,.75) inset, 0 24px 48px rgba(11,31,58,.14); }

.stg-today-card--feature { grid-column: 1; grid-row: 1 / span 2; padding: 0; min-height: 460px; color: #fff; background: linear-gradient(180deg, #0b1f3a, #06122a); border: 1px solid rgba(255,255,255,.10); }
.stg-today-card__media { position: absolute; inset: 0; opacity: .9; }
.stg-today-card__media svg { width: 100%; height: 100%; }
.stg-today-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,58,.0) 0%, rgba(11,31,58,.55) 65%, rgba(6,18,42,.92) 100%); }
.stg-today-card__overlay { position: relative; z-index: 1; padding: 28px; display: flex; flex-direction: column; gap: 14px; height: 100%; justify-content: flex-end; }
.stg-today-card__label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.20); border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; backdrop-filter: blur(8px); align-self: flex-start; color: #fff; }
.stg-today-card__overlay h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0; color: #fff; }
.stg-today-card__overlay p { color: #cfe7f7; margin: 0; font-size: .98rem; max-width: 50ch; }
.stg-today-card__metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 0; }
.stg-today-card__metrics div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); border-radius: 12px; padding: 10px 12px; }
.stg-today-card__metrics dt { font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; color: #9fb3cc; margin: 0 0 4px; font-weight: 700; }
.stg-today-card__metrics dd { color: #fff; font-family: var(--stg-font-head); font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.1; }
@media (max-width: 720px) { .stg-today-card__metrics { grid-template-columns: repeat(2, 1fr); } }
.stg-today-card__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* small dashboard cards */
.stg-today-card--alerts   { grid-column: 2; grid-row: 1; }
.stg-today-card--trending { grid-column: 3; grid-row: 1; }
.stg-today-card--weather  { grid-column: 2; grid-row: 2; }
.stg-today-card--favs     { grid-column: 3; grid-row: 2; }
.stg-today-card header { display: flex; align-items: center; gap: 10px; margin: 0; }
.stg-today-card__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--stg-accent); box-shadow: 0 0 0 0 rgba(255,107,61,.6); animation: stg-pulse 1.8s cubic-bezier(.66,0,0,1) infinite; }
.stg-today-card .stg-eyebrow { margin: 0; padding-bottom: 0; }
.stg-today-card .stg-eyebrow::after { display: none; }

.stg-today-card ul, .stg-today-card ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.stg-today-card li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .92rem; }
.stg-today-card li a { color: var(--stg-text); display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 10px; }
.stg-today-card li a:hover { color: var(--stg-primary); }

/* alerts */
.stg-today-card__alert-name { font-weight: 600; }
.stg-today-card__alert-value { color: var(--stg-secondary); font-weight: 700; font-variant-numeric: tabular-nums; padding: 4px 10px; background: rgba(92,209,201,.12); border-radius: 999px; font-size: .82rem; }

/* trending */
.stg-today-card--trending ol { counter-reset: rank; }
.stg-today-card--trending li { counter-increment: rank; }
.stg-today-card__rank {
	width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--stg-primary), var(--stg-secondary));
	color: #fff; font-size: .72rem; font-weight: 700;
	flex: 0 0 auto;
}
.stg-today-card__trend-name { font-weight: 600; flex: 1; }
.stg-today-card__trend-meta { color: var(--stg-text-mute); font-size: .82rem; }

/* weather */
.stg-today-card--weather li { padding: 8px 0; border-bottom: 1px dashed var(--stg-line); justify-content: space-between; }
.stg-today-card--weather li:last-child { border-bottom: 0; }
.stg-today-card__region { font-weight: 600; }
.stg-today-card__weather { color: var(--stg-text-2); font-variant-numeric: tabular-nums; font-size: .85rem; }

/* favourites */
.stg-today-card__avatars { display: flex; padding: 4px 0; }
.stg-today-card__avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .82rem; border: 2px solid #fff; margin-right: -8px; box-shadow: 0 2px 6px rgba(11,31,58,.18); }
.stg-today-card--favs li { padding: 6px 0; }
.stg-today-card--favs li a { font-weight: 600; }
.stg-today-card--favs li span { color: var(--stg-text-mute); font-size: .8rem; }

@media (max-width: 980px) {
	.stg-today__grid { grid-template-columns: 1fr 1fr; }
	.stg-today-card--feature { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
	.stg-today-card--alerts   { grid-column: 1; grid-row: auto; }
	.stg-today-card--trending { grid-column: 2; grid-row: auto; }
	.stg-today-card--weather  { grid-column: 1; grid-row: auto; }
	.stg-today-card--favs     { grid-column: 2; grid-row: auto; }
}
@media (max-width: 600px) {
	.stg-today__grid { grid-template-columns: 1fr; }
	.stg-today-card--feature { min-height: 320px; }
	.stg-today-card--feature, .stg-today-card--alerts, .stg-today-card--trending, .stg-today-card--weather, .stg-today-card--favs { grid-column: auto; }
}

/* ============================================================
   GEAR FINDER — emotional use-case headline
   ============================================================ */
.stg-gear__use-case {
	margin: 0 0 22px;
	padding: 18px 22px;
	background: linear-gradient(135deg, var(--stg-powder), #fff);
	border: 1px solid var(--stg-line);
	border-radius: var(--stg-radius);
	border-left: 4px solid var(--stg-primary);
	transition: opacity .2s var(--stg-easing), transform .2s var(--stg-easing);
}
.stg-gear__use-case h3 {
	margin: 0;
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	color: var(--stg-text);
	font-family: var(--stg-font-head);
	letter-spacing: -.01em;
}
.stg-gear__use-case.is-changing { opacity: 0; transform: translateY(-4px); }

/* ============================================================
   PRODUCT COMPARISON — emotional frame line
   ============================================================ */
.stg-compare__frame {
	margin: 0 0 22px;
	font-family: var(--stg-font-head);
	font-size: clamp(1.1rem, 1.8vw, 1.3rem);
	color: var(--stg-text);
	font-style: italic;
	letter-spacing: -.01em;
	transition: opacity .2s var(--stg-easing), transform .2s var(--stg-easing);
}
.stg-compare__frame.is-changing { opacity: 0; transform: translateY(-3px); }

/* ============================================================
   CONTINUE PLANNING — dashboard-style upgrade
   ============================================================ */
.stg-continue { padding: 24px; }
.stg-continue__head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.stg-continue__pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--stg-secondary); box-shadow: 0 0 0 0 rgba(92,209,201,.7); animation: stg-pulse 1.8s cubic-bezier(.66,0,0,1) infinite; }
.stg-continue__head .stg-eyebrow::after { display: none; }
.stg-continue__board { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin: 14px 0; padding: 14px; background: rgba(31,111,235,.04); border: 1px dashed var(--stg-line-2); border-radius: var(--stg-radius); }
.stg-continue__pin { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #fff; border: 1px solid var(--stg-line); border-radius: 12px; transition: border-color .15s var(--stg-easing); color: var(--stg-text); }
.stg-continue__pin:hover { border-color: var(--stg-primary); color: var(--stg-text); }
.stg-continue__pin-mark { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .9rem; flex: 0 0 auto; }
.stg-continue__pin-name { display: flex; flex-direction: column; gap: 0; min-width: 0; flex: 1; }
.stg-continue__pin-name strong { font-size: .9rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stg-continue__pin-name small { color: var(--stg-text-mute); font-size: .72rem; }
.stg-continue__progress { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; padding: 12px 14px; background: var(--stg-bg-soft); border-radius: 12px; }
.stg-continue__progress-label { font-size: .82rem; color: var(--stg-text-2); font-weight: 600; }
.stg-continue__progress-bar { height: 6px; border-radius: 999px; background: rgba(11,31,58,.08); overflow: hidden; }
.stg-continue__progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--stg-primary), var(--stg-secondary)); width: 0%; transition: width 1s var(--stg-easing); }

/* ============================================================
   MOBILE — vertical rhythm tightening
   ============================================================ */
@media (max-width: 720px) {
	.stg-home .stg-section { padding-top: clamp(36px, 7vw, 56px); padding-bottom: clamp(36px, 7vw, 56px); }
	.stg-home .stg-section__head { margin-bottom: 20px; }
	.stg-section__head .stg-eyebrow { font-size: .72rem; }
	.stg-section__head .stg-section__title { font-size: 1.5rem; line-height: 1.2; }
	.stg-section__head .stg-section__deck { font-size: .92rem; }
	.stg-hero__inner { padding-top: 80px; padding-bottom: 24px; gap: 24px; }
	.stg-hero__title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
	.stg-hero__sub { font-size: .98rem; }
	.stg-hero__powder { padding: 18px; }
	.stg-hero__badges { gap: 8px 14px; font-size: .82rem; }
	.stg-quick { gap: 8px; }
	.stg-quick__card { padding: 12px 14px; gap: 10px; }
	.stg-quick__icon { width: 36px; height: 36px; }
	.stg-quick__label { font-size: .92rem; }
	.stg-quick__desc { font-size: .78rem; }

	/* The today-on-mountain dashboard already collapses; just compress padding */
	.stg-today-card { padding: 16px; }
	.stg-today-card__overlay { padding: 18px; gap: 10px; }
	.stg-today-card--feature { min-height: 280px; }

	/* Continue-planning collapses cleanly on small screens */
	.stg-continue__board { grid-template-columns: 1fr; }
	.stg-continue__actions { flex-direction: column; }
	.stg-continue__actions .stg-btn { width: 100%; }

	/* Snow-best collapses to single column with metrics in a compact row */
	.stg-snow-best { padding: 16px 18px; gap: 12px; }
	.stg-snow-best__metrics { gap: 12px; }
	.stg-snow-best__metrics .num { font-size: 1.1rem; }
	.stg-snow-best__metrics .lab { font-size: .65rem; }

	/* Sticky mobile CTA refinements (already exists, tighten) */
	.stg-mobile-cta__inner { padding: 8px 12px; }
	.stg-mobile-cta__label { font-size: .68rem; }
	.stg-mobile-cta .stg-btn { padding: 12px 18px; font-size: .9rem; }

	/* Hero ticker on mobile — slim band */
	.stg-hero-ticker__inner { gap: 10px; padding: 8px var(--stg-gutter); }
	.stg-hero-ticker__label { font-size: .65rem; }
	.stg-hero-ticker__track { font-size: .78rem; }
}

/* ============================================================
   ATMOSPHERIC GRADIENTS — subtle scene-setting
   ============================================================ */
.stg-section--quick, .stg-section--continue, .stg-section--today {
	position: relative; isolation: isolate;
}
.stg-section--quick::before, .stg-section--today::before {
	content: '';
	position: absolute; inset: 0; pointer-events: none; z-index: -1;
	background:
		radial-gradient(800px 320px at 80% -10%, rgba(92,209,201,.08), transparent 60%),
		radial-gradient(600px 280px at 0% 110%,  rgba(31,111,235,.06), transparent 60%);
}

/* ============================================================
   POLISH — small inputs and chips
   ============================================================ */
.stg-pill { transition: all .2s var(--stg-easing); }
.stg-pill--active { box-shadow: 0 4px 12px rgba(11,31,58,.18); }

/* Scroll-momentum on the swipeable destination cards */
@media (max-width: 720px) {
	.stg-destinations__grid { padding-bottom: 16px; }
}
