/**
 * HypeBonus.it - Navbar Styles
 * Stili unificati per la navbar del sito
 */

/* ========================================
   NAVBAR BASE STYLES
   ======================================== */

/* Glass Effect Background */
.nav-glass {
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

/* ========================================
   DESKTOP NAVIGATION LINKS
   ======================================== */

.nav-link {
  position: relative;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  border-radius: 3px 3px 0 0;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link svg {
  transition: transform 0.3s ease;
}

.nav-link:hover svg {
  transform: scale(1.1);
}

/* ========================================
   CTA BUTTON
   ======================================== */

.nav-cta {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

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

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

/* ========================================
   DROPDOWN MENU
   ======================================== */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  min-width: 220px;
  background: rgba(17, 24, 39, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #d1d5db;
  font-size: 14px;
  transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.nav-dropdown-item svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.nav-dropdown-item:hover svg {
  opacity: 1;
}

/* ========================================
   HAMBURGER MENU ANIMATION
   ======================================== */

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  cursor: pointer;
}

.hamburger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 8px; width: 75%; }
.hamburger-line:nth-child(3) { top: 16px; width: 50%; }

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
  width: 100%;
}

/* ========================================
   MOBILE MENU
   ======================================== */

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background: rgba(139, 92, 246, 0.2);
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  opacity: 0.8;
}

/* ========================================
   LIVE INDICATOR ANIMATION
   ======================================== */

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.live-indicator {
  animation: live-pulse 2s ease-in-out infinite;
}

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

@media (max-width: 1024px) {
  .nav-dropdown-menu {
    min-width: 200px;
  }
}

@media (max-width: 768px) {
  .nav-glass {
    background: rgba(3, 7, 18, 0.95);
  }
}
