/* Paraşüt Hava Durumu – kart tasarımı */
.hd-weather {
	--hd-radius: 14px;
	--hd-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
	--hd-good: #16a34a;
	--hd-good-bg: #f0fdf4;
	--hd-good-border: #bbf7d0;
	--hd-caution: #d97706;
	--hd-caution-bg: #fffbeb;
	--hd-caution-border: #fde68a;
	--hd-bad: #dc2626;
	--hd-bad-bg: #fef2f2;
	--hd-bad-border: #fecaca;
	--hd-text: #0f172a;
	--hd-muted: #64748b;
	--hd-border: #e2e8f0;
	--hd-metric-bg: #f8fafc;
	box-sizing: border-box;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--hd-text);
	max-width: 820px;
	margin: 1.5rem auto;
	padding: 1.35rem 1.5rem 1.15rem;
	background: #ffffff;
	border: 1px solid var(--hd-border);
	border-radius: var(--hd-radius);
	box-shadow: var(--hd-shadow);
}

.hd-weather *,
.hd-weather *::before,
.hd-weather *::after {
	box-sizing: border-box;
}

.hd-weather__message {
	text-align: center;
	padding: 2rem 0.5rem;
	color: var(--hd-muted);
	margin: 0;
}

/* Üst satır: başlık + badge */
.hd-weather__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}

.hd-weather__intro {
	flex: 1 1 auto;
	min-width: 0;
}

.hd-weather__heading {
	margin: 0;
	font-size: clamp(1.15rem, 2.8vw, 1.45rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--hd-text);
}

.hd-weather__date {
	margin: 0.45rem 0 0;
	font-size: 0.95rem;
	color: var(--hd-muted);
	font-weight: 500;
}

.hd-weather__intro-text {
	margin: 0.55rem 0 0;
	font-size: 0.9rem;
	color: var(--hd-muted);
	line-height: 1.55;
	max-width: 42em;
}

.hd-weather__status-col {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	max-width: 46%;
}

.hd-weather__flight-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	border: none;
	white-space: nowrap;
}

.hd-weather__flight-badge--good {
	color: var(--hd-good);
	background: transparent;
}

.hd-weather__flight-badge--caution {
	color: var(--hd-caution);
	background: transparent;
}

.hd-weather__flight-badge--bad {
	color: var(--hd-bad);
	background: transparent;
}

.hd-weather__flight-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}

.hd-weather__place {
	margin: 0.45rem 0 0;
	padding: 0;
	font-size: 0.8125rem;
	color: var(--hd-muted);
	line-height: 1.35;
	text-align: right;
}

/* Orta: metrikler + hava ikonu */
.hd-weather__body {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1rem;
	align-items: center;
	background: transparent;
	border-radius: 12px;
	padding: 1rem 1rem 0.85rem;
	min-height: 140px;
}

.hd-weather__metrics {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.55rem;
	align-content: center;
}

.hd-weather__metrics li {
	background: #e7e7e7;
	border: 1px solid var(--hd-border);
	border-radius: 10px;
	padding: 0.55rem 0.45rem;
	text-align: center;
}

.hd-metric__label {
	display: block;
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--hd-muted);
	margin-bottom: 0.15rem;
}

.hd-metric__value {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--hd-text);
	line-height: 1.2;
}

.hd-metric__value small {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--hd-muted);
}

.hd-metric__sub {
	display: block;
	margin-top: 0.1rem;
	font-size: 0.7rem;
	color: var(--hd-muted);
}

.hd-weather__condition-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	align-self: center;
	text-align: center;
	min-width: 80px;
	height: 100%;
}

.hd-weather__condition-icon {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: contain;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.06));
}

.hd-weather__condition-text {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.7rem;
	color: var(--hd-muted);
	line-height: 1.25;
	max-width: 90px;
}

/* Uyarı notları */
.hd-weather__notes {
	margin-top: 0.85rem;
	font-size: 0.8125rem;
}

.hd-weather__issues,
.hd-weather__warnings {
	margin: 0;
	padding-left: 1.15rem;
}

.hd-weather__issues li {
	color: var(--hd-bad);
}

.hd-weather__warnings li {
	color: var(--hd-caution);
}

/* Saatlik (opsiyonel) */
.hd-weather__forecast {
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--hd-border);
}

.hd-weather__forecast-title {
	margin: 0 0 0.65rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.hd-weather__forecast-scroll {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	padding-bottom: 0.25rem;
	-webkit-overflow-scrolling: touch;
}

.hd-forecast-hour {
	flex: 0 0 auto;
	min-width: 76px;
	background: var(--hd-metric-bg);
	border: 1px solid var(--hd-border);
	border-radius: 8px;
	padding: 0.5rem;
	text-align: center;
	font-size: 0.75rem;
}

.hd-forecast-hour time {
	display: block;
	font-weight: 600;
}

.hd-forecast-hour img {
	display: block;
	margin: 0.25rem auto;
}

.hd-forecast-hour__temp {
	display: block;
	font-weight: 700;
}

.hd-forecast-hour__wind {
	display: block;
	color: var(--hd-muted);
	font-size: 0.7rem;
}

.hd-weather__alerts {
	margin-top: 0.75rem;
}

.hd-weather__alerts-title {
	margin: 0 0 0.6rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--hd-text);
}

.hd-alert {
	background: var(--hd-bad-bg);
	border-left: 3px solid var(--hd-bad);
	padding: 0.65rem 0.85rem;
	border-radius: 0 8px 8px 0;
	font-size: 0.8125rem;
	margin-bottom: 0.5rem;
}

.hd-alert__event {
	display: block;
	font-size: 0.875rem;
}

.hd-alert__headline {
	margin: 0.35rem 0 0;
	color: var(--hd-muted);
	line-height: 1.45;
	font-size: 0.8125rem;
}

.hd-alert__severity {
	display: inline-block;
	margin-top: 0.35rem;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--hd-bad);
}

/* Alt bilgi */
.hd-weather__footer {
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--hd-border);
	text-align: center;
}

.hd-weather__updated,
.hd-weather__disclaimer {
	margin: 0.2rem 0;
	font-size: 0.75rem;
	color: var(--hd-muted);
	line-height: 1.45;
}

.hd-weather__disclaimer {
	font-style: italic;
}

/* Responsive */
@media (max-width: 640px) {
	.hd-weather {
		margin: 1rem 0.75rem;
		padding: 1.1rem 1rem;
	}

	.hd-weather__top {
		flex-direction: column;
		gap: 0.85rem;
	}

	.hd-weather__status-col {
		align-items: flex-end;
		max-width: 100%;
		width: 100%;
	}

	.hd-weather__body {
		grid-template-columns: 1fr;
		padding: 0.85rem;
	}

	.hd-weather__condition-wrap {
		flex-direction: row;
		justify-content: center;
		align-items: center;
		align-self: stretch;
		height: auto;
		gap: 0.5rem;
		min-width: 0;
		border-top: 1px dashed var(--hd-border);
		margin-top: 0.35rem;
		padding-top: 0.65rem;
	}

	.hd-weather__condition-text {
		max-width: none;
		text-align: right;
	}

	.hd-weather__metrics {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 380px) {
	.hd-weather__metrics {
		grid-template-columns: 1fr 1fr;
	}
}
