/* ==========================================================================
   DREAMJILI COMPONENT LIBRARY (components.css)
   Includes: Header, Mobile Drawer, 21+ Age Gate, 3x2 Grid with Pagination,
   Placecards, Flashy Backgrounds, FAQ Accordion, E-E-A-T Blocks, Mobile Nav Bar
   ========================================================================== */

/* ==========================================================================
   1. GLOBAL STICKY HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(6, 9, 17, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 184, 0, 0.4));
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #FFF;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-gold);
  background: rgba(255, 184, 0, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Primary and Secondary CTA Buttons */
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-gold-gradient);
  color: #060911;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(255, 184, 0, 0.35);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.5);
  filter: brightness(1.08);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  min-height: 44px;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 10px;
  color: var(--text-primary);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

/* ==========================================================================
   2. MOBILE NAVIGATION DRAWER
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1050;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #0B101D;
  border-left: 1px solid var(--border-gold);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  z-index: 1100;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.drawer-nav-link:hover {
  background: rgba(255, 184, 0, 0.1);
  border-color: rgba(255, 184, 0, 0.3);
  color: var(--color-gold);
}

/* ==========================================================================
   3. 21+ MANDATORY AGE-GATE MODAL (Crawler-Safe HTML Dialog)
   ========================================================================== */
.age-gate-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 5, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.age-gate-modal-backdrop.active {
  display: flex;
}

.age-gate-dialog {
  background: linear-gradient(180deg, #141E33 0%, #0D1424 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 184, 0, 0.25);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.age-gate-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 16px;
  display: inline-block;
  filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.5));
}

.age-gate-title {
  font-size: 24px;
  color: #FFF;
  margin-bottom: 12px;
}

.age-gate-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.age-gate-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.age-gate-actions .btn-cta-primary,
.age-gate-actions .btn-cta-secondary {
  flex: 1;
}

/* ==========================================================================
   4. STICKY MOBILE BOTTOM CONVERSION BAR
   ========================================================================== */
.sticky-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(10, 15, 27, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-gold);
  z-index: 999;
  padding: 8px 16px;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav-btn.active, .mobile-nav-btn:hover {
  color: var(--color-gold);
}

.mobile-nav-btn svg {
  width: 22px;
  height: 22px;
}

.mobile-nav-highlight {
  background: var(--color-gold-gradient);
  color: #060911 !important;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 2px 12px rgba(255, 184, 0, 0.4);
}

/* ==========================================================================
   5. INTERACTIVE 3x2 GRID BOX & PLACECARDS
   ========================================================================== */
.grid-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.filter-tab-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover, .tab-btn.active {
  background: var(--color-gold);
  color: #060911;
  border-color: var(--color-gold);
  box-shadow: 0 2px 12px rgba(255, 184, 0, 0.35);
}

/* Strict 3x2 Grid Box (6 items per page) */
.grid-box-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

/* Placecard Component */
.placecard {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: var(--shadow-card);
}

.placecard:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 184, 0, 0.2);
}

.placecard-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080C14;
}

.placecard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.placecard:hover .placecard-img {
  transform: scale(1.06);
}

.placecard-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.placecard-rtp {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: var(--color-emerald);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 200, 83, 0.3);
  z-index: 2;
}

.placecard-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.placecard-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 6px;
}

.placecard-category {
  font-size: 12px;
  color: var(--color-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.placecard-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.placecard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* Pagination Bar */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover, .page-btn.active {
  background: var(--color-gold);
  color: #060911;
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.4);
}

/* ==========================================================================
   6. CARD & CONTENT BUNDLES
   ========================================================================== */
.card-bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.promo-bundle-card {
  background: linear-gradient(180deg, #131B2E 0%, #0D1322 100%);
  border: 1px solid rgba(255, 184, 0, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.promo-bundle-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold-gradient);
}

.promo-badge-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.promo-bundle-title {
  font-size: 20px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 8px;
}

.promo-turnover-tag {
  display: inline-block;
  background: rgba(0, 200, 83, 0.12);
  color: var(--color-emerald);
  border: 1px solid rgba(0, 200, 83, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* Step Process Card (Numbered 1-2-3-4) */
.step-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.step-num-badge {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: #FFF;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(30, 136, 229, 0.4);
}

/* Review Persona Testimonial Card */
.review-persona-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.persona-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.persona-name {
  font-weight: 700;
  color: #FFF;
  font-size: 15px;
}

.persona-rating {
  color: var(--color-gold);
  font-size: 14px;
  letter-spacing: 2px;
}

.persona-location {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   7. INTERACTIVE FAQ ACCORDION
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--border-gold);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 20px;
  color: #FFF;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-gold);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 20px 18px 20px;
}

/* ==========================================================================
   8. E-E-A-T AUTHOR & VERIFIED COMPLIANCE BLOCK
   ========================================================================== */
.eeat-trust-box {
  background: linear-gradient(180deg, #121A2C 0%, #0D1322 100%);
  border: 1px solid rgba(0, 200, 83, 0.3);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 40px 0;
}

.eeat-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-gold);
  flex-shrink: 0;
}

.eeat-info {
  flex-grow: 1;
}

.eeat-author-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-badges-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-badge-item svg {
  color: var(--color-emerald);
}

/* Comparison Tables */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 24px 0;
  background: var(--surface-card);
}

.casino-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.casino-data-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #FFF;
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-medium);
  white-space: nowrap;
}

.casino-data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.casino-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   9. GLOBAL FOOTER COMPONENT (Strict 21+ & PAGCOR Compliance)
   ========================================================================== */
.site-footer {
  background: #04060B;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 100px 0; /* Padding for mobile sticky nav */
  color: var(--text-muted);
  font-size: 13px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-title {
  font-size: 20px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 12px;
}

.footer-nav-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-list a:hover {
  color: var(--color-gold);
}

.responsible-gaming-banner {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.responsible-gaming-icon {
  font-size: 36px;
  color: var(--color-crimson);
  flex-shrink: 0;
}

.footer-bottom-row {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .hamburger-btn {
    display: block;
  }

  .grid-box-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .sticky-mobile-nav {
    display: flex;
  }

  .grid-box-3x2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .eeat-trust-box {
    flex-direction: column;
    text-align: center;
  }

  .hero-first-container {
    padding: 60px 0 40px 0;
    min-height: 400px;
  }
}
