/* ============================================
   SIDE VIEW DETAIL SECTION
   Similar to Step 1B - with info icons on hover
   ============================================ */

/* Container */
.snap-page[data-step="sideview"] {
  background: transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem;
  min-height: auto;
  gap: clamp(1rem, 2vh, 2rem);
}

/* Image Row */
.sideview-image-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Image Container */
.sideview-image-container {
  position: relative;
  background: transparent;
  border-radius: 12px;
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  padding: 1rem;
}

.sideview-image-container:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 0, 0.3);
}

/* Main Image */
.sideview-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  max-height: 40vh;
  max-width: 1000px;
  margin: auto;
}

/* ============================================
   INFO ICONS
   ============================================ */

.sideview-info-icon {
  position: absolute;
  width: 28px;
  height: 28px;
  cursor: pointer;
  pointer-events: auto;
  z-index: 20;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.sideview-info-icon:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 2px 8px rgba(249, 115, 22, 0.6));
}

.sideview-info-icon svg {
  width: 100%;
  height: 100%;
}

/* Invisible anchor position - for cross-section line */
#sideview-info-1 {
  left: 29%;
  top: 54%;
  width: 0;
  height: 0;
}

#sideview-info-2 {
  left: 31%;
  top: 25%;
  ;
}

/* Invisible anchor position - for cross-section line to step1b-fau-text */
#sideview-info-3 {
  left: 46.5%;
  top: 50%;
  width: 0;
  height: 0;
}

/* ============================================
   INFO TEXT TOOLTIPS
   ============================================ */

.sideview-info-text {
  position: absolute;
  background: rgba(255, 255, 255, 0.97);
  color: #1a1a2e;
  padding: 0.85rem 1.1rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  z-index: 25;
  text-align: left;
  max-width: 200px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  border-left: 4px solid #f97316;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateY(5px);
}

.sideview-info-text.sideview-info-text-3 {
  max-width: 400px;
}

/* Text positions */
/* sideview-info-text-1 removed - now uses step1b-align-text via cross-section line */

.sideview-info-text-2 {
  left: 1%;
  top: -10%;
}

/* sideview-info-text-3 removed - now uses step1b-fau-text via cross-section line */

/* Show text on icon hover */
/* sideview-info-1 hover rules removed - now controlled via step1b-align-anchor */
/* sideview-info-3 hover rules removed - now controlled via step1b-fau-anchor */

#sideview-info-2:hover~#sideview-text-2,
#sideview-text-2:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================================
   MODE LABELS & ANCHORS
   ============================================ */

/* Anchors - invisible markers on the image */
.sideview-anchor {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 10;
  pointer-events: none;
}

.angledview-anchor {
  left: 32.5%;
  top: 55%;
  width: 0;
  height: 0;
  position: absolute;
  z-index: 10;
  pointer-events: none;
}

/* SiPho WG Mode anchor - on the dark waveguide area */
.sideview-sipho-anchor {
  left: 35%;
  top: 55%;
}

/* Fiber Mode anchor - on the fiber area (right side) */
.sideview-fiber-anchor {
  left: 68%;
  top: 55%;
}

/* Mode Labels */
.sideview-mode-label {
  position: absolute;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* SiPho WG Mode label - green */
.sideview-sipho-label {
  left: 35%;
  bottom: 100%;
  background: #2ecc71;
  color: #fff;
  z-index: 1;
}

/* Fiber Mode label - pink/red */
.sideview-fiber-label {
  left: 53%;
  bottom: 80%;
  background: #e91e63;
  color: #fff;
  z-index: 1;
}

/* ============================================
   SVG LINE CONNECTOR
   ============================================ */

.sideview-line-connector {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.sideview-line-connector line {
  stroke-linecap: round;
  stroke-width: 2;
  transition: stroke-dashoffset 1s ease-out;
}

.sideview-line-connector line.animate {
  stroke-dashoffset: 0 !important;
}

/* Info icon connector lines - hidden by default */
.sideview-info-line {
  opacity: 0;
  transition: opacity 0.2s ease, stroke-dashoffset 0.5s ease-out;
  stroke-linecap: round;
}

/* Show lines on hover with draw animation */
/* sideview-info-1 line rules removed - now uses cross-section line via step1b-align-anchor */
/* sideview-info-3 line rules removed - now uses cross-section line via step1b-fau-anchor */
#sideview-info-2:hover~.sideview-line-connector #sideview-info-line-2,
.sideview-image-container:has(#sideview-info-2:hover) #sideview-info-line-2 {
  opacity: 1;
  stroke-dashoffset: 0 !important;
}

/* SVG connector behind text boxes */
.sideview-line-connector {
  z-index: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
  .sideview-image-row {
    max-width: 95%;
  }

  .sideview-info-text {
    max-width: 260px;
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
  }

  .sideview-info-icon {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 768px) {
  .sideview-info-text {
    max-width: 200px;
    font-size: 0.85rem;
  }

  .sideview-mode-label {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }

  .sideview-info-icon {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 576px) {
  .sideview-image-container {
    padding: 0.5rem;
  }

  .sideview-info-text {
    max-width: 160px;
    font-size: 0.75rem;
    padding: 0.5rem 0.7rem;
  }

  .sideview-mode-label {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .sideview-info-icon {
    width: 20px;
    height: 20px;
  }
}