/* AyaSend Global Styles - Futuristic Brand Theme */

/* Brand Link Hover Effect - Used for navigation and footer links */
.link-emerald {
  position: relative;
  color: rgb(51 65 85);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-decoration: none;
}

.dark .link-emerald {
  color: rgb(226 232 240);
}

.link-emerald:hover,
.link-emerald:focus-visible {
  color: #0066FF;
}

.link-emerald::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #00CFFF 0%, #0066FF 100%);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.link-emerald:hover::after,
.link-emerald:focus-visible::after {
  width: 100%;
}

/* Optional glow for desktop hover */
@media (hover: hover) {
  .link-emerald:hover {
    text-shadow: 0 0 6px rgba(0, 207, 255, 0.4);
  }
}

.link-emerald:focus-visible {
  outline: 2px solid rgba(0, 102, 255, 0.5);
  outline-offset: 4px;
}

/* Button pulse animation (brand effect) */
.pulse-emerald {
  animation: pulseBrand 1s ease-out;
}

@keyframes pulseBrand {
  0% {
    transform: scale(0.98);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(0, 207, 255, 0.6);
  }
  70% {
    transform: scale(1.02);
    opacity: 1;
    box-shadow: 0 0 0 8px rgba(0, 207, 255, 0);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 207, 255, 0);
  }
}

/* Accessible focus ring for buttons and interactive elements */
.focus-emerald:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.45);
  border-radius: 0.5rem;
}

/* Smooth global transitions */
html {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Fix country picker dropdown visibility on desktop - prevent parent clipping */
#controls {
  overflow: visible !important;
  position: relative;
  z-index: 20;
}

/* Optional: Brand button hover glow enhancement */
.btn-emerald-glow:hover {
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.4), 0 4px 12px rgba(0, 207, 255, 0.2);
}

/* Footer link variant (smaller, lighter) */
.link-emerald-sm {
  position: relative;
  color: #64748b;
  font-size: 12px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.dark .link-emerald-sm {
  color: #94a3b8;
}

.link-emerald-sm:hover {
  color: #0066FF;
  text-shadow: 0 0 4px rgba(0, 207, 255, 0.3);
}

.link-emerald-sm::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0%;
  height: 1.5px;
  background: linear-gradient(90deg, #00CFFF 0%, #0066FF 100%);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.link-emerald-sm:hover::after {
  width: 100%;
}

.link-emerald-sm:focus {
  outline: 2px solid rgba(0, 102, 255, 0.4);
  outline-offset: 2px;
  color: #0066FF;
}
