/* section-weather-alerts.css */

.weather-alerts-sticky {
	position: fixed;
	top: 120px;
	right: 0;
	width: 270px;
	z-index: 999;
	font-family: var(--ff-body);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.weather-alerts-sticky.hidden {
	transform: translateX(110%);
	opacity: 0;
	pointer-events: none;
}

.weather-alerts-inner {
	background: var(--color-white);
	border-radius: var(--radius-xl) 0 0 var(--radius-xl);
	padding: 20px 20px 20px 22px;
	box-shadow: -4px 4px 20px rgba(0,0,0,0.10);
	position: relative;
	max-height: 80vh;
	overflow-y: auto;
}

.weather-alerts-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 16px;
	color: var(--color-text-muted);
	line-height: 1;
	padding: 2px 4px;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
}

.weather-alerts-close:hover {
	color: var(--color-primary);
	background: var(--color-primary-hover);
}

.weather-alerts-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--color-warm);
	color: var(--color-white);
	font-size: 11px;
	font-weight: 500;
	margin-bottom: 8px;
}

.weather-alerts-inner h2 {
	font-family: var(--ff-head);
	font-size: 16px;
	font-weight: 400;
	color: var(--color-text);
	margin: 0 0 12px;
	padding-right: 18px;
}

.wal-item {
	border-radius: var(--radius-md);
	padding: 10px 12px;
	margin-bottom: 8px;
}

.wal-item:last-child { margin-bottom: 0; }

.wal-event {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 4px;
}

.wal-dates {
	font-size: 10px;
	margin: 0 0 6px;
	opacity: .8;
}

.wal-desc {
	font-size: 12px;
	line-height: 1.4;
	margin: 0;
}

.alert-minor    { background: #F1EFE8; }
.alert-minor    .wal-event,
.alert-minor    .wal-dates,
.alert-minor    .wal-desc  { color: #444441; }

.alert-moderate { background: #FAEEDA; }
.alert-moderate .wal-event,
.alert-moderate .wal-dates,
.alert-moderate .wal-desc  { color: #633806; }

.alert-severe   { background: #FAECE7; }
.alert-severe   .wal-event,
.alert-severe   .wal-dates,
.alert-severe   .wal-desc  { color: #712B13; }

.alert-extreme  { background: #FCEBEB; }
.alert-extreme  .wal-event,
.alert-extreme  .wal-dates,
.alert-extreme  .wal-desc  { color: #791F1F; }

@media screen and (max-width: 1024px) {
	.weather-alerts-sticky { display: none; }
}
