/* ==========================================================================
   GTA6 NOW · winter.css
   Modular Western Holiday Season seasonal branding layer (loads after site.css).
   Toggle off after the holidays by removing `gta-winter` from <html> (or
   dropping winter.css / winter.js).
   Principles:
   - Classic Western Holiday warmth: crimson, evergreen pine, warm champagne
     gold fairy lights, frosted winter midnight slate.
   - Editorial readability first: high WCAG contrast, zero CLS, zero overlap
     with AdSense or article prose, respectful of prefers-reduced-motion.
   ========================================================================== */

html.gta-winter {
	--bg: #0c1017;
	--surface: #131924;
	--surface-2: #1b2332;
	--line: #243043;
	--line-strong: #33435c;

	--accent: #d92b49;
	--accent-ink: #ff708c;
	--accent-soft: rgba(217, 43, 73, 0.16);

	--winter-crimson: #e63956;
	--winter-gold: #f5c969;
	--winter-gold-soft: rgba(245, 201, 105, 0.14);
	--winter-pine: #2e8b62;
	--winter-pine-soft: rgba(46, 139, 98, 0.16);
	--winter-frost: #cce4ff;
	--winter-frost-soft: rgba(204, 228, 255, 0.10);

	--vc-pink: #e63956;
	--vc-pink-2: #ff708c;
	--grad-line: linear-gradient(90deg, #2e8b62 0%, #e63956 38%, #f5c969 68%, #7dd3fc 100%);
	--border: var(--line);
	--border-2: var(--line-strong);
	--bg-card: var(--surface);
	--bg-card-2: var(--surface-2);
}

html.gta-winter body {
	background-color: var(--bg) !important;
	background-image:
		radial-gradient(960px 440px at 50% -80px, rgba(125, 211, 252, 0.075), transparent 72%),
		radial-gradient(620px 360px at 88% 40px, rgba(245, 201, 105, 0.055), transparent 70%),
		radial-gradient(560px 340px at 10% 80px, rgba(46, 139, 98, 0.055), transparent 70%) !important;
	background-repeat: no-repeat !important;
	background-attachment: scroll !important;
}

html.gta-winter ::selection {
	background: rgba(230, 57, 86, 0.38);
	color: #fff;
}

/* ==========================================================================
   1. Frosted Sticky Header, Festive Top Ribbon & Warm Western String Lights
   ========================================================================== */

html.gta-winter .head-line {
	background: rgba(12, 16, 23, 0.90) !important;
	border-bottom: 1px solid rgba(204, 228, 255, 0.14) !important;
}

/* Subtle 2px Western holiday ribbon along top edge of header (zero CLS) */
html.gta-winter .head-line::before {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, #1f7a53 0%, #d92b49 28%, #f5c969 50%, #d92b49 72%, #1f7a53 100%) !important;
	opacity: 0.92;
	pointer-events: none;
	z-index: 2;
}

/* Festive Santa-hat logo mark optical alignment (zero header height change) */
html.gta-winter .logo > img,
html.gta-winter .footer-logo > img,
html.gta-winter .mob-brand > img {
	width: 34px !important;
	height: 34px !important;
	margin: -2px 0 0 !important;
}

html.gta-winter .logo-r b,
html.gta-winter .logo-r em {
	color: var(--accent-ink) !important;
}

/* Active nav underline uses warm crimson-to-champagne holiday gradient */
html.gta-winter .top-menu-link::after {
	background: linear-gradient(90deg, var(--winter-crimson) 0%, var(--winter-gold) 100%) !important;
}

html.gta-winter .section-nav {
	background: rgba(12, 16, 23, 0.94) !important;
	border-bottom-color: rgba(204, 228, 255, 0.12) !important;
}

html.gta-winter .section-nav a.is-active {
	border-bottom-color: var(--winter-gold) !important;
}

/* Primary holiday CTA buttons */
html.gta-winter .head-reg,
html.gta-winter .mob-drawer-cta-primary,
html.gta-winter .form-search,
html.gta-winter .enter,
html.gta-winter .fbutton {
	background: var(--accent) !important;
	border-color: rgba(255, 255, 255, 0.12) !important;
}

html.gta-winter .head-reg:hover,
html.gta-winter .mob-drawer-cta-primary:hover,
html.gta-winter .form-search:hover,
html.gta-winter .enter:hover,
html.gta-winter .fbutton:hover {
	background: #eb425f !important;
}

/* Hanging Western Christmas string fairy lights (0px flow height, pointer-events: none) */
html.gta-winter .gta-winter-lights {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 20px;
	overflow: hidden;
	pointer-events: none;
	user-select: none;
	z-index: 1;
	opacity: 0.95;
}

html.gta-winter .gta-winter-lights-wire {
	position: absolute;
	inset: 0;
	background-repeat: repeat-x;
	background-position: 0 0;
	background-size: 160px 20px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='20' viewBox='0 0 160 20' fill='none'%3E%3Cpath d='M0 1.5 Q40 11 80 1.5 Q120 11 160 1.5' stroke='%232e5444' stroke-width='1.35' stroke-opacity='0.82'/%3E%3C/svg%3E");
}

html.gta-winter .gta-winter-lights-row {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
	height: 20px;
	padding: 0 18px;
	box-sizing: border-box;
}

@keyframes gtaWinterTwinkle {
	0%, 100% {
		opacity: 0.95;
		transform: translateZ(0) scale(1);
	}
	50% {
		opacity: 0.42;
		transform: translateZ(0) scale(0.92);
	}
}

html.gta-winter .gta-w-bulb {
	position: relative;
	display: block;
	width: 5px;
	height: 8px;
	border-radius: 50% 50% 56% 56% / 40% 40% 60% 60%;
	flex-shrink: 0;
	margin-top: var(--bulb-drop, 4px);
	animation: gtaWinterTwinkle var(--twinkle-dur, 4.8s) ease-in-out var(--twinkle-delay, 0s) infinite;
	will-change: opacity, transform;
}

html.gta-winter .gta-w-bulb::before {
	content: "" !important;
	display: block !important;
	position: absolute;
	top: -2.5px;
	left: 50%;
	width: 4px;
	height: 3px;
	margin-left: -2px;
	border-radius: 1px 1px 0 0;
	background: #274438;
}

html.gta-winter .gta-w-bulb--gold {
	background: #ffe08a !important;
	box-shadow: 0 1px 8px 1px rgba(245, 201, 105, 0.65) !important;
}

html.gta-winter .gta-w-bulb--crimson {
	background: #ff5873 !important;
	box-shadow: 0 1px 8px 1px rgba(230, 57, 86, 0.62) !important;
}

html.gta-winter .gta-w-bulb--pine {
	background: #4ade80 !important;
	box-shadow: 0 1px 8px 1px rgba(52, 211, 153, 0.52) !important;
}

html.gta-winter .gta-w-bulb--frost {
	background: #bae6fd !important;
	box-shadow: 0 1px 8px 1px rgba(125, 211, 252, 0.58) !important;
}

/* Compact string lights on mobile/tablet so they clear .section-nav labels cleanly */
@media (max-width: 1100px) {
	html.gta-winter .gta-winter-lights {
		height: 11px;
		opacity: 0.85;
	}
	html.gta-winter .gta-winter-lights-wire {
		background-size: 120px 11px;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='11' viewBox='0 0 120 11' fill='none'%3E%3Cpath d='M0 1 Q30 6.5 60 1 Q90 6.5 120 1' stroke='%232e5444' stroke-width='1.1' stroke-opacity='0.75'/%3E%3C/svg%3E");
	}
	html.gta-winter .gta-winter-lights-row {
		height: 11px;
		padding: 0 10px;
	}
	html.gta-winter .gta-w-bulb {
		width: 4px;
		height: 6px;
		margin-top: var(--bulb-drop-mob, 2px);
	}
	html.gta-winter .gta-w-bulb::before {
		top: -2px;
		width: 3px;
		height: 2px;
		margin-left: -1.5px;
	}
}

/* ==========================================================================
   2. Desktop Header Snowflake Toggle (matches .opensearch craft)
   ========================================================================== */

html.gta-winter .gta-winter-head-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	background: rgba(204, 228, 255, 0.04);
	color: var(--winter-frost);
	cursor: pointer;
	flex-shrink: 0;
	transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

html.gta-winter .gta-winter-head-btn:hover {
	border-color: rgba(245, 201, 105, 0.45);
	background: rgba(245, 201, 105, 0.10);
	color: var(--winter-gold);
}

html.gta-winter .gta-winter-head-btn:active {
	transform: scale(0.94);
}

html.gta-winter .gta-winter-head-btn[aria-pressed="false"] {
	color: var(--faint);
	background: transparent;
	border-color: var(--line);
}

html.gta-winter .gta-winter-head-btn svg {
	width: 17px;
	height: 17px;
	display: block;
}

@media (max-width: 1100px) {
	/* Keep mobile header uncluttered; toggle remains in footer & drawer */
	html.gta-winter .gta-winter-head-btn {
		display: none !important;
	}
}

/* ==========================================================================
   3. Status Line Holiday Gift Guide Pill & Editorial Chrome Accents
   ========================================================================== */

html.gta-winter .status-line {
	border-bottom-color: rgba(204, 228, 255, 0.10) !important;
}

html.gta-winter .gta-holiday-pill {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 2px 10px 2px 8px !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, rgba(46, 139, 98, 0.20) 0%, rgba(245, 201, 105, 0.13) 100%) !important;
	border: 1px solid rgba(245, 201, 105, 0.34) !important;
	color: #f7dda4 !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

html.gta-winter .gta-holiday-pill:hover {
	border-color: rgba(245, 201, 105, 0.65) !important;
	background: linear-gradient(135deg, rgba(46, 139, 98, 0.28) 0%, rgba(245, 201, 105, 0.22) 100%) !important;
	color: #fff3d1 !important;
}

html.gta-winter .gta-holiday-pill:active {
	transform: scale(0.97);
}

html.gta-winter .gta-holiday-pill svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	display: block;
}

/* Frosted winter-glass frame for lead hero story and pinned official statement */
html.gta-winter .hslider-news-image {
	border: 1px solid rgba(204, 228, 255, 0.15) !important;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36) !important;
}

html.gta-winter .gta-pinned-statement {
	background: linear-gradient(180deg, rgba(23, 31, 45, 0.94) 0%, rgba(19, 25, 36, 0.98) 100%) !important;
	border: 1px solid rgba(204, 228, 255, 0.14) !important;
	border-left: 3px solid var(--winter-gold) !important;
}

html.gta-winter .gta-ps-tag {
	color: var(--winter-gold) !important;
}

html.gta-winter .gta-ps-dot {
	background: var(--winter-gold) !important;
}

/* Subtle frosted hairline around card thumbnails */
html.gta-winter .gtnews2-image,
html.gta-winter .gta-rumor-image,
html.gta-winter .relnews-image,
html.gta-winter .gta-disc-image,
html.gta-winter .rnews-image,
html.gta-winter .main-news-image,
html.gta-winter .gta-know-pic {
	border: 1px solid rgba(204, 228, 255, 0.08) !important;
}

@media (hover: hover) {
	html.gta-winter .gtnews2:hover .gtnews2-image,
	html.gta-winter .gta-know-door:hover .gta-know-pic,
	html.gta-winter .main-news:hover .main-news-image {
		border-color: rgba(245, 201, 105, 0.32) !important;
	}
}

/* Article reading progress bar & back-to-top ring in holiday crimson-gold */
html.gta-winter .gta-read-progress-bar {
	background: linear-gradient(90deg, var(--winter-crimson) 0%, var(--winter-gold) 65%, #7dd3fc 100%) !important;
}

html.gta-winter .gta-btt-ring {
	background: rgba(19, 25, 36, 0.92) !important;
	border: 1px solid rgba(204, 228, 255, 0.16) !important;
}

html.gta-winter .gta-btt-ring .gta-btt-fill {
	stroke: var(--winter-gold) !important;
}

/* Search & login popovers frosted midnight border */
html.gta-winter .search-block-wrap,
html.gta-winter .login-block,
html.gta-winter .mob-panel {
	background: rgba(16, 22, 33, 0.97) !important;
	border-color: rgba(204, 228, 255, 0.14) !important;
}

/* ==========================================================================
   4. Footer Western Holiday Colophon & Snowfall Toggle
   ========================================================================== */

html.gta-winter .footer {
	position: relative;
	border-top: 1px solid rgba(204, 228, 255, 0.15) !important;
	background: linear-gradient(180deg, rgba(20, 29, 43, 0.42) 0%, rgba(12, 16, 23, 0) 140px) !important;
}

html.gta-winter .footer::before {
	content: "" !important;
	display: block !important;
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, rgba(46, 139, 98, 0.55) 20%, rgba(245, 201, 105, 0.65) 50%, rgba(230, 57, 86, 0.55) 80%, transparent 100%) !important;
	pointer-events: none;
}

html.gta-winter .gta-winter-greeting {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 14px;
	padding: 10px 12px;
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(46, 139, 98, 0.12) 0%, rgba(245, 201, 105, 0.08) 100%);
	border: 1px solid rgba(245, 201, 105, 0.22);
	color: #d7deea;
	font-size: 13px;
	line-height: 1.45;
}

html.gta-winter .gta-winter-greeting svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 1px;
}

html.gta-winter .gta-winter-greeting strong {
	color: #f7dda4;
	font-weight: 600;
}

html.gta-winter .gta-winter-fx-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	height: 32px;
	padding: 0 11px;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	background: rgba(204, 228, 255, 0.04);
	color: var(--winter-frost);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

html.gta-winter .gta-winter-fx-btn:hover {
	border-color: rgba(245, 201, 105, 0.45);
	background: rgba(245, 201, 105, 0.08);
	color: var(--winter-gold);
}

html.gta-winter .gta-winter-fx-btn[aria-pressed="false"] {
	color: var(--muted);
	border-color: var(--line);
	background: transparent;
}

html.gta-winter .gta-winter-fx-btn svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* ==========================================================================
   5. Snowfall Canvas Overlay & Paused / Reduced-Motion States
   ========================================================================== */

#gta-winter-snow {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none !important;
	z-index: 820;
	opacity: 1;
	transition: opacity 0.35s ease;
}

html.gta-winter.gta-winter-paused #gta-winter-snow {
	opacity: 0;
	visibility: hidden;
}

html.gta-winter.gta-winter-paused .gta-w-bulb {
	animation: none !important;
	opacity: 0.72;
}

@media (prefers-reduced-motion: reduce) {
	html.gta-winter #gta-winter-snow {
		display: none !important;
	}
	html.gta-winter .gta-w-bulb {
		animation: none !important;
		opacity: 0.78;
	}
}
