/* ============================================
   FieldOps Guide — Callouts CSS
   Annotation system for tutorial mockups
   ============================================ */

/* Callout container - sits beside/around phone */
.callouts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.callouts > * {
  pointer-events: auto;
}

/* Numbered step badge */
.callout-num {
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--callout-number);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 0 0 3px var(--surface), 0 2px 8px rgba(0,0,0,0.6);
  z-index: 5;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--surface), 0 0 0 0 rgba(255, 107, 0, 0.7), 0 2px 8px rgba(0,0,0,0.6); }
  50% { box-shadow: 0 0 0 3px var(--surface), 0 0 0 8px rgba(255, 107, 0, 0), 0 2px 8px rgba(0,0,0,0.6); }
}

/* Callout box */
.callout-box {
  position: absolute;
  background: var(--callout-bg);
  color: var(--callout-text);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 200px;
  box-shadow: 0 4px 16px rgba(0, 119, 204, 0.3), 0 2px 6px rgba(0,0,0,0.4);
  z-index: 4;
}

.callout-box .title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 3px;
  font-weight: 600;
}

/* Arrow - drawn from callout to number */
.callout-arrow {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 3;
}

.callout-arrow svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.callout-arrow path {
  stroke: var(--accent2);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 4 2;
}

/* Connector line — simple CSS approach */
.callout-line {
  position: absolute;
  border-top: 2px dashed var(--accent2);
  transform-origin: left center;
  pointer-events: none;
  z-index: 3;
  opacity: 0.6;
}

/* Mobile: callouts stack below phone instead of overlapping */
.callouts-mobile {
  display: none;
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.callouts-mobile .mobile-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent2);
  border-radius: var(--radius-sm);
}

.callouts-mobile .m-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--callout-number);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

.callouts-mobile .m-content {
  flex: 1;
}

.callouts-mobile .m-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

.callouts-mobile .m-text {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.4;
}

/* Responsive — hide positioned callouts on small screens, show stacked list */
@media (max-width: 768px) {
  .callouts-desktop {
    display: none;
  }

  .callouts-mobile {
    display: flex;
  }

  .stage {
    min-height: auto;
  }
}

@media (min-width: 769px) {
  .callouts-mobile {
    display: none;
  }
}
