/* =====================================================
   oref-alert.css  –  פופאפ צבע אדום בפינת המסך
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;600;800&display=swap');

/* ── הפופאפ עצמו ── */
.oref-popup {
  position: fixed;
  z-index: 999999;
  width: var(--oref-width, 320px);
  direction: rtl;
  font-family: 'Heebo', sans-serif;
  pointer-events: none;   /* נכנס דרך JS */
  opacity: 0;
  transform: scale(0.85) translateY(20px);
  transition: opacity 0.35s cubic-bezier(0.34,1.56,0.64,1),
              transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

/* מיקומים */
.oref-popup.pos-bottom-right { bottom: 24px; right: 24px; transform-origin: bottom right; }
.oref-popup.pos-bottom-left  { bottom: 24px; left:  24px; transform-origin: bottom left;  }
.oref-popup.pos-top-right    { top:    24px; right: 24px; transform-origin: top right;    }
.oref-popup.pos-top-left     { top:    24px; left:  24px; transform-origin: top left;     }

/* מצב פעיל */
.oref-popup.oref-visible {
  pointer-events: auto;
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ── קרד ── */
.oref-card {
  background: #1a0a0a;
  border: 1.5px solid rgba(231,76,60,0.6);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.45),
    0 0 0 1px rgba(231,76,60,0.15),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ── שורת כותרת ── */
.oref-header {
  background: linear-gradient(135deg, #7f0000 0%, #c0392b 55%, #e74c3c 100%);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.oref-siren-icon {
  font-size: 26px;
  animation: oref-bounce 0.5s ease infinite alternate;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255,200,0,0.9));
}

.oref-header-text {
  flex: 1;
  min-width: 0;
}

.oref-title {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.oref-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 11px;
  font-weight: 400;
  margin-top: 1px;
}

.oref-close-btn {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  line-height: 1;
  padding: 0;
}
.oref-close-btn:hover {
  background: rgba(0,0,0,0.5);
  color: #fff;
}

/* ── גוף ── */
.oref-body {
  padding: 12px 14px;
}

.oref-cities-label {
  color: rgba(255,100,80,0.9);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.oref-cities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 90px;
  overflow-y: auto;
}

.oref-city-tag {
  background: rgba(231,76,60,0.15);
  border: 1px solid rgba(231,76,60,0.4);
  color: #ff8a7a;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── פוטר ── */
.oref-footer {
  padding: 8px 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.oref-timestamp {
  color: rgba(255,255,255,0.35);
  font-size: 10px;
}

.oref-pulse-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ff6b6b;
  font-size: 10px;
  font-weight: 600;
}
.oref-pulse-dot::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  background: #e74c3c;
  border-radius: 50%;
  animation: oref-pulse 1s ease infinite;
}

/* ── פס ברקע מהבהב ── */
.oref-card::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #e74c3c, #ff6b35, #e74c3c);
  background-size: 200%;
  animation: oref-stripe 1.5s linear infinite;
}

/* ── אנימציות ── */
@keyframes oref-bounce {
  from { transform: rotate(-10deg) scale(1);   }
  to   { transform: rotate(10deg)  scale(1.15); }
}
@keyframes oref-pulse {
  0%, 100% { opacity: 1;   transform: scale(1);   box-shadow: 0 0 0 0 rgba(231,76,60,0.7); }
  50%       { opacity: 0.8; transform: scale(1.3); box-shadow: 0 0 0 5px rgba(231,76,60,0); }
}
@keyframes oref-stripe {
  from { background-position: 0 0;   }
  to   { background-position: 200% 0; }
}

/* ── עדכון כמות התראות ── */
.oref-count-badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 7px;
  margin-right: 6px;
}
