:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Day/Blue */
    --night-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%); /* Night/Dark */
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-color: #fff;
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --accent-color: #ffd700; 
}


body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--primary-gradient);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.5s ease;
}


.splash-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    text-align: center;
}
.splash-icon { font-size: 5rem; margin-bottom: 20px; animation: float 3s infinite ease-in-out; }
.splash-content h1 { font-size: 3rem; margin: 0; line-height: 1.1; }
.splash-content p { opacity: 0.8; margin-top: 10px; font-weight: 300; }
.start-btn {
    margin-top: 30px;
    padding: 15px 40px;
    background: #fff;
    color: #2575fc;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.start-btn:hover { transform: scale(1.05); }


.app-container {
    max-width: 480px; 
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}


header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.location-badge {
    background: rgba(0,0,0,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.icon-btn {
    background: var(--glass-bg);
    border: none;
    color: white;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
    margin-left: 5px;
}
.icon-btn.highlight { background: white; color: #4facfe; }


.favorites-dropdown {
    display: none; 
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
}
.fav-item {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    display: flex; justify-content: space-between;
}
.add-fav { display: flex; gap: 5px; margin-top: 10px; }
.add-fav input { width: 100%; padding: 8px; border-radius: 5px; border: none; }
.add-fav button { padding: 8px; border: none; background: var(--accent-color); border-radius: 5px; cursor: pointer; }


.search-wrapper {
    position: relative;
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 5px;
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    border: 1px solid var(--glass-border);
}
.search-wrapper input {
    background: transparent; border: none; color: white;
    width: 100%; padding: 10px; outline: none; font-size: 1rem;
}
.search-wrapper button {
    background: white; color: #333; border: none;
    padding: 8px 15px; border-radius: 15px; font-weight: bold; cursor: pointer;
}
.search-icon { margin-left: 15px; opacity: 0.7; }


.hero-card {
    text-align: center;
    margin-bottom: 25px;
}
.hero-top {
    display: flex; justify-content: center; align-items: center; gap: 20px;
}
.main-temp-box { text-align: center; }
.weather-emoji { font-size: 5rem; display: block; filter: drop-shadow(0 0 15px rgba(255,255,255,0.4)); }
#temp { font-size: 4rem; margin: 0; font-weight: 700; line-height: 1; text-shadow: 2px 2px 10px rgba(0,0,0,0.2); }
.hero-desc h3 { font-size: 1.5rem; margin: 0; font-weight: 500; }
.smart-pill {
    margin-top: 15px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
}


.stats-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--glass-bg);
    padding: 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}
.stat-header { font-size: 0.8rem; opacity: 0.8; margin-bottom: 5px; display: flex; gap: 5px; align-items: center; }
.stat-card h4 { margin: 0; font-size: 1.2rem; }
.stat-card p { margin: 0; font-size: 0.7rem; }


.progress-bar { height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; margin-top: 8px; }
#aqiBar { height: 100%; border-radius: 2px; transition: width 1s; }


.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 15px; padding: 0 5px; }
.section-header span { font-size: 0.8rem; opacity: 0.7; }

.hourly-scroll {
    display: flex; overflow-x: auto; gap: 15px;
    padding-bottom: 15px;
    scrollbar-width: none; 
}
.hourly-scroll::-webkit-scrollbar { display: none; } 
.hourly-item {
    background: var(--glass-bg);
    min-width: 60px;
    padding: 15px 10px;
    border-radius: 30px; 
    text-align: center;
    border: 1px solid var(--glass-border);
}
.hourly-item span { font-size: 0.8rem; display: block; margin-bottom: 5px; }
.hourly-item strong { display: block; margin-top: 5px; }


.daily-list { display: flex; flex-direction: column; gap: 10px; }
.daily-row {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--glass-bg);
    padding: 15px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}
.day-name { width: 60px; font-weight: 600; }
.day-icon { font-size: 1.2rem; }
.day-temp { opacity: 0.9; }


footer { text-align: center; font-size: 0.7rem; opacity: 0.6; margin-top: 30px; }


@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.app-container { animation: fadeUp 0.8s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }