/* 
 * Commands Tab Styles - Rosewood Ridge Site
 * Web 3.0 Design System
 */

@import url('variables.css');

.commands-container {
  padding: 1.5rem;
  background: var(--inner-bg);
  border-radius: var(--border-radius-std);
  border: 1px solid var(--accent-color);
  box-shadow: var(--box-shadow-std);
}

.commands-container h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--accent-color);
  text-align: center;
  color: var(--text-color);
}

.command-filters {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.command-filter-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

#commandSearchInput {
  flex-grow: 1; /* Allow search input to take available space */
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: var(--input-border);
  border-radius: var(--border-radius-std);
  background-color: var(--input-bg);
  color: var(--text-color);
  font-size: 0.95rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

#commandSearchInput:focus {
  outline: 0;
  border: var(--input-focus-border);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), var(--box-shadow-glow);
}

#commandTagDropdown {
  padding: 0.7rem 0.8rem;
  border: var(--input-border);
  border-radius: var(--border-radius-std);
  background-color: var(--input-bg);
  color: var(--text-color);
  font-size: 0.95rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  min-width: 180px; /* Give dropdown a decent minimum width */
}

#commandTagDropdown:focus {
  outline: 0;
  border: var(--input-focus-border);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), var(--box-shadow-glow);
}

.active-tag-filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem; /* Space above active tags if search/dropdown are on separate lines */
}

.active-tag-pill {
  background-color: var(--highlight-color);
  color: var(--bg-color-darker); /* Ensure contrast */
  padding: 0.3rem 0.5rem 0.3rem 0.7rem;
  border-radius: var(--border-radius-std);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--bright-accent);
}

.remove-tag-btn {
  background: none;
  border: none;
  color: var(--bg-color-darker);
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 1rem;
}

.remove-tag-btn:hover {
  opacity: 0.7;
}

/* Remove old tag button container styles if they exist */
.tag-filter-container {
  display: none; /* Hide if it was used for the old buttons */
}

.command-tag-button {
  display: none; /* Hide if it was used for the old buttons */
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.command-section {
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-std);
  padding: 1.25rem;
  border: 1px solid var(--accent-color);
}

.command-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--highlight-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.command-section ul {
  padding-left: 1.25rem;
  margin: 0;
}

.command-section li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
  color: var(--text-secondary-color);
}

.command-section li strong {
  color: var(--text-color);
  font-family: monospace;
  font-size: 0.95em;
  background: rgba(116, 116, 116, 0.2);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  display: inline-block;
  margin-right: 0.3rem;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .commands-grid {
    grid-template-columns: 1fr;
  }
}
