/* First-visit onboarding tour — matches DecodeIIT visual language:
   flat rectangles, thin gray borders, DM Sans, no heavy glow, subtle motion. */

.ot-overlay {
  position: fixed; inset: 0; z-index: 10000;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ot-overlay.ot-visible { opacity: 1; }

.ot-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 6, 8, 0.78);
}

.ot-spotlight {
  position: absolute;
  border: 2px solid var(--yellow, #f5c518);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.18), 0 0 18px rgba(245, 197, 24, 0.35);
  pointer-events: none;
  transition: top 0.28s ease, left 0.28s ease, width 0.28s ease, height 0.28s ease;
}

/* Class added to the element currently being highlighted.
   Raises it above the dim backdrop and boosts weight so it's clearly visible. */
.ot-highlight {
  position: relative !important;
  z-index: 10002 !important;
  background-color: var(--black, #0a0a0a) !important;
  outline: 2px solid var(--yellow, #f5c518) !important;
  outline-offset: 4px;
  padding: 0.1rem 0.35rem !important;
  transition: outline 0.2s ease;
}
/* Bold, bright, slightly larger text while highlighted */
.ot-highlight,
.ot-highlight * {
  color: var(--yellow, #f5c518) !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  text-shadow: 0 0 1px rgba(245, 197, 24, 0.4);
}

.ot-tooltip {
  position: absolute;
  width: min(340px, calc(100vw - 32px));
  background: #0e0e10;
  border: 1px solid var(--gray-border, #252525);
  color: #fff;
  padding: 1.1rem 1.2rem 1rem;
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  transition: top 0.28s ease, left 0.28s ease;
}
.ot-tooltip.ot-centered {
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(400px, calc(100vw - 32px));
}

.ot-progress {
  font-size: 0.62rem; letter-spacing: 0.15em; color: var(--gray, #888);
  text-transform: uppercase; margin-bottom: 0.55rem; font-weight: 500;
}

.ot-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 1.3rem; font-weight: 400; margin: 0 0 0.5rem; line-height: 1.25;
}

.ot-body {
  font-size: 0.85rem; color: #c8c8c8; line-height: 1.6; margin: 0 0 1.2rem;
}

.ot-controls {
  display: flex; gap: 0.5rem; align-items: center; justify-content: space-between;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 0.4rem; padding-top: 0.8rem;
}
.ot-controls .ot-right { display: flex; gap: 0.4rem; }

.ot-btn {
  font-family: inherit; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.45rem 0.9rem; background: transparent; color: var(--gray, #888);
  border: 1px solid var(--gray-border, #252525); cursor: pointer;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.ot-btn:hover { color: #fff; border-color: #555; }
.ot-btn.ot-primary {
  color: #000; background: var(--yellow, #f5c518); border-color: var(--yellow, #f5c518);
}
.ot-btn.ot-primary:hover { background: #fff; border-color: #fff; }
.ot-btn.ot-skip { border-color: transparent; }
.ot-btn.ot-skip:hover { color: #fff; border-color: var(--gray-border, #252525); }
.ot-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.ot-btn:disabled:hover { color: var(--gray, #888); border-color: var(--gray-border, #252525); background: transparent; }

@media (max-width: 600px) {
  .ot-tooltip { padding: 0.95rem 1rem 0.9rem; }
  .ot-title { font-size: 1.15rem; }
  .ot-body { font-size: 0.82rem; }
  .ot-btn { padding: 0.4rem 0.7rem; font-size: 0.65rem; }
}
