/* ===================== SIDE MENU ===================== */
.side-menu {
  position: fixed;
  top: 0;
  right: -340px; /* escondido */
  bottom: 0;
  width: 320px;
  height: 100vh;
  background: var(--surface);
  box-shadow: -8px 0 28px rgba(0,0,0,0.55), inset 0 0 8px rgba(207,163,73,0.12);
  transition: right 0.35s ease;
  z-index: 1500;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.side-menu.open { right: 0; }

/* Borda dourada lateral */
.side-menu::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), transparent 70%);
  opacity: 0.9;
}

/* Backdrop */
#menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1400;
  display: none;
}
#menu-backdrop.show { display: block; }

/* Close */
.menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  float: right;
  color: var(--text);
  transition: all .25s ease;
}
.menu-close:hover { color: var(--gold); transform: rotate(90deg); }

.menu-header {
  font-size: 1.15rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin: 16px 0 26px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Actions globais */
.menu-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}
.menu-chip {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all .25s ease;
  box-shadow: var(--shadow-sm);
}
.menu-chip:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 12px rgba(207,163,73,0.6);
}

/* Lista */
.menu-list {
  list-style: none;
  padding: 0; margin: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.menu-list::-webkit-scrollbar { display: none; }

.menu-list li {
  padding: 16px 0;
  cursor: pointer;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  transition: all .25s ease;
}
.menu-list li:hover {
  background: rgba(207,163,73,0.08);
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  color: var(--gold);
}
.menu-list li.active {
  background: rgba(207,163,73,0.15);
  border-left: 3px solid var(--gold);
  font-weight: 600;
  color: var(--gold);
}
.menu-list .coming {
  opacity: .7;
  font-style: italic;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu-list .coming::before {
  content: "";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .8rem;
  color: var(--gold);
}

/* Footer */
.menu-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.auth-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.full-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff5cc, var(--gold));
  color: #000;
  box-shadow: 0 6px 16px rgba(207,163,73,0.3);
  transition: all 0.3s ease;
}
.full-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(207,163,73,0.45);
}

/* User Profile */
.user-profile {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
  margin-bottom: 20px;
}
.user-profile:hover { box-shadow: var(--shadow-md); }
.user-profile .avatar-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 0 6px rgba(207,163,73,0.4);
}
.user-profile .name {
  font-weight: 700; font-size: .95rem; color: var(--text);
}
.user-profile .role {
  font-size: .85rem; color: var(--gold);
  font-weight: 500;
}
.logout-btn {
  margin-left: auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all .25s ease;
}
.logout-btn:hover {
  background: var(--gold);
  color: var(--black);
  transform: rotate(-10deg) scale(1.05);
  box-shadow: 0 0 10px rgba(207,163,73,0.5);
}

/* ===================== HEADER ===================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1500;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}
header.scrolled {
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* ===================== PREMIUM HAMBURGER ===================== */
.menu-button {
  background: transparent;
  border: 2px solid var(--gold);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.menu-button:hover {
  background: rgba(212,175,55,0.12);
  box-shadow: 0 0 12px rgba(212,175,55,0.45);
}

/* efeito metálico pulsante */
.menu-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg,
    transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  animation: shimmer 4s infinite linear;
}
@keyframes shimmer {
  from { left: -100%; }
  to { left: 100%; }
}

.hamburger-svg {
  overflow: visible;
}
.hamburger-svg .line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 6;
  stroke-linecap: round;
  transition: all 0.35s ease;
}
.menu-button.active .top {
  transform: translateY(15px) rotate(45deg);
}
.menu-button.active .middle {
  opacity: 0;
}
.menu-button.active .bottom {
  transform: translateY(-15px) rotate(-45deg);
}
