/* ============================================
   EE88 Header CTA + Sticky Optimizations
   Scoped: ONLY header-wrapper / top-bar classes
   ============================================ */

/* === CTA container (header right) === */
.ee88-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

/* === CTA base === */
.ee88-header-cta .ee88-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 25px;
  letter-spacing: 0.3px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  border: 2px solid transparent;
}

/* === Register CTA (primary, gold gradient) === */
.ee88-header-cta .ee88-btn-register {
  background: linear-gradient(135deg, #d4af37 0%, #f0c75e 100%);
  color: #090101 !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}
.ee88-header-cta .ee88-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.55);
  filter: brightness(1.08);
  background: linear-gradient(135deg, #e6c145 0%, #ffd76b 100%);
}

/* === Login CTA (secondary, outlined) === */
.ee88-header-cta .ee88-btn-login {
  background: transparent;
  color: #1a1a1a !important;
  border: 2px solid #1a1a1a;
}
.ee88-header-cta .ee88-btn-login:hover {
  background: #1a1a1a;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* === Mobile CTA (smaller, icon-only option) === */
.ee88-header-cta--mobile .ee88-btn--sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* === Sticky Header shrink === */
.header.has-sticky.header-stuck .header-main {
  min-height: 65px;
}
.header.has-sticky.header-stuck .header-bg-img,
.header.has-sticky.header-stuck .header-bg-color {
  transition: all 0.3s ease;
}
.header.has-sticky.header-stuck .nav > li > a {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

/* Smooth transition for sticky shrink */
.header-main {
  transition: min-height 0.3s ease;
}

/* === Top Bar slim & readable === */
.nav-top { font-size: 13px; }

/* === Top bar contact info === */
.ee88-topbar-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.ee88-topbar-contact i { color: #d4af37; margin-right: 3px; }
.ee88-topbar-contact a {
  color: #d4af37;
  text-decoration: none;
  font-weight: 600;
}

/* === Mobile topbar === */
.ee88-mobile-topbar {
  display: inline-block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  padding: 4px 12px;
}
.ee88-mobile-topbar i { color: #d4af37; margin-right: 2px; }
.ee88-mobile-topbar__sep { margin: 0 6px; opacity: 0.5; }

/* === Hide duplicate menu in mobile sidebar (top-level menu) === */
.mobile-sidebar #mega-menu,
.mobile-sidebar .nav-sidebar {
  /* Already handled by mobile_sidebar config but keep safe */
}

/* === Active nav item indicator === */
.header .nav > .active > a,
.header .nav > .current-menu-item > a {
  color: #d4af37 !important;
}

/* === Responsive adjustments === */

/* Tablet - hide CTA labels on small screens but keep icons */
@media (max-width: 1024px) and (min-width: 769px) {
  .ee88-header-cta .ee88-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  .ee88-header-cta .ee88-btn-login {
    padding: 8px 14px;
  }
}

/* Mobile - small icon-only CTA if needed */
@media (max-width: 768px) {
  .ee88-header-cta {
    gap: 6px;
    margin-left: 4px;
  }
  .ee88-header-cta:not(.ee88-header-cta--mobile) .ee88-btn {
    padding: 7px 12px;
    font-size: 12px;
    gap: 4px;
  }
  .ee88-header-cta:not(.ee88-header-cta--mobile) .ee88-btn i {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .ee88-header-cta:not(.ee88-header-cta--mobile) .ee88-btn span {
    display: none;
  }
  .ee88-header-cta:not(.ee88-header-cta--mobile) .ee88-btn {
    padding: 7px 9px;
    min-width: 36px;
  }
  .ee88-header-cta:not(.ee88-header-cta--mobile) .ee88-btn-register {
    background: linear-gradient(135deg, #d4af37 0%, #f0c75e 100%);
  }
}

/* === Mobile CTA stack (in mobile sidebar) === */
.ee88-mobile-cta-block {
  padding: 24px 18px;
  text-align: center;
  background: linear-gradient(135deg, #090101 0%, #1a0a0a 100%);
  border-radius: 8px;
  margin: 0 16px 20px 16px;
  border: 1px solid rgba(212, 175, 55, 0.25);
}
.ee88-mobile-cta-block__title {
  color: #d4af37 !important;
  font-weight: 700 !important;
  margin: 0 0 16px 0 !important;
  font-size: 16px !important;
  letter-spacing: 0.5px;
}
.ee88-mobile-cta-block__btn {
  display: block;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 25px;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}
.ee88-mobile-cta-block__btn--primary {
  background: linear-gradient(135deg, #d4af37 0%, #f0c75e 100%);
  color: #090101 !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
  margin-bottom: 10px;
}
.ee88-mobile-cta-block__btn--primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.55);
  transform: translateY(-1px);
}
.ee88-mobile-cta-block__btn--secondary {
  border: 2px solid #d4af37;
  color: #d4af37 !important;
  background: transparent;
}
.ee88-mobile-cta-block__btn--secondary:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* === Performance: will-change for hover transforms === */
.ee88-header-cta .ee88-btn {
  will-change: transform, box-shadow;
}
