﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #2c3e50);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    min-height: 100vh;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

    .logo i {
        margin-right: 10px;
        color: #4da0ff;
    }

nav ul {
    display: flex;
    list-style: none;
}

    nav ul li {
        margin: 0 15px;
    }

        nav ul li a {
            color: #fff;
            text-decoration: none;
            font-size: 18px;
            font-weight: 500;
            padding: 8px 15px;
            border-radius: 30px;
            transition: all 0.3s ease;
        }

            nav ul li a:hover,
            nav ul li a.active {
                background: rgba(255, 255, 255, 0.2);
                color: #4da0ff;
            }

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 5px 15px;
    margin-left: 20px;
    transition: all 0.3s ease;
}

    .search-box:focus-within {
        background: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 15px rgba(77, 160, 255, 0.5);
    }

    .search-box input {
        background: transparent;
        border: none;
        color: white;
        font-size: 16px;
        padding: 8px;
        width: 200px;
        outline: none;
    }

        .search-box input::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

    .search-box button {
        background: transparent;
        border: none;
        color: white;
        cursor: pointer;
        font-size: 18px;
        transition: all 0.3s ease;
    }

        .search-box button:hover {
            color: #4da0ff;
            transform: scale(1.1);
        }

    .search-box #find-me-btn {
        background: transparent;
        border: none;
        color: white;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s ease;
        margin-left: 5px;
        padding: 5px 10px;
        border-radius: 20px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .search-box #find-me-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #4da0ff;
            transform: scale(1.05);
        }

.lang-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
}

    .lang-toggle:hover {
        background: rgba(255, 255, 255, 0.3);
        color: #4da0ff;
    }

.content-section {
    display: none;
    padding: 30px 0;
    animation: fadeIn 0.5s ease;
    flex: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section.active {
    display: block;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.current-weather {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 30px;
    margin: 0 auto 40px;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.city-name {
    font-size: 32px;
    margin-bottom: 10px;
}

.city-district {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 10px;
}

.current-date {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ccc;
}

.weather-main {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.temp-container {
    text-align: center;
}

.current-temp {
    font-size: 64px;
    font-weight: bold;
    margin: 10px 0;
    position: relative;
}

    .current-temp::after {
        content: "°";
        position: absolute;
        top: 0;
        right: -25px;
        font-size: 48px;
    }

.feels-like {
    font-size: 20px;
    color: #ccc;
}

.weather-icon {
    font-size: 80px;
    margin: 10px 0;
    color: #FFD700;
}

.weather-desc {
    font-size: 24px;
    text-transform: capitalize;
}

.hourly-forecast {
    display: flex;
    justify-content: space-between;
    overflow-x: auto;
    padding: 20px 0;
    margin: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hour-item {
    min-width: 70px;
    text-align: center;
    padding: 10px;
}

.hour-time {
    font-size: 16px;
    margin-bottom: 10px;
}

.hour-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #4da0ff;
}

.hour-temp {
    font-size: 18px;
    font-weight: bold;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.detail-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
}

.detail-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    color: #4da0ff;
}

    .detail-title i {
        margin-right: 10px;
        font-size: 24px;
    }

.detail-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.detail-label {
    font-size: 16px;
    color: #ccc;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.forecast-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    margin-top: 30px;
}

.forecast-day {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

    .forecast-day:hover {
        transform: translateY(-5px);
        background: rgba(0, 0, 0, 0.5);
    }

.forecast-date {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFD700;
}

.forecast-icon {
    font-size: 40px;
    margin: 10px 0;
    color: #4da0ff;
}

.forecast-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.forecast-minmax {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.min-temp, .max-temp {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.temp-label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 3px;
}

.min-temp {
    color: #a0d2ff;
}

.max-temp {
    color: #ff9e9e;
}

.cities-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.city-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .city-card:hover {
        background: rgba(0, 0, 0, 0.5);
        transform: translateY(-5px);
    }

.city-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.city-card-name {
    font-size: 22px;
    font-weight: bold;
}

.city-card-district {
    font-size: 14px;
    color: #ccc;
    margin-top: 3px;
}

.city-card-temp {
    font-size: 28px;
    font-weight: bold;
}

.city-card-weather {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.city-card-icon {
    font-size: 40px;
    color: #FFD700;
}

.city-card-desc {
    font-size: 16px;
    text-align: right;
}

footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 30px 0 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-city-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 15px;
}

.footer-city {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
}

    .footer-city:hover {
        color: #4da0ff;
        background: rgba(255, 255, 255, 0.1);
    }

.footer-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

    .footer-column h3 {
        font-size: 16px;
        margin-bottom: 15px;
        color: #4da0ff;
        font-weight: 600;
    }

    .footer-column a {
        color: #ccc;
        text-decoration: none;
        margin-bottom: 10px;
        font-size: 14px;
        transition: color 0.3s ease;
    }

        .footer-column a:hover {
            color: #4da0ff;
        }

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.download-btn {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 15px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

    .download-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    .download-btn i {
        font-size: 24px;
        margin-right: 10px;
    }

.btn-content {
    display: flex;
    flex-direction: column;
}

.btn-label {
    font-size: 10px;
    opacity: 0.8;
}

.btn-name {
    font-size: 16px;
    font-weight: 500;
}

.appgallery-btn {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-top: 10px;
}

    .appgallery-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

.appgallery-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .appgallery-icon svg {
        width: 24px;
        height: 24px;
    }

.footer-credits {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    .footer-credits p {
        margin-bottom: 5px;
    }

.credits-column {
    grid-column: span 1;
}

.credits-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.credit-section {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
    }

    nav {
        margin: 20px 0;
    }

    .search-box {
        margin: 10px 0 0;
        width: 100%;
        max-width: 400px;
    }

        .search-box input {
            width: 100%;
        }

    .weather-details {
        grid-template-columns: 1fr;
    }

    .footer-city-row {
        gap: 15px;
    }

    .credits-container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        grid-template-columns: repeat(2, 1fr);
    }

    .forecast-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

        nav ul li {
            margin: 5px;
        }

    .section-title {
        font-size: 26px;
    }

    .current-weather {
        padding: 20px;
    }

    .current-temp {
        font-size: 48px;
    }

    .weather-icon {
        font-size: 60px;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
    }

    .footer-city {
        font-size: 16px;
    }

    .forecast-container {
        grid-template-columns: 1fr;
    }

    .cities-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .footer-city {
        font-size: 14px;
        padding: 3px 8px;
    }
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 24px;
}

    .loading i {
        font-size: 48px;
        margin-bottom: 20px;
        color: #4da0ff;
        animation: spin 2s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    background: rgba(200, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
    font-size: 18px;
}

.moon-phase {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.moon-icon {
    font-size: 24px;
    margin-right: 10px;
    color: #e0e0e0;
}
