/* SharkSales Header Premium - Glassmorphism & Modern Design */

/* === HEADER PREMIUM COM GLASSMORPHISM === */
.sharksales-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ss-space-4);
  padding: var(--ss-space-4) var(--ss-space-6);
  margin: 0;
  border-radius: 0;
  
  /* Glassmorphism premium */
  background: rgba(18, 30, 65, 0.85) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  
  /* Borda com gradiente */
  border: none;
  border-bottom: 1px solid rgba(111, 129, 255, 0.3);
  
  /* Sombras em camadas */
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(111, 129, 255, 0.2) inset;
  
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  
  /* FIXO NO TOPO */
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Efeito de luz superior */
.sharksales-site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(130, 180, 255, 0.8) 30%,
    rgba(100, 180, 255, 0.6) 70%,
    transparent 100%
  );
  animation: ss-header-glow 3s ease-in-out infinite;
}

@keyframes ss-header-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Linha inferior sutil */
.sharksales-site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(111, 129, 255, 0.4) 50%,
    transparent 100%
  );
}

/* Hover effect no header */
.sharksales-site-header:hover {
  border-color: rgba(111, 129, 255, 0.5);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(111, 129, 255, 0.3) inset,
    0 0 80px rgba(130, 180, 255, 0.25);
}

/* === LOGO E MARCA === */
.sharksales-site-header .brand-area {
  display: flex;
  align-items: center;
  gap: var(--ss-space-3);
  position: relative;
  z-index: 1;
}

/* Container da logo com glassmorphism */
.sharksales-site-header .brand-area .logo {
  width: 80px;
  height: 80px;
  padding: var(--ss-space-2);
  background: linear-gradient(135deg, rgba(130, 180, 255, 0.15), rgba(100, 180, 255, 0.1));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(111, 129, 255, 0.3);
  border-radius: 12px;
  box-shadow: 
    0 4px 16px rgba(130, 180, 255, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: all 0.3s ease;
  object-fit: contain;
}

.sharksales-site-header .brand-area .logo:hover {
  background: linear-gradient(135deg, rgba(130, 180, 255, 0.25), rgba(100, 180, 255, 0.2));
  border-color: rgba(111, 129, 255, 0.5);
  box-shadow: 
    0 8px 24px rgba(130, 180, 255, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 30px rgba(130, 180, 255, 0.4);
}

/* Texto da marca */
.sharksales-site-header .brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

/* Título com gradiente premium */
.sharksales-site-header .site-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: var(--ss-font-weight-extrabold);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.sharksales-site-header .brand-text:hover .site-title {
  background: linear-gradient(135deg, #ffffff 0%, #d8d6f0 50%, #0286fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 8px rgba(130, 180, 255, 0.3));
}

/* Subtítulo premium */
.sharksales-site-header .site-sub {
  font-size: 0.7rem;
  font-weight: var(--ss-font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(111, 129, 255, 0.9), rgba(167, 139, 250, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.9;
}

/* === NAVEGAÇÃO PREMIUM === */
.sharksales-nav {
  display: flex;
  align-items: center;
  gap: var(--ss-space-2);
  position: relative;
  z-index: 1;
}

/* Links de navegação com glassmorphism */
.sharksales-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: var(--ss-font-weight-semibold);
  font-size: var(--ss-font-size-sm);
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  letter-spacing: 0.3px;
  
  /* Glassmorphism sutil */
  background: rgba(30, 35, 66, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(111, 129, 255, 0.15);
  
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

/* Efeito shimmer nos links */
.sharksales-nav .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
}

.sharksales-nav .nav-link:hover::before {
  left: 100%;
}

/* Hover state */
.sharksales-nav .nav-link:hover {
  color: white;
  background: rgba(40, 45, 86, 0.6);
  border-color: rgba(111, 129, 255, 0.4);
  box-shadow: 
    0 4px 16px rgba(130, 180, 255, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform: translateY(-2px);
}

/* Estado ativo com gradiente */
.sharksales-nav .nav-link.active {
  color: white;
  font-weight: var(--ss-font-weight-bold);
  background: linear-gradient(135deg, rgba(130, 180, 255, 0.3), rgba(100, 180, 255, 0.2));
  border: 1px solid rgba(111, 129, 255, 0.5);
  box-shadow: 
    0 6px 20px rgba(130, 180, 255, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 30px rgba(130, 180, 255, 0.2);
}

/* Linha inferior no link ativo */
.sharksales-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 1.2rem;
  right: 1.2rem;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(130, 180, 255, 0.8), 
    rgba(167, 139, 250, 0.8), 
    rgba(130, 180, 255, 0.8)
  );
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(130, 180, 255, 0.8);
  animation: ss-active-glow 2s ease-in-out infinite;
}

@keyframes ss-active-glow {
  0%, 100% {
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(130, 180, 255, 0.6);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 16px rgba(130, 180, 255, 0.9);
  }
}

/* === RESPONSIVO === */
@media (max-width: 1024px) {
  .sharksales-site-header {
    padding: var(--ss-space-4);
  }
  
  .sharksales-nav .nav-link {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .sharksales-site-header {
    flex-direction: row;
    padding: var(--ss-space-3);
    gap: var(--ss-space-2);
  }
  
  .sharksales-site-header .brand-area .logo {
    width: 40px;
    height: 40px;
  }
  
  .sharksales-site-header .site-title {
    font-size: 1.1rem;
  }
  
  .sharksales-site-header .site-sub {
    font-size: 0.65rem;
  }
  
  .sharksales-nav {
    gap: var(--ss-space-1);
  }
  
  .sharksales-nav .nav-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .sharksales-nav .nav-link.active::after {
    left: 0.8rem;
    right: 0.8rem;
  }
}

@media (max-width: 480px) {
  .sharksales-nav .nav-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
  }
  
  .sharksales-site-header .site-sub {
    display: none;
  }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  .sharksales-site-header::before,
  .sharksales-nav .nav-link.active::after {
    animation: none !important;
  }
  
  .sharksales-site-header,
  .sharksales-nav .nav-link,
  .sharksales-site-header .brand-area .logo,
  .sharksales-site-header .site-title {
    transition: none !important;
  }
}

/* === STICKY BEHAVIOR === */
.sharksales-site-header.ss-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-bottom: var(--ss-space-6);
}

/* Efeito ao scrollar (mais compacto) */
.sharksales-site-header.ss-scrolled {
  padding: var(--ss-space-3) var(--ss-space-6);
  background: rgba(15, 20, 40, 0.95) !important;
  backdrop-filter: blur(32px) saturate(200%);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(111, 129, 255, 0.3) inset,
    0 0 40px rgba(130, 180, 255, 0.2);
}

.sharksales-site-header.ss-scrolled .brand-area .logo {
  width: 40px;
  height: 40px;
}

.sharksales-site-header.ss-scrolled .site-title {
  font-size: 1.25rem;
}
