/* TTB Bão Tracker – stylesheet
   Hoàn toàn scoped trong .ttb-bao-wrap, không ảnh hưởng theme */

.ttb-bao-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    color: #1a1a2e;
    margin: 0 0 32px;
    box-sizing: border-box;
}

.ttb-bao-wrap *,
.ttb-bao-wrap *::before,
.ttb-bao-wrap *::after {
    box-sizing: inherit;
}

/* ── Section title ─────────────────────────────── */
.ttb-bao-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 24px 0 12px;
    padding: 0;
    border: none;
    color: #1a1a2e;
}

/* ── Notice banner ─────────────────────────────── */
.ttb-bao-notice {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    border-left: 4px solid;
}

.ttb-bao-notice--warning {
    background: #fff8e1;
    border-color: #FFC107;
    color: #5a3e00;
}

.ttb-bao-notice--ok {
    background: #e8f5e9;
    border-color: #4CAF50;
    color: #1b5e20;
}

/* ── Card grid ─────────────────────────────────── */
.ttb-bao-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ttb-bao-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
}

.ttb-bao-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.13);
}

.ttb-bao-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 10px;
    background: #f5f7ff;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.ttb-bao-icon {
    font-size: 1.2rem;
}

.ttb-bao-name {
    font-weight: 700;
    font-size: 1rem;
    flex: 1;
    color: #1a1a2e;
}

.ttb-bao-wind {
    color: #fff;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.ttb-bao-card__body {
    padding: 12px 16px;
    flex: 1;
}

.ttb-bao-card__body p {
    margin: 0 0 6px;
    font-size: 0.88rem;
    line-height: 1.4;
}

.ttb-bao-type {
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

.ttb-bao-country,
.ttb-bao-coords {
    color: #555 !important;
}

.ttb-bao-card__footer {
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
}

.ttb-bao-link {
    font-size: 0.85rem;
    color: #1565C0;
    text-decoration: none;
    font-weight: 500;
}

.ttb-bao-link:hover {
    text-decoration: underline;
}

/* ── Empty state ───────────────────────────────── */
.ttb-bao-empty {
    color: #777;
    font-style: italic;
}

/* ── Windy map ─────────────────────────────────── */
.ttb-bao-map-wrap {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    line-height: 0;
}

.ttb-bao-map-wrap iframe {
    display: block;
    width: 100%;
    border: none;
}

/* ── Footer ────────────────────────────────────── */
.ttb-bao-footer {
    background: #f5f7ff;
    border: 1px solid #dce3f5;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.82rem;
    color: #444;
    margin-top: 8px;
}

.ttb-bao-footer p {
    margin: 0 0 6px;
}

.ttb-bao-footer p:last-child {
    margin-bottom: 0;
}

.ttb-bao-footer a {
    color: #1565C0;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 600px) {
    .ttb-bao-grid {
        grid-template-columns: 1fr;
    }
}
