/* Torah IdeaBreeder - Guided Tour Styles */

/* Tour overlay */
.tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(8px);
  z-index: 99998;
  animation: fadeIn 0.3s ease-out;
}

/* Tour container */
.tour-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.98), rgba(20, 25, 45, 0.98));
  border: 2px solid rgba(168, 213, 255, 0.3);
  border-radius: 24px;
  padding: 0;
  max-width: 680px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 99999;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  animation: slideUp 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Tour header */
.tour-header {
  padding: 24px 32px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tour-progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.tour-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 999px;
  transition: width 0.4s ease-out;
  box-shadow: 0 0 12px rgba(102, 126, 234, 0.6);
}

.tour-step-counter {
  text-align: right;
  font-size: 13px;
  color: #a0a8c0;
  font-weight: 600;
}

.tour-step-counter #tour-current-step {
  color: #a8d5ff;
  font-size: 16px;
}

/* Tour content */
.tour-content {
  padding: 32px;
}

.tour-tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(118, 185, 0, 0.15), rgba(118, 185, 0, 0.05));
  border: 1px solid rgba(118, 185, 0, 0.3);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #76b900;
  margin-bottom: 24px;
  animation: techBadgeGlow 3s infinite;
}

@keyframes techBadgeGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(118, 185, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(118, 185, 0, 0.4);
  }
}

.tour-title {
  font-size: 28px;
  font-weight: 700;
  color: #f0f3fa;
  margin: 0 0 16px 0;
  line-height: 1.3;
  background: linear-gradient(120deg, #f0f3fa, #a8d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tour-description {
  font-size: 16px;
  line-height: 1.7;
  color: #d0d5e0;
  margin: 0 0 24px 0;
}

.tour-highlight-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(168, 213, 255, 0.1));
  border-left: 4px solid #d4af37;
  padding: 20px 24px;
  border-radius: 12px;
  margin-top: 24px;
}

.tour-highlight-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d4af37;
  font-weight: 700;
  margin-bottom: 12px;
}

.tour-highlight-box strong {
  color: #a8d5ff;
  font-weight: 600;
}

.tour-highlight-box em {
  color: #ffd89c;
  font-style: italic;
}

#tour-highlight-content {
  font-size: 14px;
  line-height: 1.8;
  color: #e0e5f0;
}

#tour-highlight-content ul {
  margin: 12px 0;
  padding-left: 20px;
}

#tour-highlight-content li {
  margin: 8px 0;
}

/* Tour footer */
.tour-footer {
  padding: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.tour-nav-buttons {
  display: flex;
  gap: 12px;
}

.tour-btn {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
}

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

.tour-btn-skip:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: #f0f3fa;
}

.tour-btn-prev {
  background: rgba(255, 255, 255, 0.1);
  color: #f0f3fa;
}

.tour-btn-prev:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-2px);
}

.tour-btn-prev:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.tour-btn-next {
  background: linear-gradient(135deg, #6db3ff 0%, #a8d5ff 100%);
  color: #0a0e1a;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(109, 179, 255, 0.4);
}

.tour-btn-next:hover {
  transform: translateX(2px);
  box-shadow: 0 6px 20px rgba(109, 179, 255, 0.5);
}

/* Highlighted element */
.tour-highlighted {
  position: relative;
  z-index: 99997 !important;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.5),
              0 0 0 8px rgba(212, 175, 55, 0.2),
              0 0 64px rgba(212, 175, 55, 0.6) !important;
  animation: highlightPulse 2s infinite;
  border-radius: 12px !important;
}

@keyframes highlightPulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.5),
                0 0 0 8px rgba(212, 175, 55, 0.2),
                0 0 64px rgba(212, 175, 55, 0.6);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.7),
                0 0 0 8px rgba(212, 175, 55, 0.3),
                0 0 80px rgba(212, 175, 55, 0.8);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .tour-container {
    width: 95%;
    max-width: 95vw;
    max-height: 90vh;
    padding: 0;
  }

  .tour-header,
  .tour-content,
  .tour-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .tour-header {
    padding-top: 20px;
  }

  .tour-content {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .tour-title {
    font-size: 22px;
  }

  .tour-description {
    font-size: 14px;
    line-height: 1.6;
  }

  .tour-footer {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
  }

  .tour-nav-buttons {
    width: 100%;
    flex-direction: column;
  }

  .tour-nav-buttons button {
    width: 100%;
  }

  .tour-btn-skip {
    order: 2;
  }

  .tour-highlight-box {
    padding: 16px 18px;
  }

  #tour-highlight-content {
    font-size: 13px;
  }
}

/* Very small phones */
@media (max-width: 390px) {
  .tour-container {
    width: 98%;
    max-height: 92vh;
  }

  .tour-header,
  .tour-content,
  .tour-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tour-title {
    font-size: 20px;
  }

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

  .tour-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}

/* Landscape mobile */
@media (max-width: 900px) and (max-height: 500px) {
  .tour-container {
    max-height: 95vh;
    overflow-y: auto;
  }

  .tour-content {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .tour-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .tour-description {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .tour-highlight-box {
    margin-top: 16px;
    padding: 14px 16px;
  }
}
