/* ==========================================
   General Setup & Reset
   ========================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5; 
    color: #1c1e21; 
    display: flex; 
    justify-content: center; 
    padding: 20px; 
    line-height: 1.5; 
}

.container { 
    background: #ffffff; 
    width: 100%; 
    max-width: 650px; 
    border-radius: 24px; 
    padding: 30px; 
    box-shadow: 0 12px 40px rgba(0,0,0,0.08); 
}

/* ==========================================
   Header & Typography
   ========================================== */
header { 
    text-align: center; 
    margin-bottom: 30px; 
}

/* style: apply tall handwritten font with enhanced weight for visibility */
.main-title {
    font-family: 'Amatic SC', cursive;
    font-size: 5.5rem;
    font-weight: 700;
    color: #e53935;
    margin-bottom: 5px;
    -webkit-text-stroke: 1.5px #e53935;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    white-space: nowrap; 
}

.title-logo {
    height: 85px; 
    width: auto;
    border-radius: 50%;
}

@media (max-width: 600px) {
    .main-title {
        font-size: 3.5rem; 
        gap: 12px;
    }
    .title-logo {
        height: 65px; 
    }
}

@media (max-width: 400px) {
    .main-title {
        font-size: 2.8rem; 
    }
    .title-logo {
        height: 55px; 
    }
}

.keep-together {
    white-space: nowrap;
}

.sub-title {
    font-family: 'Varela Round', sans-serif;
    font-size: 1.5rem; 
    color: #455a64; 
    margin-top: -5px; 
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.02);
}

#last-update { color: #90a4ae; font-size: 0.85rem; }

/* ==========================================
   Current Weather Grid
   ========================================== */
.weather-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 15px; }
.card { background: #f8f9fa; padding: 20px 10px; border-radius: 18px; text-align: center; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid #edf2f7; }
.card:hover { transform: translateY(-5px); background: #ffffff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.icon { font-size: 2.5rem; margin-bottom: 8px; }
h3 { font-size: 0.9rem; color: #78909c; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.value { font-size: 1.5rem; font-weight: 700; color: #263238; }

.secondary-data-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 30px; }
.mini-card { background: #f1f5f9; padding: 14px 18px; border-radius: 14px; display: flex; justify-content: space-between; align-items: center; }
.mini-label { color: #64748b; font-size: 0.9rem; }
.mini-value { font-weight: 600; color: #334155; }

/* ==========================================
   AI Section & Charts
   ========================================== */
.ai-section { margin-bottom: 35px; }
.ai-section h2 { font-size: 1.25rem; color: #37474f; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #f1f5f9; }
.ai-summary-box { background: #fff9f0; border-right: 6px solid #ff9800; padding: 20px; border-radius: 12px; font-size: 1.1rem; color: #455a64; box-shadow: 0 4px 12px rgba(255, 152, 0, 0.05); }

.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
#chart-timeframe { padding: 6px 12px; border-radius: 8px; border: 1px solid #cfd8dc; background: white; cursor: pointer; }
.chart-controls { display: flex; gap: 10px; margin-bottom: 15px; }
.chart-btn { flex: 1; padding: 10px; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 10px; cursor: pointer; font-weight: 600; color: #64748b; transition: all 0.2s; }
.chart-btn.active { background: #3498db; color: white; border-color: #2980b9; }

/* ==========================================
   Forecast Rows (Daily & Hourly)
   ========================================== */
.daily-row { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: #fff; border: 1px solid #f1f5f9; border-radius: 14px; margin-bottom: 12px; cursor: pointer; transition: all 0.2s ease; }
.daily-row:hover { background: #f8fafc; border-color: #3498db; }
.daily-row.active { background: #f0f9ff; border-color: #3498db; box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1); }
.daily-date { width: 25%; font-weight: 700; }
.daily-condition { width: 50%; font-size: 0.95rem; }
.daily-temps { width: 25%; text-align: left; font-weight: 700; font-size: 1.1rem; }
.temp-day { margin-left: 10px; }
.temp-night { opacity: 0.6; font-size: 0.95rem; }

.hourly-container { display: flex; overflow-x: auto; gap: 15px; padding-bottom: 15px; scrollbar-width: thin; }
.hourly-card { min-width: 80px; background: #fff; border: 1px solid #ecf0f1; border-radius: 12px; padding: 15px 10px; text-align: center; flex-shrink: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.hourly-card .time { font-size: 0.9rem; color: #7f8c8d; font-weight: bold; margin-bottom: 8px; }
.hourly-card .icon { font-size: 1.8rem; margin: 5px 0; }
.hourly-card .temp { font-size: 1.2rem; font-weight: bold; margin-bottom: 5px; }
.hourly-card .rain { font-size: 0.8rem; color: #3498db; margin-top: 5px; font-weight: bold; }
.hourly-card .wind { font-size: 0.75rem; color: #95a5a6; margin-top: 4px; }

/* ==========================================
   Map & Footer
   ========================================== */
.map-container iframe { border-radius: 16px; border: 1px solid #e2e8f0; width: 100%; }

.site-footer { margin-top: 50px; padding-top: 25px; border-top: 1px solid #e2e8f0; }
.disclaimer-box { font-size: 0.85rem; color: #64748b; line-height: 1.7; text-align: right; background: #f8fafc; padding: 20px; border-radius: 14px; border: 1px solid #f1f5f9; }
.disclaimer-box p { margin-bottom: 12px; }
.disclaimer-box a { color: #3498db; text-decoration: none; font-weight: 700; }
.disclaimer-box a:hover { text-decoration: underline; }

/* ==========================================
   Mobile Adjustments
   ========================================== */
@media (max-width: 500px) {
    .container { padding: 15px; }
    .main-title { font-size: 4.5rem; } 
    .weather-grid { grid-template-columns: 1fr; }
    .daily-date { width: 35%; }
}