/*
Theme Name: Weather Vietnam Theme
Theme URI: https://thoitiet.vn
Author: Weather Vietnam
Description: WordPress Theme for Vietnam Weather Forecast
Version: 1.0
License: GPL v2 or later
Text Domain: weather-vietnam
*/

:root {
    --primary-blue: #2B5E8F;
    --primary-light-blue: #3B7CB8;
    --accent-orange: #F5A623;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F5F7FA;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--text-dark); background-color: var(--bg-light); }

header { background-color: var(--primary-blue); color: white; padding: 15px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: bold; }
.search-box { flex: 1; max-width: 300px; margin: 0 30px; }
.search-box input { width: 100%; padding: 10px 15px; border: none; border-radius: 25px; outline: none; }

nav { background-color: var(--primary-light-blue); }
nav ul { max-width: 1200px; margin: 0 auto; list-style: none; display: flex; padding: 0 20px; }
nav li { flex: 1; }
nav a { display: block; padding: 12px 15px; color: white; text-decoration: none; text-align: center; border-bottom: 3px solid transparent; transition: all 0.3s ease; }
nav a:hover { background-color: rgba(255,255,255,0.1); border-bottom-color: var(--accent-orange); }

.container { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.breadcrumb { margin-bottom: 20px; font-size: 14px; color: var(--text-light); }
.breadcrumb a { color: var(--primary-blue); text-decoration: none; }

.page-header { background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light-blue) 100%); color: white; padding: 40px 20px; border-radius: 10px; margin-bottom: 30px; }
.page-title { font-size: 32px; font-weight: bold; margin-bottom: 10px; }
.page-subtitle { font-size: 16px; opacity: 0.9; }

.current-weather { background: white; border-radius: 15px; padding: 30px; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.weather-main { display: flex; align-items: center; gap: 30px; }
.weather-icon { width: 120px; height: 120px; background: linear-gradient(135deg, var(--accent-orange) 0%, #FF9800 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 60px; }
.temp-value { font-size: 48px; font-weight: bold; color: var(--primary-blue); }
.temp-description { font-size: 18px; color: var(--text-light); margin-top: 5px; }
.weather-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.detail-item { display: flex; align-items: center; gap: 10px; padding: 10px; }
.detail-icon { width: 40px; height: 40px; background-color: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }

.forecast-section { background: white; border-radius: 15px; padding: 30px; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.section-title { font-size: 20px; font-weight: bold; color: var(--primary-blue); margin-bottom: 20px; border-bottom: 3px solid var(--accent-orange); padding-bottom: 10px; display: inline-block; }
.forecast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 15px; }
.forecast-card { background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%); border-radius: 10px; padding: 20px; text-align: center; cursor: pointer; transition: all 0.3s ease; }
.forecast-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.forecast-date { font-size: 14px; font-weight: bold; color: var(--primary-blue); margin-bottom: 10px; }
.forecast-icon { font-size: 40px; margin-bottom: 10px; }
.forecast-temp { font-size: 16px; font-weight: bold; color: var(--text-dark); }

.locations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; }
.location-card { background: white; border-radius: 10px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); cursor: pointer; transition: all 0.3s ease; border-left: 4px solid var(--primary-blue); text-decoration: none; color: inherit; }
.location-card:hover { transform: translateY(-8px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-left-color: var(--accent-orange); }
.location-name { font-size: 18px; font-weight: bold; color: var(--primary-blue); margin-bottom: 15px; }
.location-temp { font-size: 24px; font-weight: bold; color: var(--accent-orange); }
.location-icon { font-size: 40px; }

.links-section { background: white; border-radius: 15px; padding: 30px; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.links-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.links-column h3 { color: var(--primary-blue); font-size: 16px; margin-bottom: 15px; border-bottom: 2px solid var(--accent-orange); padding-bottom: 10px; }
.links-column ul { list-style: none; }
.links-column li { margin-bottom: 12px; }
.links-column a { color: var(--text-light); text-decoration: none; transition: all 0.3s ease; }
.links-column a:hover { color: var(--primary-blue); padding-left: 5px; }

footer { background-color: var(--primary-blue); color: white; padding: 30px 20px; text-align: center; margin-top: 50px; }
.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-text { font-size: 14px; opacity: 0.9; line-height: 1.8; }
.footer-links { margin: 20px 0; display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.footer-links a { color: white; text-decoration: none; transition: all 0.3s ease; }
.footer-links a:hover { color: var(--accent-orange); }

@media (max-width: 768px) {
    .current-weather { grid-template-columns: 1fr; }
    .page-title { font-size: 24px; }
    .forecast-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
    .locations-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 480px) {
    .weather-main { flex-direction: column; text-align: center; }
    .weather-icon { width: 80px; height: 80px; font-size: 40px; }
    .temp-value { font-size: 36px; }
    .locations-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   HOMEPAGE - PROVINCES GRID LAYOUT
   ============================================================================ */

.provinces-grid-container {
    margin: 40px 0;
}

.provinces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.province-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #2B5E8F 0%, #1e3f5a 100%);
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 80px;
}

.province-card:hover {
    background: linear-gradient(135deg, #F5A623 0%, #d4851f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.province-name {
    font-size: 15px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .provinces-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .province-card {
        padding: 20px 15px;
        font-size: 14px;
        min-height: 70px;
    }
}

@media (max-width: 480px) {
    .provinces-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .province-card {
        padding: 15px 10px;
        font-size: 13px;
        min-height: 60px;
    }
}

