/* Glass Morphism Navbar */
.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo */
.logo-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 8px 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-container:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
  transform: translateY(-2px);
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

/* Navigation Links */
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 12px;
  color: #64748b;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.nav-link span {
  position: relative;
  z-index: 1;
}

/* Profile Container */
.profile-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Profile Button */
.profile-button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  padding: 8px 16px;
  color: #1e293b;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  outline: none;
}

.profile-button:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.profile-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.profile-name {
  color: #334155;
  font-weight: 600;
}

.profile-chevron {
  width: 16px;
  height: 16px;
  color: #64748b;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-button:hover .profile-chevron {
  transform: rotate(180deg);
}

/* Profile Dropdown */
.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 200px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}

.profile-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  color: #475569;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

.dropdown-item:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  transform: translateX(4px);
}

.dropdown-form {
  margin: 0;
}

/* Mobile Menu Button with Archery Animation */
.mobile-menu-button {
  padding: 8px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.mobile-menu-button:hover {
  background: rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

/* ARCHERY ANIMATION: DIANA → FLECHA */
.archery-menu {
  width: 24px;
  height: 24px;
  position: relative;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* DIANA: Estado inicial */
.target {
  width: 100%;
  height: 100%;
  position: relative;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.target-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.target-ring:nth-child(1) {
  width: 24px;
  height: 24px;
  background: #FFFFFF;
  border: 1px solid #ccc;
  z-index: 1;
}

.target-ring:nth-child(2) {
  width: 19px;
  height: 19px;
  background: #000000;
  z-index: 2;
}

.target-ring:nth-child(3) {
  width: 14px;
  height: 14px;
  background: #0066FF;
  z-index: 3;
}

.target-ring:nth-child(4) {
  width: 10px;
  height: 10px;
  background: #FF0000;
  z-index: 4;
}

.target-ring:nth-child(5) {
  width: 5px;
  height: 5px;
  background: #FFFF00;
  z-index: 5;
}

/* FLECHA: Estado activo */
.arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background: #8B4513;
  transform: translate(-50%, -50%) scaleX(0);
  transform-origin: left center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.arrow::before {
  content: '';
  position: absolute;
  right: -5px;
  top: -3px;
  width: 0;
  height: 0;
  border-left: 8px solid #444;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.arrow::after {
  content: '';
  position: absolute;
  left: -4px;
  top: -1px;
  width: 5px;
  height: 4px;
  background: #FF4444;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ANIMACIÓN CUANDO SE ACTIVA */
.mobile-menu-button.active .target {
  transform: scale(0.3) rotate(180deg);
  opacity: 0.3;
}

.mobile-menu-button.active .target-ring {
  transform: translate(-50%, -50%) scale(0) rotate(360deg);
}

.mobile-menu-button.active .arrow {
  transform: translate(-50%, -50%) scaleX(1);
  animation: arrowStrike 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes arrowStrike {
  0% {
    transform: translate(-150%, -50%) scaleX(0.5);
  }
  70% {
    transform: translate(-45%, -50%) scaleX(1.1);
  }
  85% {
    transform: translate(-48%, -50%) scaleX(0.95);
  }
  100% {
    transform: translate(-50%, -50%) scaleX(1);
  }
}

/* EFECTO DE IMPACTO */
.mobile-menu-button.active .archery-menu::after {
  content: '💥';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  animation: impact 0.3s ease-out 0.3s both;
  z-index: 15;
}

@keyframes impact {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu-content {
  padding: 20px;
  max-width: screen-xl;
  margin: 0 auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  margin-bottom: 8px;
  border-radius: 16px;
  color: #64748b;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 4px 4px 0;
}

.mobile-nav-link:hover::before {
  transform: scaleY(1);
}

.mobile-nav-link:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  transform: translateX(8px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .glass-nav {
    padding: 0;
  }
  
  .glass-nav > div {
    padding: 12px 16px;
  }
  
  .logo-text {
    font-size: 1.5rem;
  }
}

/* Smooth animations for page load */
.glass-nav {
  animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Focus states for accessibility */
.nav-link:focus,
.profile-button:focus,
.mobile-menu-button:focus,
.dropdown-item:focus,
.mobile-nav-link:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
