/* Dark Theme Enhancements - Supabase-inspired */

/* Glass morphism effects */
.glass-effect {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Subtle animations */
@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.2); }
  50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
  100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.2); }
}

.glow-effect {
  animation: glow 3s ease-in-out infinite;
}

/* Enhanced text selection */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(59, 130, 246, 0.3);
  color: #ffffff;
}

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

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #3B82F6;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #60A5FA;
}

/* Enhanced focus states */
.button:focus,
.navbar_link:focus,
.mainfeatures_tabs-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Subtle gradient borders */
.gradient-border {
  position: relative;
  background: var(--component-background);
  border-radius: var(--border-radius);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

/* Loading states */
.loading-shimmer {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(255, 255, 255, 0.05) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Improved dark theme specific elements */
.section_hero {
  position: relative;
  overflow: hidden;
}

.section_hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Enhanced typography */
.text-color-highlighted {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dark theme optimized shadows */
.dark-shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-shadow-lg {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Accessibility improvements for dark theme */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-subtle: rgba(255, 255, 255, 0.3);
    --text-secondary: #cccccc;
  }
}
