/* ============================================
   URBot Incentive Marker — Client Styling
   Patent Module 220: Rendering
   ============================================ */

/* ─── Sponsored Marker Sprite ────────────── */

.bot-roamer-sprite[data-sponsored] {
  cursor: pointer;
  z-index: 910;
}

.bot-roamer-sprite[data-sponsored] .roamer-body {
  position: relative;
}

/* Golden pulse glow ring */
.bot-roamer-sprite[data-sponsored]::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 3px solid #fbbf24;
  box-shadow: 0 0 12px 4px rgba(251, 191, 36, 0.5),
              0 0 24px 8px rgba(251, 191, 36, 0.2);
  animation: incentive-pulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes incentive-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Sponsored badge */
.incentive-marker-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1a1a2e;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 8px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  pointer-events: none;
}

/* Walking animation for incentive markers */
.incentive-marker {
  transition: left 0.1s linear;
  animation: incentive-bob 1.5s ease-in-out infinite;
}

@keyframes incentive-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Tap feedback */
.incentive-marker-tapped {
  animation: incentive-tap-burst 0.5s ease-out forwards !important;
}

@keyframes incentive-tap-burst {
  0% { transform: scale(1); filter: brightness(1); }
  30% { transform: scale(1.3); filter: brightness(1.5); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* Tagged state */
.incentive-marker-tagged {
  opacity: 0.5;
  pointer-events: none;
}

.incentive-marker-tagged::before {
  border-color: #10b981;
  box-shadow: 0 0 16px 6px rgba(16, 185, 129, 0.6);
}

/* Mine tag — extra celebration */
.incentive-marker-mine::after {
  content: '\2714';
  position: absolute;
  top: -12px;
  right: -8px;
  font-size: 20px;
  color: #10b981;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: incentive-check-pop 0.4s ease-out;
}

@keyframes incentive-check-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Fading out */
.incentive-marker-fading {
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  opacity: 0 !important;
  transform: scale(0.5) translateY(-20px) !important;
}

/* ─── Reward Toast ───────────────────────── */

.incentive-reward-toast {
  position: fixed;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 2px solid #fbbf24;
  border-radius: 16px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 8px 32px rgba(251, 191, 36, 0.3);
}

.incentive-reward-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.incentive-reward-coin {
  font-size: 28px;
  animation: incentive-coin-spin 0.8s ease-out;
}

@keyframes incentive-coin-spin {
  0% { transform: rotateY(0deg) scale(0); }
  50% { transform: rotateY(180deg) scale(1.3); }
  100% { transform: rotateY(360deg) scale(1); }
}

.incentive-reward-amount {
  font-size: 18px;
  font-weight: 700;
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.incentive-reward-cta {
  color: #00e5ff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border: 1px solid #00e5ff;
  border-radius: 8px;
  transition: background 0.2s;
}

.incentive-reward-cta:hover {
  background: rgba(0, 229, 255, 0.15);
}

/* ─── Anticipation Bar (Claim 15) ────────── */

.incentive-anticipation-bar {
  position: fixed;
  bottom: 120px;
  left: 0;
  right: 0;
  height: 28px;
  background: rgba(22, 33, 62, 0.92);
  border-top: 1px solid rgba(251, 191, 36, 0.3);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  z-index: 899;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.incentive-anticipation-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.anticipation-label {
  font-size: 10px;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.anticipation-items {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  flex: 1;
}

.anticipation-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #e2e8f0;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
}

.anticipation-zone {
  color: #00e5ff;
  font-weight: 600;
  text-transform: capitalize;
}

.anticipation-time {
  color: #94a3b8;
  font-size: 10px;
}

/* ─── Share Prompt (Claim 14) ────────────── */

.incentive-share-prompt {
  position: fixed;
  bottom: 180px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(22, 33, 62, 0.95);
  border: 1px solid #a78bfa;
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 945;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.incentive-share-prompt.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.incentive-share-text {
  font-size: 13px;
  color: #e2e8f0;
}

.incentive-share-btn {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s;
}

.incentive-share-btn:hover {
  transform: scale(1.05);
}

.incentive-share-dismiss {
  background: none;
  border: none;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

/* ─── Responsive ─────────────────────────── */

@media (max-width: 768px) {
  .incentive-marker-badge {
    font-size: 8px;
    padding: 1px 6px;
  }

  .incentive-reward-toast {
    bottom: 130px;
    padding: 8px 16px;
  }

  .incentive-reward-amount {
    font-size: 15px;
  }

  .incentive-anticipation-bar {
    bottom: 120px;
    height: 24px;
    padding: 0 8px;
  }

  .anticipation-item {
    font-size: 10px;
    padding: 1px 6px;
  }

  .incentive-share-prompt {
    bottom: 160px;
    padding: 8px 12px;
  }
}

/* ─── Accessibility ──────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .bot-roamer-sprite[data-sponsored]::before,
  .incentive-marker,
  .incentive-reward-coin {
    animation: none !important;
  }

  .incentive-marker {
    transition: none;
  }
}
