/* mobile-menu.css — bottom dock + sheet (estilo creativeagency) */

.mob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mob-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mob-overlay[hidden] {
  display: none !important;
}

.mob-overlay.active[hidden] {
  display: block !important;
}

/* Sheet sobe por cima do dock */
.mob-menu {
  position: fixed;
  left: 0.5rem;
  right: 0.5rem;
  bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  top: auto;
  max-height: min(72svh, 560px);
  width: auto;
  z-index: 1500;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
  overflow: hidden;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

.mob-menu.active {
  transform: translateY(0);
  opacity: 1;
}

.mob-menu[hidden] {
  display: none !important;
}

.mob-menu.active[hidden] {
  display: flex !important;
}

.mob-menu-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mob-menu-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.mob-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.mob-sheet-title {
  margin: 0;
  padding: 0.85rem 1rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.mob-sheet-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0.25rem 0 0.5rem;
  overscroll-behavior: contain;
}

.mob-sheet-item {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
  text-decoration: none;
}

.mob-sheet-item:last-child {
  border-bottom: 0;
}

.mob-sheet-item:hover,
.mob-sheet-item:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.mob-sheet-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  overflow: hidden;
}

.mob-sheet-thumb--privacy {
  background: linear-gradient(135deg, #3a1a00, #ff6b00);
  color: #fff;
}

.mob-sheet-thumb--videos {
  background: linear-gradient(135deg, #2a0508, #e50914);
  color: #fff;
}

.mob-sheet-thumb--of {
  background: linear-gradient(135deg, #003246, #00aff0);
  color: #fff;
}

.mob-sheet-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.mob-sheet-copy strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.mob-sheet-copy span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mob-sheet-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e06c61;
  flex-shrink: 0;
  align-self: start;
  margin-top: 0.35rem;
}

.mob-menu-footer {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mob-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── Bottom dock ── */
.mob-dock {
  display: none;
}

@media (max-width: 899px) {
  .mob-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1600;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(6.5rem, 1.35fr);
    align-items: stretch;
    min-height: 58px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mob-dock-btn {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.15rem;
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 58px;
    text-decoration: none;
    cursor: pointer;
  }

  .mob-dock-btn:hover,
  .mob-dock-btn:focus-visible,
  .mob-dock-btn.is-active {
    color: #e06c61;
  }

  .mob-dock-cta {
    display: grid;
    place-items: center;
    background: #e06c61;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    min-height: 58px;
  }

  .mob-dock-cta:hover {
    filter: brightness(1.05);
  }

  /* espaço para o dock não cobrir conteúdo / WA */
  body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }

  .wa-float {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (min-width: 900px) {
  .mob-dock {
    display: none !important;
  }
}
