/* ==========================================================================
   TOP NAVBAR (ARGENTINACASINOS STYLE) - SHARED COMPONENT
   ========================================================================== */
header.ac-navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: #0B2635;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
header.ac-navbar .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}
.ac-navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  box-sizing: border-box;
}
.ac-navbar .ac-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 22px;
}
.ac-navbar .logo-img {
  height: 50px;
  max-height: 52px;
  width: auto;
  aspect-ratio: 3.06 / 1;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* Desktop Navigation List */
.ac-nav-desktop {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  flex-grow: 1;
}
.ac-nav-item {
  position: static; /* Allows full-width mega dropdown across navbar */
  height: 100%;
  display: flex;
  align-items: center;
}
.ac-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 7px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  transition: color 0.15s ease;
  box-sizing: border-box;
}
.ac-nav-btn svg.nav-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
  opacity: 0.9;
}
.ac-nav-btn svg.chevron-down {
  width: 8px;
  height: 4px;
  fill: currentColor;
  transition: transform 0.2s ease;
  margin-left: 3px;
}
/* ArgentinaCasinos animated white underline indicator */
.ac-nav-btn::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background-color: #FFFFFF;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.ac-nav-item:hover .ac-nav-btn::after,
.ac-nav-item.open .ac-nav-btn::after {
  transform: scaleX(1);
}
.ac-nav-item:hover .chevron-down,
.ac-nav-item.open .chevron-down {
  transform: rotate(180deg);
}

/* Mega-Menu Dropdown Shelf (Full-Width Header Shelf) */
.ac-mega-shelf {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  width: 100%;
  background: #0B2635;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 999;
}
.ac-nav-item:hover .ac-mega-shelf,
.ac-nav-item.open .ac-mega-shelf {
  display: block;
}
.ac-shelf-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 16px 16px;
  box-sizing: border-box;
}
.ac-shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
}
.ac-shelf-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  color: #CBD5E1;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.ac-shelf-link span.score-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.14);
  padding: 2px 7px;
  border-radius: 4px;
}
.ac-shelf-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}
.ac-shelf-foot {
  background: #071C28;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 13px 0;
}
.ac-shelf-foot .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.ac-shelf-foot-link {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s ease;
}
.ac-shelf-foot-link svg {
  transition: transform 0.2s ease;
}
.ac-shelf-foot-link:hover {
  color: #38BDF8;
}
.ac-shelf-foot-link:hover svg {
  transform: translateX(4px);
}

/* Right Nav Controls */
.ac-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ac-search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.ac-search-toggler {
  background: transparent;
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease;
}
.ac-search-toggler:hover {
  background: rgba(255, 255, 255, 0.12);
}
.ac-search-expand {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  background: #0B2635;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  padding: 4px 6px 4px 16px;
  z-index: 1001;
  box-sizing: border-box;
}
.ac-search-expand.active {
  display: flex;
}
.ac-search-input {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 13px;
  width: 100%;
  outline: none;
  padding: 4px 0;
  box-sizing: border-box;
}
.ac-search-input::placeholder {
  color: #94A3B8;
}
.ac-search-close {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
}
.ac-search-close:hover {
  color: #FFFFFF;
}
.ac-search-submit {
  background: #10B981;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #022C22;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.ac-search-submit:hover {
  transform: scale(1.05);
}

/* CTA Pill Button (ArgentinaCasinos style) */
.ac-cta-btn {
  background: #10B981;
  color: #022C22 !important;
  font-weight: 800;
  font-size: 12.5px;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.ac-cta-btn:hover {
  background: #059669;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* Mobile Hamburger Button */
.ac-mobile-toggler {
  display: none;
  background: transparent;
  border: none;
  color: #FFFFFF;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ac-mobile-toggler:hover {
  background: rgba(255, 255, 255, 0.1);
}
.ac-mobile-toggler .icon-nav-close {
  display: none;
}
.ac-mobile-toggler.is-active .icon-nav-open {
  display: none;
}
.ac-mobile-toggler.is-active .icon-nav-close {
  display: block;
}

/* Mobile Drawer */
.ac-mobile-drawer {
  display: block;
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0B2635;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 999;
  padding: 16px 20px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  box-sizing: border-box;
}
.ac-mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.ac-mob-search {
  margin-bottom: 20px;
  position: relative;
}
.ac-mob-search form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.ac-mob-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #FFFFFF;
  padding: 12px 46px 12px 14px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ac-mob-search input:focus {
  border-color: #38BDF8;
  background: rgba(255, 255, 255, 0.12);
}
.ac-mob-search input::placeholder {
  color: #94A3B8;
}
.ac-mob-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: #10B981;
  color: #022C22;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease;
  touch-action: manipulation;
}
.ac-mob-search-btn:active {
  transform: translateY(-50%) scale(0.92);
}
.ac-mob-accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ac-mob-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ac-mob-accordion-btn .icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ac-mob-accordion-btn .nav-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.ac-mob-accordion-btn svg.chevron-down {
  width: 10px;
  height: 6px;
  fill: currentColor;
  transition: transform 0.2s ease;
}
.ac-mob-accordion-item.active .chevron-down {
  transform: rotate(180deg);
}
.ac-mob-submenu {
  display: none;
  padding: 4px 0 16px 32px;
  flex-direction: column;
  gap: 10px;
}
.ac-mob-accordion-item.active .ac-mob-submenu {
  display: flex;
}
.ac-mob-submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #CBD5E1;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.ac-mob-submenu a:hover {
  color: #FFFFFF;
}
.ac-mob-submenu a .score-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.14);
  padding: 2px 7px;
  border-radius: 4px;
}
.ac-mob-cta-box {
  margin-top: 24px;
  text-align: center;
}
.ac-mob-cta-box .ac-cta-btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 14px;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  header.ac-navbar { height: 58px; }
  .ac-navbar .ac-logo { margin-right: 12px; }
  .ac-navbar .logo-img { height: 40px; max-height: 42px; }
  .ac-nav-desktop { display: none; }
  .ac-mobile-toggler { display: flex; align-items: center; }
  .ac-nav-right .ac-cta-btn { display: none; }

  /* Mobile Full-Bar Search Overlay */
  .ac-search-expand {
    position: fixed;
    top: 6px;
    left: 8px;
    right: 8px;
    width: auto;
    height: 46px;
    transform: none;
    background: #071C28;
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75);
    z-index: 1005;
    padding: 4px 8px 4px 16px;
  }
  .ac-search-expand .ac-search-input {
    font-size: 14px;
    padding: 6px 0;
  }
}
