/* WeatherBot by RoxxiStudios Public Styles (optimized v3.2.2 with compat patch) */


/* =========================
   1) Theme Variables
   ========================= */

:root {
	--wb-primary: #114572;
	--wb-secondary: #DFAF3D;
	--wb-neutral: #7A7A7A;
	--wb-light: #A1A1A1;
	--wb-dark: #1A1A1A;
}


/* =========================
   2) Core Wrapper
   ========================= */

.roxxi-weather {
	display: inline-flex;
	/* inline widget */
	align-items: center;
	/* vertical center (flex parents too) */
	vertical-align: middle;
	/* center when parent isn't flex */
	gap: 5px;
	font-family: Poppins;
	font-weight: 600;
	line-height: 1.2;
	font-size: 14px;
	background: white;
}

.roxxi-weather .details {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 3px;
}

.roxxi-weather .conditions {
	display: flex;
	flex-direction: row;
}

.roxxi-weather .wb-sep {
	padding: 3px;
	padding-left: 0;
}

.widget.widget_roxxi_weather_widget .wb-powered,
.roxxi-weather .wb-powered {
	font-size: 11px;
	line-height: 1.2;
}


/*** INLINE ***/

.roxxi-weather.wb-variant-inline {
	padding: 0 10px;
	border: 0;
	background: none;
}

.roxxi-weather.wb-variant-inline .wb-pre {
	font-size: 14px;
	margin-right: 6px;
}


/*** BADGE ***/

.roxxi-weather.wb-variant-badge {
	display: inline-flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 5px;
	padding: 10px 12px;
	border: 1px solid var(--wb-neutral);
	border-radius: 5px;
}

.roxxi-weather.wb-variant-badge .badge {
	display: flex;
	gap: 8px;
}

.roxxi-weather .wb-pre {
	font-weight: 700;
}

.roxxi-weather.wb-variant-badge {
	font-size: 16px;
}


/* temperature icon */

.roxxi-weather .wb-ico {
	display: block;
	/* avoids extra line-box space */
	width: 20px;
	height: auto;
	margin-right: 2px;
	transform: translateY(-1px);
}

.roxxi-weather .temp {
	display: flex;
	align-items: center;
}

.roxxi-weather .wb-desc {
	display: inline-block;
	margin-left: 6px;
	color: var(--wb-neutral);
}

.roxxi-weather .degree {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
}

.roxxi-weather .wb-temp {
	font-weight: 700;
}

.roxxi-weather .wb-unit {
	font-weight: 600;
	opacity: 0.9;
}


/* powered-by line */

.roxxi-weather .wb-powered {
	font-weight: 500;
	color: var(--wb-light) !important;
}

.roxxi-weather .wb-powered-link,
.widget.widget_roxxi_weather_widget .wb-powered-link {
	color: var(--wb-primary) !important;
	text-decoration: none;
}

.roxxi-weather .wb-powered-link:hover,
.roxxi-weather .wb-powered-link:focus,
.widget.widget_roxxi_weather_widget .wb-powered-link:hover,
.widget.widget_roxxi_weather_widget .wb-powered-link:focus {
	color: var(--wb-secondary) !important;
	text-decoration: none;
}


/*** COMPACT ***/

.roxxi-weather.wb-variant-compact {
	flex-direction: column;
	align-items: flex-start;
	padding: 8px 10px;
	border: 1px solid var(--wb-neutral);
	border-radius: 5px;
}

.roxxi-weather.wb-variant-compact .details {
	gap: 6px;
}


/*** WIDGET ***/

.widget.widget_roxxi_weather_widget {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
}

.widget.widget_roxxi_weather_widget .widgettitle {
	font-size: inherit;
	margin-bottom: 10px;
}

.widget.widget_roxxi_weather_widget .roxxi-weather.wb-variant-inline {
	padding: 0;
}


/* =========================
   Font Color Helpers
   ========================= */

.roxxi-weather.wb-font-light {
	color: #ffffff;
}

.roxxi-weather.wb-font-light .wb-powered-link {
	color: inherit;
}

.roxxi-weather.wb-font-dark {
	color: var(--wb-dark);
}

.roxxi-weather.wb-font-dark .wb-powered-link {
	color: inherit;
}


/* =========================
   Responsive Adjustments
   ========================= */

@media (max-width: 480px) {
	
	.roxxi-weather {
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}
	
	.roxxi-weather .wb-sep {
		display: none;
	}

	.roxxi-weather.wb-variant-badge .badge {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 8px;
	}
	
	.roxxi-weather.wb-variant-badge,
	.roxxi-weather.wb-variant-compact .details {
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
	}
	
	
	/*** WIDGET ***/
	
	.widget.widget_roxxi_weather_widget,
	.widget.widget_roxxi_weather_widget .roxxi-weather {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.widget_roxxi_weather_widget .details {
		justify-content: flex-start;
		align-content: flex-start;
	}
	
	.widget.widget_roxxi_weather_widget .roxxi-weather .wb-pre {
		text-align: left;
	}
}


/* =========================
   Compat Patch
   ========================= */

/* Badge wrapper class used by renderer */
.roxxi-weather.wb-variant-badge .wb-badge {
	display: flex;
	gap: 8px;
}

/* Support both wb-text-* and wb-font-* */
.roxxi-weather.wb-text-light,
.roxxi-weather.wb-font-light {
	color: #ffffff;
}
.roxxi-weather.wb-text-dark,
.roxxi-weather.wb-font-dark {
	color: var(--wb-dark);
}
.roxxi-weather.wb-text-light .wb-powered-link,
.roxxi-weather.wb-font-light .wb-powered-link,
.roxxi-weather.wb-text-dark .wb-powered-link,
.roxxi-weather.wb-font-dark .wb-powered-link {
	color: inherit !important;
}
