/* Meteos France - Clean & Simple Design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --success: #10B981;
    --danger: #EF4444;
    
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-900: #111827;
    
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    background: var(--gray-50);
    font-size: 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: var(--gray-900);
}

.nav-menu {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* CITY HERO */
.city-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 32px 0;
    color: white;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.city-hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
}

.city-location {
    font-size: 15px;
    opacity: 0.95;
}

/* CURRENT WEATHER HERO */
.current-weather {
    padding: 32px 0;
}

.hero-weather-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.weather-main-info {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.weather-icon-hero img {
    width: 100px;
    height: 100px;
}

.temp-value {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: var(--gray-900);
}

.temp-condition {
    font-size: 18px;
    color: var(--gray-700);
    margin-top: 6px;
}

.temp-feels {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
}

.weather-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.quick-stat {
    text-align: center;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 12px;
}

.stat-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 6px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* SECTION TITLES */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gray-900);
}

/* DATA CARDS */
.data-cards-section {
    padding: 32px 0;
}

.data-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.data-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.data-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.card-title {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 8px;
    font-weight: 500;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.card-sub {
    font-size: 12px;
    color: var(--gray-500);
}

/* FORECAST SIMPLE */
.forecast-section {
    padding: 32px 0;
    background: white;
}

.forecast-simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.forecast-simple-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.forecast-simple-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: white;
}

.fday-name {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
    margin-bottom: 2px;
}

.fday-date {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.fday-icon img {
    width: 48px;
    height: 48px;
    margin: 8px 0;
}

.fday-condition {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 8px;
    min-height: 32px;
}

.fday-temps {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.ftemp-max {
    color: var(--danger);
}

.ftemp-sep {
    color: var(--gray-400);
    margin: 0 4px;
}

.ftemp-min {
    color: var(--primary);
}

.fday-rain {
    font-size: 12px;
    color: var(--gray-600);
}

/* HOURLY */
.hourly-section {
    padding: 32px 0;
}

.hourly-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
}

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

.hourly-scroll::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 3px;
}

.hourly-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.hourly-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    min-width: 90px;
    text-align: center;
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.hour-time {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
    font-size: 13px;
}

.hour-icon img {
    width: 40px;
    height: 40px;
}

.hour-temp {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 6px 0;
}

.hour-rain,
.hour-wind {
    font-size: 11px;
    color: var(--gray-600);
    margin-top: 2px;
}

/* NEARBY CITIES */
.nearby-cities {
    padding: 32px 0;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.city-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}

.city-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.city-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.city-region {
    color: var(--gray-500);
    font-size: 13px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* FOOTER */
footer {
    background: var(--gray-900);
    color: white;
    padding: 32px 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* ERROR */
.error-section {
    padding: 60px 0;
}

.error-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--gray-200);
}

.error-card h2 {
    margin-bottom: 16px;
}

.error-card p {
    color: var(--gray-600);
    margin-bottom: 24px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .city-hero h1 {
        font-size: 26px;
    }
    
    .weather-main-info {
        flex-direction: column;
        text-align: center;
    }
    
    .temp-value {
        font-size: 52px;
    }
    
    .weather-quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .data-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .forecast-simple-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .nav-menu {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-weather-card {
        padding: 20px;
    }
    
    .weather-icon-hero img {
        width: 80px;
        height: 80px;
    }
    
    .temp-value {
        font-size: 48px;
    }
    
    .forecast-simple-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
