/* Dropdown Container */
.dropdown {
  position: relative;
}

/* Dropdown Trigger Button */
.dropbtn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.28s ease;
  position: relative;
}

/* Dropdown Triangle */
.dropbtn::after {
  content: '▼';
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown.open .dropbtn::after {
  transform: rotate(180deg);
}

/* Dropdown Content */
.dropdown-content {
  position: absolute;
  top: 42px;
  left: 0;
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-width: 180px;
  border-radius: var(--border-radius);
  padding: 12px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1200;
}

.dropdown-content.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  animation: dropdownPop 0.3s ease-out;
}

@keyframes dropdownPop {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dropdown Links */
.dropdown-content a {
  color: var(--white);
  padding: 10px 20px;
  display: block;
  transition: all 0.25s ease;
  position: relative;
  margin: 2px 0;
}

.dropdown-content a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent-green), var(--accent-blue));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.dropdown-content a:hover {
  background: rgba(30, 30, 45, 0.7);
  transform: translateX(5px);
  padding-left: 25px;
}

.dropdown-content a:hover::before {
  opacity: 1;
}

/* Mobile Dropdown Fix */
@media (max-width: 880px) {
  .dropdown-content {
    position: fixed;
    top: 60px;
    left: 10px;
    right: 10px;
    min-width: auto;
    width: auto;
    max-width: 350px;
    margin: 0 auto;
  }
}