/* Commands Page Specific Styles */
body, html {
  margin: 0;
  padding: 0;
  background-color: #000000; /* Changed from #191919 to pure black */
  color: white;
  width: 100%;
  overflow-x: hidden;
}

.hero {
  height: auto;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #000000; /* Added to ensure hero section is also black */
}

.commands-section {
  width: 100%;
  padding: 10px 20px;
  background-color: #000000; /* Changed from #191919 to pure black */
  min-height: 600px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.commands-header {
  text-align: center;
  padding: 50px 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 120px;
}

.commands-header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  margin-top: 30px;
}

.commands-header h3 {
  font-size: 1.2rem;
  font-weight: normal;
  opacity: 0.8;
  margin-bottom: 30px;
}

.commands-section {
  width: 100%;
  padding: 10px 20px;
  background-color: #000000;
  min-height: 600px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.category-selector {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0; /* Added to remove top margin */
  margin-bottom: 20px; /* Reduced from 30px */
  padding: 0 20px;
}

.category-btn {
  background-color: #101010;
  color: white;
  border: 2px solid transparent;
  padding: 10px 20px;
  margin: 0 10px 10px 0;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.category-btn:hover {
  background-color: transparent;
  border: 2px solid white;
}

.category-btn.active {
  background-color: white;
  color: black;
}

.category-btn.active .command-count {
  color: white;
  background-color: rgba(0, 0, 0, 1);
}

.command-count {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8em;
  margin-left: 5px;
}

.search-container {
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
  padding: 0 20px;
}

#command-search {
  width: 100%;
  padding: 12px 20px;
  padding-right: 40px;
  border-radius: 30px;
  border: none;
  background-color: #101010;
  color: white;
  font-size: 16px;
}

.search-icon {
  position: absolute;
  right: 35px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
}

.commands-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.category-commands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.command-card {
  background-color: #101010;
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.command-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.command-name {
  color: white;
  margin: 0;
  font-size: 22px;
}

.copy-btn {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.copy-btn:hover {
  transform: scale(1.2);
  color: #7289da;
}

.command-description {
  color: #fcfc;
  margin-bottom: 15px;
  font-size: 16px;
}

.command-details {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.command-arguments, .command-permissions {
  flex: 1;
}

.command-details h4 {
  color: white;
  margin-bottom: 5px;
  font-size: 16px;
}

.command-details p {
  color: #fcfc;
  font-size: 14px;
}

.error-message {
  text-align: center;
  color: #ff6b6b;
  padding: 20px;
  font-size: 1.2em;
}

/* Footer Styles */
footer {
  background-color: black;
  color: white;
  padding: 30px 0;
  width: 100%;
  position: relative;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-logo {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
}

.footer-column h3 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #aaaaaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #ffffff;
}

.copyright {
  color: #aaaaaa;
  font-size: 14px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  margin-top: 10px;
  width: 100%;
}

.back-to-top {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 40px;
  height: 40px;
  background-color: #333333;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.back-to-top:hover {
  background-color: #555555;
}

@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
  }
  
  .footer-column {
    margin-bottom: 30px;
  }
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .category-commands {
    grid-template-columns: 1fr;
  }
  
  .command-details {
    flex-direction: column;
  }
  
  .command-arguments {
    margin-bottom: 15px;
  }
}