/**
 * Button Component Styles - Modern Brand Colors
 * 
 * All button styles and hover effects with brand color integration
 * Use/* Accent Button with Brand Colors - Enhanced */
.btn-accent {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  background: linear-gradient(90deg, var(--color-accent-500), var(--color-accent-600));
  color: white;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

/* Primary Button with Brand Gradient - Enhanced */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-600));
  color: white;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--color-primary-600), var(--color-primary-700));
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  color: white;
}

.btn-primary::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:hover::before {
  left: 100%;
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(92, 225, 230, 0.3);
}

/* Button Layout Utilities */
.btn-primary,
.btn-secondary,
.btn-accent {
  /* Ensure buttons always display correctly in any container */
  align-self: flex-start;
  flex-shrink: 0;
}

/* Button container utilities */
.btn-container-center {
  display: flex;
  justify-content: center;
}

.btn-container-left {
  display: flex;
  justify-content: flex-start;
}

.btn-container-right {
  display: flex;
  justify-content: flex-end;
}

/* Button Icon Styling - Global for all buttons */
.btn-icon {
  display: inline-block;
  margin-left: 0.375rem;
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.btn-primary:hover .btn-icon,
.btn-secondary:hover .btn-icon,
.btn-accent:hover .btn-icon {
  transform: translateX(0.25rem);
}

/* Secondary Button with Brand Colors - Enhanced */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  background: linear-gradient(90deg, var(--color-secondary-500), var(--color-secondary-600));
  color: white;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: linear-gradient(90deg, var(--color-secondary-600), var(--color-secondary-700));
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  color: white;
}

.btn-secondary::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:hover::before {
  left: 100%;
}

/* Accent Button for Call-to-Actions - Enhanced */
.btn-accent {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(90deg, var(--color-accent-200), var(--color-accent-300));
  color: white;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-accent:hover {
  background: linear-gradient(90deg, var(--color-accent-300), var(--color-accent-400));
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  color: white;
}

.btn-accent::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-accent:hover::before {
  left: 100%;
}

/* Outline Button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background: transparent;
  color: var(--color-primary-600);
  border: 2px solid var(--color-primary-200);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--color-primary-200);
  color: white;
  transform: translateY(var(--lift-small));
}

/* Button hover shimmer effect */
.btn-hover-effect {
  position: relative;
  overflow: hidden;
}

.btn-hover-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s var(--ease-smooth);
}

.btn-hover-effect:hover::before {
  left: 100%;
}

/* Enhanced hover effect for lift elements */
.hover-lift {
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.hover-lift:hover,
.hover-lift.hover-active {
  transform: translateY(var(--lift-small)) scale(1.02);
}

/* Button Sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* Button States */
.btn-loading {
  position: relative;
  color: transparent;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-disabled:hover {
  transform: none !important;
}

/* Responsive button behavior */
@media (max-width: 768px) {
  .btn-responsive {
    width: 100%;
    justify-content: center;
  }
  
  /* Ensure all buttons are properly sized on mobile */
  .btn-primary,
  .btn-secondary,
  .btn-accent {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
  
  /* Reduce hover effects on mobile for better performance */
  @media (hover: none) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-accent:hover {
      transform: none;
    }
    
    .btn-primary::before,
    .btn-secondary::before,
    .btn-accent::before {
      display: none;
    }
  }
}

/* Reduced motion support for all buttons */
@media (prefers-reduced-motion: reduce) {
  .btn-primary,
  .btn-secondary,
  .btn-accent,
  .btn-outline {
    transition: none !important;
  }
  
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-accent:hover {
    transform: none !important;
  }
  
  .btn-primary::before,
  .btn-secondary::before,
  .btn-accent::before {
    transition: none !important;
  }
}
