/* Building Guide Styles */

body {
  margin: 0;
  padding: 0;
  background-color: #0A1628;
  font-family: 'Roboto', system-ui, sans-serif;
  color: #e0e0e0;
}

.page_wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.guide-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.nav-link {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #94A3B8;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.nav-link.active {
  color: #00B4E4;
  background-color: rgba(0, 180, 228, 0.15);
}

/* Main Content */
.guide-content {
  flex: 1;
  padding: 40px 20px;
  padding-top: 95px; /* Account for fixed header */
}

.guide-container {
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #00B4E4;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #122240;
}

h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.intro {
  font-size: 1.125rem;
  color: #94A3B8;
  margin-bottom: 32px;
}

/* Video Section */
.video-section {
  margin-bottom: 48px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #122240;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Parts Grid */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.part-card {
  background-color: #122240;
  border-radius: 12px;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.part-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.part-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  background-color: #0A1628;
}

.part-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.part-card p {
  font-size: 0.875rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.5;
}

/* Parts Comparison Table */
.parts-comparison {
  margin-top: 24px;
}

.parts-comparison-intro {
  font-size: 1rem;
  color: #94A3B8;
  margin-bottom: 24px;
  line-height: 1.6;
}

.comparison-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
  padding: 0 16px;
}

.comparison-header h3 {
  font-size: 1.125rem;
  color: #00B4E4;
  text-align: center;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
  background-color: #122240;
  border-radius: 12px;
  padding: 16px;
  align-items: center;
}

.comparison-row:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.comparison-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.comparison-item img {
  width: 100%;
  max-width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #0A1628;
}

.comparison-item h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.comparison-item p {
  font-size: 0.8125rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.5;
}

.comparison-divider {
  display: none;
}

@media (min-width: 700px) {
  .comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: #0A1628;
    border-radius: 50%;
    color: #00B4E4;
    font-size: 1.25rem;
    font-weight: 700;
  }

  .comparison-row {
    position: relative;
  }
}

@media (max-width: 600px) {
  .comparison-header,
  .comparison-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .comparison-header h3:first-child::after {
    content: " / Spike Prime";
  }

  .comparison-header h3:last-child {
    display: none;
  }

  .comparison-item {
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }

  .comparison-item img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }

  .comparison-item-text {
    flex: 1;
  }
}

/* Assembly Steps */
.steps-section {
  margin-top: 48px;
}

.controller-reference {
  background-color: #122240;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.controller-reference h3 {
  font-size: 1.125rem;
  margin: 0 0 8px 0;
  color: #ffffff;
}

.controller-reference p {
  font-size: 0.875rem;
  color: #94A3B8;
  margin: 0 0 16px 0;
}

.controller-reference img {
  max-width: 100%;
  border-radius: 8px;
  background-color: #ffffff;
}

.step-simple {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: #122240;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.step-simple:hover {
  background-color: #162a4a;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background-color: #00B4E4;
  color: #0A1628;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-info {
  flex: 1;
}

.step-info h3 {
  font-size: 1rem;
  margin: 0 0 6px 0;
  color: #ffffff;
}

.step-info p {
  font-size: 0.875rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.5;
}

.timestamp {
  font-size: 0.8125rem;
  color: #00B4E4;
  text-decoration: none;
  padding: 6px 12px;
  background-color: rgba(0, 180, 228, 0.15);
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.timestamp:hover {
  background-color: rgba(0, 180, 228, 0.25);
  text-decoration: none;
}

@media (max-width: 600px) {
  .step-simple {
    flex-wrap: wrap;
  }

  .timestamp {
    margin-left: 48px;
    margin-top: 8px;
  }
}

/* Testing Section */
.testing-section {
  margin-top: 48px;
  text-align: center;
}

.testing-section p {
  color: #94A3B8;
  font-size: 1.125rem;
}

.test-link {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 28px;
  background-color: #00B4E4;
  color: #0A1628;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.test-link:hover {
  background-color: #0094BD;
  text-decoration: none;
  transform: translateY(-2px);
}

.next-steps {
  margin-top: 48px;
  padding: 32px;
  background-color: #122240;
  border-radius: 12px;
}

.next-steps h3 {
  color: #00D68F;
  margin-bottom: 12px;
}

.next-steps p {
  margin: 0;
}

.next-steps a {
  color: #00B4E4;
  text-decoration: none;
}

.next-steps a:hover {
  text-decoration: underline;
}

/* Footer */
.guide-footer {
  background-color: #122240;
  padding: 24px;
  text-align: center;
  margin-top: 48px;
}

.guide-footer p {
  margin: 4px 0;
  font-size: 0.875rem;
  color: #94A3B8;
}

.guide-footer a {
  color: #00B4E4;
  text-decoration: none;
}

.guide-footer a:hover {
  text-decoration: underline;
}
