:root {
    --primary: #00f2ff;
    --warm: #ff5e57;
    --secondary: #bc13fe;
    --bg-dark: #0a0b1e;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animated Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    opacity: 0.4;
    animation: move 20s infinite alternate linear;
}

.blob-1 {
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.blob-2 {
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.blob-3 {
    background: radial-gradient(circle, #4d4dff 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(-10%, -10%);
    }

    to {
        transform: translate(10%, 10%);
    }
}

.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero {
    text-align: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

/* Search Section */
.search-section {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.search-container {
    width: 100%;
    max-width: 600px;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--primary);
    transform: scale(1.02);
}

.search-container input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    padding: 10px 0;
    outline: none;
    font-family: inherit;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-container button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.search-container button:hover {
    color: var(--primary);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 15px;
    border-radius: 20px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-dark);
    z-index: 20;
}

.search-results.hidden {
    display: none;
}

.result-item {
    padding: 15px 25px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--glass-border);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background: var(--glass-hover);
}

.result-item .loc-name {
    display: block;
    font-weight: 600;
}

.result-item .loc-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Grid Layout */
.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.weather-grid.hidden {
    display: none;
}

.card {
    border-radius: 30px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card h2,
.card h3 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
    line-height: 1.4;
}

.badge {
    background: var(--glass-hover);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.temp-display {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin: 20px 0;
}

.temp-display .unit {
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary);
}

.meta-row {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.meta-item label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-item span {
    font-weight: 600;
}

/* Source Items */
.source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.source-item:last-child {
    border-bottom: none;
}

.source-name {
    text-transform: capitalize;
    color: var(--text-secondary);
}

.source-temp {
    font-weight: 700;
    color: var(--primary);
}

/* Daily List */
.daily-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.daily-item {
    background: var(--glass-hover);
    padding: 15px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.daily-date {
    font-weight: 500;
}

/* Loading Spinner */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--glass);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animations */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.footer {
    text-align: center;
    margin-top: 60px;
    padding-bottom: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .temp-display {
        font-size: 3.5rem;
    }
}