/*!
 * Saransh Dainik — Location-Based Weather Widget (brand-aware #0494b1)
 */

.weather-widget {
	position: relative;
}

/* loading skeleton */
.weather-loading {
	padding: 4px 0;
}
.weather-skeleton {
	height: 14px;
	border-radius: 6px;
	background: linear-gradient(90deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .10), rgba(0, 0, 0, .05));
	background-size: 200% 100%;
	animation: weather-shimmer 1.4s infinite;
	margin: 8px 0;
}
.weather-skeleton.short { width: 60%; }
@keyframes weather-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.weather-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-bottom: 8px;
}
.weather-location {
	font-weight: 600;
	font-size: 14px;
	color: #333;
	margin-right: auto;
}
.weather-link {
	background: none;
	border: 0;
	padding: 0;
	color: #0494b1;
	font-size: 12px;
	cursor: pointer;
}
.weather-link:hover,
.weather-link:focus-visible { text-decoration: underline; outline: none; }

.weather-now {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 6px 0 10px;
}
.weather-icon { font-size: 34px; line-height: 1; }
.weather-temp { font-size: 30px; font-weight: 700; color: #222; line-height: 1; }
.weather-condition { font-size: 14px; color: #555; }

.weather-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 4px 8px;
	font-size: 13px;
	color: #444;
	padding: 8px 0;
	border-top: 1px solid rgba(0, 0, 0, .06);
	border-bottom: 1px solid rgba(0, 0, 0, .06);
	margin-bottom: 8px;
}
.weather-meta b { color: #111; }

.weather-today {
	font-size: 13px;
	color: #444;
	margin-bottom: 8px;
}
.weather-today b { color: #111; }

/* 5-day forecast */
.weather-forecast {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 6px;
	margin-bottom: 10px;
}
.weather-day {
	text-align: center;
	background: rgba(0, 0, 0, .03);
	border: 1px solid rgba(0, 0, 0, .06);
	border-radius: 8px;
	padding: 6px 2px;
	font-size: 12px;
	line-height: 1.5;
}
.weather-day .w-day { display: block; color: #555; font-size: 11px; }
.weather-day .w-ico { display: block; font-size: 18px; }
.weather-day .w-max { display: block; color: #c0392b; font-weight: 600; }
.weather-day .w-min { display: block; color: #2980b9; }
.weather-day .w-rain { display: block; color: #555; font-size: 10px; }

/* search + results */
.weather-searchbox {
	display: flex;
	gap: 6px;
	margin: 8px 0 4px;
}
.weather-searchbox input {
	flex: 1;
	min-width: 0;
	padding: 6px 10px;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 6px;
	font-size: 13px;
}
.weather-search-btn {
	padding: 6px 12px;
	border: 1px solid #0494b1;
	border-radius: 6px;
	background: #0494b1;
	color: #fff;
	font-size: 13px;
	cursor: pointer;
}
.weather-results {
	margin: 4px 0;
}
.weather-result {
	display: block;
	width: 100%;
	text-align: left;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 6px;
	padding: 8px 10px;
	margin-bottom: 4px;
	font-size: 13px;
	cursor: pointer;
	color: #333;
}
.weather-result:hover,
.weather-result:focus-visible { border-color: #0494b1; color: #0494b1; outline: none; }
.weather-search-loading,
.weather-search-empty { font-size: 13px; color: #777; padding: 6px 0; }

.weather-msg {
	font-size: 12px;
	color: #8a6d1d;
	background: #fff7e6;
	border: 1px solid #f0c36d;
	border-radius: 6px;
	padding: 6px 10px;
	margin-top: 8px;
}

/* mobile: horizontal-scroll forecast cards, compact */
@media (max-width: 767px) {
	.weather-forecast {
		display: flex;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.weather-day {
		flex: 0 0 84px;
	}
	.weather-temp { font-size: 26px; }
}
