/* Icon Documentation Styles */
body {
  background: #f8f9fa;
}

.docs-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 4rem 0 3rem;
  margin-bottom: 0;
}

.docs-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.docs-header p {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Search and Filter Controls */
.controls-section {
  background: white;
  padding: 2rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.search-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: white;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-tag {
  background: #e9ecef;
  color: #495057;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  user-select: none;
}

.filter-tag:hover {
  background: #dee2e6;
}

.filter-tag.aiab-active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary-dark);
}

.results-info {
  text-align: center;
  color: #6c757d;
  font-size: 0.875rem;
  margin: 1rem 0;
}

/* Category Sections */
.category-section {
  margin: 3rem 0;
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
}

.category-header h2 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.5rem;
}

.category-count {
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Icon Grid */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.icon-item {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.icon-item:hover {
  border-color: var(--color-primary);
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.icon-item.copied {
  border-color: #28a745;
  background: #d4edda;
}

.icon-display {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  margin-bottom: 1rem;
}

.icon-display i {
  font-size: 32px;
  color: #495057;
  transition: color 0.2s;
}

.icon-item:hover .icon-display i {
  color: var(--color-primary);
}

.icon-name {
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.icon-tags {
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

.copy-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #28a745;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}

.icon-item.copied .copy-indicator {
  transform: translateY(0);
  opacity: 1;
}

/* Usage Examples */
.usage-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.usage-section h3 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-size: 1rem;
}

.code-example {
  background: #2c3e50;
  color: #e9ecef;
  padding: 1rem;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.875rem;
  margin: 0.5rem 0;
  position: relative;
  overflow-x: auto;
}

.copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.copy-button:hover {
  background: var(--color-primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .docs-header h1 {
    font-size: 2rem;
  }

  .search-container {
    padding: 0 1rem;
  }

  .filter-tags {
    justify-content: center;
  }

  .icon-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
  }

  .icon-item {
    padding: 1rem;
  }

  .category-section {
    margin: 2rem 0;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .icon-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .filter-tags {
    gap: 0.25rem;
  }

  .filter-tag {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }
}

/* Loading and No Results States */
.loading-state,
.no-results-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #6c757d;
}

.loading-state .aiab-icon,
.no-results-state .aiab-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.hidden {
  display: none;
}
