/* ── Red Alert Banner v2 — banner.css ── */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;700;900&display=swap');

#rab-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999999;
    direction: rtl;
    font-family: 'Heebo', 'Arial Hebrew', Arial, sans-serif;
    animation: rab-in 0.3s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes rab-in {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* ── Type variants ── */
#rab-banner.rab-primary {
    background: #c0392b;
    background-image: repeating-linear-gradient(
        -45deg, transparent, transparent 12px,
        rgba(0,0,0,0.07) 12px, rgba(0,0,0,0.07) 24px
    );
    border-bottom: 3px solid #7b0000;
    box-shadow: 0 4px 24px rgba(192,57,43,0.55);
}

#rab-banner.rab-early-warning {
    background: #e67e22;
    background-image: repeating-linear-gradient(
        -45deg, transparent, transparent 12px,
        rgba(0,0,0,0.05) 12px, rgba(0,0,0,0.05) 24px
    );
    border-bottom: 3px solid #a04000;
    box-shadow: 0 4px 24px rgba(230,126,34,0.5);
}

#rab-banner.rab-exit {
    background: #27ae60;
    border-bottom: 3px solid #1a7a43;
    box-shadow: 0 4px 20px rgba(39,174,96,0.45);
}

/* Strobe for primary */
#rab-banner.rab-primary .rab-main::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    animation: rab-strobe 1.2s step-start infinite;
    pointer-events: none;
}
@keyframes rab-strobe {
    0%  { opacity: 0.08; }
    50% { opacity: 0; }
}

/* ── Main row ── */
.rab-main {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: default;
}

.rab-icon {
    font-size: clamp(20px, 4vw, 28px);
    flex-shrink: 0;
    animation: rab-pulse 0.7s ease-in-out infinite alternate;
    line-height: 1;
}
#rab-banner.rab-exit .rab-icon { animation: none; }

@keyframes rab-pulse {
    from { transform: scale(1); }
    to   { transform: scale(1.18); }
}

.rab-summary { flex: 1; min-width: 0; }

.rab-title {
    font-size: clamp(14px, 3.2vw, 19px);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rab-meta {
    font-size: clamp(11px, 2.2vw, 13px);
    color: rgba(255,255,255,0.72);
    margin-top: 2px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.rab-meta-cities { font-weight: 700; color: rgba(255,255,255,0.88); }
.rab-meta-time   { color: rgba(255,255,255,0.55); font-size: 11px; }

/* ── Expand button ── */
.rab-expand-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    color: #fff;
    font-family: 'Heebo', Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}
.rab-expand-btn:hover { background: rgba(255,255,255,0.28); }

/* ── Action buttons ── */
.rab-actions { display: flex; gap: 6px; flex-shrink: 0; }

.rab-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.15s;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.rab-btn:hover { background: rgba(255,255,255,0.28); }
.rab-btn:focus { outline: 2px solid rgba(255,255,255,0.5); outline-offset: 2px; }

/* ── Drawer ── */
.rab-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1);
    background: rgba(0,0,0,0.22);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.rab-drawer.open {
    max-height: 60vh;
    overflow-y: auto;
}

.rab-drawer-inner {
    padding: 10px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Area group ── */
.rab-area-group {
    background: rgba(0,0,0,0.18);
    border-radius: 8px;
    overflow: hidden;
}

.rab-area-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.rab-area-name {
    font-size: 13px;
    font-weight: 900;
    color: #fff;
}

.rab-area-count {
    font-size: 11px;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    padding: 2px 8px;
    border-radius: 20px;
}

.rab-area-cities {
    padding: 8px 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .rab-main { padding: 8px 10px; gap: 7px; }
    .rab-expand-btn { font-size: 11px; padding: 4px 8px; }
    .rab-btn { width: 30px; height: 30px; font-size: 14px; }
    .rab-drawer.open { max-height: 50vh; }
}

/* ── Simple cities list in drawer ── */
.rab-all-cities {
    padding: 10px 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.88);
    line-height: 1.8;
    direction: rtl;
}
