/**
 * Docsie Unified Design System
 * 
 * This file contains the core design tokens and utilities that should be
 * consistent across all pages. Use Tailwind utility classes for styling
 * and these CSS variables for consistent colors and spacing.
 */

:root {
  /* Brand Colors */
  --docsie-primary: #13AF4B;
  --docsie-primary-dark: #0f8f3d;
  --docsie-primary-light: #1bc95a;
  
  /* Gradients */
  --docsie-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --docsie-gradient-success: linear-gradient(135deg, #13AF4B 0%, #0f8f3d 100%);
  
  /* Neutral Colors */
  --docsie-gray-50: #f9fafb;
  --docsie-gray-100: #f3f4f6;
  --docsie-gray-200: #e5e7eb;
  --docsie-gray-300: #d1d5db;
  --docsie-gray-400: #9ca3af;
  --docsie-gray-500: #6b7280;
  --docsie-gray-600: #4b5563;
  --docsie-gray-700: #374151;
  --docsie-gray-800: #1f2937;
  --docsie-gray-900: #111827;
  
  /* Spacing */
  --docsie-section-padding: 4rem 0;
  --docsie-container-padding: 1rem;
  
  /* Border Radius */
  --docsie-border-radius: 8px;
  --docsie-border-radius-lg: 12px;
  
  /* Shadows */
  --docsie-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --docsie-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --docsie-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Extend Tailwind with custom utilities */
@layer utilities {
  .bg-docsie-primary {
    background-color: var(--docsie-primary);
  }
  
  .bg-docsie-primary-dark {
    background-color: var(--docsie-primary-dark);
  }
  
  .text-docsie-primary {
    color: var(--docsie-primary);
  }
  
  .border-docsie-primary {
    border-color: var(--docsie-primary);
  }
  
  .bg-docsie-gradient {
    background: var(--docsie-gradient-primary);
  }
  
  .bg-docsie-gradient-success {
    background: var(--docsie-gradient-success);
  }
}

/* Component-specific scoped styles */
.docsie-knowledge-graph {
  /* Scoped styles for knowledge graph - only applies to this component */
  position: relative;
  min-height: 100vh;
  background: var(--docsie-gradient-primary);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.docsie-knowledge-graph .graph-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
}

.docsie-knowledge-graph .node {
  fill: #fff;
  stroke: var(--docsie-primary);
  stroke-width: 2;
  cursor: pointer;
}

.docsie-knowledge-graph .node:hover {
  fill: var(--docsie-primary);
  stroke: #fff;
}

.docsie-knowledge-graph .link {
  stroke: var(--docsie-primary);
  stroke-width: 1.5;
  stroke-opacity: 0.6;
}

.docsie-knowledge-graph .node-label {
  fill: #fff;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  text-anchor: middle;
  pointer-events: none;
}

.docsie-knowledge-graph .hero-content {
  position: relative;
  z-index: 10;
  color: white;
  text-align: center;
}

.docsie-knowledge-graph .floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.docsie-knowledge-graph .particle {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  animation: docsie-float 20s infinite linear;
}

@keyframes docsie-float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Button System */
.docsie-btn {
  @apply inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-lg transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-offset-2;
}

.docsie-btn-primary {
  @apply docsie-btn text-white;
  background-color: var(--docsie-primary);
}

.docsie-btn-primary:hover {
  background-color: var(--docsie-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(19, 175, 75, 0.3);
}

.docsie-btn-secondary {
  @apply docsie-btn text-white border-white border-opacity-30;
  background: rgba(255,255,255,0.1);
}

.docsie-btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .docsie-knowledge-graph .hero-content h1 {
    font-size: 2.5rem;
  }
}