/* =========================
   DROPDOWN
========================= */

.dropdown {
  position: relative;
}

/* BUTTON */
.dropbtn {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* MENU */
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 240px;

  background: var(--dark);

  border: 1px solid var(--border);
  border-radius: 16px;

  overflow: hidden;

  box-shadow:
    0 20px 40px rgba(0,0,0,0.35);

  z-index: 999;

  /* IMPORTANT */
  opacity: 0;
  visibility: hidden;

  transform: translateY(10px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s;
}

/* LINKS */
.dropdown-content a {
  display: block;

  padding: 14px 18px;

  color: var(--text-muted);

  text-decoration: none;

  font-size: 0.82rem;
  letter-spacing: 0.04em;

  border-bottom: 1px solid var(--border);

  transition:
    background 0.25s ease,
    color 0.25s ease,
    padding-left 0.25s ease;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

/* HOVER */
.dropdown-content a:hover {
  background: var(--surface);
  color: var(--green);
  padding-left: 24px;
}

/* SHOW MENU */
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* MOBILE */
@media (max-width: 768px) {

  .dropdown-content {
    position: static;

    opacity: 1;
    visibility: visible;
    transform: none;

    display: none;

    width: 100%;

    margin-top: 0.5rem;

    background: transparent;

    border: none;
    box-shadow: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    padding: 10px 16px;
    font-size: 0.78rem;
  }

}