/**
 * Стили публичной части
 *
 * @since   1.0.0
 * @package Weather_Forecast_KZ
 */

/* Container */
.weather-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Breadcrumbs */
.weather-breadcrumbs {
	margin-bottom: 20px;
	font-size: 14px;
	color: #666;
}

.weather-breadcrumbs a {
	color: #0073aa;
	text-decoration: none;
}

.weather-breadcrumbs a:hover {
	text-decoration: underline;
}

.weather-breadcrumbs .separator {
	margin: 0 8px;
}

.weather-breadcrumbs .current {
	color: #333;
}

/* Title */
.weather-title {
	font-size: 32px;
	font-weight: 600;
	margin: 20px 0;
	color: #333;
}

/* City Selector */
.weather-city-selector {
	margin: 20px 0;
}

.city-dropdown {
	padding: 10px 15px;
	font-size: 16px;
	border: 1px solid #ddd;
	border-radius: 8px;
	min-width: 250px;
	cursor: pointer;
}

/* Tabs */
.weather-tabs {
	display: flex;
	gap: 10px;
	margin: 20px 0;
	border-bottom: 2px solid #eee;
}

.weather-tabs .tab {
	padding: 12px 24px;
	text-decoration: none;
	color: #666;
	border-bottom: 3px solid transparent;
	transition: all 0.3s;
}

.weather-tabs .tab:hover {
	color: #333;
	border-bottom-color: #ddd;
}

.weather-tabs .tab.active {
	color: #0073aa;
	border-bottom-color: #0073aa;
	font-weight: 600;
}

/* Main Card */
.weather-main-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 20px;
	padding: 40px;
	margin: 30px 0;
	color: white;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 30px;
	align-items: center;
}

.weather-icon-large {
	font-size: 120px;
}

.weather-main-temp .temp-value {
	font-size: 64px;
	font-weight: 700;
	display: block;
}

.weather-main-temp .temp-description {
	font-size: 18px;
	margin: 10px 0 0 0;
	opacity: 0.9;
}

.weather-params {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.weather-params .param {
	display: flex;
	align-items: center;
	gap: 10px;
}

.weather-params .param-icon {
	font-size: 24px;
}

.weather-params .param-value {
	font-size: 20px;
	font-weight: 600;
}

.weather-params .param-label {
	font-size: 14px;
	opacity: 0.8;
}

/* Time Cards */
.weather-time-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
	margin: 30px 0;
}

.time-card {
	background: white;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	transition: transform 0.2s;
}

.time-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.time-card h3 {
	margin: 0 0 15px 0;
	font-size: 16px;
	color: #666;
}

.time-card .time-icon {
	font-size: 48px;
	margin: 10px 0;
}

.time-card .time-temp {
	font-size: 24px;
	font-weight: 600;
	color: #333;
}

/* 10 Days Grid */
.weather-days-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	margin: 30px 0;
}

.day-card {
	background: white;
	border: 1px solid #eee;
	border-radius: 16px;
	padding: 20px;
	transition: all 0.3s;
}

.day-card:hover {
	box-shadow: 0 8px 20px rgba(0,0,0,0.1);
	transform: translateY(-3px);
}

.day-header {
	border-bottom: 1px solid #eee;
	padding-bottom: 15px;
	margin-bottom: 15px;
}

.day-name {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #333;
}

.day-date {
	margin: 5px 0 0 0;
	font-size: 14px;
	color: #999;
}

.day-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 15px 0;
}

.day-icon {
	font-size: 64px;
}

.day-temp .temp-main {
	font-size: 36px;
	font-weight: 700;
	color: #333;
}

.day-params {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 15px 0;
	font-size: 12px;
	color: #666;
}

.day-description {
	margin: 15px 0;
	font-size: 14px;
	color: #666;
	font-style: italic;
}

.day-times {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #eee;
}

.time-slot {
	text-align: center;
	font-size: 12px;
}

.time-slot .time-label {
	display: block;
	color: #999;
	margin-bottom: 3px;
}

.time-slot .time-temp {
	display: block;
	font-weight: 600;
	color: #333;
}

/* No Data */
.weather-no-data {
	text-align: center;
	padding: 60px 20px;
	color: #999;
}

/* ===================================
   SHORTCODE STYLES
   =================================== */

/* Base Shortcode */
.weather-shortcode {
	margin: 20px 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.weather-sc-footer {
	text-align: center;
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #eee;
}

.weather-more-link {
	display: inline-block;
	padding: 10px 20px;
	background: #0073aa;
	color: white !important;
	text-decoration: none;
	border-radius: 6px;
	transition: background 0.3s;
}

.weather-more-link:hover {
	background: #005a87;
}

/* FULL STYLE */
.weather-full .weather-sc-title {
	font-size: 24px;
	margin-bottom: 20px;
	color: #333;
}

.weather-sc-day {
	background: white;
	border: 1px solid #eee;
	border-radius: 12px;
	margin-bottom: 15px;
	overflow: hidden;
	transition: box-shadow 0.3s;
}

.weather-sc-day:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.weather-sc-day-header {
	background: #f8f9fa;
	padding: 12px 20px;
	border-bottom: 1px solid #eee;
}

.weather-sc-day-header .day-name {
	font-weight: 600;
	color: #333;
}

.weather-sc-day-content {
	display: grid;
	grid-template-columns: 80px 1fr auto;
	gap: 20px;
	padding: 20px;
	align-items: center;
}

.weather-sc-icon {
	font-size: 64px;
	text-align: center;
}

.weather-sc-temp .temp {
	font-size: 36px;
	font-weight: 700;
	color: #333;
	display: block;
}

.weather-sc-temp .desc {
	color: #666;
	font-size: 14px;
}

.weather-sc-params {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 13px;
	color: #666;
}

/* COMPACT STYLE */
.weather-compact-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 16px;
	padding: 25px;
	color: white;
	max-width: 300px;
}

.compact-header h4 {
	margin: 0 0 5px 0;
	font-size: 20px;
	color: white;
}

.compact-header .compact-date {
	font-size: 13px;
	opacity: 0.9;
}

.compact-main {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 20px 0;
}

.compact-icon {
	font-size: 80px;
}

.compact-temp {
	font-size: 48px;
	font-weight: 700;
}

.compact-info p {
	margin: 0 0 10px 0;
	font-size: 14px;
}

.compact-details {
	display: flex;
	gap: 15px;
	font-size: 13px;
	opacity: 0.9;
}

/* HORIZONTAL STYLE */
.weather-horizontal {
	display: flex;
	gap: 15px;
	overflow-x: auto;
	padding: 15px 0;
}

.weather-h-item {
	background: white;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 15px;
	min-width: 100px;
	text-align: center;
	transition: transform 0.2s;
}

.weather-h-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.weather-h-item .h-day {
	font-size: 13px;
	color: #666;
	margin-bottom: 10px;
}

.weather-h-item .h-icon {
	font-size: 48px;
	margin: 10px 0;
}

.weather-h-item .h-temp {
	font-size: 20px;
	font-weight: 600;
	color: #333;
}

/* MINIMAL STYLE */
.weather-minimal {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: white;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 10px 15px;
}

.weather-minimal-icon {
	font-size: 32px;
}

.weather-minimal-temp {
	font-size: 24px;
	font-weight: 700;
	color: #333;
}

.weather-minimal-city {
	font-size: 14px;
	color: #666;
}

/* CARD VIEW STYLE */
.weather-card-view {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 15px;
}

.weather-card {
	background: white;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	transition: all 0.3s;
}

.weather-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.weather-card .card-date {
	font-size: 13px;
	color: #666;
	margin-bottom: 10px;
}

.weather-card .card-icon {
	font-size: 56px;
	margin: 10px 0;
}

.weather-card .card-temp {
	font-size: 28px;
	font-weight: 700;
	color: #333;
	margin: 10px 0;
}

.weather-card .card-desc {
	font-size: 12px;
	color: #666;
}

/* WIDGET STYLE */
.weather-widget {
	background: white;
	border: 1px solid #eee;
	border-radius: 16px;
	padding: 25px;
	max-width: 350px;
}

.weather-widget-header h3 {
	margin: 0 0 5px 0;
	font-size: 22px;
	color: #333;
}

.weather-widget-header .widget-date {
	font-size: 13px;
	color: #999;
}

.weather-widget-main {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 20px 0;
}

.widget-icon-large {
	font-size: 100px;
}

.widget-temperature .widget-temp-value {
	font-size: 52px;
	font-weight: 700;
	color: #333;
	display: block;
}

.widget-temperature .widget-feels-like {
	font-size: 13px;
	color: #666;
}

.weather-widget-description {
	margin: 15px 0;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 8px;
}

.weather-widget-description p {
	margin: 0;
	color: #666;
	font-size: 14px;
}

.weather-widget-details {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin: 20px 0;
}

.widget-detail {
	text-align: center;
}

.widget-detail .detail-icon {
	font-size: 28px;
	display: block;
	margin-bottom: 5px;
}

.widget-detail .detail-label {
	font-size: 11px;
	color: #999;
	display: block;
	margin-bottom: 3px;
}

.widget-detail .detail-value {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	display: block;
}

.weather-widget-times {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 15px 0;
	padding: 15px 0;
	border-top: 1px solid #eee;
}

.widget-time {
	text-align: center;
}

.widget-time .time-label {
	font-size: 11px;
	color: #999;
	display: block;
	margin-bottom: 5px;
}

.widget-time .time-temp {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	display: block;
}

.weather-widget-footer {
	text-align: center;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #eee;
}

.widget-more-link {
	color: #0073aa;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.widget-more-link:hover {
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
	.weather-main-card {
		grid-template-columns: 1fr;
		text-align: center;
		padding: 30px 20px;
	}

	.weather-params {
		flex-direction: row;
		justify-content: space-around;
	}

	.weather-days-grid {
		grid-template-columns: 1fr;
	}

	.weather-title {
		font-size: 24px;
	}

	.weather-tabs {
		flex-wrap: wrap;
	}

	/* Shortcode Responsive */
	.weather-sc-day-content {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.weather-card-view {
		grid-template-columns: repeat(2, 1fr);
	}

	.weather-horizontal {
		justify-content: flex-start;
	}

	.compact-main {
		flex-direction: column;
		text-align: center;
	}

	.weather-widget-main {
		flex-direction: column;
		text-align: center;
	}

	.weather-widget-details {
		grid-template-columns: 1fr;
	}
}
