/* CZ Svátky & Počasí - Frontend Styles (Enfold & The7 compatible) */

.czsp-widget {
	--czsp-accent: #2271b1;
	--czsp-bg: #ffffff;
	--czsp-text: inherit;
	--czsp-border: rgba(0, 0, 0, 0.1);
	--czsp-muted: rgba(0, 0, 0, 0.62);
	box-sizing: border-box;
	color: var(--czsp-text);
	font-family: inherit;
	line-height: 1.45;
}

.czsp-widget *,
.czsp-search-box * {
	box-sizing: border-box;
}

.czsp-svg-icon {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

/* ===== Layout: KARTA (Card) ===== */
.czsp-style-karta {
	background: var(--czsp-bg);
	border: 1px solid var(--czsp-border);
	border-radius: 10px;
	padding: 16px 18px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ===== Layout: MINIMAL (inherits theme background & typography) ===== */
.czsp-style-minimal {
	background: transparent;
	border: none;
	padding: 4px 0;
}

/* ===== Layout: LISTA (Inline 1-line for Enfold/The7 top bars & headers) ===== */
.czsp-style-lista {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 0.92em;
	background: transparent;
	border: none;
	padding: 0;
}

.czsp-style-lista .czsp-inline-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.czsp-style-lista .czsp-sep {
	opacity: 0.45;
	padding: 0 2px;
}

.czsp-holiday-pill {
	display: inline-block;
	background: var(--czsp-accent);
	color: #ffffff;
	border-radius: 999px;
	padding: 1px 9px;
	font-size: 0.88em;
	font-weight: 600;
}

/* ===== Card Inner Sections ===== */
.czsp-card-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom: 1px solid var(--czsp-border);
}

.czsp-date-main {
	font-size: 1.05em;
	font-weight: 700;
}

.czsp-week-badge {
	font-size: 0.82em;
	font-weight: 600;
	padding: 2px 9px;
	border-radius: 999px;
	background: rgba(34, 113, 177, 0.1);
	color: var(--czsp-accent);
}

.czsp-holiday-banner {
	background: rgba(214, 54, 56, 0.08);
	border-left: 3px solid #d63638;
	border-radius: 4px;
	padding: 8px 11px;
	margin-bottom: 10px;
	font-size: 0.92em;
}

.czsp-holiday-note {
	margin-top: 3px;
	opacity: 0.9;
}

.czsp-nameday-block {
	margin-bottom: 12px;
}

.czsp-nameday-today {
	font-size: 1.02em;
}

.czsp-nameday-today strong {
	color: var(--czsp-accent);
}

.czsp-nameday-tomorrow {
	font-size: 0.88em;
	opacity: 0.78;
	margin-top: 2px;
}

.czsp-lbl {
	opacity: 0.72;
}

/* ===== Weather Block ===== */
.czsp-weather-now {
	padding: 10px 0;
	border-top: 1px solid var(--czsp-border);
}

.czsp-weather-main {
	display: flex;
	align-items: center;
	gap: 12px;
}

.czsp-weather-temp {
	font-size: 1.75em;
	font-weight: 700;
	line-height: 1.1;
}

.czsp-weather-desc {
	font-size: 0.92em;
	opacity: 0.82;
	margin-top: 2px;
}

.czsp-weather-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-top: 8px;
	font-size: 0.84em;
	opacity: 0.78;
}

/* ===== Forecast Grid ===== */
.czsp-forecast-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(66px, 1fr));
	gap: 6px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--czsp-border);
}

.czsp-forecast-day {
	text-align: center;
	padding: 7px 4px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.03);
	font-size: 0.82em;
}

.czsp-fc-day {
	font-weight: 600;
	margin-bottom: 4px;
}

.czsp-fc-icon {
	margin: 2px 0 4px;
}

.czsp-fc-temps {
	white-space: nowrap;
}

.czsp-fc-rain {
	font-size: 0.85em;
	color: #0284c7;
	margin-top: 2px;
}

/* ===== Astronomy (Sun & Moon) ===== */
.czsp-astro-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 14px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--czsp-border);
	font-size: 0.86em;
}

/* ===== Pranostika ===== */
.czsp-pranostika {
	margin-top: 10px;
	padding-top: 9px;
	border-top: 1px dashed var(--czsp-border);
	font-style: italic;
	font-size: 0.88em;
	opacity: 0.82;
}

/* ===== Interactive Name-Day Search ([cz_svatek_hledat]) ===== */
.czsp-search-box {
	--czsp-accent: #2271b1;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	padding: 14px 16px;
	max-width: 460px;
}

.czsp-search-title {
	font-weight: 700;
	font-size: 1.02em;
	margin-bottom: 8px;
}

.czsp-search-input {
	width: 100%;
	padding: 8px 11px;
	border: 1px solid rgba(0, 0, 0, 0.22);
	border-radius: 6px;
	font-size: 0.95em;
	outline: none;
}

.czsp-search-input:focus {
	border-color: var(--czsp-accent);
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.16);
}

.czsp-search-results {
	margin-top: 8px;
	font-size: 0.92em;
}

.czsp-search-item {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 2px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.czsp-search-item:last-child {
	border-bottom: none;
}

.czsp-search-item strong {
	color: var(--czsp-accent);
}

.czsp-search-empty {
	opacity: 0.65;
	font-style: italic;
	padding: 4px 0;
}
