/* Help page specific styles */

/* Override body styles for help page */
body {
  padding: 0.25rem 1rem;
  scroll-snap-type: y proximity;
}

/* Override container max-width for help page */
.container {
  max-width: 1200px;
}

.hero-section {
  text-align: center;
  margin-bottom: 1rem;
  padding: 1rem 0;
  flex-shrink: 0;
}

.hero-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-section h1 {
  margin-bottom: 0.5rem;
}

.hero-section .subtitle {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.banner {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px var(--shadow);
}

.step {
  position: relative;
  padding: 1.5rem 2rem;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  min-height: calc(100vh - 1rem);
  max-height: 900px;
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border-radius: calc(var(--radius) * 1.5);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  box-shadow: 0 2px 8px rgb(0, 0, 0, 0.08);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-hover));
  transform: scaleY(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: calc(var(--radius) * 1.5) 0 0 calc(var(--radius) * 1.5);
}

.step:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgb(66, 133, 244, 0.2), 0 4px 12px rgb(66, 133, 244, 0.1);
  transform: translateY(-6px) scale(1.01);
  background: linear-gradient(to bottom, var(--bg-white), var(--bg-light));
}

.step:hover::before {
  transform: scaleY(1);
  box-shadow: 2px 0 8px rgb(66, 133, 244, 0.3);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.step-number {
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgb(66, 133, 244, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border: 2px solid rgb(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step:hover .step-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgb(66, 133, 244, 0.4);
}

.step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.step:hover .step-title {
  color: var(--primary);
}

.step-content {
  margin-bottom: 1.5rem;
  padding-left: 0;
  line-height: 1.6;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 100%;
  flex-shrink: 0;
}

.step-content code {
  background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
  color: var(--primary);
  font-weight: 600;
  border: 1px solid rgb(66, 133, 244, 0.1);
  box-shadow: 0 1px 3px rgb(0, 0, 0, 0.05);
}

.step-image {
  margin: auto auto 0;
  max-width: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 0;
}

.step-image img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 100%;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.progress-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1000;
  transition: width 0.3s ease;
}

.actions-section {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

@media (height >= 1000px) {
  .step {
    min-height: 800px;
    max-height: 900px;
  }
}

@media (width <= 768px) {
  .step {
    padding: 1.5rem;
    max-height: none;
  }

  .step-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }

  .step-content {
    padding-left: 0;
  }

  .step-image {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .step-image img {
    max-width: 100%;
  }

  .hero-icon {
    font-size: 3rem;
  }
}