/* Интерактивно ръководство — табове с чист CSS */

.tutorial-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.tutorial-state {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tutorial-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tutorial-tabs label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tutorial-tabs label:hover {
  color: var(--text);
  border-color: rgba(129, 140, 248, 0.35);
}

#ts1:checked ~ .tutorial-tabs label[for="ts1"],
#ts2:checked ~ .tutorial-tabs label[for="ts2"],
#ts3:checked ~ .tutorial-tabs label[for="ts3"],
#ts4:checked ~ .tutorial-tabs label[for="ts4"],
#ts5:checked ~ .tutorial-tabs label[for="ts5"],
#ts6:checked ~ .tutorial-tabs label[for="ts6"] {
  color: var(--neon);
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.1);
}

.tutorial-panels {
  position: relative;
  min-height: 200px;
}

.tutorial-panel {
  display: none;
  padding: 4px 2px 8px;
  animation: tutFade 0.35s ease;
}

#ts1:checked ~ .tutorial-panels .tutorial-panel:nth-child(1),
#ts2:checked ~ .tutorial-panels .tutorial-panel:nth-child(2),
#ts3:checked ~ .tutorial-panels .tutorial-panel:nth-child(3),
#ts4:checked ~ .tutorial-panels .tutorial-panel:nth-child(4),
#ts5:checked ~ .tutorial-panels .tutorial-panel:nth-child(5),
#ts6:checked ~ .tutorial-panels .tutorial-panel:nth-child(6) {
  display: block;
}

@keyframes tutFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tutorial-panel h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tutorial-panel p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
}

.tutorial-panel ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tutorial-panel li {
  margin-bottom: 6px;
}

.tutorial-mock {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(129, 140, 248, 0.35);
  background: rgba(0, 0, 0, 0.2);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #a5b4fc;
  line-height: 1.5;
}

.tutorial-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}

.tutorial-nav-row a {
  text-decoration: none;
}

@media (min-width: 980px) {
  .tutorial-wrap {
    max-width: 800px;
  }
}
