/* ==========================================================================
   WP Pogoda — układ pionowy (karta na dzień)
   ========================================================================== */

.wp-pogoda-v2 {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	max-width: 980px;
	margin: 1.5em auto;
	color: #333;
	line-height: 1.45;
	font-size: 15px;
}

.wp-pogoda-v2-title {
	font-size: 1.25em;
	font-weight: 600;
	color: #222;
	margin: 0 0 14px;
	padding: 0;
}
.wp-pogoda-v2-country {
	font-size: 0.8em;
	font-weight: 500;
	color: #888;
	background: #f0f0f0;
	padding: 2px 8px;
	border-radius: 4px;
	margin-left: 6px;
}

/* Karta dnia ---------------------------------------------------------- */
.wp-pog-day {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 18px 22px;
	margin-bottom: 14px;
	background: #fff;
}
.wp-pog-day.wp-pog-today {
	border-color: #d8d8d8;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Nagłówek dnia (nazwa + wschód/zachód) ------------------------------- */
.wp-pog-day-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}
.wp-pog-day-name {
	font-size: 1.4em;
	font-weight: 400;
	color: #222;
	margin: 0;
	line-height: 1.2;
	letter-spacing: -0.2px;
}
.wp-pog-today-badge {
	display: inline-block;
	background: #2a8fd9;
	color: #fff;
	font-size: 0.65em;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 3px;
	margin-right: 8px;
	vertical-align: middle;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wp-pog-sun {
	display: flex;
	gap: 22px;
	align-items: center;
	flex-wrap: wrap;
}
.wp-pog-sun-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #555;
	font-size: 0.85em;
	line-height: 1.3;
}
.wp-pog-sun-ico {
	color: #888;
	display: inline-flex;
}
.wp-pog-sun-text {
	display: flex;
	flex-direction: column;
}
.wp-pog-sun-label {
	font-size: 0.9em;
	color: #777;
}
.wp-pog-sun-text strong {
	color: #333;
	font-weight: 600;
}

/* Ciało karty - 3 kolumny --------------------------------------------- */
.wp-pog-day-body {
	display: grid;
	grid-template-columns: minmax(200px, 1fr) minmax(180px, 1fr) minmax(240px, 1.3fr);
	gap: 20px;
	align-items: start;
	padding: 4px 0;
}

/* Kolumna 1 - ikona + temperatura ------------------------------------- */
.wp-pog-col-main {
	display: flex;
	align-items: center;
	gap: 12px;
}
.wp-pog-ico {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	display: block;
}
.wp-pog-main-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.wp-pog-desc {
	font-weight: 600;
	color: #333;
	font-size: 0.95em;
	line-height: 1.25;
}
.wp-pog-temp {
	font-size: 2.6em;
	font-weight: 300;
	color: #222;
	line-height: 1;
	letter-spacing: -1px;
}

/* Kolumny 2 i 3 - słowniki danych ------------------------------------- */
.wp-pog-col-title {
	font-size: 0.92em;
	color: #555;
	margin-bottom: 8px;
	line-height: 1.2;
}
.wp-pog-dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 10px;
	margin: 0;
	font-size: 0.92em;
}
.wp-pog-dl dt {
	color: #666;
	font-weight: 400;
	margin: 0;
}
.wp-pog-dl dd {
	margin: 0;
	color: #222;
}
.wp-pog-dl dd strong {
	font-weight: 600;
}

/* Godzinowy rozkład (details/summary) --------------------------------- */
.wp-pog-hourly-wrap {
	border-top: 1px solid #eee;
	margin: 14px -22px -18px;
	padding: 10px 22px 18px;
}
.wp-pog-hourly-wrap summary {
	cursor: pointer;
	color: #e67e22;
	font-size: 0.9em;
	padding: 4px 0;
	list-style: none;
	user-select: none;
	width: fit-content;
}
.wp-pog-hourly-wrap summary::-webkit-details-marker { display: none; }
.wp-pog-hourly-wrap summary::marker { content: ''; }
.wp-pog-hourly-wrap summary:hover { color: #c56614; text-decoration: underline; }

.wp-pog-hourly-wrap .wp-pog-hourly-toggle-show { display: inline; }
.wp-pog-hourly-wrap .wp-pog-hourly-toggle-hide { display: none; }
.wp-pog-hourly-wrap[open] .wp-pog-hourly-toggle-show { display: none; }
.wp-pog-hourly-wrap[open] .wp-pog-hourly-toggle-hide { display: inline; }

.wp-pog-hourly {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
	gap: 6px;
	margin-top: 12px;
}
.wp-pog-hour {
	text-align: center;
	padding: 8px 4px;
	border-radius: 5px;
	transition: background 0.15s ease;
}
.wp-pog-hour:hover {
	background: #f7f7f7;
}
.wp-pog-hour-time {
	font-size: 0.85em;
	color: #555;
	margin-bottom: 2px;
	font-weight: 500;
}
.wp-pog-hour img {
	width: 48px;
	height: 48px;
	display: block;
	margin: 0 auto;
}
.wp-pog-hour-temp {
	font-size: 1em;
	font-weight: 600;
	color: #222;
	margin-top: 2px;
}
.wp-pog-hour-wind {
	font-size: 0.78em;
	color: #777;
	margin-top: 1px;
}

/* Stopka -------------------------------------------------------------- */
.wp-pogoda-v2-footer {
	margin-top: 12px;
	text-align: right;
	font-size: 0.8em;
	color: #888;
}
.wp-pogoda-v2-footer a {
	color: #666;
	text-decoration: none;
	border-bottom: 1px dotted #bbb;
}
.wp-pogoda-v2-footer a:hover {
	color: #333;
	border-bottom-color: #666;
}

/* Błąd ---------------------------------------------------------------- */
.wp-pogoda-error {
	padding: 14px 18px;
	background: #fdecea;
	border-left: 4px solid #d94c43;
	color: #8a2b24;
	border-radius: 6px;
	margin: 1em 0;
	font-size: 0.95em;
}
.wp-pogoda-error code {
	background: rgba(0, 0, 0, 0.06);
	padding: 1px 6px;
	border-radius: 3px;
}

/* Responsive ---------------------------------------------------------- */
@media (max-width: 780px) {
	.wp-pog-day-body {
		grid-template-columns: 1fr 1fr;
	}
	.wp-pog-col-main {
		grid-column: 1 / -1;
	}
}

@media (max-width: 520px) {
	.wp-pog-day {
		padding: 14px 16px;
	}
	.wp-pog-day-header {
		gap: 10px;
	}
	.wp-pog-day-name {
		font-size: 1.2em;
	}
	.wp-pog-sun {
		gap: 14px;
		width: 100%;
	}
	.wp-pog-day-body {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.wp-pog-col-main {
		justify-content: flex-start;
	}
	.wp-pog-temp {
		font-size: 2.2em;
	}
	.wp-pog-hourly-wrap {
		margin: 12px -16px -14px;
		padding: 8px 16px 14px;
	}
	.wp-pog-hourly {
		grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
	}
	.wp-pog-hour img {
		width: 40px;
		height: 40px;
	}
}
