/* Walkthrough Page Styles */

/* ============================================
   Hero Section
   ============================================ */
.walkthrough-hero {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #dee2e6;
}

.walkthrough-hero h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #212529;
}

.walkthrough-hero .hero-subtitle {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.6;
}

.walkthrough-hero .hero-video video {
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.walkthrough-hero .video-caption {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.5rem;
  text-align: center;
}

/* ============================================
   Table of Contents
   ============================================ */
.walkthrough-toc {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.walkthrough-toc h2 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  margin-bottom: 0.5rem;
  border: none;
  padding: 0;
}

.walkthrough-toc ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.25rem;
  margin: 0;
  padding-left: 1.25rem;
  list-style-position: inside;
}

.walkthrough-toc li {
  font-size: 0.85rem;
  flex: 0 0 auto;
}

.walkthrough-toc a {
  color: #333;
  text-decoration: none;
}

.walkthrough-toc a:hover {
  color: #0d6efd;
  text-decoration: underline;
}

/* ============================================
   Script Text Sections (left column)
   ============================================ */
.walkthrough-page .script-text section {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.walkthrough-page .script-text section:last-of-type {
  border-bottom: none;
}

.walkthrough-page .script-text h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #0d6efd;
  display: inline-block;
}

.walkthrough-page .script-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #495057;
}

/* ============================================
   Screenshot Cards (right column)
   ============================================ */
.walkthrough-page .script-image .card {
  cursor: pointer;
}

.walkthrough-page .script-image .card-body {
  padding: 0.5rem;
}

.walkthrough-page .script-image .card img {
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.walkthrough-page .script-image .card:hover img {
  transform: scale(1.02);
}

/* ============================================
   Footer
   ============================================ */
.walkthrough-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lightbox-caption {
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease;
  line-height: 1;
  padding: 0;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease;
  padding: 1rem;
  line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .walkthrough-hero h1 {
    font-size: 1.5rem;
  }

  .walkthrough-toc ol {
    flex-direction: column;
    gap: 0.2rem;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 0.5rem;
  }

  .lightbox-close {
    font-size: 2rem;
  }
}
