/* ===== MENU HAMBÚRGUER MODERNO E PADRONIZADO ===== */

/* Overlay do Menu */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Container do Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
  z-index: 9999;
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.show {
  right: 0;
}

/* Header do Menu */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    135deg,
    rgba(22, 163, 74, 0.1),
    rgba(16, 185, 129, 0.05)
  );
}

.mobile-menu-logo {
  height: 40px;
  width: auto;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

/* Conteúdo do Menu */
.mobile-menu-content {
  padding: 2rem;
}

.mobile-menu-item {
  margin-bottom: 1rem;
}

.mobile-menu-item a {
  display: block;
  padding: 1rem 1.5rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-menu-item a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(22, 163, 74, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.mobile-menu-item a:hover::before {
  left: 100%;
}

.mobile-menu-item a:hover {
  background: rgba(22, 163, 74, 0.1);
  transform: translateX(10px);
  color: #16a34a;
}

.mobile-menu-item a.active {
  background: linear-gradient(
    135deg,
    rgba(22, 163, 74, 0.2),
    rgba(16, 185, 129, 0.1)
  );
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

/* Submenu */
.mobile-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-submenu-toggle i {
  transition: transform 0.3s ease;
}

.mobile-submenu-toggle.active i {
  transform: rotate(180deg);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0.5rem;
}

.mobile-submenu.show {
  max-height: 500px;
}

.mobile-submenu-content {
  padding-left: 1rem;
}

.mobile-submenu-column {
  margin-bottom: 1.5rem;
}

.mobile-submenu-column h4 {
  color: #16a34a;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(22, 163, 74, 0.1);
  border-radius: 10px;
  border-left: 3px solid #16a34a;
}

.mobile-submenu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-submenu-column li {
  margin-bottom: 0.5rem;
}

.mobile-submenu-column a {
  display: block;
  padding: 0.75rem 1rem;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  border-left: 2px solid transparent;
}

.mobile-submenu-column a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-left-color: #16a34a;
  transform: translateX(5px);
}

/* Botão Hambúrguer */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  margin: 3px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

/* Estados do Hambúrguer */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsividade */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .mobile-menu {
    max-width: 100%;
  }

  .mobile-menu-header {
    padding: 1.5rem;
  }

  .mobile-menu-content {
    padding: 1.5rem;
  }
}

/* Animações de Entrada */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

.mobile-menu.show {
  animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efeitos de Scroll */
.mobile-menu::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu::-webkit-scrollbar-thumb {
  background: rgba(22, 163, 74, 0.3);
  border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(22, 163, 74, 0.5);
}
