/* Install page specific styles */

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

/* Override container max-width for install 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;
}

.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;
}

.completion-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--text-primary);
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgb(255, 209, 16, 0.3);
  flex-shrink: 0;
  align-self: center;
}

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

/* Release notes modal */

#release-notes-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0, 0, 0, 0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: rn-fade-in 0.2s ease;
}

#release-notes-overlay.hidden {
  display: none;
}

@keyframes rn-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

#release-notes-modal {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: 0 24px 64px rgb(0, 0, 0, 0.18), 0 8px 24px rgb(0, 0, 0, 0.12);
  width: 100%;
  max-width: 680px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: rn-slide-up 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rn-slide-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

.rn-banner {
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.rn-banner-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
}

.rn-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.rn-versions {
  width: 130px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  background: var(--bg-primary);
}

.rn-versions-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 0.5rem 0.375rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}

.rn-version-chip {
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  text-align: left;
  font-family: 'Courier New', monospace;
  transition: background 0.15s ease, color 0.15s ease;
  width: 100%;
}

.rn-version-chip:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.rn-version-chip.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  font-weight: 600;
}

.rn-content-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  min-width: 0;
}

.rn-content-wrap.fading {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.rn-content-wrap.visible {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.rn-content-wrap h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.875rem;
}

.rn-content-wrap ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rn-content-wrap ul li {
  display: flex;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.rn-content-wrap ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

.rn-footer {
  padding: 0.875rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  background: var(--bg-white);
}

#rn-ok-btn {
  min-width: 80px;
}

@media (width <= 768px) {
  #release-notes-modal {
    max-height: 90vh;
  }

  .rn-versions {
    width: 100px;
  }

  .rn-version-chip {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }

  .rn-content-wrap {
    padding: 1rem;
  }
}

@media (width <= 480px) {
  .rn-body {
    flex-direction: column;
  }

  .rn-versions {
    width: 100%;
    flex-flow: row wrap;
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 72px;
    overflow: auto hidden;
    padding: 0.5rem;
    gap: 0.25rem;
  }

  .rn-versions-label {
    display: none;
  }

  .rn-version-chip {
    width: auto;
    white-space: nowrap;
  }
}

@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;
  }
}