/* Custom styles for Jung Mind */

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.jung-title {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mandala-inspired decorative elements */
.category-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ffd700, transparent, #ffd700);
  border-radius: 8px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover::before {
  opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #1e3a8a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1e40af;
}

/* Subtle animation for concept cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.concept-card {
  animation: fadeInUp 0.5s ease forwards;
}

.concept-link {
  animation: fadeInUp 0.5s ease forwards;
}

/* Sacred geometry background pattern */
.bg-pattern {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(30, 58, 138, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(147, 51, 234, 0.03) 0%, transparent 70%);
  background-size: 150px 150px, 200px 200px, 100px 100px;
  background-position: 0 0, 50px 50px, 25px 25px;
}

/* Improved focus states for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* Mobile-optimized touch targets */
@media (max-width: 768px) {
  button {
    min-height: 44px;
    min-width: 44px;
  }
  
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Enhanced hover effects */
.concept-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Loading skeleton animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading-skeleton {
  animation: pulse 2s infinite;
}

/* Text clamp utility */
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Gradient text effects */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* AI Chat specific styles */
.ai-message {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-left: 4px solid #8b5cf6;
}

.user-message {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

/* Marcus Aurelius reflection styles */
.marcus-reflection {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid #d97706;
}

/* Knowledge graph enhancements */
.knowledge-graph {
  background: linear-gradient(135deg, #fefce8 0%, #dbeafe 100%);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
}

/* FAQ accordion animations */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  background-color: #f9fafb;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .bg-pattern {
    background: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-blue-900 {
    background-color: #000 !important;
  }
  
  .text-gray-600 {
    color: #333 !important;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .concept-link:hover {
    transform: none !important;
  }
  
  .category-card:hover {
    transform: none !important;
  }
}

/* Improved responsive design */
@media (max-width: 640px) {
  .jung-title {
    font-size: 1.5rem;
  }
  
  .hero-section h2 {
    font-size: 1.875rem;
  }
  
  .marcus-reflection {
    padding: 1rem;
  }
}

/* Dark mode preparation */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles would go here */
}