/**
 * PA Weather Display Styles
 * 
 * Weather section styling for the homepage
 */

/* Weather Section */
.pa-weather-section {
	flex: 1;
	min-width: 200px;
}

.pa-weather-header {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
}

.pa-weather-title {
	display: flex;
	align-items: center;
	gap: 6px;
}

.pa-weather-icon-header {
	font-size: 1.2em;
}

.pa-weather-heading {
	color: #4fc3f7;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

/* Weather Content */
.pa-weather-content {
	min-height: 50px;
}

/* Loading state */
.pa-weather-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.6);
	padding: 10px;
	font-size: 12px;
}

.pa-weather-spinner {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-top-color: #4fc3f7;
	border-radius: 50%;
	animation: pa-weather-spin 0.8s linear infinite;
}

@keyframes pa-weather-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Conditions Display */
.pa-weather-conditions {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.pa-weather-primary {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.pa-weather-icon {
	font-size: 1.5em;
}

.pa-weather-temp {
	color: #fff;
	font-size: 24px;
	font-weight: 700;
}

.pa-weather-desc {
	color: rgba(255, 255, 255, 0.8);
	font-size: 13px;
}

/* Multiple Locations */
.pa-weather-locations {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	justify-content: flex-end;
}

.pa-weather-location {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	white-space: nowrap;
}

.pa-weather-location-name {
	color: rgba(255, 255, 255, 0.6);
}

.pa-weather-location-temp {
	color: #4fc3f7;
	font-weight: 600;
}

/* Weather Alerts Banner */
.pa-weather-alerts-banner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.pa-weather-alert {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	animation: pa-alert-pulse 2s ease-in-out infinite;
}

@keyframes pa-alert-pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.85;
	}
}

.pa-alert-icon {
	font-size: 12px;
}

.pa-alert-event {
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.pa-alert-counties {
	color: rgba(255, 255, 255, 0.7);
	font-size: 10px;
	font-weight: 400;
}

/* Alert Severity Colors */
.pa-alert-extreme {
	background: linear-gradient(135deg, #b71c1c, #d32f2f);
	box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
}

.pa-alert-severe {
	background: linear-gradient(135deg, #e65100, #ff6d00);
	box-shadow: 0 2px 8px rgba(230, 81, 0, 0.4);
}

.pa-alert-moderate {
	background: linear-gradient(135deg, #f57c00, #ff9800);
	box-shadow: 0 2px 8px rgba(245, 124, 0, 0.4);
}

.pa-alert-minor {
	background: linear-gradient(135deg, #fbc02d, #ffc107);
	color: #1a1a2e;
	box-shadow: 0 2px 8px rgba(251, 192, 45, 0.4);
}

.pa-alert-minor .pa-alert-event,
.pa-alert-minor .pa-alert-counties {
	color: #1a1a2e;
}

.pa-alert-unknown {
	background: linear-gradient(135deg, #455a64, #607d8b);
}

.pa-weather-alert-more {
	color: rgba(255, 255, 255, 0.6);
	font-size: 10px;
	padding: 4px 8px;
}

/* Empty state */
.pa-weather-empty {
	color: rgba(255, 255, 255, 0.5);
	font-size: 12px;
	font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
	.pa-weather-temp {
		font-size: 20px;
	}
	
	.pa-weather-locations {
		gap: 3px 10px;
	}
	
	.pa-weather-alert {
		padding: 3px 8px;
		font-size: 10px;
	}
}

@media (max-width: 480px) {
	.pa-weather-section {
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		padding-top: 10px;
		margin-top: 10px;
	}
	
	.pa-weather-conditions {
		flex-direction: row;
		align-items: center;
		gap: 10px;
	}
	
	.pa-weather-primary {
		gap: 6px;
	}
	
	.pa-weather-temp {
		font-size: 18px;
	}
	
	.pa-weather-desc {
		font-size: 11px;
	}
	
	.pa-weather-locations {
		flex-direction: column;
		gap: 1px;
		align-items: flex-end;
	}
	
	.pa-weather-location {
		font-size: 10px;
		gap: 3px;
	}
}
