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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #eef2f7;
    color: #222;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #003366 0%, #0055aa 100%);
    color: white;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

header .back-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}

header .back-link:hover { color: white; }

header .back-link::before { content: '‹'; font-size: 1.2rem; line-height: 1; }

main {
    max-width: 800px;
    margin: 32px auto;
    padding: 0 20px 40px;
}

/* --- Index cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.13);
}

.card a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    text-decoration: none;
    color: #003366;
    font-size: 1.05rem;
    font-weight: 600;
}

.card a::after { content: '›'; font-size: 1.4rem; color: #0055aa; }

/* --- Section heading --- */
.section-heading {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #667;
    margin: 32px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #d0d8e4;
}

/* --- Station list --- */
.station-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.station-list li {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    overflow: hidden;
}

.station-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
}

.station-row .name {
    font-weight: 600;
    color: #222;
}

.station-actions {
    display: flex;
    gap: 8px;
}

.toggle-btn {
    color: white;
    background: #0055aa;
    border: none;
    border-radius: 5px;
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.toggle-btn:hover { background: #003d80; }
.toggle-btn.active { background: #555; }

.station-panel {
    border-top: 1px solid #eef2f7;
}

.station-list .meteogram-img {
    width: 100%;
    display: block;
}

/* --- Summary table --- */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.summary-table th,
.summary-table td {
    padding: 8px 18px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
}

.summary-table th {
    color: #667;
    font-weight: 600;
    width: 45%;
}

.summary-table td { color: #222; }

.summary-no-data {
    padding: 12px 18px;
    color: #667;
    font-size: 0.9rem;
}

/* --- Webcam cards --- */
.webcam-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 8px;
}

.webcam-card .webcam-title {
    padding: 12px 18px;
    font-weight: 600;
    color: #003366;
    font-size: 0.95rem;
    border-bottom: 1px solid #eef2f7;
}

.webcam-card .webcam-title a {
    color: inherit;
    text-decoration: none;
}

.webcam-card .webcam-title a:hover { text-decoration: underline; }

.webcam-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
    object-fit: cover;
}
