/* Winsford Local Hub — hub.css */

.wlh-hub {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    max-width: 900px;
}

/* ---- Header ---- */
.wlh-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}
.wlh-header__icon { font-size: 24px; }
.wlh-header__title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 2px;
}
.wlh-header__sub {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* ---- Sections ---- */
.wlh-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}
.wlh-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.wlh-section__heading {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #1a1a1a;
}

/* ---- Fuel cards ---- */
.wlh-fuel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 1rem;
}
.wlh-fuel-card {
    background: #f7f7f5;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}
.wlh-fuel-card__name {
    font-size: 12px;
    color: #666;
    margin: 0 0 4px;
}
.wlh-fuel-card__price {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: #1a1a1a;
    line-height: 1.2;
}
.wlh-fuel-card__unit {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-left: 2px;
}
.wlh-fuel-card__station {
    font-size: 11px;
    color: #888;
    margin: 0;
}

/* ---- Expandable ---- */
.wlh-expandable {
    margin-top: 0.75rem;
}
.wlh-expandable summary {
    cursor: pointer;
    font-size: 13px;
    color: #0073aa;
    user-select: none;
}
.wlh-expandable summary:hover { text-decoration: underline; }
.wlh-expandable[open] summary { margin-bottom: 0.75rem; }

/* ---- Tables ---- */
.wlh-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.wlh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.wlh-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 12px 8px 0;
    white-space: nowrap;
    border-bottom: 1px solid #e5e5e5;
}
.wlh-table td {
    padding: 9px 12px 9px 0;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    color: #1a1a1a;
}
.wlh-table tbody tr:last-child td { border-bottom: none; }
.wlh-table small { color: #888; font-size: 12px; }
.wlh-realtime { color: #0073aa; }

/* ---- Status badges ---- */
.wlh-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 99px;
    white-space: nowrap;
}
.wlh-badge--on-time   { background: #e8f5e9; color: #2e7d32; }
.wlh-badge--minor-delay { background: #fff8e1; color: #f57f17; }
.wlh-badge--delayed   { background: #fff3e0; color: #e65100; }
.wlh-badge--cancelled { background: #fce4ec; color: #c62828; }
.wlh-badge--departed  { background: #f5f5f5; color: #757575; }
.wlh-badge--due       { background: #e3f2fd; color: #1565c0; }

/* ---- Notices / errors ---- */
.wlh-error {
    color: #c62828;
    background: #fce4ec;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    font-size: 13px;
    margin: 0;
}
.wlh-notice {
    color: #666;
    font-size: 14px;
    margin: 0;
}
.wlh-setup-notice {
    background: #fffde7;
    border: 1px solid #fff59d;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 14px;
}
.wlh-setup-notice p { margin: 0 0 0.5rem; }
.wlh-setup-notice ol { margin: 0.5rem 0 0 1.2rem; padding: 0; }
.wlh-setup-notice li { margin-bottom: 0.25rem; }

/* ---- Attribution ---- */
.wlh-attribution {
    font-size: 12px;
    color: #aaa;
    margin: 0.5rem 0 0;
}
.wlh-attribution a { color: #aaa; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .wlh-fuel-grid { grid-template-columns: repeat(2, 1fr); }
    .wlh-table { font-size: 13px; }
    .wlh-header__title { font-size: 1.2rem; }
}
