/* ============================================================
   LIVE SESSIONS — Next Session Widget CSS
   Mohamed Yousef Theme
   ============================================================ */

/* ─── Next Session Widget (Homepage) ──────────────────────── */
.next-session-widget {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: linear-gradient(135deg, rgba(239,83,80,0.1), rgba(239,83,80,0.04));
  border: 1px solid rgba(239,83,80,0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}

.next-session-widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #EF5350, transparent);
  animation: live-bar 2s ease-in-out infinite;
}

@keyframes live-bar {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

.nsw-pulse {
  width: 14px; height: 14px;
  background: #EF5350;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(239,83,80,0.6);
  animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(239,83,80,0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(239,83,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,83,80,0); }
}

.nsw-body { flex: 1; min-width: 0; }
.nsw-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #EF5350; margin-bottom: 2px; }
.nsw-title { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nsw-time  { font-size: 0.8rem; color: var(--text-muted); margin-bottom: var(--space-2); }

.nsw-countdown {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  min-width: 44px;
}

.countdown-unit span {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown-unit small {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.countdown-sep {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.nsw-btn { flex-shrink: 0; }

/* ─── Stats Bar: Live Sessions Item ────────────────────────── */
.stat-item.live-sessions-stat .stat-icon {
  animation: pulse-live 1.2s ease-in-out infinite;
}

/* ─── Floating Live Badge (shows on live pages) ────────────── */
.floating-live-badge {
  position: fixed;
  bottom: var(--space-24);
  inset-inline-end: var(--space-6);
  background: linear-gradient(135deg, #da0000, #EF5350);
  color: white;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(218,0,0,0.4);
  animation: float-badge 3s ease-in-out infinite;
  z-index: var(--z-fixed);
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.floating-live-badge .flb-dot {
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse-live 1.2s infinite;
}
