/* Nova Chess Intro Modal Styles */

.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.intro-overlay.active {
  opacity: 1;
  visibility: visible;
}

.intro-modal {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.intro-overlay.active .intro-modal {
  transform: scale(1);
}

/* Progress Bar */
.intro-progress {
  background: #f8f9fa;
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid #e9ecef;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  transition: all 0.3s ease;
  cursor: pointer;
}

.progress-dot.active {
  background: #7c3aed;
  transform: scale(1.2);
}

.progress-dot.completed {
  background: #6366f1;
}

/* Content Area */
.intro-content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro-slide {
  display: none;
  animation: slideIn 0.4s ease;
}

.intro-slide.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.intro-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
  line-height: 1.2;
}

.intro-subtitle {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* Image Styles */
.intro-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.intro-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

/* List Styles */
.intro-list {
  text-align: left;
  max-width: 450px;
  width: 100%;
  margin: 20px 0;
}

.intro-list.numbered {
  counter-reset: item;
  padding-left: 0;
}

.intro-list.numbered li {
  counter-increment: item;
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.5;
  color: #374151;
}

.intro-list.numbered li::before {
  content: counter(item);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-weight: 600;
  font-size: 14px;
}

.intro-list.bullets li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: #374151;
}

.intro-list.bullets li::before {
  content: "•";
  color: #7c3aed;
  font-size: 24px;
  margin-right: 12px;
  flex-shrink: 0;
  line-height: 1;
}

/* Navigation */
.intro-navigation {
  background: #f8f9fa;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e9ecef;
}

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

.intro-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.intro-btn-skip {
  background: transparent;
  color: #6b7280;
}

.intro-btn-skip:hover {
  color: #374151;
}

.intro-btn-prev {
  background: #e5e7eb;
  color: #374151;
}

.intro-btn-prev:hover {
  background: #d1d5db;
}

.intro-btn-next,
.intro-btn-start {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: white;
}

.intro-btn-next:hover,
.intro-btn-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.intro-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
  .intro-modal {
    width: 95%;
    max-height: 90vh;
    border-radius: 16px;
  }
  
  .intro-content {
    padding: 24px;
  }
  
  .intro-title {
    font-size: 26px;
  }
  
  .intro-subtitle {
    font-size: 16px;
  }
  
  .intro-navigation {
    padding: 16px 24px;
    flex-direction: column;
    gap: 12px;
  }
  
  .intro-nav-buttons {
    width: 100%;
    justify-content: space-between;
  }
  
  .intro-btn-skip {
    order: -1;
    align-self: flex-end;
  }
}

/* Close button */
.intro-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
  z-index: 10;
}

.intro-close:hover {
  background: #f3f4f6;
}

.intro-close svg {
  width: 20px;
  height: 20px;
  stroke: #6b7280;
  stroke-width: 2;
}
