:root {
    --bg-color: #2c3e50;
    --text-color: #ecf0f1;
    --accent-color: #3498db;
    --transition-speed: 1.5s;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color var(--transition-speed) ease;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#app {
    text-align: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 400px;
    width: 90%;
}

.search-container {
    margin-bottom: 2rem;
    display: flex;
    gap: 10px;
    justify-content: center;
}

input {
    padding: 10px;
    border-radius: 8px;
    border: none;
    outline: none;
}

button {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.2s;
}

button:hover {
    opacity: 0.8;
}

.hidden {
    display: none;
}

#weatherDisplay h1 {
    margin: 0;
    font-size: 2.5rem;
}

#temperature {
    font-size: 3rem;
    font-weight: bold;
    margin: 10px 0;
}

#description {
    font-style: italic;
    font-size: 1.2rem;
    text-transform: capitalize;
}

#moodText {
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Visual Effects */
#visuals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-10vh) translateX(0); }
    100% { transform: translateY(110vh) translateX(20px); }
}

/* Mood variants */
body.sunny { --bg-color: #f1c40f; --text-color: #2c3e50; --accent-color: #e67e22; }
body.cloudy { --bg-color: #95a5a6; --text-color: #2c3e50; --accent-color: #7f8c8d; }
body.rainy { --bg-color: #34495e; --text-color: #ecf0f1; --accent-color: #2980b9; }
body.stormy { --bg-color: #1a1a2e; --text-color: #e0e0e0; --accent-color: #4b0082; }
body.snowy { --bg-color: #ecf0f1; --text-color: #2c3e50; --accent-color: #3498db; }
