/* ══════════════════════════════════════════════════════════════
   Red Alert Banner v3 — Clean & Centered
   ══════════════════════════════════════════════════════════════ */

@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-slide-in 0.3s ease-out both;
}

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

/* ── סוגי התרעות ── */

#rab-banner.rab-primary {
    background: linear-gradient(135deg, #c0392b 0%, #96281b 100%);
    border-bottom: 3px solid #7b0000;
    box-shadow: 0 4px 20px rgba(192, 57, 43, 0.5);
}

#rab-banner.rab-early-warning {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    border-bottom: 3px solid #a04000;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.5);
}

#rab-banner.rab-exit {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    border-bottom: 3px solid #1a7a43;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.4);
}

/* ── מיכל ראשי ── */

.rab-main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 50px;
    text-align: center;
    gap: 6px;
}

/* ── כותרת (אזורים) ── */

.rab-title {
    font-size: clamp(18px, 4.5vw, 26px);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

/* ── כותרת משנה (סוג ההתרעה) ── */

.rab-subtitle {
    font-size: clamp(13px, 3vw, 16px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-top: -2px;
}

/* ── מטא (תאריך ושעה) ── */

.rab-meta {
    font-size: clamp(11px, 2.5vw, 13px);
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

/* ── תגיות יישובים ── */

.rab-cities-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 8px;
    margin-top: 8px;
    padding: 0 10px;
    max-width: 100%;
}

.rab-city-tag {
    font-size: clamp(11px, 2.5vw, 13px);
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── כפתור הצג עוד ── */

.rab-show-more {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    color: #fff;
    font-family: 'Heebo', Arial, sans-serif;
    font-size: clamp(11px, 2.5vw, 13px);
    font-weight: 700;
    padding: 4px 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.rab-show-more:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ── כפתור סגירה ── */

.rab-close {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.15s;
    padding: 0;
    line-height: 1;
}

.rab-close:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* ── Drawer (רשימה מורחבת) ── */

.rab-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.rab-drawer-inner {
    padding: 14px 20px 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 8px;
}

/* ── הוראות פיקוד העורף ── */

.rab-desc {
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin-bottom: 10px;
}

/* ── מובייל ── */

@media (max-width: 480px) {
    .rab-main {
        padding: 12px 40px;
    }
    
    .rab-close {
        width: 26px;
        height: 26px;
        font-size: 14px;
        left: 10px;
    }
    
    .rab-drawer.open {
        max-height: 40vh;
    }
    
    .rab-cities-preview {
        gap: 4px 6px;
    }
    
    .rab-city-tag {
        padding: 3px 10px;
    }
}
