* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* HEADER */
header {
    width: 100%;
    padding: 30px 20px 10px;
    text-align: center;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 3px;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#location {
    margin-top: 15px;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 600;
    color: #94a3b8;
}

/* GRID */
.forecast-wrapper {
    width: 100%;
    padding: 30px 20px 50px;
}

.forecast-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .forecast-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .forecast-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

/* CARD */
.day {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

.day:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* DATUM */
.day strong {
    display: block;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* TEMPERATURE */
.temp {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 6px 0;
}

.temp:first-of-type {
    color: #38bdf8;
}

.temp:last-of-type {
    color: #f87171;
}

/* OSTALE INFO */
.feels,
.wind,
.precipitation,
.clouds,
.uv,
.humidity,
.sunrise,
.sunset {
    font-size: 0.9rem;
    margin-top: 6px;
    opacity: 0.85;
}

/* POSEBNE BOJE */
.uv {
    color: #facc15;
    font-weight: 600;
}

.sunrise {
    color: #fb923c;
}

.sunset {
    color: #f43f5e;
}

.humidity {
    color: #38bdf8;
}