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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header h1 {
    font-size: 1.3rem;
    color: #4cc9f0;
}

.header-sub {
    font-size: 0.8rem;
    color: #666;
    margin-top: 3px;
}

/* Status chip */
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid;
    transition: all 0.4s ease;
}

.status-chip.normal {
    border-color: #444;
    color: #aaa;
    background: rgba(68, 68, 68, 0.15);
}

.status-chip.forhojet {
    border-color: #f59e0b;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    animation: chipGlow 2s ease-in-out infinite;
}

.status-chip.kraftig {
    border-color: #ff0844;
    color: #ff0844;
    background: rgba(255, 8, 68, 0.15);
    animation: chipGlowRed 1.2s ease-in-out infinite;
}

@keyframes chipGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(245,158,11,0.3); }
    50%       { box-shadow: 0 0 18px rgba(245,158,11,0.6); }
}

@keyframes chipGlowRed {
    0%, 100% { box-shadow: 0 0 5px rgba(255,8,68,0.4); }
    50%       { box-shadow: 0 0 20px rgba(255,8,68,0.7); }
}

/* Updated time */
.updated-time {
    font-size: 0.75rem;
    color: #555;
    text-align: right;
}

/* Main layout */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Section titles */
.section-title {
    font-size: 0.95rem;
    color: #4cc9f0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Forecast grid */
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.forecast-card {
    background: #16213e;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2a2a4e;
    transition: border-color 0.2s;
}

.forecast-card:hover {
    border-color: #4cc9f0;
}

.forecast-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #0d1117;
    font-size: 0.85rem;
}

.forecast-card .card-time {
    color: #4cc9f0;
    font-weight: bold;
}

.forecast-card .card-status {
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 999px;
}

.card-status.normal  { background: rgba(34,197,94,0.15);  color: #22c55e; }
.card-status.forhojet { background: rgba(245,158,11,0.15); color: #f59e0b; }
.card-status.kraftig  { background: rgba(255,8,68,0.15);   color: #ff0844; }
.card-status.mangler  { background: rgba(100,100,100,0.15); color: #666; }

.forecast-card img {
    width: 100%;
    display: block;
}

.forecast-card .card-overlay {
    padding: 8px 12px;
    font-size: 0.75rem;
    color: #666;
    background: #0d1117;
}

/* Legend box */
.legend-box {
    background: #16213e;
    border: 1px solid #2a2a4e;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 25px;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #222;
    font-size: 0.85rem;
}

.legend-row:last-child {
    border-bottom: none;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.normal  { background: #444; }
.legend-dot.forhojet { background: #f59e0b; }
.legend-dot.kraftig  { background: #ff0844; }

.legend-label { flex: 1; color: #ccc; }
.legend-desc  { color: #666; font-size: 0.78rem; }

/* Links section */
.links-box {
    background: #16213e;
    border: 1px solid #2a2a4e;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 25px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ext-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    background: #1a1a2e;
    border: 1px solid #333;
    color: #4cc9f0;
    transition: all 0.2s;
}

.ext-link:hover {
    border-color: #4cc9f0;
    background: #1e2a3e;
}

/* Footer note */
.footer-note {
    text-align: center;
    font-size: 0.75rem;
    color: #444;
    padding: 20px 0;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #555;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a2e; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* Mobile */
@media (max-width: 600px) {
    .forecast-grid {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }
}
