/* =======================================================
   STREAMRANK SUBATHON / EXTENSIBLE OVERLAY WIDGET
   Estilo: Cyber / F1 Live Timing Dark Glassmorphism
   ======================================================= */

.subathon-overlay {
  position: fixed;
  top: 0;
  left: 25%;
  transform: translate(-25%, 0);
  transform-origin: 0 0;
  z-index: 99990;
  pointer-events: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  user-select: none;
}

.subathon-overlay.is-positioning-preview {
  border: 2px dashed rgba(217, 70, 239, 0.8) !important;
  border-radius: 10px !important;
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.4) !important;
}

.subathon-hud-card {
  background: rgba(15, 16, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(145, 71, 255, 0.35);
  border-radius: 8px;
  padding: 10px 16px;
  min-width: 220px;
  box-shadow: 
    0 8px 28px rgba(0, 0, 0, 0.75),
    0 0 15px rgba(145, 71, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: subathonFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes subathonFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.subathon-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subathon-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.subathon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
}

.subathon-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #c084fc;
  text-transform: uppercase;
}

.subathon-pill {
  font-size: 8.5px;
  font-weight: 700;
  padding: 1.5px 7px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pill-live {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.pill-paused {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #facc15;
}

.subathon-timer-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}

.subathon-timer-digits {
  font-family: 'JetBrains Mono', 'Formula1', monospace;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-shadow: 
    0 0 12px rgba(255, 255, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.8);
}

.subathon-activity-alert {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(145, 71, 255, 0.15);
  border: 1px solid rgba(145, 71, 255, 0.4);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #e9d5ff;
}

.subathon-plus-icon {
  color: #22c55e;
  font-weight: 800;
  font-size: 11px;
}

.subathon-activity-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.subathon-activity-alert.pulse-in {
  animation: subathonPulse 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes subathonPulse {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* =======================================================
   HORA FELIZ / HAPPY HOUR CARD (SUBATHON DUAL TIMER)
   Estilo: High-voltage Amber / Flame Dark Glassmorphism
   ======================================================= */

.subathon-happy-hour-card {
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(26, 16, 5, 0.95), rgba(41, 23, 6, 0.92));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.6);
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 220px;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.8),
    0 0 16px rgba(245, 158, 11, 0.25);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: happyHourGlow 3s ease-in-out infinite alternate, subathonFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes happyHourGlow {
  0% {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 12px rgba(245, 158, 11, 0.2);
  }
  100% {
    border-color: rgba(251, 191, 36, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 22px rgba(245, 158, 11, 0.45);
  }
}

.subathon-hh-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subathon-hh-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.subathon-hh-flame {
  font-size: 11px;
  line-height: 1;
  color: #fbbf24;
  filter: drop-shadow(0 0 4px #f59e0b);
}

.subathon-hh-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.9px;
  color: #fbbf24;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.subathon-hh-pill {
  font-size: 8px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fef08a;
}

.subathon-hh-timer-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
}

.subathon-hh-timer-digits {
  font-family: 'JetBrains Mono', 'Formula1', monospace;
  font-size: 22px;
  font-weight: 800;
  color: #fef08a;
  letter-spacing: 1.5px;
  text-shadow: 
    0 0 10px rgba(251, 191, 36, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.8);
}

