/* ==========================================================================
   JILI SLOT BANGLA (jilislotbangla.com) - Core Stylesheet
   Modern, High-Performance, Mobile-First iGaming Theme for Bangladesh
   ========================================================================== */

:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #121722;
  --bg-card: #182030;
  --bg-card-hover: #202b40;
  --bg-accent: #26334d;
  
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --primary-glow: rgba(245, 158, 11, 0.25);
  
  --accent-green: #10b981;
  --accent-green-hover: #059669;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-color: #243047;
  --border-focus: #f59e0b;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.35);
  --shadow-green: 0 0 20px rgba(16, 185, 129, 0.3);
  
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #fbbf24;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18, 23, 34, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo img {
  height: 38px;
  width: auto;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.site-logo span {
  color: var(--primary);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.desktop-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--primary);
  text-decoration: none;
}

.mobile-nav-actions {
  display: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000 !important;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
  color: #000 !important;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.btn-green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff !important;
  box-shadow: var(--shadow-green);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 3rem 0 2.5rem;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--primary);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
}

.hero h1 span {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 1.75rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-weight: 600;
}

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

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumb-nav {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  font-size: 0.85rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
}

.breadcrumb-list li a {
  color: var(--text-muted);
}

.breadcrumb-list li.active {
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   Editorial & Article Layout
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 2.5rem 0;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
}

/* Expert Insight Callout (E-E-A-T) */
.expert-insight-box {
  background: linear-gradient(135deg, rgba(38, 51, 77, 0.4), rgba(24, 32, 48, 0.7));
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
  position: relative;
}

.expert-insight-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.expert-insight-content {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* TL;DR Box */
.tldr-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.tldr-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 0.5rem;
}

.tldr-content {
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Answer Capsule (for AI Overview / Featured Snippet) */
.answer-capsule {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow-sm);
}

.answer-capsule strong {
  color: var(--primary);
}

/* Article Body Typography */
.article-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.article-body h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  color: #f1f5f9;
  margin: 1.75rem 0 0.75rem;
}

.article-body p {
  margin-bottom: 1.25rem;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.7;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.75rem;
  color: #cbd5e1;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}

thead {
  background: var(--bg-secondary);
}

th {
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: #cbd5e1;
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

tbody tr:hover {
  background: rgba(245, 158, 11, 0.05);
}

/* Callout CTA Card */
.cta-banner-card {
  background: linear-gradient(135deg, #182030, #26334d);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-glow);
}

.cta-banner-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-banner-card p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* Step-by-Step List */
.step-list {
  list-style: none;
  margin: 1.5rem 0;
  counter-reset: step-counter;
}

.step-list li {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.5rem;
}

.step-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #000;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Card Grids & Game Hub
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.game-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-secondary);
}

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

.game-card:hover .game-card-img img {
  transform: scale(1.05);
}

.game-rtp-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.game-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.game-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* ==========================================================================
   FAQ Section & Accordion
   ========================================================================== */
.faq-section {
  margin: 3rem 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.faq-question {
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform 0.25s ease;
}

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

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Related Articles & Silo Mesh
   ========================================================================== */
.related-silo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.related-silo-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.25s ease;
}

.related-silo-card:hover {
  border-color: var(--primary);
  background: var(--bg-card);
  transform: translateY(-2px);
}

.related-silo-card h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.related-silo-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #06090e;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--primary);
  text-decoration: none;
}

.footer-disclaimer {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.825rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.age-warning-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Sticky Mobile Bottom CTA Bar */
.mobile-bottom-bar {
  display: none;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(18, 23, 34, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.6);
}

.mobile-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.5rem 0;
  }
  
  .header-inner {
    gap: 0.5rem;
  }

  .site-logo {
    font-size: 1.15rem;
    gap: 0.4rem;
  }

  .site-logo img {
    height: 32px;
  }

  .desktop-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #121722;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    flex-direction: column;
    gap: 1rem;
    z-index: 1001;
  }
  
  .desktop-nav.active {
    display: flex;
  }

  .mobile-nav-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
  }

  .mobile-nav-actions .btn {
    flex: 1;
    text-align: center;
  }
  
  .header-actions {
    gap: 0.5rem;
  }

  .header-actions .btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 1.25rem;
  }
  
  .mobile-bottom-bar {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  
  .hero {
    padding: 2rem 0 1.75rem;
  }
  
  .btn-lg {
    width: 100%;
  }
  
  .step-list li {
    padding-left: 2.75rem;
  }
  
  .step-list li::before {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 540px) {
  .site-logo {
    font-size: 1.05rem;
  }

  /* On phones under 540px, hide the top-bar secondary Login button to eliminate collision.
     Login is prominently accessible in the hamburger menu drawer and bottom bar */
  .header-actions .btn-secondary {
    display: none;
  }

  .header-actions .btn-primary {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .site-logo {
    font-size: 0.95rem;
  }

  .site-logo img {
    height: 28px;
  }
}

