/* ============================================================
   Voice Tour — sethakkerman.com
   Matches the existing design language: degular-variable,
   seth-brand-color hsl(149,83%,92%), 8px border-radius
   ============================================================ */

/* Tour trigger button */
.voice-tour-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 50em;
  margin: 0 auto;
  padding: 20px 28px;
  background: rgb(33, 33, 33);
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 8px;
  font-family: "degular-variable", sans-serif;
  font-size: 120%;
  font-variation-settings: "ital" 0, "opsz" 19, "wght" 500;
  cursor: pointer;
  line-height: 24px;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.voice-tour-trigger:hover {
  background: rgb(50, 50, 50);
  transform: scale(1.005);
}

.voice-tour-trigger:active {
  transform: scale(0.995);
}

.voice-tour-trigger .tour-trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-tour-trigger .tour-trigger-sparkle {
  font-size: 20px;
  line-height: 1;
}

.voice-tour-trigger .tour-trigger-hint {
  font-size: 75%;
  font-variation-settings: "ital" 0, "opsz" 16, "wght" 400;
  opacity: 0.6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Placement wrapper — sits between contact callout and footer */
.voice-tour-wrapper {
  padding: 0 1.75em 2.5em 1.75em;
  max-width: 90em;
  margin: 0 auto;
}

@media screen and (min-width: 30em) {
  .voice-tour-wrapper {
    padding: 0 2.5em 2.5em 2.5em;
  }
}

@media screen and (min-width: 56.25em) {
  .voice-tour-wrapper {
    padding: 0 2.5em 2.5em 2.5em;
  }
  .voice-tour-trigger {
    max-width: 42em;
  }
}

/* Highlight overlay */
.voice-tour-highlight {
  position: fixed;
  border: 3px solid hsl(149, 83%, 65%);
  border-radius: 12px;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(149, 220, 180, 0.3);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  opacity: 0;
}

.voice-tour-highlight.active {
  opacity: 1;
}

/* Floating control pill */
.voice-tour-control {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgb(33, 33, 33);
  color: rgb(255, 255, 255);
  border-radius: 32px;
  padding: 10px 8px 10px 18px;
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 1001;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  font-family: "degular-variable", sans-serif;
  font-size: 14px;
  font-variation-settings: "ital" 0, "opsz" 16, "wght" 400;
}

.voice-tour-control.active {
  display: flex;
}

.voice-tour-control .tour-progress {
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
  white-space: nowrap;
}

.voice-tour-control .tour-stop-btn {
  background: hsl(149, 83%, 65%);
  color: rgb(33, 33, 33);
  border: none;
  border-radius: 24px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  font-family: "degular-variable", sans-serif;
  font-variation-settings: "ital" 0, "opsz" 16, "wght" 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  -webkit-transition: background 0.15s ease;
  transition: background 0.15s ease;
}

.voice-tour-control .tour-stop-btn:hover {
  background: hsl(149, 83%, 55%);
}

/* Caption bubble above the control */
.voice-tour-caption {
  position: absolute;
  bottom: 72px;
  right: 0;
  background: rgba(33, 33, 33, 0.96);
  color: rgb(255, 255, 255);
  padding: 14px 18px;
  border-radius: 8px;
  max-width: 340px;
  font-size: 14px;
  font-variation-settings: "ital" 0, "opsz" 16, "wght" 400;
  line-height: 1.5;
  display: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.voice-tour-control.active .voice-tour-caption {
  display: block;
}

/* Loading state for the trigger */
.voice-tour-trigger.loading {
  pointer-events: none;
  opacity: 0.7;
}

.voice-tour-trigger.loading .tour-trigger-hint::after {
  content: "Loading voice...";
}

.voice-tour-trigger.loading .tour-trigger-hint-text {
  display: none;
}

/* Mobile adjustments */
@media screen and (max-width: 30em) {
  .voice-tour-control {
    bottom: 16px;
    right: 16px;
    left: 16px;
    justify-content: space-between;
  }
  .voice-tour-caption {
    left: 0;
    right: 0;
    max-width: none;
    bottom: 52px;
  }
}
