/* /css/map-tutorial.css — samouczek mapy (overlay + podświetlenia) */

/* Główny overlay samouczka */
.map-tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Prostokąt podświetlenia z "dziurą" w ciemnym tle (box-shadow) */
.map-tutorial-highlight {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
  transition:
    top 0.22s ease,
    left 0.22s ease,
    width 0.22s ease,
    height 0.22s ease;
}

/* Panel z opisem / tytułem / przyciskami */
.map-tutorial-tooltip {
  position: absolute;
  max-width: 320px;
  background: #ffffff;
  color: #111;
  border-radius: 14px;
  padding: 12px 14px 10px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Pasek nad tytułem: "Krok 1 z 3" */
.map-tutorial-step-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
}

/* Tytuł kroku */
.map-tutorial-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

/* Tekst */
.map-tutorial-text {
  margin: 2px 0 4px;
  font-size: 13px;
  line-height: 1.4;
  color: #333;
}

/* Dół tooltipa: przyciski + wskaźnik kroku */
.map-tutorial-footer {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Grupa przycisków */
.map-tutorial-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Podstawowy styl przycisków samouczka */
.map-tutorial-btn {
  appearance: none;
  border-radius: 999px;
  border: 0;
  font-size: 13px;
  line-height: 1.2;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
}

/* Primary – "Dalej", "Zakończ" */
.map-tutorial-btn-primary {
  background: linear-gradient(135deg, #ffa94e, #db8930);
  color: #ffffff;
  box-shadow:
    0 4px 10px rgba(40, 88, 210, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.55);
}
.map-tutorial-btn-primary:hover {
  background: linear-gradient(135deg, #ffd6ad, #c99b65);
}

/* Secondary – "Pomiń" */
.map-tutorial-btn-secondary {
  background: transparent;
  color: #555;
  border: 1px solid #d0d0d0;
}
.map-tutorial-btn-secondary:hover {
  background: #f5f5f5;
}

/* Kropeczki postępu */
.map-tutorial-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.map-tutorial-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ccc;
  opacity: 0.7;
}

.map-tutorial-dot.is-active {
  width: 12px;
  background: #d6832f;
  opacity: 1;
}

/* Mały badge "Samouczek mapy" na górze tooltipa (opcjonalnie) */
.map-tutorial-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #999;
  margin-bottom: 2px;
}

/* Wersja mobilna – mniejszy tooltip i większy margines od krawędzi */
@media (max-width: 640px) {
  .map-tutorial-tooltip {
    max-width: 280px;
    padding: 10px 12px 8px;
  }

  .map-tutorial-title {
    font-size: 14px;
  }

  .map-tutorial-text {
    font-size: 12px;
  }

  .map-tutorial-btn {
    font-size: 12px;
    padding: 5px 10px;
  }
}

/* Gdy jakiś element jest podświetlany, możesz dodać klasę na body,
   jeśli chcesz coś subtelnie zmienić globalnie w przyszłości */
body.map-tutorial-active {
  /* na razie tylko hook, bez zmian */
}
/* Przycisk "X" zamykający samouczek */
.map-tutorial-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 0, 0, 0.08);
  color: #444;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.map-tutorial-close:hover {
  background: rgba(0, 0, 0, 0.16);
}
