/* ============================================
   header.css — Betano App Brasil Review
   Header sticky + navegação + mobile menu
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background var(--transition-base);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.header__logo:hover {
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.92;
}

.header__logo svg {
  height: 28px;
  width: auto;
}

/* Navegação desktop */
.header__nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.header__nav a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,0.88);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--color-white);
  background: rgba(255,255,255,0.15);
  text-decoration: none;
}

/* CTA no header */
.header__cta {
  display: none;
  flex-shrink: 0;
  margin-left: 12px;
}

.header__cta .btn {
  padding: 10px 20px;
  font-size: 0.85rem;
  min-height: 40px;
}

/* Mobile CTA always visible */
.header__mobile-cta {
  display: flex;
  flex-shrink: 0;
}

.header__mobile-cta .btn {
  padding: 8px 16px;
  font-size: 0.8rem;
  min-height: 38px;
}

/* Hamburger */
.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  margin-left: 8px;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-base);
  margin: 3px 0;
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

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

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-dark);
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
  animation: fadeInUp 0.2s ease;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 16px;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition-fast);
}

.mobile-menu a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--color-white);
  text-decoration: none;
}

.mobile-menu a .menu-icon {
  margin-right: 10px;
}

.mobile-menu__cta {
  margin-top: 24px;
}

.mobile-menu__cta .btn {
  width: 100%;
}

/* Body quando menu aberto */
body.menu-open {
  overflow: hidden;
}

/* Desktop breakpoint */
@media (min-width: 1025px) {
  .header__nav {
    display: flex;
  }

  .header__cta {
    display: flex;
  }

  .header__mobile-cta {
    display: none;
  }

  .header__burger {
    display: none;
  }
}

/* Tablet breakpoint */
@media (min-width: 601px) and (max-width: 1024px) {
  .header__nav {
    display: none;
  }

  .header__cta {
    display: flex;
  }

  .header__mobile-cta {
    display: none;
  }
}