/* Modern Header Styles for EduFellow - 2025 Trends */

/* Glassmorphism effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient text effects */
.gradient-text-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-secondary {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Pulse animations for status indicators */
@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    transform: scale(1.1);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Modern button hover effects */
.modern-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.modern-button:hover::before {
  left: 100%;
}

/* Search input enhancements */
.search-input-modern {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-modern:focus {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Navigation hover effects */
.nav-item-modern {
  position: relative;
  transition: all 0.3s ease;
}

.nav-item-modern::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-item-modern:hover::after {
  width: 100%;
}

/* Mobile menu animations */
.mobile-menu-enter {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-enter-active {
  opacity: 1;
  transform: translateY(0);
}

/* Status badges */
.status-badge {
  position: relative;
  overflow: hidden;
}

.status-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: badge-shine 3s infinite;
}

@keyframes badge-shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* AI Assistant button special effects */
.ai-button {
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  position: relative;
  overflow: hidden;
}

.ai-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  animation: ai-rotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.ai-button:hover::before {
  opacity: 1;
}

@keyframes ai-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive design enhancements */
@media (max-width: 768px) {
  .glass-effect {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
  .glass-effect {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .gradient-text-primary,
  .gradient-text-secondary {
    -webkit-text-fill-color: initial;
    background: none;
    color: #1f2937;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .float-animation,
  .pulse-glow,
  .ai-button::before {
    animation: none;
  }
  
  .modern-button,
  .search-input-modern,
  .nav-item-modern {
    transition: none;
  }
}