/**
 * PhonoLogic Tutorial System — Custom Spotlight Engine
 * Zero dependencies. Matches PhonoLogic design language.
 */

/* ── Overlay ─────────────────────────────────────── */
.tut-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  transition: opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
}

.tut-overlay.tut-visible {
  opacity: 1;
}

/* ── Spotlight ring on target element ────────────── */
.tut-spotlight {
  box-shadow: 0 0 0 4px rgba(220, 148, 53, 0.5) !important;
  border-radius: 8px;
  pointer-events: auto;
  transition: box-shadow 0.3s ease;
}

/* ── Tooltip Card ────────────────────────────────── */
.tut-tooltip {
  position: absolute;
  z-index: 10002;
  width: 320px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.tut-tooltip.tut-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Close button */
.tut-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  color: #6b7280;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
  line-height: 1;
}

.tut-close:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Title */
.tut-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 6px 0;
  padding-right: 32px;
  line-height: 1.3;
}

/* Description */
.tut-desc {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

/* Progress text */
.tut-progress {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  margin-top: 14px;
}

/* Footer */
.tut-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 8px;
}

/* Buttons */
.tut-btn {
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
  font-family: inherit;
}

.tut-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.tut-btn-secondary:hover {
  background: #e5e7eb;
}

.tut-btn-primary {
  background: #dc9435;
  color: #fff;
}

.tut-btn-primary:hover {
  background: #c4842f;
}

.tut-btn-skip {
  background: none;
  color: #9ca3af;
  font-size: 13px;
  padding: 9px 8px;
}

.tut-btn-skip:hover {
  color: #6b7280;
}

/* Help button styles (.gh-help-btn) moved to global-header.css — single source of truth */

.gh-mobile-help-link {
  display: none;
}

@media (max-width: 768px) {
  .gh-mobile-help-link {
    display: flex;
  }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 480px) {
  .tut-tooltip {
    width: 280px;
    padding: 16px;
  }

  .tut-title {
    font-size: 15px;
  }

  .tut-desc {
    font-size: 13px;
  }

  .tut-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}
