// Glassmorphism Mixins & Utilities

@mixin glass-panel($bg: var(--glass-bg), $blur: var(--glass-blur)) {
  background: $bg;
  backdrop-filter: $blur;
  -webkit-backdrop-filter: $blur;
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-xl);
}

@mixin glass-card {
  @include glass-panel;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  animation: fadeInGlass 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  
  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
    background: var(--glass-bg-hover);
  }
}

@mixin glass-button {
  background: var(--gradient-primary);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(244, 25, 109, 0.3);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  
  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 25, 109, 0.4);
  }
}

// Utility Classes
.glass-panel {
  @include glass-panel;
}

.glass-card {
  @include glass-card;
}

// Animations
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes fadeInGlass {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-fade-in {
  animation: fadeInGlass 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

// Apply to common elements
.card, .widget, .member_item, .story_item, .blog_item {
  @include glass-card;
  border: var(--glass-border) !important;
}

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

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  
  &:hover {
    background: rgba(0, 0, 0, 0.3);
  }
}
