/* Tutorial Overlay Styles */

.tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  pointer-events: none;
  animation: fadeIn 0.3s ease;
}

.tutorial-spotlight {
  /* Would highlight specific elements */
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid #f39c12;
  border-radius: 8px;
  pointer-events: auto;
  animation: pulse 2s ease-in-out infinite;
}

.tutorial-box {
  position: fixed;
  background: #0f3460;
  /* Dark blue to match game */
  border: 3px solid #f39c12;
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(243, 156, 18, 0.6);
  width: 450px;
  max-width: 90vw;
  z-index: 9999;
  animation: slideUp 0.4s ease;
  color: #eee;
  /* Light text */
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Position variants */
.tutorial-box.position-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tutorial-box.position-top {
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
}

.tutorial-box.position-bottom {
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
}

.tutorial-box.position-left {
  top: 50%;
  left: 150px;
  transform: translateY(-50%);
}

.tutorial-box.position-right {
  top: 50%;
  right: 150px;
  transform: translateY(-50%);
}

.tutorial-header {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.tutorial-title-section {
  flex: 1;
}

.tutorial-header h3 {
  margin: 0 0 5px 0;
  font-size: 1.2em;
  font-weight: bold;
}

.tutorial-progress {
  font-size: 0.8em;
  opacity: 0.9;
}

.tutorial-header-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.tutorial-btn-small {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.prev-btn-small {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.prev-btn-small:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

.next-btn-small {
  background: rgba(52, 152, 219, 0.9);
  color: white;
}

.next-btn-small:hover {
  background: rgba(52, 152, 219, 1);
  transform: scale(1.1);
}

.skip-btn-small {
  background: rgba(231, 76, 60, 0.9);
  color: white;
}

.skip-btn-small:hover {
  background: rgba(231, 76, 60, 1);
  transform: rotate(90deg) scale(1.1);
}

.tutorial-content {
  padding: 25px;
  min-height: 100px;
}

.tutorial-content p {
  margin: 0 0 15px 0;
  font-size: 1.05em;
  line-height: 1.6;
  color: #ecf0f1;
  /* Light text */
}

.tutorial-hint-content {
  background: rgba(243, 156, 18, 0.2);
  /* Orange tint */
  border-left: 4px solid #f39c12;
  padding: 12px 15px;
  border-radius: 6px;
  margin-top: 15px;
  font-weight: bold;
  color: #f39c12;
  /* Orange text */
  font-size: 0.95em;
  animation: pulse 2s ease-in-out infinite;
}

.tutorial-footer {
  padding: 15px 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: center;
}

.tutorial-btn-large {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 300px;
}

.next-btn-large {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
}

.next-btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

/* Old tutorial-actions removed - navigation now in header */

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* Mobile optimization */
@media (max-width: 768px) {
  .tutorial-box {
    width: 90vw;
    max-height: 80vh;
  }

  .tutorial-box.position-left,
  .tutorial-box.position-right {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    top: 50%;
  }

  .tutorial-header {
    flex-wrap: wrap;
  }

  .tutorial-title-section {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
  }

  .tutorial-header-buttons {
    width: 100%;
    justify-content: center;
  }

  .tutorial-btn-large {
    font-size: 0.95em;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .tutorial-box,
  .tutorial-overlay,
  .tutorial-hint {
    animation: none !important;
  }
}