/* Custom styles for AuraWall AI */

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(20, 19, 22, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism 2.0 classes */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-edge {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-hover:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Gradients */
.gradient-accent {
  background: linear-gradient(135deg, #d3bcfc 0%, #edbbac 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #d3bcfc 0%, #edbbac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-glow {
  box-shadow: 0 0 20px rgba(211, 188, 252, 0.15);
}

/* Navigation active states */
.nav-active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-left: 3px solid #d3bcfc;
  border-radius: 0 9999px 9999px 0 !important;
}

/* Mobile Nav Active */
@media (max-width: 767px) {
  .nav-active {
    background: transparent !important;
    color: #d3bcfc !important;
    border-left: none;
    border-bottom: 2px solid #d3bcfc;
    border-radius: 0 !important;
  }
}

/* Keyframes and Custom Animations */
@keyframes pulseSlow {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.05);
  }
}

@keyframes pulseSlower {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.08);
  }
}

.animate-pulse-slow {
  animation: pulseSlow 8s infinite ease-in-out;
}

.animate-pulse-slower {
  animation: pulseSlower 12s infinite ease-in-out;
}

.animate-spin-slow {
  animation: spin 8s linear infinite;
}

.hero-zoom {
  animation: subtleZoom 25s infinite alternate ease-in-out;
}

@keyframes subtleZoom {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(1%, 1%); }
}

/* Animations for view entry */
.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aspect ratio helpers */
.aspect-9-16 {
  aspect-ratio: 9 / 16;
}

.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-1-1 {
  aspect-ratio: 1 / 1;
}

/* Form inputs styling */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(211, 188, 252, 0.25);
}

/* Masonry layout fallback */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 1.5rem;
}

@media (min-width: 640px) {
  .masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (min-width: 1024px) {
  .masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* Style option tags inside select elements to prevent invisible choices on dark theme */
select option {
  background-color: #1a191d;
  color: #ffffff;
}
