

/* Allinea il testo */
.markdown-body {
    background: var(--card-color);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
    margin-top: 2rem;
}


.markdown-body h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.25rem;
}


.markdown-body ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
}

.markdown-body ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: default;
}


.markdown-body ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: 700;
}


.immagini {
    margin-top: 1.5rem;
    justify-content: center;
}


.immagini img {
    width: 200px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}


.immagini img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(114, 137, 218, 0.6);
}


.footer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}


.hero {
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.commands-tabs {
  margin-top: 2rem;
}

.tabs-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab-btn {
  padding: 0.6rem 1.2rem;
  background: var(--card-color);
  border: none;
  border-radius: var(--radius);
  color: var(--text-color);
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.tab-btn:hover {
  background-color: var(--border-color);
}

.tab-btn.active {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

.tab-content {
  display: none;
  background: var(--card-color);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.tab-content.active {
  display: block;
}

.tab-content ul {
  list-style: none;
  padding-left: 0;
}

.tab-content ul li {
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  position: relative;
  color: var(--text-color);
  font-weight: 500;
}

.tab-content ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-weight: 700;
}

.commands-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 2rem auto 4rem;
  background: var(--card-color);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  overflow: hidden;
  min-height: 380px;
}

/* Sidebar categorie */
.commands-sidebar {
  flex: 0 0 230px;
  background: var(--bg-color);
  border-right: 1.5px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  user-select: none;
}

.commands-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-item {
  padding: 0.9rem 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-left: 4px solid transparent;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
  outline-offset: 2px;
  outline: none;
}

.category-item .cat-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 1.2px var(--accent-color));
}

.category-item:hover,
.category-item:focus {
  color: var(--accent-color);
  background-color: var(--card-color);
}

.category-item.active {
  color: var(--accent-color);
  background-color: var(--card-color);
  border-left-color: var(--accent-color);
  cursor: default;
  pointer-events: none;
}

/* Contenuto comandi */
.commands-content {
  flex: 1 1 auto;
  padding: 1.6rem 2.2rem;
  overflow-y: auto;
  scroll-behavior: smooth;
  outline: none;
  position: relative;
}

/* Sezioni dei comandi */
.category-content {
  display: none;
  animation: fadeInContent 0.3s ease forwards;
}

.category-content.active {
  display: block;
}

.category-content h2 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.4rem;
}

.category-content ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.category-content ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-color);
  cursor: default;
  transition: color 0.3s ease;
}

.category-content ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1;
}

/* Scrollbar personalizzata contenuto */
.commands-content::-webkit-scrollbar {
  width: 8px;
}

.commands-content::-webkit-scrollbar-track {
  background: var(--bg-color);
}

.commands-content::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.commands-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* Animazione fadeIn */
@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive: sidebar diventa in alto su mobile */
@media (max-width: 768px) {
  .commands-wrapper {
    flex-direction: column;
    max-width: 100%;
    margin: 1rem auto 3rem;
    border-radius: var(--radius);
  }

  .commands-sidebar {
    flex: none;
    width: 100%;
    border-right: none;
    border-bottom: 1.5px solid var(--border-color);
    padding: 0.6rem 1rem;
  }

  .commands-sidebar ul {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--bg-color);
  }

  .commands-sidebar ul::-webkit-scrollbar {
    height: 6px;
  }

  .commands-sidebar ul::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 8px;
  }

  .category-item {
    flex: none;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-left: none;
    border-bottom: 4px solid transparent;
    justify-content: center;
    white-space: nowrap;
  }

  .category-item.active {
    border-left: none;
    border-bottom-color: var(--accent-color);
  }

  .commands-content {
    padding: 1rem 1.2rem;
    min-height: 260px;
  }
}

.screenshot-set {
  display: none;
  gap: 1rem;
  flex-wrap: wrap;
}

.screenshot-set.active {
  display: flex;
}

.screenshot-set img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}