/**
 * ELS BV - Modern Enhancements
 * Version 3.0 - Clean Design
 *
 * Simplified, modern enhancements:
 * - Smooth scroll behavior
 * - Clean transitions
 * - Focus-visible accessibility
 * - Reduced motion support
 * - Loading states
 */

/* ========================================================================
   CSS CUSTOM PROPERTIES
   ======================================================================== */

:root {
  /* Transition Curves */
  --els-ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --els-ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);

  /* Durations */
  --els-duration-instant: 100ms;
  --els-duration-fast: 200ms;
  --els-duration-base: 300ms;
  --els-duration-slow: 500ms;
}

/* ========================================================================
   SMOOTH SCROLL
   ======================================================================== */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ========================================================================
   ENHANCED BUTTONS
   ======================================================================== */

.els-btn-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 10px 24px;
  font-family: 'Figtree', Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a2e;
  background: #f6d722;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--els-duration-fast) var(--els-ease-default);
  text-decoration: none;
}

.els-btn-modern:hover {
  background: #e5c71f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(246, 215, 34, 0.3);
}

.els-btn-modern:active {
  transform: translateY(0);
}

.els-btn-modern:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(246, 215, 34, 0.4);
}

/* Secondary modern button */
.els-btn-outline {
  background: transparent;
  color: #1a1a2e;
  border: 2px solid #1a1a2e;
  border-radius: 25px;
}

.els-btn-outline:hover {
  background: #1a1a2e;
  color: #ffffff;
}

/* ========================================================================
   CARD STYLES
   ======================================================================== */

.els-card-modern {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: all var(--els-duration-base) var(--els-ease-default);
}

.els-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: #d0d0d0;
}

/* Product card */
.els-product-card-modern {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: all var(--els-duration-base) var(--els-ease-default);
}

.els-product-card-modern:hover {
  border-color: #f6d722;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Product image */
.els-product-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f5f5f7;
}

.els-product-image-wrapper img {
  transition: transform var(--els-duration-slow) var(--els-ease-default);
}

.els-product-card-modern:hover .els-product-image-wrapper img {
  transform: scale(1.05);
}

/* ========================================================================
   INPUT ENHANCEMENTS
   ======================================================================== */

.els-input-modern {
  position: relative;
  width: 100%;
  padding: 12px 16px;
  font-family: 'Figtree', Arial, sans-serif;
  font-size: 1rem;
  color: #1a1a2e;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  transition: border-color var(--els-duration-fast) var(--els-ease-default),
              box-shadow var(--els-duration-base) var(--els-ease-default);
}

.els-input-modern::placeholder {
  color: #858588;
}

.els-input-modern:focus {
  outline: none;
  border-color: #f6d722;
  box-shadow: 0 0 0 3px rgba(246, 215, 34, 0.15);
}

/* ========================================================================
   NAVIGATION ENHANCEMENTS
   ======================================================================== */

.els-nav-link-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-family: 'Figtree', Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: color var(--els-duration-fast) var(--els-ease-default);
}

.els-nav-link-modern::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #f6d722;
  transform: translateX(-50%);
  transition: width var(--els-duration-base) var(--els-ease-default);
}

.els-nav-link-modern:hover {
  color: #f6d722;
}

.els-nav-link-modern:hover::before {
  width: 100%;
}

.els-nav-link-modern:focus-visible {
  outline: none;
  background: rgba(246, 215, 34, 0.1);
  border-radius: 4px;
}

/* ========================================================================
   LOADING STATES
   ======================================================================== */

.els-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(246, 215, 34, 0.2);
  border-top-color: #f6d722;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.els-spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

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

/* Button loading */
.els-btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.els-btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(26, 26, 46, 0.3);
  border-top-color: #1a1a2e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ========================================================================
   ACCESSIBILITY
   ======================================================================== */

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 2px solid #f6d722;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.els-skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.25rem;
  background: #f6d722;
  color: #1a1a2e;
  font-family: 'Figtree', Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  border-radius: 25px;
  z-index: 10000;
  transition: top var(--els-duration-fast) var(--els-ease-default);
}

.els-skip-link:focus {
  top: 1rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================================================
   UTILITY CLASSES
   ======================================================================== */

.els-no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.els-no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Reveal animation */
.els-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--els-duration-slow) var(--els-ease-out),
              transform var(--els-duration-slow) var(--els-ease-out);
}

.els-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.els-reveal-delay-1 { transition-delay: 0.1s; }
.els-reveal-delay-2 { transition-delay: 0.2s; }
.els-reveal-delay-3 { transition-delay: 0.3s; }
.els-reveal-delay-4 { transition-delay: 0.4s; }
.els-reveal-delay-5 { transition-delay: 0.5s; }

/* ========================================================================
   RESPONSIVE
   ======================================================================== */

@media (max-width: 399px) {
  .els-btn-modern {
    padding: 8px 16px;
    font-size: 0.8125rem;
  }
}
