/**
 * Dropdown Menu - Projectos
 * Adicionar após mobile-menu.css
 */

/* ============================================
   DESKTOP DROPDOWN (>980px)
   ============================================ */

@media screen and (min-width: 981px) {
  
  .has-dropdown {
    position: relative;
  }

  .has-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    min-width: 200px;
    padding: 0.5em 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    z-index: 10001;
  }

  .has-dropdown:hover .dropdown-menu {
    display: block;
  }

  .has-dropdown .dropdown-menu li {
    display: block !important;
    border-bottom: none !important;
  }

  .has-dropdown .dropdown-menu li a {
    display: block !important;
    padding: 0.6em 1.2em !important;
    height: auto !important;
    line-height: 1.4 !important;
    font-size: 0.9em !important;
    color: #333 !important;
    text-transform: none !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap;
    transition: background 0.2s ease;
  }

  .has-dropdown .dropdown-menu li a:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  /* Seta indicadora no item pai */
  .has-dropdown > .dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.35em;
    vertical-align: middle;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.6;
  }
}

/* ============================================
   MOBILE DROPDOWN (≤980px)
   ============================================ */

@media screen and (max-width: 980px) {

  .has-dropdown .dropdown-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.03);
  }

  .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .has-dropdown .dropdown-menu li {
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  }

  .has-dropdown .dropdown-menu li a {
    padding: 0.8em 1.5em 0.8em 2.5em !important;
    font-size: 0.9em !important;
    text-transform: none !important;
    letter-spacing: 0.03em !important;
    color: #555 !important;
    border-left: 3px solid transparent !important;
  }

  .has-dropdown .dropdown-menu li a:hover,
  .has-dropdown .dropdown-menu li a:focus {
    background: rgba(0, 0, 0, 0.05);
    color: #000 !important;
  }

  /* Seta no toggle mobile */
  .has-dropdown > .dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.4em;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.5;
    transition: transform 0.2s ease;
  }

  .has-dropdown.open > .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}
