/* Custom styles for documentation page */

/* Light theme (default) */
:root {
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --secondary: #6b7280;
  --background: #ffffff;
  --foreground: #1f2937;
  --card: #ffffff;
  --border: #e5e7eb;
  --muted: #f8fafc;
  --muted-foreground: #6b7280;
}

/* Dark theme */
[data-theme="dark"] {
  --primary: #60a5fa;
  --primary-foreground: #1e293b;
  --secondary: #9ca3af;
  --background: #020917;
  --foreground: #f1f5f9;
  --card: #1e293b;
  --border: #334155;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
}

/* Apply theme variables to body */
body {
  background-color: var(--background);
  color: var(--foreground);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Button styles */
.btn {
  @apply inline-flex items-center justify-center px-4 py-2 rounded-lg font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2;
}

.btn-primary {
  @apply bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500;
}

.btn-secondary {
  @apply bg-gray-200 text-gray-900 hover:bg-gray-300 focus:ring-gray-500;
}

/* Card styles */
.card {
  @apply bg-white border border-gray-200 rounded-lg shadow-sm;
}

/* Result item styles */
.result-item {
  @apply p-6 mb-4;
}

.result-title {
  @apply text-lg font-semibold text-gray-900 mb-2;
}

.result-description {
  @apply text-gray-600 text-sm;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .card {
    @apply bg-gray-800 border-gray-700;
  }
  
  .result-title {
    @apply text-gray-100;
  }
  
  .result-description {
    @apply text-gray-300;
  }
  
  .btn-secondary {
    @apply bg-gray-700 text-gray-200 hover:bg-gray-600;
  }
}

/* Empty state styles */
.empty-state {
  @apply text-center py-12;
}

.empty-state-icon {
  @apply text-4xl text-gray-400 mb-4;
}

/* Responsive grid */
.image-grid {
  @apply grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4;
}

.image-card {
  @apply bg-white rounded-lg overflow-hidden shadow-sm border border-gray-200 cursor-pointer hover:shadow-md transition-shadow;
}

.image-card img {
  @apply w-full h-48 object-cover;
}

.image-card-content {
  @apply p-4;
}

.image-card-title {
  @apply font-medium text-gray-900 mb-1;
}

.image-card-description {
  @apply text-sm text-gray-600;
}

/* Utility classes */
.text-primary {
  color: var(--primary) !important;
}

.text-muted-foreground {
  color: var(--muted-foreground) !important;
}

.bg-background {
  background-color: var(--background) !important;
}

.text-foreground {
  color: var(--foreground) !important;
}

.bg-card {
  background-color: var(--card) !important;
  border-color: var(--border) !important;
}

.border-border {
  border-color: var(--border) !important;
}

.bg-muted {
  background-color: var(--muted) !important;
}

.bg-muted\/80 {
  background-color: rgb(from var(--muted) r g b / 0.8) !important;
}

.bg-primary\/10 {
  background-color: rgb(from var(--primary) r g b / 0.1) !important;
}

.bg-secondary\/10 {
  background-color: rgb(from var(--secondary) r g b / 0.1) !important;
}

/* Theme transition for all elements */
* {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Animation classes */
.hover\:scale-105:hover {
  transform: scale(1.05);
}

.transition-all {
  transition: all 0.3s ease;
}

.duration-300 {
  transition-duration: 300ms;
}

/* Focus styles */
.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px var(--primary);
}

.focus\:border-transparent:focus {
  border-color: transparent;
}