/* Premium UI Designer Enhancements for All-Star ID Website */

/* ========================================
   ENHANCED BUTTON STYLING & HOVER EFFECTS
   ======================================== */

/* Primary button enhancements */
.btn-primary-enhanced {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  letter-spacing: -0.025em;
  position: relative;
  overflow: hidden;
}

.btn-primary-enhanced::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;
}

.btn-primary-enhanced:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.35);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn-primary-enhanced:hover::before {
  left: 100%;
}

.btn-primary-enhanced:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px 0 rgba(59, 130, 246, 0.3);
}

/* Secondary button enhancements */
.btn-secondary-enhanced {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  letter-spacing: -0.025em;
  position: relative;
  overflow: hidden;
}

.btn-secondary-enhanced::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;
}

.btn-secondary-enhanced:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px 0 rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-secondary-enhanced:hover::before {
  left: 100%;
}

/* Outline button enhancements */
.btn-outline-enhanced {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  letter-spacing: -0.025em;
  position: relative;
  overflow: hidden;
}

.btn-outline-enhanced:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px 0 rgba(255, 255, 255, 0.1);
}

/* ========================================
   ENHANCED CARD HOVER ANIMATIONS
   ======================================== */

.card-enhanced {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-enhanced:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.card-enhanced:hover::before {
  transform: scaleX(1);
}

/* Card icon enhancements */
.card-icon-enhanced {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1.5rem;
}

.card-enhanced:hover .card-icon-enhanced {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35);
}

/* ========================================
   PROFESSIONAL COLOR SCHEMES
   ======================================== */

:root {
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --secondary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --accent-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced hero gradient */
.hero-gradient-enhanced {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #2563eb 100%);
  position: relative;
}

.hero-gradient-enhanced::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

/* ========================================
   ICON VISIBILITY & FALLBACK ENHANCEMENTS
   ======================================== */

/* Ensure icons are visible with improved contrast */
.icon-enhanced {
  color: #3b82f6;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-enhanced:hover {
  color: #2563eb;
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
  transform: scale(1.05);
}

/* Icon fallback with text labels */
[data-lucide]::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 600;
  color: transparent;
  text-align: center;
  pointer-events: none;
}

/* Show fallback text if icon fails to load */
[data-lucide]:not(.lucide)::after {
  color: currentColor;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 4px;
  border-radius: 4px;
  min-width: 20px;
}

/* ========================================
   TYPOGRAPHY REFINEMENTS
   ======================================== */

.text-enhanced-heading {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-enhanced-subheading {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: #374151;
}

.text-enhanced-body {
  font-weight: 400;
  line-height: 1.6;
  color: #6b7280;
}

/* ========================================
   RESPONSIVE LAYOUT IMPROVEMENTS
   ======================================== */

/* Enhanced mobile navigation */
.mobile-menu-enhanced {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

/* Improved mobile card spacing */
@media (max-width: 768px) {
  .card-enhanced {
    margin-bottom: 1.5rem;
  }

  .card-enhanced:hover {
    transform: translateY(-4px);
  }
}

/* Enhanced tablet layout */
@media (min-width: 768px) and (max-width: 1024px) {
  .card-enhanced {
    min-height: 300px;
  }
}

/* ========================================
   CALL-TO-ACTION OPTIMIZATION
   ======================================== */

.cta-enhanced {
  position: relative;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  border-radius: 16px;
  padding: 3rem;
  overflow: hidden;
}

.cta-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.cta-enhanced::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50px, 50px);
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Enhanced focus states for WCAG AA compliance */
.focus-enhanced:focus {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary-enhanced,
  .btn-secondary-enhanced {
    border: 2px solid currentColor;
  }

  .card-enhanced {
    border: 2px solid #374151;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .card-enhanced,
  .btn-primary-enhanced,
  .btn-secondary-enhanced,
  .icon-enhanced {
    transition: none;
  }

  .card-enhanced:hover {
    transform: none;
  }
}

/* ========================================
   MICRO-INTERACTIONS & ANIMATIONS
   ======================================== */

.fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Loading shimmer effect */
.shimmer {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ========================================
   GLASSMORPHISM EFFECTS
   ======================================== */

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-navigation {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}