/* ===== TWO-ROW NAVIGATION REDESIGN ===== */

/* Hide the old WP nav completely */
#masthead,
#masthead .header-main,
#masthead .search-toggle,
#masthead .search-box-wrapper,
#primary-navigation {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  border: none !important;
  line-height: 0 !important;
  font-size: 0 !important;
}
/* Kill any gap between nav and content */
.site-main,
#main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.content-area,
.site-content,
#content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Row 1: Header bar */
.nav-row1 {
  background: #1e2a38;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-row1-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-row1-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-row1-logo img {
  height: 42px;
  width: auto;
  mix-blend-mode: lighten;
}
.nav-row1-logo span {
  font-size: 16px;
  font-weight: 700;
  color: #d4a843;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.nav-row1-tagline {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  flex: 1;
  padding: 0 30px;
}
.nav-row1-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.nav-row1-links a {
  color: #c8d0dc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-row1-links a:hover {
  color: #ffffff;
}

/* Row 2: Category nav bar */
.nav-row2 {
  background: linear-gradient(180deg, #2a4a5e 0%, #1f3d4f 100%);
  border-bottom: 2px solid rgba(255,255,255,0.1);
}
.nav-row2-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.nav-cat {
  flex: 1;
  position: relative;
  text-align: center;
}
.nav-cat > a,
.nav-cat > .nav-cat-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
  background: none;
  width: 100%;
  box-sizing: border-box;
}
.nav-cat > a:hover,
.nav-cat > .nav-cat-toggle:hover,
.nav-cat:hover > a,
.nav-cat:hover > .nav-cat-toggle {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}
.nav-cat-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Dropdown */
.nav-cat-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #1a2d3d;
  border: none;
  border-top: 2px solid #d4a843;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 10002;
  padding: 6px 0;
}
.nav-cat:hover .nav-cat-dropdown {
  display: block;
}
.nav-cat-dropdown a {
  display: block;
  padding: 9px 18px;
  color: #c8d0dc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}
.nav-cat-dropdown a:hover {
  background: rgba(212,168,67,0.1);
  color: #d4a843;
}

/* ===== BONUS OFFERS WIDGET ===== */
.nav-bonus-trigger {
  position: relative;
  cursor: pointer;
  z-index: 10003;
  pointer-events: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(212,168,67,0.15);
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: 50%;
  font-size: 20px;
  transition: background 0.2s, transform 0.2s;
}
.nav-bonus-trigger:hover {
  background: rgba(212,168,67,0.3);
  transform: scale(1.1);
}
.nav-bonus-trigger,
.nav-bonus-trigger:focus,
.nav-bonus-trigger:active,
.nav-bonus-dropdown,
.nav-bonus-card {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}
.nav-bonus-trigger .bonus-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #e53e3e;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nav-bonus-dropdown {
  display: none;
  position: fixed;
  top: 110px;
  right: 20px;
  width: 390px;
  background: #0f1d2b;
  border: none;
  border-top: 2px solid #d4a843;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.7);
  z-index: 9999;
  padding: 14px;
  overflow: hidden;
}
/* Bonus dropdown via native <details> */
.nav-bonus-details {
  position: relative;
}
.nav-bonus-details summary {
  list-style: none;
}
.nav-bonus-details summary::-webkit-details-marker {
  display: none;
}
.nav-bonus-details .nav-bonus-dropdown {
  display: none;
}
.nav-bonus-details[open] .nav-bonus-dropdown {
  display: block;
}
.nav-bonus-dropdown .bonus-close {
  position: absolute;
  top: 8px;
  right: 12px;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  line-height: 1;
}
.nav-bonus-dropdown .bonus-close:hover {
  color: #fff;
}
.nav-bonus-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #162636;
  border: none;
  border-radius: 8px;
  margin-bottom: 8px;
  position: relative;
}
.nav-bonus-card:last-child {
  margin-bottom: 0;
}
.nav-bonus-card img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  padding: 3px;
  flex-shrink: 0;
}
.nav-bonus-card .bonus-text {
  flex: 1;
  min-width: 0;
}
.nav-bonus-card .bonus-text strong {
  display: block;
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.3;
  margin-bottom: 2px;
}
.nav-bonus-card .bonus-text span {
  font-size: 11px;
  color: #94a3b8;
}
.nav-bonus-card .bonus-cta {
  flex-shrink: 0;
  display: inline-block;
  padding: 8px 16px;
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-bonus-card .bonus-cta:hover {
  background: #16a34a;
}

/* ===== COMPARISON TABLE: opaque rows on hover ===== */
.casino-comparison tbody tr {
  background: #141b2d !important;
}
.casino-comparison tbody tr:nth-child(even) {
  background: #181f33 !important;
}
.casino-comparison tbody tr:hover {
  background: #1f2740 !important;
}
.casino-comparison thead tr {
  background: #0f1520 !important;
}

/* ===== SEARCH BUTTON + OVERLAY ===== */
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.nav-search-btn:hover {
  background: rgba(255,255,255,0.12);
  transform: scale(1.1);
}
.nav-search-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #c8d0dc;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-search-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10010;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
.nav-search-overlay.search-open {
  display: flex;
}
.nav-search-box {
  width: 90%;
  max-width: 600px;
  background: #1a2332;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  border: 1px solid rgba(212,168,67,0.2);
}
.nav-search-box input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  background: #111827;
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
}
.nav-search-box input:focus {
  border-color: #d4a843;
  box-shadow: 0 0 0 2px rgba(212,168,67,0.2);
}
.nav-search-box input::placeholder {
  color: #64748b;
}
.nav-search-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nav-search-links a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  color: #94a3b8;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-search-links a:hover {
  color: #d4a843;
  border-color: rgba(212,168,67,0.3);
  background: rgba(212,168,67,0.08);
}

/* ===== HERO BANNER: full-width breakout ===== */
.hero-banner {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  margin-bottom: 32px !important;
  box-sizing: border-box !important;
}

/* ===== MOBILE-ONLY ELEMENTS: hidden on desktop ===== */
.nav-hamburger,
.nav-mobile-close,
.nav-mobile-utils,
.nav-mobile-overlay {
  display: none;
}

/* ===== HAMBURGER BUTTON ===== */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #e2e8f0;
  position: relative;
  transition: background 0.2s;
}
.nav-hamburger span::before,
.nav-hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #e2e8f0;
  transition: transform 0.3s;
}
.nav-hamburger span::before { top: -6px; }
.nav-hamburger span::after { top: 6px; }

/* X state when open */
.mobile-nav-open .nav-hamburger span { background: transparent; }
.mobile-nav-open .nav-hamburger span::before {
  top: 0;
  transform: rotate(45deg);
}
.mobile-nav-open .nav-hamburger span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ===== MOBILE OVERLAY ===== */
.nav-mobile-overlay {
  display: none !important;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  pointer-events: none;
}
.mobile-nav-open .nav-mobile-overlay {
  display: block !important;
  pointer-events: auto;
}

/* ===== MOBILE MENU PANEL ===== */
@media screen and (max-width: 782px) {
  .nav-row1-tagline { display: none; }

  .nav-row1-inner {
    padding: 8px 16px;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hide row2 by default on mobile, show as slide-down panel */
  .nav-row2 {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #152232;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.4);
    border-left: 1px solid rgba(255,255,255,0.08);
    padding-top: 60px;
  }
  .mobile-nav-open .nav-row2 {
    display: block;
  }

  .nav-row2-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  .nav-cat {
    flex: none;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-cat > a,
  .nav-cat > .nav-cat-toggle {
    justify-content: flex-start;
    padding: 14px 20px;
    font-size: 15px;
    width: 100%;
  }

  /* Dropdowns open inline on mobile */
  .nav-cat-dropdown {
    display: none;
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    background: rgba(0,0,0,0.15);
    border: none;
    border-top: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
  .nav-cat.mobile-open .nav-cat-dropdown {
    display: block;
  }
  .nav-cat-dropdown a {
    padding: 11px 20px 11px 52px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
  }

  /* Mobile close button inside panel */
  .nav-mobile-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 20px;
    cursor: pointer;
  }

  /* Utility links at bottom of mobile menu */
  .nav-mobile-utils {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 10px;
  }
  .nav-mobile-utils a {
    display: block;
    padding: 10px 0;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .nav-mobile-utils a:hover { color: #d4a843; }

  /* Hide desktop utility links */
  .nav-row1-links a:not(.nav-bonus-trigger-link) {
    display: none;
  }
  .nav-row1-links {
    gap: 10px;
  }

  /* Bonus widget adjustments */
  .nav-bonus-details {
    position: static;
  }
  .nav-bonus-dropdown {
    position: fixed !important;
    top: 70px !important;
    right: 10px !important;
    left: 10px !important;
    width: auto !important;
    max-height: calc(100vh - 90px);
    overflow-y: auto !important;
    overflow-x: visible !important;
  }
  .nav-bonus-card {
    display: grid !important;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 6px 10px;
    padding: 12px;
  }
  .nav-bonus-card img {
    width: 40px;
    height: 40px;
    grid-row: 1;
    grid-column: 1;
  }
  .nav-bonus-card .bonus-text {
    grid-row: 1;
    grid-column: 2;
  }
  .nav-bonus-card .bonus-cta {
    grid-row: 2;
    grid-column: 1 / -1;
    display: block !important;
    width: 100% !important;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
    box-sizing: border-box;
  }
}
