/**
 * MyLoopX Custom Styles - Tailwind Overrides
 * Modern CSS features & enhancements
 */

/* Custom Properties */
:root {
  --header-height: 72px;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glass morphism effects */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient backgrounds */
.gradient-brand {
  background: linear-gradient(135deg, #5d7a8c 0%, #89a498 100%);
}

.gradient-green {
  background: linear-gradient(135deg, #6b9a6f 0%, #89a498 100%);
}

.gradient-rose {
  background: linear-gradient(135deg, #a89093 0%, #bea6a9 100%);
}

/* Animated gradients */
.gradient-animated {
  background: linear-gradient(270deg, #5d7a8c, #6b9a6f, #89a498);
  background-size: 600% 600%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Modern shadows */
.shadow-soft {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.shadow-hard {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Smooth transitions */
.transition-all {
  transition: all 0.3s var(--transition-smooth);
}

/* Hover lift effect */
.hover-lift {
  transition: transform 0.2s var(--transition-smooth), box-shadow 0.2s var(--transition-smooth);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Modern scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* Focus rings (accessibility) */
.focus-ring:focus {
  outline: none;
  ring: 3px;
  ring-color: rgba(93, 122, 140, 0.5);
  ring-offset: 2px;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Mobile-specific UX improvements */
@media (max-width: 768px) {
  /* Smoother touch interactions */
  * {
    -webkit-tap-highlight-color: rgba(93, 122, 140, 0.2);
  }
  
  /* Better touch target sizes */
  a, button, .btn, .carousel-dot {
    min-width: 48px;
    min-height: 48px;
  }
  
  /* Prevent text selection on interactive elements */
  .btn-hero, .btn-hero-outline, .carousel-dot, .mobile-menu-toggle {
    -webkit-user-select: none;
    user-select: none;
  }
  
  /* Smoother animations on mobile */
  .carousel-slide {
    will-change: opacity;
  }
  
  /* Better visual feedback */
  .btn-hero:active, .btn-hero-outline:active {
    opacity: 0.9;
  }
  
  /* Improved section spacing */
  section {
    scroll-margin-top: 100px;
  }
}

/* Modern form inputs */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  @apply transition-all duration-200;
}

input:focus, textarea:focus, select:focus {
  transform: scale(1.01);
  box-shadow: 0 0 0 3px rgba(93, 122, 140, 0.1);
}

/* Pulse animation for notifications */
.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Slide up animation */
.slide-up {
  animation: slideUp 0.5s var(--transition-smooth);
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Fade in */
.fade-in {
  animation: fadeIn 0.6s var(--transition-smooth);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Custom checkbox/radio (modern) */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: #5d7a8c;
  border-color: #5d7a8c;
}

input[type="checkbox"]:checked::after {
  content: "✓";
  display: block;
  text-align: center;
  color: white;
  font-size: 14px;
  line-height: 16px;
}

/* Dark mode support (future) */
@media (prefers-color-scheme: dark) {
  .auto-dark {
    filter: invert(1) hue-rotate(180deg);
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
  }
}

