/**
 * Weather Forecast VN - Main Styles
 *
 * @package Weather_Forecast_VN
 */

/* ===== Reset & Base ===== */
.wfv-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	color: #333;
	line-height: 1.6;
}

.wfv-container * {
	box-sizing: border-box;
}

/* ===== Breadcrumb ===== */
.wfv-breadcrumb {
	font-size: 14px;
	color: #666;
	margin-bottom: 20px;
	padding: 10px 0;
	border-bottom: 1px solid #e0e0e0;
}

.wfv-breadcrumb a {
	color: #0c4d8e;
	text-decoration: none;
	transition: color 0.3s;
}

.wfv-breadcrumb a:hover {
	color: #012f63;
	text-decoration: underline;
}

/* ===== Page Title ===== */
.wfv-title {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 20px 0;
}

/* ===== Quick Links Navigation ===== */
.wfv-quick-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
	padding: 15px;
	background: #f5f5f5;
	border-radius: 8px;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wfv-quick-links a {
	padding: 8px 16px;
	background: #fff;
	color: #333;
	text-decoration: none;
	border-radius: 5px;
	border: 1px solid #ddd;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s;
}

.wfv-quick-links a:hover {
	background: #e3f2fd;
	border-color: #0c4d8e;
	color: #0c4d8e;
}

.wfv-quick-links a.active {
	background: #0c4d8e;
	color: #fff;
	border-color: #0c4d8e;
}

/* ===== Current Weather Hero ===== */
.wfv-current-hero {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 40px;
	border-radius: 12px;
	margin-bottom: 30px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wfv-current-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}

.wfv-current-temp {
	font-size: 72px;
	font-weight: 700;
	line-height: 1;
}

.wfv-current-icon {
	text-align: center;
}

.wfv-current-icon i {
	font-size: 64px;
	display: block;
	margin-bottom: 10px;
}

.wfv-current-icon span {
	font-size: 18px;
	font-weight: 500;
}

.wfv-current-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.wfv-stat {
	text-align: center;
}

.wfv-stat i {
	font-size: 24px;
	display: block;
	margin-bottom: 8px;
	opacity: 0.9;
}

.wfv-stat-value {
	font-size: 24px;
	font-weight: 600;
	display: block;
}

.wfv-stat-label {
	font-size: 14px;
	opacity: 0.9;
	margin-top: 4px;
}

/* ===== Current Summary (for subpages) ===== */
.wfv-current-summary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 20px 30px;
	border-radius: 8px;
	margin-bottom: 30px;
	display: flex;
	align-items: center;
	gap: 20px;
}

.wfv-current-summary .wfv-current-temp {
	font-size: 48px;
	font-weight: 700;
}

.wfv-current-summary .wfv-current-desc {
	font-size: 18px;
	opacity: 0.95;
}

/* ===== Section Headers ===== */
.wfv-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.wfv-section-title {
	font-size: 22px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0;
}

.wfv-section-link {
	color: #0c4d8e;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: color 0.3s;
}

.wfv-section-link:hover {
	color: #012f63;
}

/* ===== Hourly Preview (on location page) ===== */
.wfv-hourly-preview {
	margin-bottom: 40px;
}

.wfv-hourly-scroll {
	display: flex;
	gap: 15px;
	overflow-x: auto;
	padding: 20px 0;
	scrollbar-width: thin;
	scrollbar-color: #0c4d8e #f0f0f0;
}

.wfv-hourly-scroll::-webkit-scrollbar {
	height: 8px;
}

.wfv-hourly-scroll::-webkit-scrollbar-track {
	background: #f0f0f0;
	border-radius: 4px;
}

.wfv-hourly-scroll::-webkit-scrollbar-thumb {
	background: #0c4d8e;
	border-radius: 4px;
}

.wfv-hour-card {
	min-width: 100px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 15px;
	text-align: center;
	transition: all 0.3s;
}

.wfv-hour-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.wfv-hour-time {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 10px;
}

.wfv-hour-icon i {
	font-size: 32px;
	color: #0c4d8e;
	margin: 10px 0;
}

.wfv-hour-temp {
	font-size: 20px;
	font-weight: 700;
	color: #333;
	margin: 10px 0;
}

.wfv-hour-details {
	font-size: 12px;
	color: #666;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #f0f0f0;
}

.wfv-hour-details div {
	margin: 4px 0;
}

/* ===== Daily Forecast Preview (on location page) ===== */
.wfv-daily-preview {
	margin-bottom: 40px;
}

.wfv-forecast-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 15px;
	margin-top: 20px;
}

.wfv-forecast-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px 15px;
	text-align: center;
	transition: all 0.3s;
}

.wfv-forecast-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.wfv-forecast-day {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 5px;
}

.wfv-forecast-date {
	font-size: 12px;
	color: #666;
	margin-bottom: 15px;
}

.wfv-forecast-icon i {
	font-size: 40px;
	color: #0c4d8e;
	margin: 10px 0;
}

.wfv-forecast-temps {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 15px 0 10px 0;
	font-size: 18px;
}

.wfv-temp-high {
	color: #d32f2f;
	font-weight: 700;
}

.wfv-temp-low {
	color: #0c4d8e;
	font-weight: 600;
}

.wfv-forecast-rain {
	font-size: 12px;
	color: #666;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #f0f0f0;
}

/* ===== Hourly Table (full page) ===== */
.wfv-hourly-table {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wfv-hourly-row {
	display: grid;
	grid-template-columns: 100px 1fr 120px 2fr;
	gap: 15px;
	padding: 20px;
	border-bottom: 1px solid #f0f0f0;
	align-items: center;
	transition: background 0.2s;
}

.wfv-hourly-row:hover {
	background: #f9f9f9;
}

.wfv-hourly-row:last-child {
	border-bottom: none;
}

.wfv-hourly-time {
	text-align: center;
}

.wfv-hourly-time .wfv-time {
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.wfv-hourly-time .wfv-date {
	font-size: 13px;
	color: #666;
	margin-top: 4px;
}

.wfv-hourly-icon {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wfv-hourly-icon i {
	font-size: 32px;
	color: #0c4d8e;
}

.wfv-hourly-icon span {
	font-size: 14px;
	color: #333;
}

.wfv-hourly-temp {
	text-align: center;
}

.wfv-hourly-temp .wfv-temp-main {
	font-size: 28px;
	font-weight: 700;
	color: #333;
	display: block;
}

.wfv-hourly-temp .wfv-feels-like {
	font-size: 12px;
	color: #666;
	margin-top: 4px;
	display: block;
}

.wfv-hourly-details {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.wfv-hourly-details .wfv-detail {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #666;
}

.wfv-hourly-details .wfv-detail i {
	color: #0c4d8e;
	font-size: 16px;
}

/* ===== Daily Grid (full page) ===== */
.wfv-daily-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 30px;
}

.wfv-daily-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 25px 20px;
	text-align: center;
	transition: all 0.3s;
}

.wfv-daily-card:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
	transform: translateY(-4px);
}

.wfv-daily-card.wfv-today {
	border: 2px solid #0c4d8e;
	background: #e3f2fd;
}

.wfv-daily-date {
	margin-bottom: 15px;
}

.wfv-daily-date .wfv-day {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	display: block;
}

.wfv-daily-date .wfv-date {
	font-size: 13px;
	color: #666;
	display: block;
	margin-top: 4px;
}

.wfv-daily-icon i {
	font-size: 56px;
	color: #0c4d8e;
	margin: 15px 0;
}

.wfv-daily-desc {
	font-size: 14px;
	color: #666;
	margin-bottom: 15px;
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wfv-daily-temp {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 20px 0;
	font-size: 24px;
}

.wfv-daily-temp .wfv-temp-max {
	color: #d32f2f;
	font-weight: 700;
}

.wfv-daily-temp .wfv-temp-divider {
	color: #999;
}

.wfv-daily-temp .wfv-temp-min {
	color: #0c4d8e;
	font-weight: 600;
}

.wfv-daily-details {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #e0e0e0;
}

.wfv-daily-details .wfv-detail {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 13px;
	color: #666;
}

.wfv-daily-details .wfv-detail i {
	color: #0c4d8e;
	font-size: 14px;
}

/* ===== Related Locations ===== */
.wfv-related {
	margin-top: 50px;
	padding-top: 30px;
	border-top: 2px solid #e0e0e0;
}

.wfv-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 15px;
	margin-top: 20px;
}

.wfv-related-link {
	display: block;
	padding: 15px 20px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	color: #333;
	text-decoration: none;
	transition: all 0.3s;
}

.wfv-related-link:hover {
	background: #e3f2fd;
	border-color: #0c4d8e;
	color: #0c4d8e;
	transform: translateX(4px);
}

.wfv-related-link i {
	margin-right: 8px;
	color: #0c4d8e;
}

/* ===== No Data Message ===== */
.wfv-no-data {
	text-align: center;
	padding: 60px 20px;
	color: #999;
	font-size: 16px;
	background: #f9f9f9;
	border-radius: 8px;
	margin: 30px 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
	.wfv-container {
		padding: 15px;
	}

	.wfv-title {
		font-size: 22px;
	}

	.wfv-current-hero {
		padding: 25px 20px;
	}

	.wfv-current-header {
		flex-direction: column;
		text-align: center;
		gap: 20px;
	}

	.wfv-current-temp {
		font-size: 56px;
	}

	.wfv-current-icon i {
		font-size: 48px;
	}

	.wfv-current-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.wfv-hourly-row {
		grid-template-columns: 1fr;
		gap: 15px;
		padding: 15px;
	}

	.wfv-hourly-time {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.wfv-hourly-icon {
		justify-content: center;
	}

	.wfv-hourly-details {
		justify-content: center;
	}

	.wfv-daily-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 15px;
	}

	.wfv-daily-card {
		padding: 20px 15px;
	}

	.wfv-daily-icon i {
		font-size: 48px;
	}

	.wfv-forecast-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}

	.wfv-quick-links {
		padding: 10px;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scrollbar-color: #ccc transparent;
	}

	.wfv-quick-links::-webkit-scrollbar {
		height: 4px;
	}

	.wfv-quick-links::-webkit-scrollbar-track {
		background: transparent;
	}

	.wfv-quick-links::-webkit-scrollbar-thumb {
		background: #ccc;
		border-radius: 2px;
	}

	.wfv-quick-links a {
		font-size: 13px;
		padding: 6px 12px;
		flex-shrink: 0;
		white-space: nowrap;
	}
}

@media (max-width: 480px) {
	.wfv-current-stats {
		grid-template-columns: 1fr;
	}

	.wfv-daily-grid,
	.wfv-forecast-grid {
		grid-template-columns: 1fr;
	}

	.wfv-related-grid {
		grid-template-columns: 1fr;
	}

	.wfv-hourly-scroll {
		gap: 10px;
	}

	.wfv-hour-card {
		min-width: 90px;
		padding: 12px;
	}
}

/* ===== Updating Message ===== */
.wfv-updating {
	background: #fff;
	border-radius: 12px;
	padding: 80px 40px;
	text-align: center;
	margin-top: 30px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wfv-updating p {
	font-size: 18px;
	color: #666;
	margin: 0;
	font-weight: 500;
}

@media (max-width: 768px) {
	.wfv-updating {
		padding: 60px 20px;
	}
	
	.wfv-updating p {
		font-size: 16px;
	}
}
