/* ============================================
   Header - Lucinha Modas
   Logo + Menu Mobile Premium
   ============================================ */

/* Logo - evita overflow e mantém proporção */
img[alt] {
  max-width: 100%;
}

.logo-image {
  max-height: 140px;
  height: auto;
}

/* Header mobile: logo contida, sem ultrapassar o header */
@media (max-width: 767px) {
  header .logo-image {
    max-height: 36px !important;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
  }
  header nav {
    align-items: center;
  }
}

/* Focus ring para botões do menu */
#jsMenuToggle:focus,
#jsMenuClose:focus {
  outline: 2px solid rgba(255, 215, 0, 0.15);
  outline-offset: 2px;
}

/* ============================================
   Mobile Menu Premium - Efeitos de Transparência
   ============================================ */

.mobile-menu-premium {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.4s ease;
}

.mobile-menu-premium.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Camada de fundo - imagem de moda */
.mobile-menu-bg {
  z-index: 0;
  background-color: #1a1a1a; /* Fallback color */
}

.mobile-menu-bg img {
  object-position: center 30%;
}

/* Overlay glassmorphism - transparência com blur */
.mobile-menu-overlay {
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.15) 0%,
    rgba(10, 10, 10, 0.02) 40%,
    rgba(10, 10, 10, 0.2) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Conteúdo do menu - posicionado explicitamente sobre o overlay */
.mobile-menu-content {
  position: absolute;
  inset: 10px; /* Margem para ver a borda/overlay */
  z-index: 10;
  display: flex;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(244, 192, 37, 0.3); /* Premium Gold Border */
  box-shadow: inset 0 0 30px rgba(244, 192, 37, 0.05), 0 0 20px rgba(0,0,0,0.5);
  border-radius: 4px;
}

/* Nav com espaço para os links */
.mobile-menu-nav {
  flex: 1;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.mobile-menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Links do menu - efeito hover elegante */
.mobile-menu-link {
  position: relative;
  letter-spacing: 0.1em;
  font-size: 1.5rem; /* Maior destaque */
  font-weight: 300;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mobile-menu-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 192, 37, 0.9), transparent);
  transition: width 0.3s ease;
}

.mobile-menu-link:hover::before {
  width: 24px;
}

.mobile-menu-link:hover {
  transform: translateX(4px);
}

/* Botões CTA do menu */
.mobile-menu-btn-primary {
  box-shadow: 0 4px 20px rgba(244, 192, 37, 0.25);
}

.mobile-menu-btn-primary:hover {
  box-shadow: 0 6px 28px rgba(244, 192, 37, 0.4);
  transform: translateY(-1px);
}

.mobile-menu-btn-secondary {
  backdrop-filter: blur(8px);
}

.mobile-menu-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

/* Botão fechar - efeito sutil */
.mobile-menu-close {
  transition: transform 0.2s ease, color 0.2s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-close:hover {
  transform: rotate(90deg);
}

/* Links do menu - sempre visíveis */
.mobile-menu-link {
  color: rgba(255, 255, 255, 0.95) !important;
  text-decoration: none;
}

.mobile-menu-link:hover {
  color: #f4c025 !important;
}

/* CTA do menu - visível */
.mobile-menu-cta {
  flex-shrink: 0;
}

/* ============================================
   Global UI/UX Improvements
   ============================================ */

html {
  scroll-behavior: smooth;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Apply to main content by default if class is present */
main.fade-in {
  opacity: 0; /* Start hidden to prevent flash */
}
