/* ==========================================================================
   LOCATION CARDS - ENHANCED STYLES
   Reusable component for training location sections
   ========================================================================== */

/* Desktop: Enhanced card styling */
@media (min-width: 769px) {
  .location-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(40, 167, 69, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.04),
      0 8px 16px rgba(0, 0, 0, 0.06) !important;
  }

  /* Green accent bar on top */
  .location-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 50%, #28a745 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
  }

  /* Shimmer effect */
  .location-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
  }

  .location-box:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: rgba(40, 167, 69, 0.25) !important;
    box-shadow:
      0 4px 8px rgba(0, 0, 0, 0.06),
      0 16px 32px rgba(0, 0, 0, 0.12),
      0 0 0 1px rgba(40, 167, 69, 0.15) !important;
  }

  .location-box:hover::before {
    transform: scaleX(1);
  }

  .location-box:hover::after {
    left: 100%;
  }

  .location-box:hover h4 {
    color: #1e7e34;
  }

  /* Icon pulse on hover */
  .location-box:hover i.text-success {
    animation: iconPulse 0.6s ease;
  }

  @keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
  }
}

/* ==========================================================================
   TRAINING LOCATION SECTION BACKGROUND
   ========================================================================== */

section.py-5.bg-light:has(.location-box) {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%) !important;
  position: relative;
}

/* Left floating blob */
section.py-5.bg-light:has(.location-box)::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(40, 167, 69, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatBlob 15s ease-in-out infinite;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .location-box,
  .location-box::before,
  .location-box::after {
    transition: none !important;
    animation: none !important;
  }

  .location-box:hover {
    transform: none !important;
  }

  section.py-5.bg-light:has(.location-box)::before {
    animation: none !important;
  }
}
