/* 484 Media Weather Banner — Frontend CSS */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Base banner ── */
.wbn-banner {
	display: flex;
	align-items: center;
	gap: 0;
	width: 100%;
	padding: 0 4px;
	min-height: 68px;
	border-radius: 6px;
	overflow: hidden;
	position: relative;
	font-family: 'DM Sans', sans-serif;
	box-sizing: border-box;
	flex-wrap: nowrap;
}

/* ── Inline clock: hidden on desktop, shown on mobile ── */
.wbn-inline-clock {
	display: none;
	align-items: center;
	gap: 3px;
	margin-left: 6px;
}

/* ── Condition row: condition text + optional inline clock ── */
.wbn-condition-row {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
}

/* ── Mobile: single flex row — location | temp | humidity ── */
@media (max-width: 700px) {
	.wbn-banner {
		display: flex;
		flex-direction: row;
		align-items: center;
		overflow: visible;
		padding: 4px 6px;
		gap: 6px;
		min-height: auto;
	}

	/* Location block: grows to fill remaining space, no padding */
	.wbn-location-block {
		flex: 1;
		min-width: 0;
		padding: 0 !important;
		margin: 0 !important;
		gap: 6px;
	}

	/* Icon smaller */
	.wbn-weather-icon { width: 32px; height: 32px; }

	/* Location text tighter */
	.wbn-location-name { font-size: 0.85rem; }
	.wbn-condition { font-size: 0.65rem; }

	/* Show inline clock next to condition */
	.wbn-inline-clock { display: inline-flex; }
	.wbn-inline-clock .wbn-live-clock {
		font-family: 'Bebas Neue', sans-serif;
		font-size: 0.72rem;
		letter-spacing: 0.05em;
		opacity: 0.9;
	}
	.wbn-clock-tz { font-size: 0.52rem; }

	/* Temp and humidity — same size, side by side */
	.wbn-temp-block,
	.wbn-stat-humidity {
		flex: 0 0 auto;
		padding: 2px 4px;
		min-width: 0;
		align-items: center;
		text-align: center;
		gap: 1px;
	}

	.wbn-temp-big { font-size: 0.72rem !important; }
	.wbn-temp-big sup { font-size: 0.44rem !important; }
	.wbn-stat-val { font-size: 0.72rem; }
	.wbn-stat-sub { font-size: 0.58rem; }

	/* Hide everything else */
	.wbn-divider,
	.wbn-stat-wind,
	.wbn-stat-visibility,
	.wbn-stat-uv,
	.wbn-updated { display: none !important; }
}

/* ── Style: Glassmorphism dark (default) ── */
.wbn-style-glass {
	background: linear-gradient(135deg,
		rgba(10, 22, 50, 0.82) 0%,
		rgba(20, 45, 80, 0.78) 50%,
		rgba(10, 30, 60, 0.82) 100%);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border: 1px solid rgba(100, 180, 255, 0.18);
	box-shadow:
		0 4px 24px rgba(0,0,0,0.4),
		inset 0 1px 0 rgba(255,255,255,0.08);
	color: #e8f4ff;
}

.wbn-style-glass .wbn-divider { background: rgba(100, 180, 255, 0.2); }
.wbn-style-glass .wbn-stat-sub { color: rgba(160, 200, 255, 0.6); }
.wbn-style-glass .wbn-stat-icon { color: rgba(160, 200, 255, 0.7); }
.wbn-style-glass .wbn-updated { color: rgba(160, 200, 255, 0.45); }
.wbn-style-glass .wbn-updated span { color: rgba(200, 230, 255, 0.75); }
.wbn-style-glass .wbn-condition { color: rgba(160, 200, 255, 0.75); }

/* ── Style: Frosted light ── */
.wbn-style-light {
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	border: 1px solid rgba(0, 80, 180, 0.12);
	box-shadow:
		0 4px 20px rgba(0, 80, 180, 0.12),
		inset 0 1px 0 rgba(255,255,255,0.9);
	color: #1a3a5c;
}

.wbn-style-light .wbn-divider { background: rgba(0, 80, 180, 0.12); }
.wbn-style-light .wbn-stat-sub { color: rgba(30, 80, 140, 0.55); }
.wbn-style-light .wbn-stat-icon { color: rgba(30, 80, 140, 0.6); }
.wbn-style-light .wbn-updated { color: rgba(30, 80, 140, 0.4); }
.wbn-style-light .wbn-updated span { color: rgba(30, 80, 140, 0.65); }
.wbn-style-light .wbn-condition { color: rgba(30, 80, 140, 0.75); }

/* ── Style: Deep ocean ── */
.wbn-style-ocean {
	background: linear-gradient(90deg,
		#0a1f3a 0%, #0d2d52 30%, #0a2240 70%, #061628 100%);
	border: 1px solid rgba(32, 120, 200, 0.25);
	box-shadow: 0 4px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(50,150,255,0.1);
	color: #cce8ff;
}

.wbn-style-ocean::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(50,150,255,0.4), transparent);
}

.wbn-style-ocean .wbn-divider { background: rgba(32, 120, 200, 0.2); }
.wbn-style-ocean .wbn-stat-sub { color: rgba(130, 190, 255, 0.55); }
.wbn-style-ocean .wbn-stat-icon { color: rgba(130, 190, 255, 0.65); }
.wbn-style-ocean .wbn-updated { color: rgba(130, 190, 255, 0.4); }
.wbn-style-ocean .wbn-updated span { color: rgba(160, 210, 255, 0.75); }
.wbn-style-ocean .wbn-condition { color: rgba(130, 190, 255, 0.7); }

/* ── Style: Sunset gradient ── */
.wbn-style-sunset {
	background: linear-gradient(135deg,
		rgba(100, 20, 40, 0.88) 0%,
		rgba(160, 60, 20, 0.84) 35%,
		rgba(180, 100, 20, 0.82) 70%,
		rgba(80, 30, 80, 0.86) 100%);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 150, 80, 0.2);
	box-shadow: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,180,100,0.12);
	color: #ffe8d0;
}

.wbn-style-sunset .wbn-divider { background: rgba(255, 150, 80, 0.2); }
.wbn-style-sunset .wbn-stat-sub { color: rgba(255, 200, 150, 0.6); }
.wbn-style-sunset .wbn-stat-icon { color: rgba(255, 200, 150, 0.65); }
.wbn-style-sunset .wbn-updated { color: rgba(255, 200, 150, 0.4); }
.wbn-style-sunset .wbn-updated span { color: rgba(255, 210, 170, 0.78); }
.wbn-style-sunset .wbn-condition { color: rgba(255, 200, 150, 0.75); }

/* ── Location block ── */
.wbn-location-block {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px 10px 14px;
	flex-shrink: 0;
}

.wbn-weather-icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.wbn-weather-icon svg {
	width: 100%;
	height: 100%;
}

.wbn-location-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wbn-location-name {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 1.1rem;
	letter-spacing: 0.08em;
	line-height: 1;
	white-space: nowrap;
}

.wbn-condition {
	font-size: 0.72rem;
	font-weight: 300;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

/* ── Divider ── */
.wbn-divider {
	width: 1px;
	height: 40px;
	flex-shrink: 0;
	margin: 0 4px;
}

/* ── Stats ── */
.wbn-stat {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 8px 16px;
	gap: 2px;
	flex-shrink: 0;
	min-width: 80px;
}

.wbn-temp-block {
	min-width: 90px;
}

.wbn-stat-icon {
	width: 15px;
	height: 15px;
	margin-bottom: 1px;
}

.wbn-stat-icon svg {
	width: 100%;
	height: 100%;
}

.wbn-stat-val {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 1.05rem;
	letter-spacing: 0.06em;
	line-height: 1;
	white-space: nowrap;
}

.wbn-stat-val small {
	font-size: 0.62rem;
	letter-spacing: 0.04em;
	opacity: 0.75;
	font-family: 'DM Sans', sans-serif;
	font-weight: 300;
}

.wbn-stat-sub {
	font-size: 0.65rem;
	font-weight: 300;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

/* ── Temperature (special big display) ── */
.wbn-temp-big {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 2rem;
	letter-spacing: 0.02em;
	line-height: 1;
}

.wbn-temp-big sup {
	font-size: 0.9rem;
	vertical-align: super;
	letter-spacing: 0;
	font-family: 'DM Sans', sans-serif;
	font-weight: 300;
}

/* ── Updated timestamp ── */
.wbn-updated {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	padding: 0 16px;
	flex-shrink: 0;
	white-space: nowrap;
}

.wbn-updated svg {
	width: 13px;
	height: 13px;
	opacity: 0.65;
	flex-shrink: 0;
}

.wbn-updated span {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 1rem;
	letter-spacing: 0.08em;
	line-height: 1;
}

/* ── Live clock ET label ── */
.wbn-clock-tz {
	font-size: 0.6rem;
	letter-spacing: 0.12em;
	opacity: 0.5;
	font-family: 'DM Sans', sans-serif;
	font-weight: 300;
	margin-left: 2px;
	align-self: flex-end;
	padding-bottom: 1px;
}

/* ── Error state ── */
.wbn-error {
	padding: 12px 16px;
	font-size: 0.8rem;
	opacity: 0.5;
	font-style: italic;
}

/* ── Cam Page integration:
   When placed inside .cmp-hero, overlay on top of the video ── */
.cmp-hero .wbn-banner {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 10;
	border-radius: 0;
	border-top: 1px solid rgba(100, 180, 255, 0.15);
	border-bottom: none;
	border-left: none;
	border-right: none;
}

/* Animate in */
.wbn-banner {
	animation: wbn-fade-in 0.5s ease;
}

@keyframes wbn-fade-in {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}
