/* Site-wide "Casino Neon/Dark" theme (Option 2) — layered on top of the existing
   Bootstrap CDN + style.css / css/custom.css so no other stylesheet needs removing. */
:root {
  --nx-bg: #0b0d14;
  --nx-navbar: #0f1220;
  --nx-teal: #17d9c4;
  --nx-teal-dark: #0891b2;
  --nx-gold: #ffb800;
  --nx-gold-dark: #ff7a00;
  --nx-text-dark: #1b1f2a;
  --nx-muted: #8a93a6;
}

body {
  background: radial-gradient(circle at top, #161a2c 0%, var(--nx-bg) 60%) fixed;
  color: #e7ebf3;
}

.nx-site-header {
  background: linear-gradient(180deg, rgba(15,18,32,1) 0%, rgba(15,18,32,0.98) 55%, rgba(11,13,20,0.92) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nx-site-footer {
  background: linear-gradient(180deg, rgba(15,18,32,1) 0%, rgba(15,18,32,0.98) 55%, rgba(11,13,20,0.92) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.nx-footer-heading {
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nx-footer-copy {
  color: var(--nx-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.nx-footer-links li {
  margin-bottom: 0.5rem;
}
.nx-footer-link {
  color: var(--nx-muted);
  text-decoration: none;
}
.nx-footer-link:hover {
  color: var(--nx-teal);
  text-decoration: underline;
}
.nx-footer-divider {
  margin: 2rem 0 1.25rem;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Navbar */
.nx-navbar,
.navbar.bg-dark,
.navbar-dark {
  background: var(--nx-navbar) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nx-navbar .navbar-brand,
.navbar-brand,
.navbar-brand small {
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fff, #c9e9ff 55%, var(--nx-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
.nx-navbar .nav-link,
.navbar-dark .nav-link {
  color: var(--nx-muted) !important;
  font-weight: 600;
}
.nx-navbar .nav-link:hover,
.nx-navbar .nav-link.active,
.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active,
.navbar a:hover {
  color: var(--nx-teal) !important;
}
.nx-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}
.nx-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.nx-navbar .nav-link.nx-nav-coupon {
  color: #07192b !important;
  background: linear-gradient(135deg, #ffc93d, #ff9d00);
  border: 1px dashed #07192b;
  border-radius: 999px;
  padding: .35rem .85rem !important;
  font-weight: 800;
}
.nx-navbar .nav-link.nx-nav-coupon:hover,
.nx-navbar .nav-link.nx-nav-coupon.active {
  color: #07192b !important;
  filter: brightness(1.06);
}

.nx-hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(23, 217, 196, 0.18), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(255, 184, 0, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(15,18,32,0.94), rgba(11,13,20,0.98));
}
.nx-hero-kicker {
  margin: 0 0 0.8rem;
  color: var(--nx-gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nx-hero h1,
main h1,
.container > h1 {
  font-weight: 800;
  background: linear-gradient(90deg, #fff, #c9e9ff 55%, var(--nx-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0.25rem 0 0.5rem;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin: 0 auto 1rem;
  max-width: 920px;
}
.nx-hero-copy {
  color: var(--nx-muted);
  max-width: 760px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
.btn-nx-cta,
.btn-nx-secondary {
  border-radius: 999px;
  padding: 0.72rem 1.5rem;
  font-weight: 700;
  border: none;
  transition: all 0.2s ease;
}
.btn-nx-cta {
  background: linear-gradient(135deg, var(--nx-gold), #ff9d00);
  color: var(--nx-text-dark);
  box-shadow: 0 8px 20px rgba(255, 184, 0, 0.35);
}
.btn-nx-cta:hover {
  color: var(--nx-text-dark);
  filter: brightness(1.05);
}
.btn-nx-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}
.btn-nx-secondary:hover {
  color: var(--nx-teal);
  border-color: rgba(23,217,196,0.35);
}

/* Content + sidebar cards */
.card {
  border: none;
  border-radius: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.card-header.bg-primary {
  background: linear-gradient(135deg, var(--nx-teal-dark), var(--nx-text-dark)) !important;
  border-bottom: 3px solid var(--nx-gold);
  font-weight: 700;
}
.card-body {
  color: var(--nx-text-dark);
}

/* Buttons */
.btn-primary,
.btn-success {
  background: linear-gradient(135deg, var(--nx-gold), var(--nx-gold-dark));
  border: none;
  color: var(--nx-text-dark);
  font-weight: 700;
}
.btn-primary:hover,
.btn-success:hover {
  filter: brightness(1.05);
  color: var(--nx-text-dark);
}

/* Sidebar bonus listing links (style.css sets the defaults we override here) */
.sidebarcontent a {
  color: var(--nx-teal-dark);
}
.sidebarcontent a:hover {
  color: var(--nx-teal);
}

/* Footer (covers both the bg-dark footer in layouts/base.php and the
   inline-styled #111 footer in includes/footer.php) */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
footer a {
  color: var(--nx-muted) !important;
}
footer a:hover {
  color: var(--nx-teal) !important;
}
footer hr {
  border-color: var(--nx-gold);
  opacity: 0.35;
}
footer .btn-light {
  background: linear-gradient(135deg, var(--nx-gold), var(--nx-gold-dark));
  border: none;
  color: var(--nx-text-dark) !important;
}
footer .text-muted {
  color: var(--nx-muted) !important;
}

/* Legacy /bonuses/ listing row-cards — swap the blue accent for teal/gold */
.listing-item .newsdate {
  color: var(--nx-teal-dark);
}
.listing-item .casino-name:hover {
  color: var(--nx-teal-dark);
}
.listing-item .listing-cta .btn {
  background: linear-gradient(135deg, var(--nx-gold), var(--nx-gold-dark));
  border: none;
  color: var(--nx-text-dark);
}

/* Full-width bonus grid section (replaces the old narrow sidebar) */
.nx-listing-section {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nx-section-title {
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
}
/* The pagination row (and any other bare markup) rendered by
   bonuses/submitta.php isn't a grid column, so give it full width. */
.row.g-4 > :not([class*="col-"]) {
  flex: 0 0 100%;
  max-width: 100%;
}
.nx-card .badge {
  margin-bottom: 0.4rem;
}

/* Bonus grid cards (matches the Option 2 style-preview mock-up) */
.nx-card {
  background: #fff;
  color: var(--nx-text-dark);
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-top: 4px solid var(--nx-teal);
}
.nx-card .card-body {
  padding: 1.15rem 1.15rem 1.35rem;
}
.nx-card .nx-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.nx-card .nx-logo {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 0.6rem;
  background: #f4f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.nx-card .nx-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.nx-card .nx-top-text {
  min-width: 0;
}
.nx-card .nx-name {
  display: block;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--nx-text-dark);
  text-decoration: none;
}
.nx-card .nx-name:hover {
  color: var(--nx-teal-dark);
  text-decoration: underline;
}
.nx-card .nx-date {
  font-size: 0.72rem;
  color: var(--nx-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nx-card .nx-bonus-text {
  font-size: 0.95rem;
  margin: 0.65rem 0 1rem;
  color: #333;
}
.nx-card .btn-visit {
  background: var(--nx-text-dark);
  color: #fff;
  font-weight: 700;
  border-radius: 0.6rem;
  border: none;
  padding: 0.55rem;
}
.nx-card .btn-visit:hover {
  background: #000;
  color: var(--nx-teal);
}

/* Flexible page sections for free-form page layouts */
.nx-page-main {
  padding: 2rem 0 3rem;
}
.nx-page-body {
  display: grid;
  gap: 1.5rem;
  padding: 0 0 2rem;
}
.nx-section-text,
.nx-section-listing {
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 1.25rem;
}
.nx-section-text {
  background: #f3f7fb;
  color: var(--nx-text-dark);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}
.nx-section-text h2,
.nx-section-text h3,
.nx-section-text h4,
.nx-section-text h5,
.nx-section-text h6 {
  color: var(--nx-text-dark);
}
.nx-section-text p,
.nx-section-text li,
.nx-section-text span,
.nx-section-text a {
  color: var(--nx-text-dark);
}
.nx-section-listing {
  background: rgba(17, 24, 39, 0.72);
  border-color: rgba(23, 217, 196, 0.2);
  color: #e6edf7;
}
.nx-section-listing h2,
.nx-section-listing h3,
.nx-section-listing h4,
.nx-section-listing h5,
.nx-section-listing h6 {
  color: #fff;
}
.nx-section-listing p,
.nx-section-listing li,
.nx-section-listing span,
.nx-section-listing a {
  color: #e6edf7;
}
.nx-section-listing .ccdb-invoke-block {
  margin-top: 0.75rem;
}
.nx-section-listing .nx-section-title {
  margin-bottom: 1rem;
}
