/* Chismy — clima OpenWeatherMap (tema sunshine-liquidglass)
   --------------------------------------------------------------------------
   Acabado glass de la tarjeta del home (#chismy_weather_card, portada del
   widget de clima del tema wondertag) y de la píldora "Usar mi ubicación".
   Usa las recetas/variables del propio tema (stylesheet/glassliquid/
   sunshine-liquidglass.css: --lg-radius-card, --lg-blur-mult). El widget
   oscuro del sidebar (.wow_weather, style.css) se conserva tal cual; solo se
   estiliza aquí la píldora que le añadimos. */

.chismy_weather_card {
	margin: 0 0 15px;
	border-radius: var(--lg-radius-card, 28px);
	padding: 16px 20px 14px;
	background: rgba(255, 255, 255, 0.42);
	border: 1px solid rgba(255, 255, 255, 0.55);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	-webkit-backdrop-filter: blur(calc(12px * var(--lg-blur-mult, 1))) saturate(1.5);
	backdrop-filter: blur(calc(12px * var(--lg-blur-mult, 1))) saturate(1.5);
	color: #3f4a5a;
}

body.lg-night .chismy_weather_card {
	background: rgba(21, 27, 38, 0.5);
	border-color: rgba(255, 255, 255, 0.14);
	color: #cfd8e6;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.chismy_weather_card_head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.chismy_weather_card .chismy_weather_icon {
	width: 64px;
	height: 64px;
	flex: 0 0 auto;
	margin: -6px 0;
}

.chismy_weather_temp_box {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.chismy_weather_temp {
	font-size: 38px;
	font-weight: 600;
}

.chismy_weather_condition {
	font-size: 17px;
	font-weight: 500;
	margin-top: 2px;
}

.chismy_weather_condition_sub {
	font-size: 13.5px;
	opacity: 0.75;
}

.chismy_weather_condition_sub:first-letter {
	text-transform: capitalize;
}

.chismy_weather_meta {
	margin-left: auto;
	text-align: right;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13.5px;
}

.chismy_weather_zone {
	font-weight: 500;
	opacity: 0.85;
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.chismy_weather_feels {
	opacity: 0.75;
}

/* Viento / Humedad / Amanecer / Atardecer */
.chismy_weather_stats {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.chismy_weather_stats > div {
	position: relative;
	flex: 1;
	text-align: center;
	padding: 9px 6px;
	border-radius: var(--lg-radius-field, 12px);
}

.chismy_weather_stats > div:before {
	content: '';
	position: absolute;
	inset: 0;
	background: currentColor;
	opacity: 0.07;
	border-radius: inherit;
}

.chismy_weather_stats p {
	margin: 0 0 2px;
	font-size: 12px;
	opacity: 0.75;
	position: relative;
}

.chismy_weather_stats span {
	font-size: 14.5px;
	font-weight: 600;
	position: relative;
}

/* Pronóstico compacto (4 días, sigue siendo el del perfil/ciudad) */
.chismy_weather_forecast {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}

.chismy_weather_forecast > div {
	flex: 1;
	text-align: center;
	font-size: 12.5px;
	padding: 7px 4px;
	border-radius: var(--lg-radius-field, 12px);
	background: rgba(255, 255, 255, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.35);
}

body.lg-night .chismy_weather_forecast > div {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.1);
}

.chismy_weather_forecast > div > div {
	font-weight: 500;
	opacity: 0.85;
	margin-bottom: 2px;
}

/* Píldora de geolocalización (también dentro del widget oscuro .wow_weather) */
.chismy_weather_geo_row {
	text-align: center;
	margin-top: 12px;
}

.chismy_weather_geo_btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid rgba(64, 158, 255, 0.45);
	border-radius: 999px;
	padding: 5px 16px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	color: var(--lg-accent, var(--main-color, #409eff));
	background: rgba(255, 255, 255, 0.35);
	-webkit-backdrop-filter: blur(calc(10px * var(--lg-blur-mult, 1)));
	backdrop-filter: blur(calc(10px * var(--lg-blur-mult, 1)));
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chismy_weather_geo_btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(64, 158, 255, 0.25);
}

.chismy_weather_geo_btn svg {
	margin-top: -2px;
}

body.lg-night .chismy_weather_geo_btn {
	background: rgba(255, 255, 255, 0.08);
}

/* Variante sobre el widget oscuro del sidebar (.wow_weather es #2d3a4f) */
.wow_weather .chismy_weather_geo_btn {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

.wow_weather .chismy_weather_geo_btn:hover {
	box-shadow: 0 4px 14px rgba(255, 255, 255, 0.18);
}

/* Nota del fallback (visible tras denegar el permiso) */
.chismy_weather_geo_note {
	margin-top: 8px;
	text-align: center;
	font-size: 12px;
	opacity: 0.7;
}

/* Móvil: la tarjeta respira igual en columnas estrechas */
@media (max-width: 600px) {
	.chismy_weather_card_head {
		flex-wrap: wrap;
	}
	.chismy_weather_meta {
		margin-left: 0;
		text-align: left;
		width: 100%;
		flex-direction: row;
		justify-content: space-between;
	}
	.chismy_weather_stats,
	.chismy_weather_forecast {
		flex-wrap: wrap;
	}
	.chismy_weather_stats > div,
	.chismy_weather_forecast > div {
		flex: 1 1 40%;
	}
}
