/**
 * THE CHAIR — Tutorial Styles
 * v1.0.0 — 2026-03-13
 */

/* ─── OVERLAY ─── */
.tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9998;
  pointer-events: none;
}

/* ─── SPOTLIGHT ─── */
.tutorial-spotlight {
  position: absolute;
  border-radius: 8px;
  box-shadow: 
    0 0 0 9999px rgba(0, 0, 0, 0.85),
    0 0 30px rgba(0, 212, 255, 0.4),
    inset 0 0 20px rgba(0, 212, 255, 0.1);
  border: 2px solid var(--cyan, #00d4ff);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: spotlight-pulse 2s ease-in-out infinite;
}

@keyframes spotlight-pulse {
  0%, 100% { 
    box-shadow: 
      0 0 0 9999px rgba(0, 0, 0, 0.85),
      0 0 30px rgba(0, 212, 255, 0.4),
      inset 0 0 20px rgba(0, 212, 255, 0.1);
  }
  50% { 
    box-shadow: 
      0 0 0 9999px rgba(0, 0, 0, 0.85),
      0 0 50px rgba(0, 212, 255, 0.6),
      inset 0 0 30px rgba(0, 212, 255, 0.2);
  }
}

/* ─── HIGHLIGHT ON TARGET ─── */
.tutorial-highlight {
  position: relative;
  z-index: 9999 !important;
  pointer-events: auto !important;
}

/* ─── TOOLTIP ─── */
.tutorial-tooltip {
  position: fixed;
  z-index: 10000;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 12px;
  padding: 24px;
  max-width: 420px;
  min-width: 320px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 212, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

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

/* ─── TOOLTIP ICON ─── */
.tt-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: icon-bounce 0.5s ease-out;
}

@keyframes icon-bounce {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* ─── TOOLTIP TITLE ─── */
.tt-title {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan, #00d4ff);
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* ─── TOOLTIP CONTENT ─── */
.tt-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 20px;
}

/* ─── NAVIGATION ─── */
.tt-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tt-progress {
  font-family: var(--font-data, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  min-width: 60px;
}

.tt-buttons {
  display: flex;
  gap: 8px;
}

/* ─── BUTTONS ─── */
.tt-btn {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tt-btn.tt-skip {
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tt-btn.tt-skip:hover {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
}

.tt-btn.tt-back {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.tt-btn.tt-back:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.tt-btn.tt-next {
  background: linear-gradient(135deg, var(--cyan, #00d4ff), #0099cc);
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.tt-btn.tt-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

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

/* ─── TUTORIAL START BUTTON (for menu) ─── */
.tutorial-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  color: var(--cyan, #00d4ff);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tutorial-start-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.5);
}

/* ─── HELP HINT IN FOOTER ─── */
.tutorial-hint {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  z-index: 100;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tutorial-hint:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan, #00d4ff);
}

.tutorial-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  font-family: var(--font-data, monospace);
  margin-right: 4px;
}

/* ─── MOBILE RESPONSIVE ─── */
@media (max-width: 768px) {
  .tutorial-tooltip {
    max-width: calc(100vw - 32px);
    min-width: auto;
    padding: 20px;
    margin: 16px;
  }
  
  .tt-icon {
    font-size: 36px;
  }
  
  .tt-title {
    font-size: 1.1rem;
  }
  
  .tt-content {
    font-size: 0.9rem;
  }
  
  .tt-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .tt-btn.tt-skip {
    order: 3;
    width: 100%;
    margin-top: 8px;
  }
  
  .tt-progress {
    order: 1;
    width: 100%;
    margin-bottom: 8px;
  }
  
  .tt-buttons {
    order: 2;
  }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  .tutorial-spotlight,
  .tutorial-tooltip,
  .tt-icon,
  .tt-btn {
    animation: none;
    transition: none;
  }
}
