:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --primary-dark: #3f37c9;
    --secondary: #4cc9f0;
    --accent: #f72585;
    --success: #4ade80;
    --bg-body: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border: 1px solid rgba(255, 255, 255, 0.2);
    --radius: 24px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #020617;
        --bg-card: rgba(15, 23, 42, 0.6);
        --text-main: #f8fafc;
        --text-muted: #94a3b8;
        --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
        --border: 1px solid rgba(255, 255, 255, 0.05);
    }
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    background-image: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: light) {
    body {
        background-image: radial-gradient(at 0% 0%, hsla(210, 100%, 98%, 1) 0, transparent 50%),
            radial-gradient(at 50% 0%, hsla(220, 100%, 95%, 1) 0, transparent 50%),
            radial-gradient(at 100% 0%, hsla(330, 100%, 98%, 1) 0, transparent 50%);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
}

.logo-container img {
    height: 80px;
    width: auto;
    mix-blend-mode: multiply;
    transition: transform 0.5s ease;
}

.logo-container img:hover {
    transform: scale(1.05) rotate(2deg);
}

.logo-container h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.banner {
    width: 100%;
    height: 300px;
    background-image: url('banner.jpg');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    border: var(--border);
    margin: 1rem 0 2rem 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.warning-banner {
    display: none;
    width: 100%;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    animation: fadeInDown 0.5s ease-out;
}

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

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

.warning-banner.active {
    display: flex;
}

.warning-banner.geel {
    background: #fbbf24;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.warning-banner.oranje {
    background: #f97316;
    color: white;
    border: 1px solid #ea580c;
}

.warning-banner.rood {
    background: #ef4444;
    color: white;
    border: 1px solid #dc2626;
    animation: fadeInDown 0.5s ease-out, warningPulse 2s infinite;
}

@keyframes warningPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.warning-banner svg {
    flex-shrink: 0;
}

.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
}

.last-update {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-main);
    background: var(--bg-card);
    padding: 0.75rem 2rem;
    border-radius: 100px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border);
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.last-update::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    border: var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(67, 97, 238, 0.3);
}

.card h2 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card h2 svg {
    color: var(--primary);
}

.card .value {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.25rem;
}

.card .unit {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
}

.card .details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

.card .details>span {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.4rem !important;
    white-space: nowrap !important;
}

.card .details span span {
    color: var(--text-main);
    font-weight: 600;
}

.card.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}

.card.primary h2 svg {
    color: white;
}

.card.primary .value,
.card.primary .unit,
.card.primary h2 {
    color: white;
}

.card.primary .details {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.card.primary .details span,
.card.primary .details span span {
    color: rgba(255, 255, 255, 0.9);
}

.footer-section {
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    margin-top: 6rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(67, 97, 238, 0.4);
}

footer {
    text-align: center;
    padding: 3rem 0;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

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

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

.weather-grid>* {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.weather-grid>*:nth-child(1) {
    animation-delay: 0.1s;
}

.weather-grid>*:nth-child(2) {
    animation-delay: 0.2s;
}

.weather-grid>*:nth-child(3) {
    animation-delay: 0.3s;
}

.weather-grid>*:nth-child(4) {
    animation-delay: 0.4s;
}

.weather-grid>*:nth-child(5) {
    animation-delay: 0.5s;
}

.weather-grid>*:nth-child(6) {
    animation-delay: 0.6s;
}

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

    .logo-container img {
        height: 100px;
    }

    .logo-container h1 {
        font-size: 1.75rem;
    }

    .banner {
        height: 200px;
    }

    .card .value {
        font-size: 2.75rem;
    }

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