/* Quick Start Guide - Interactive Tour Styles */

/* ===== OVERLAY ===== */
.tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tour-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== TOOLTIP ===== */
.tour-tooltip {
  position: fixed;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(59, 130, 246, 0.3);
  max-width: 420px;
  min-width: 320px;
  z-index: 9999;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: all;
  display: block;
}

.tour-tooltip.active {
  opacity: 1;
  transform: scale(1);
}

/* Center positioned tooltip */
.tour-tooltip.tooltip-center {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.9) !important;
  max-width: 520px;
}

.tour-tooltip.tooltip-center.active {
  transform: translate(-50%, -50%) scale(1) !important;
}

/* ===== TOOLTIP CONTENT ===== */
.tooltip-content {
  padding: 28px;
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tooltip-icon {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}

.tooltip-title {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin: 0;
  flex: 1;
  min-width: 180px;
  line-height: 1.3;
}

.tooltip-badge {
  padding: 5px 14px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.tooltip-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 22px 0;
}

/* ===== PROGRESS BAR ===== */
.tooltip-progress {
  margin: 20px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tooltip-progress span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  text-align: center;
}

.progress-bar {
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

/* ===== TOOLTIP ACTIONS ===== */
.tooltip-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.tooltip-btn {
  flex: 1;
  min-width: 120px;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
}

.tooltip-btn.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.tooltip-btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.tooltip-btn.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tooltip-btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.tooltip-btn:active {
  transform: translateY(0);
}

/* ===== TOOLTIP SKIP CHECKBOX ===== */
.tooltip-skip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  user-select: none;
}

.tooltip-skip input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3b82f6;
}

.tooltip-skip span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.tooltip-skip:hover span {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== TOOLTIP ARROW ===== */
.tooltip-arrow {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #1e293b;
  transform: rotate(45deg);
  z-index: -1;
}

.tooltip-arrow.arrow-left {
  left: -10px;
  top: 50%;
  margin-top: -10px;
}

.tooltip-arrow.arrow-right {
  right: -10px;
  top: 50%;
  margin-top: -10px;
}

.tooltip-arrow.arrow-top {
  top: -10px;
  left: 50%;
  margin-left: -10px;
}

.tooltip-arrow.arrow-bottom {
  bottom: -10px;
  left: 50%;
  margin-left: -10px;
}

/* ===== HIGHLIGHT ===== */
.tour-highlight {
  position: fixed;
  border: 3px solid #3b82f6;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.6);
  z-index: 9997;
  pointer-events: none;
  transition: all 0.3s ease;
  animation: highlightPulse 2s ease-in-out infinite;
}

@keyframes highlightPulse {
  0%,
  100% {
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4),
      0 0 30px rgba(59, 130, 246, 0.6);
  }
  50% {
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4),
      0 0 40px rgba(59, 130, 246, 0.9);
  }
}

.tour-spotlight {
  position: relative;
  z-index: 9998;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .tour-tooltip {
    max-width: 90vw;
    min-width: 280px;
  }

  .tooltip-content {
    padding: 24px;
  }

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

  .tooltip-description {
    font-size: 14px;
  }

  .tooltip-actions {
    flex-direction: column;
  }

  .tooltip-btn {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .tooltip-content {
    padding: 20px;
  }

  .tooltip-icon {
    font-size: 32px;
  }

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

  .tooltip-description {
    font-size: 13px;
  }
}

/* ===== ACCESSIBILITY ===== */
.tour-tooltip:focus-within {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
}

.tooltip-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .tour-overlay,
  .tour-tooltip,
  .tour-highlight {
    display: none !important;
  }
}
