/**
 * OlhaPauta — SPRINT 22: Web Push Sino CSS
 */

.op-push-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
}

.op-push-bell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--s-surface-1, #ffffff);
  border: 1px solid var(--s-line, rgba(15, 23, 42, 0.12));
  color: var(--s-text, #0f172a);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  outline: none;
  padding: 0;
}

.op-dark-theme .op-push-bell {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.op-push-bell:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--accent, #e53935);
  color: var(--accent, #e53935);
}

.op-dark-theme .op-push-bell:hover {
  color: var(--accent, #ff6b6b);
  border-color: var(--accent, #ff6b6b);
}

.op-push-bell-dot {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #e53935);
  display: block;
}

.op-push-bell-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: op-push-pulse 1.8s infinite ease-in-out;
}

.op-push-tooltip {
  position: absolute;
  left: 62px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.op-dark-theme .op-push-tooltip {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
}

.op-push-container:hover .op-push-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Estado de Inscrito Ativo */
.op-push-bell.is-subscribed {
  background: var(--accent, #e53935) !important;
  color: #ffffff !important;
  border-color: var(--accent, #e53935) !important;
}

.op-push-bell.is-subscribed .op-push-bell-dot {
  display: none;
}

@keyframes op-push-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .op-push-container {
    bottom: 20px;
    left: 20px;
  }
  .op-push-tooltip {
    display: none; /* Oculta tooltips em telas mobile para evitar poluição visual */
  }
}
