/* Oblast se screenshotem */
.screenshot-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.25);
  
  /* NOVÉ: Flexbox rozložení pro správu výšky uvnitř karty */
  display: flex;
  flex-direction: column;
  min-height: 0; /* Dovolí kartě se uvnitř gridu smrsknout */
  align-self: start;
}

.screenshot-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  flex-shrink: 0; /* Zabrání zmenšení a uříznutí nadpisu */
}

.screenshot-wrapper {
  position: relative;
  
  /* Nechá obal smrsknout, pokud dochází místo na obrazovce */
  flex: 0 1 auto;
  min-height: 0; 
  
  /* Vycentruje obal a donutí ho PŘESNĚ obepínat zmenšený obrázek.
     To je klíčové, aby se ti "nerozbily" procentuální pozice hotspotů. */
  align-self: center;
  display: flex; 
  
  border-radius: 0.75rem;
  overflow: hidden;
  background: #111827;
}

.screenshot-wrapper img {
  display: block;
  max-width: 100%;
  max-height: 100%; /* Když obal omezí výška obrazovky, obrázek se zmenší */
  width: auto;
  height: auto;
  object-fit: contain; /* Pro jistotu vynutí zachování poměru stran */
}

/* buttons – jejich pozice řešíme v % */
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 5%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 2px solid white;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: clamp(0.6rem, 1.5vw, 0.95rem);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.hotspot:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.hotspot.inactive {
  background: rgba(15, 23, 42, 0.75);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.35);
  opacity: 0.7;
}

.hotspot.active {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(22, 94, 249, 0.35);
}

/* Odkazy pro manipulaci s částmi návodu */
.part-manipulation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-shrink: 0; /* Tlačítka pod obrázkem se nikdy neuříznou a nezmizí */
}

.manipulation {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 0.5rem;

  cursor: pointer;
}

.manipulation:hover {
  background: #e5e7eb;
}