/* Base Styles */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --text-color: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: var(--text-color);
    overflow: hidden;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    transition: background 1s ease-in-out;
    position: relative;
}

/* Particles */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Main Content */
.content {
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    text-align: center;
    transition: var(--transition);
    z-index: 1;
    margin: 2rem;
}

.app-header {
    margin-bottom: 2rem;
}

.app-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.app-tagline {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 300;
}

/* Search Box */
.search-container {
    margin-bottom: 1.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.5rem;
    transition: var(--transition);
}

.search-box:hover {
    background: rgba(255, 255, 255, 0.25);
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Weather Container */
.weather-container {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#weather {
    width: 100%;
}

.welcome-message {
    padding: 2rem;
}

.welcome-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.welcome-message h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.welcome-message p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Weather Card */
.weather-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.location-info {
    margin-bottom: 1.5rem;
}

.city-name {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.region-country {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.current-time {
    font-size: 0.85rem;
    opacity: 0.7;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0;
}

.temperature {
    font-size: 3.5rem;
    font-weight: 300;
    position: relative;
}

.temperature::after {
    content: "°C";
    position: absolute;
    top: 0;
    font-size: 1.5rem;
}

.weather-icon {
    width: 80px;
    height: 80px;
}

.weather-condition {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: capitalize;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.detail-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-item i {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.detail-label {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
}

/* Weather Backgrounds & Animations */
.sunny {
    background: linear-gradient(135deg, #f9d423, #ff4e50);
    animation: sunnyGlow 8s infinite alternate;
}
/* Landscape Layout */
.landscape-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    min-height: 500px;
    margin: auto;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.weather-display {
    flex: 2;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.control-panel {
    flex: 1;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Weather Card Adjustments */
.weather-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.weather-main {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin: 2rem 0;
}

.temperature {
    font-size: 4rem;
}

.weather-icon {
    width: 100px;
    height: 100px;
}

.weather-details {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Quick Cities */
.quick-cities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.quick-city {
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-city:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .landscape-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .weather-display, .control-panel {
        flex: none;
        width: 100%;
    }
    
    .weather-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-height: 700px) {
    .landscape-container {
        height: 95vh;
    }
    
    .temperature {
        font-size: 3rem;
    }
    
    .weather-icon {
        width: 80px;
        height: 80px;
    }
}

@keyframes sunnyGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.cloudy {
    background: linear-gradient(135deg, #bdc3c7, #2c3e50);
    animation: cloudyMove 15s infinite alternate;
}

@keyframes cloudyMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.rainy {
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    animation: rainEffect 1s infinite linear;
}

@keyframes rainEffect {
    0% { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}

.snowy {
    background: linear-gradient(135deg, #83a4d4, #b6fbff);
    animation: snowEffect 5s infinite linear;
}

@keyframes snowEffect {
    0% { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}

.thunderstorm {
    background: linear-gradient(135deg, #0f2027, #2c5364);
    animation: thunderEffect 5s infinite;
}

@keyframes thunderEffect {
    0%, 100% { background-color: rgba(255, 255, 255, 0); }
    2% { background-color: rgba(255, 255, 255, 0.6); }
    4% { background-color: rgba(255, 255, 255, 0); }
    50% { background-color: rgba(255, 255, 255, 0.1); }
}

.misty {
    background: linear-gradient(135deg, #c9d6ff, #e2e2e2);
    animation: mistEffect 10s infinite alternate;
}

@keyframes mistEffect {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Particle Animations */
.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .app-header h1 {
        font-size: 2rem;
    }
    
    .temperature {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .weather-details {
        grid-template-columns: 1fr;
    }
    
    .search-box input {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
}