/* ============================================
   AI DRILL INDICATORS
   Matching iOS AIDrillIndicator.swift
   ============================================ */

/* Drill Indicator Button */
.ai-drill-indicator {
  position: relative;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-drill-indicator:active {
  transform: scale(0.9);
}

/* Background Circle */
.drill-background {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brokerly-primary);
  opacity: 0.08;
  transition: all 0.2s ease;
}

.ai-drill-indicator.hovered .drill-background {
  opacity: 0.15;
  transform: scale(1.1);
}

/* Pulse Ring */
.drill-pulse {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--brokerly-primary);
  opacity: 0.3;
  animation: drill-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes drill-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Icon */
.drill-icon {
  position: relative;
  z-index: 2;
  color: var(--brokerly-primary);
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ai-drill-indicator.hovered .drill-icon {
  opacity: 1;
  transform: scale(1.1);
}

.drill-icon svg {
  width: 11px;
  height: 11px;
}

/* Tooltip Container */
.ai-drill-with-tooltip {
  position: relative;
  display: inline-flex;
}

.drill-tooltip {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drill-tooltip.visible {
  opacity: 1;
}

.tooltip-content {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.tooltip-title {
  font-size: 10px;
  font-weight: 500;
  color: white;
}

.tooltip-subtitle {
  font-size: 9px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tooltip-arrow {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(0, 0, 0, 0.8);
}

/* Element with Drill - wrapper for adding drill to existing elements */
.element-with-drill {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .ai-drill-indicator {
    width: 20px;
    height: 20px;
  }

  .drill-background,
  .drill-pulse {
    width: 20px;
    height: 20px;
  }

  .drill-icon svg {
    width: 10px;
    height: 10px;
  }

  .drill-tooltip {
    top: -40px;
  }

  .tooltip-content {
    padding: 4px 6px;
  }

  .tooltip-title {
    font-size: 9px;
  }

  .tooltip-subtitle {
    font-size: 8px;
    max-width: 100px;
  }
}

