/* Hurricane Tracker — features.css */
/* Language selector, ZIP risk, checklist, forecast summary */

/* ── Language selector ────────────────────────────────────────────────────── */
.ht-lang-selector {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}
.ht-lang-btn {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.ht-lang-btn:hover    { background: rgba(255,255,255,.28); }
.ht-lang-btn.active   { background: var(--ht-secondary); color: #1a1a1a; border-color: var(--ht-secondary); }

/* ── Forecast Summary ─────────────────────────────────────────────────────── */
.ht-summary-wrap {
    border-top: 1px solid var(--ht-border);
    padding: 12px;
    background: var(--ht-surface);
}
.ht-summary-text {
    font-size: 12px;
    color: var(--ht-text);
    line-height: 1.6;
    max-height: 130px;
    overflow-y: auto;
}
.ht-summary-bullets {
    margin: 6px 0 0 0;
    padding-left: 16px;
}
.ht-summary-bullets li {
    font-size: 12px;
    color: var(--ht-text);
    margin-bottom: 4px;
    line-height: 1.5;
}
.ht-summary-note {
    font-size: 10px;
    color: var(--ht-muted);
    margin-top: 6px;
    font-style: italic;
}

/* ── ZIP Wind Risk ────────────────────────────────────────────────────────── */
.ht-zip-wrap {
    border-top: 1px solid var(--ht-border);
    padding: 12px;
    background: var(--ht-surface);
}
.ht-zip-input-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.ht-zip-input {
    flex: 1;
    border: 1px solid var(--ht-border);
    border-radius: 5px;
    padding: 6px 8px;
    font-size: 13px;
    background: var(--ht-bg);
    color: var(--ht-text);
    min-width: 0;
}
.ht-zip-input:focus {
    outline: none;
    border-color: var(--ht-primary);
    box-shadow: 0 0 0 2px rgba(26,58,107,.15);
}
.ht-zip-btn {
    background: var(--ht-primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s;
}
.ht-zip-btn:hover    { opacity: .88; }
.ht-zip-btn:disabled { opacity: .55; cursor: not-allowed; }

.ht-zip-result { font-size: 12px; }

.ht-zip-result--error {
    color: #c0392b;
    font-style: italic;
    padding: 4px 0;
}
.ht-zip-prob-table {
    width: 100%;
    margin-top: 6px;
}
.ht-zip-prob-table thead th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--ht-muted);
    padding: 3px 0;
    border-bottom: 1px solid var(--ht-border);
}
.ht-zip-prob-table tbody td {
    padding: 4px 4px 4px 0;
    vertical-align: middle;
    font-size: 12px;
}
.ht-prob-bar-wrap {
    height: 8px;
    background: var(--ht-border);
    border-radius: 4px;
    overflow: hidden;
    width: 80px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 6px;
}
.ht-prob-bar {
    height: 100%;
    border-radius: 4px;
    transition: width .4s ease;
}
.ht-prob-bar--high   { background: #e74c3c; }
.ht-prob-bar--medium { background: #e67e22; }
.ht-prob-bar--low    { background: #27ae60; }
.ht-prob-pct {
    font-weight: 700;
    min-width: 30px;
    display: inline-block;
    text-align: right;
}
.ht-zip-location {
    font-weight: 600;
    color: var(--ht-primary);
    margin-bottom: 6px;
    font-size: 12px;
}
.ht-zip-no-risk {
    color: #27ae60;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 0;
}
.ht-zip-disclaimer {
    font-size: 10px;
    color: var(--ht-muted);
    margin-top: 6px;
    font-style: italic;
}

/* ── Preparedness Checklist ───────────────────────────────────────────────── */
.ht-checklist-wrap {
    border-top: 3px solid var(--ht-secondary);
    padding: 12px;
    background: #fffdf0;
}
.ht-section-label--alert {
    color: #b8520a;
}
.ht-checklist-trigger-msg {
    font-size: 12px;
    color: #8a4400;
    margin: 0 0 10px;
    font-style: italic;
}
.ht-checklist {
    max-height: 300px;
    overflow-y: auto;
}
.ht-checklist-phase {
    margin-bottom: 10px;
}
.ht-checklist-phase-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ht-muted);
    margin: 8px 0 4px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--ht-border);
}
.ht-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    cursor: pointer;
    transition: opacity .15s;
}
.ht-checklist-item:hover { opacity: .8; }
.ht-checklist-item input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--ht-primary);
    width: 14px;
    height: 14px;
    cursor: pointer;
}
.ht-checklist-item label {
    font-size: 12px;
    line-height: 1.4;
    color: var(--ht-text);
    cursor: pointer;
}
.ht-checklist-item.ht-item--checked label {
    text-decoration: line-through;
    color: var(--ht-muted);
}
.ht-checklist-complete {
    font-size: 12px;
    font-weight: 700;
    color: #27ae60;
    text-align: center;
    padding: 8px 0;
}

/* ── Section label base (shared) ─────────────────────────────────────────── */
.ht-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ht-muted);
    margin: 0 0 6px;
    font-weight: 700;
}

/* ── Responsive adjustments ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    .ht-lang-selector { margin-left: auto; }
    .ht-prob-bar-wrap { width: 50px; }
}
