/**
 * 2222BET BANGLADESH - UI COMPONENT LIBRARY
 * Components: Header, Footer, 3x2 Grid, Placecards, Pagination, Accordions, Tables
 */

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  transition: all var(--trans-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 245, 155, 0.3));
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
}

.brand-logo-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
}

.brand-logo-subtitle {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-neon-green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}

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

.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: all var(--trans-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--color-neon-green);
  border: 1px solid var(--border-neon);
}

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

/* Language Switcher Component */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 25, 45, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px 5px;
  gap: 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--trans-fast);
  line-height: 1;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: var(--color-neon-green);
  color: #070b13;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(0, 245, 155, 0.4);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  user-select: none;
}

.drawer-lang-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.drawer-lang-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.btn-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--bg-surface-elevated);
  z-index: 1050;
  padding: 24px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.8);
  transition: right var(--trans-normal);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

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

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-normal);
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

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

.drawer-nav .nav-link {
  font-size: 16px;
  padding: 12px;
}

/* ==========================================================================
   STICKY MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-subtle);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  gap: 4px;
  flex: 1;
  padding: 6px 0;
  transition: color var(--trans-fast);
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.bottom-nav-item:hover, .bottom-nav-item.active {
  color: var(--color-neon-green);
}

.bottom-nav-deposit {
  position: relative;
  top: -12px;
  background: linear-gradient(135deg, var(--color-gold) 0%, #ff8800 100%);
  color: #060913 !important;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--bg-canvas);
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero-casino {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-2xl);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at top right, rgba(0, 245, 155, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(0, 229, 255, 0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  margin-bottom: var(--space-md);
}

.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-neon-green);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ==========================================================================
   3x2 INTERACTIVE GRID & PLACECARDS
   ========================================================================== */
.section-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.section-header-title {
  margin: 0;
}

.section-header-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 4px;
}

/* The 3x2 Grid Box Container */
.grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

/* The Placecard Component */
.placecard {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--trans-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.placecard:hover {
  transform: translateY(-6px);
  border-color: var(--border-neon);
  box-shadow: 0 12px 30px rgba(0, 245, 155, 0.2);
}

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

.placecard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}

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

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

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

.placecard-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.placecard-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.35;
}

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

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

.placecard-meta {
  display: flex;
  flex-direction: column;
}

.placecard-meta-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.placecard-meta-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-neon-green);
}

/* ==========================================================================
   PAGINATION CONTROLS
   ========================================================================== */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: var(--space-xl) 0 var(--space-3xl);
}

.page-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.page-btn:hover {
  border-color: var(--color-neon-green);
  color: #ffffff;
  background: rgba(0, 245, 155, 0.1);
}

.page-btn.active {
  background: linear-gradient(135deg, var(--color-neon-green) 0%, #00b371 100%);
  color: #060913;
  border-color: var(--color-neon-green);
  box-shadow: 0 2px 10px rgba(0, 245, 155, 0.4);
}

.page-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   CARD & CONTENT BUNDLES (PAYMENTS, TICKERS, ODDS)
   ========================================================================== */
.bundles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.bundle-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--trans-normal);
}

.bundle-card:hover {
  border-color: var(--border-neon);
  transform: translateY(-3px);
}

.bundle-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 245, 155, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-neon-green);
  font-size: 20px;
}

.bundle-info {
  display: flex;
  flex-direction: column;
}

.bundle-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.bundle-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Live Winners & Odds Ticker */
.ticker-bar {
  background: rgba(14, 22, 40, 0.85);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-label {
  background: var(--color-gold);
  color: #060913;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-right: var(--space-md);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-scroller {
  display: inline-flex;
  gap: var(--space-xl);
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.ticker-item strong {
  color: var(--color-neon-green);
}

/* ==========================================================================
   TABLES & COMPARISONS
   ========================================================================== */
.table-responsive-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  margin: var(--space-xl) 0;
}

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

.table-custom th {
  background: rgba(20, 31, 54, 0.9);
  color: #ffffff;
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border-neon);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}

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

.table-custom tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.table-custom tr:hover td {
  background: rgba(0, 245, 155, 0.04);
}

/* ==========================================================================
   FAQ ACCORDION COMPONENT
   ========================================================================== */
.faq-section {
  margin: var(--space-3xl) 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--trans-fast);
}

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

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px var(--space-lg);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.faq-chevron {
  width: 18px;
  height: 18px;
  transition: transform var(--trans-normal);
  color: var(--color-neon-green);
  flex-shrink: 0;
}

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

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--trans-normal);
  padding: 0 var(--space-lg);
}

.faq-item.active .faq-body {
  max-height: 500px;
  padding-bottom: 18px;
}

.faq-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   E-E-A-T AUTHOR & REVIEWER TRUST BLOCK
   ========================================================================== */
.author-trust-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--color-neon-green);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--color-neon-green);
  object-fit: cover;
}

.author-meta {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.author-title {
  font-size: 12px;
  color: var(--color-neon-green);
  font-weight: 600;
}

.trust-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   FEATURED & CONTEXTUAL IMAGE ELEMENTS
   ========================================================================== */
.article-featured-image-wrap {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: var(--space-xl) 0 var(--space-2xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.article-featured-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.article-contextual-image-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-xl) 0;
  border: 1px solid var(--border-subtle);
}

.article-contextual-image {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   FOOTER & COMPLIANCE
   ========================================================================== */
.site-footer {
  background: #04070e;
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: var(--space-sm);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--trans-fast);
}

.footer-links a:hover {
  color: var(--color-neon-green);
}

/* Compliance 18+ Bar */
.compliance-banner {
  background: rgba(20, 31, 54, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.compliance-18-badge {
  background: #ff3366;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(255, 51, 102, 0.4);
}

.compliance-text {
  flex: 1;
}

.compliance-text h5 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 15px;
}

.compliance-text p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  color: var(--text-dim);
  font-size: 13px;
}

/* Payment Badges Grid */
.payment-badges-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .bundles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 70px; /* space for mobile bottom nav */
  }
  .nav-desktop {
    display: none;
  }
  .header-actions .btn {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .btn-mobile-toggle {
    display: block;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .grid-3x2 {
    grid-template-columns: 1fr;
  }
  .bundles-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .compliance-banner {
    flex-direction: column;
    text-align: center;
  }
}
