* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #74ebd5, #acb6e5);
    color: #333;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    padding: 0.7rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 220px;
}

.search-form button {
    padding: 0.7rem 1.2rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #2980b9;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 28px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        transition: transform 0.4s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .search-form {
        width: 100%;
        flex-direction: column;
    }

    .search-form input {
        width: 100%;
    }

    .burger {
        display: flex;
    }
}

.main-content {
    padding: 3rem 0;
    text-align: center;
}

.intro h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.intro p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.weather-card,
.forecast-grid,
.favorites-list {
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 1.8rem;
    margin: 2rem 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.hidden {
    display: none;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

footer a {
    color: #74ebd5;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


.current-main { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.temp { font-size: 3.5rem; font-weight: bold; }
.desc { font-size: 1.4rem; margin: 1rem 0; text-transform: capitalize; }
.details { display: flex; justify-content: space-around; margin-top: 1rem; font-size: 1.1rem; }
.forecast-card { text-align: center; padding: 1rem; border-radius: 10px; background: rgba(255,255,255,0.8); }
.fav-btn { margin: 0.5rem; padding: 0.6rem 1.2rem; background: #3498db; color: white; border: none; border-radius: 6px; cursor: pointer; position: relative; }
.remove-fav { margin-left: 8px; color: #e74c3c; font-weight: bold; cursor: pointer; }
.error { color: #e74c3c; font-size: 1.3rem; padding: 2rem; }


.add-fav-btn {
    margin-top: 1rem;
    padding: 0.7rem 1.4rem;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.add-fav-btn:hover:not(:disabled) {
    background: #219653;
}

.add-fav-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}