:root {
    --bg-color: #0a0a0c;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(16px);
    --accent: #4cc9f0;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

#weather-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: filter 0.5s ease;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
}

.suggestions-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    max-height: 350px;
    overflow-y: auto;
    border-radius: 20px;
    z-index: 1001;
    display: none;
    padding: 0.6rem;
    background: #08080a;
    /* Deep dark opaque background */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.suggestions-dropdown.active {
    display: block;
}

.suggestion-item {
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: rgba(76, 201, 240, 0.15);
    /* Subtly tinted with accent color */
    border-left: 3px solid var(--accent);
    padding-left: calc(1rem - 3px);
}

.suggestion-item .city-name {
    font-weight: 600;
    display: block;
}

.suggestion-item .country-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.search-container:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(76, 201, 240, 0.2);
}

.search-container input {
    background: none;
    border: none;
    color: white;
    padding: 0.5rem;
    width: 100%;
    outline: none;
    font-size: 1rem;
}

.search-container button {
    background: var(--accent);
    border: none;
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.search-container button:hover {
    transform: scale(1.05);
}

.date-chip {
    padding: 0.5rem 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.weather-main-info {
    padding: 3rem;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
}

.location-box h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.location-box p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.temp-box {
    margin-top: 2rem;
}

#current-temp {
    font-size: 8rem;
    font-weight: 300;
    line-height: 1;
}

.unit {
    font-size: 2rem;
    vertical-align: top;
    margin-left: 0.5rem;
    color: var(--accent);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
}

.highlight-card {
    padding: 1.5rem;
    border-radius: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-header i {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.card-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.forecast-section {
    margin-top: 2rem;
}

.forecast-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.forecast-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.forecast-card {
    min-width: 180px;
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    flex: 1;
}

.forecast-day {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.forecast-icon {
    width: 64px;
    height: 64px;
    margin: 1rem auto;
}

.forecast-temp {
    font-size: 1.5rem;
    font-weight: 600;
}

.forecast-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
    }

    header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .search-container {
        max-width: none;
    }

    .weather-main-info {
        padding: 2rem;
    }

    #current-temp {
        font-size: 5rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }
}