/* ==========================================================================
   Good111 Bangladesh Official iGaming Stylesheet - 2026 High Performance
   Mobile-First, Zero CLS, Ultra-Fast Loading, Dark Theme with Gold & Emerald
   ========================================================================== */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #161f30;
  --bg-card-hover: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-green: #10b981;
  --accent-green-hover: #059669;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
  --border-color: #1e293b;
  --border-glow: rgba(245, 158, 11, 0.25);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.15);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* Space for floating mobile bar */
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-wrapper img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background-color: var(--bg-card);
  text-decoration: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-login {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

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

.btn-register {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.btn-register:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.45);
}

.btn-cta-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-cta-green:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background: linear-gradient(180deg, rgba(22, 31, 48, 0.8) 0%, rgba(10, 14, 23, 1) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

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

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.trust-icon {
  color: var(--accent-green);
  font-size: 1.1rem;
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid var(--border-glow);
}

/* ==========================================================================
   Trust & Payment Partners Ticker
   ========================================================================== */
.payment-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.payment-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.payment-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.payment-badge-img {
  height: 28px;
  width: auto;
  filter: grayscale(20%) brightness(1.1);
  transition: filter 0.2s;
}

.payment-badge-img:hover {
  filter: none;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.content-wrapper {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 2.8fr 1.2fr;
  gap: 2rem;
}

.content-full {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Article Styles */
.article-main {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs span.current {
  color: var(--accent-gold);
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.article-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
  color: #fff;
  border-left: 4px solid var(--accent-gold);
  padding-left: 0.75rem;
}

.article-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  color: #e2e8f0;
}

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

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

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

/* Highlight / Alert Callouts */
.callout {
  background: var(--bg-card);
  border-left: 4px solid var(--accent-blue);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.callout-gold {
  border-left-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.08);
}

.callout-green {
  border-left-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
}

.callout-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

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

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

th {
  background: var(--bg-card);
  color: var(--accent-gold);
  font-weight: 700;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

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

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* In-Content Banner CTA */
.content-cta-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.content-cta-banner h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.content-cta-banner p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* FAQ Accordion Section */
.faq-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

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

.faq-question {
  font-weight: 700;
  color: #fff;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Author Box */
.author-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.author-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.author-info h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   Sidebar Navigation & Conversion Widgets
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.silo-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.silo-menu li {
  margin-bottom: 0.6rem;
}

.silo-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.silo-menu a:hover, .silo-menu a.active {
  color: #fff;
  background: var(--bg-card);
  text-decoration: none;
}

.promo-widget {
  background: linear-gradient(135deg, #1e1b4b 0%, #172554 100%);
  border: 1px solid #4338ca;
  text-align: center;
}

.promo-widget h4 {
  color: #fbbf24;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.promo-widget p {
  color: #cbd5e1;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Hub Grid Cards
   ========================================================================== */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.hub-card h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.hub-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.hub-card-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #060910;
  border-top: 1px solid var(--border-color);
  padding: 3rem 1rem 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.75rem 0 1rem;
  line-height: 1.6;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

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

.footer-col a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.footer-disclaimer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Floating Mobile CTA Bar
   ========================================================================== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 23, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  z-index: 9999;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.5);
}

.mobile-cta-container {
  display: flex;
  gap: 0.75rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.mobile-cta-container .btn {
  flex: 1;
  padding: 0.7rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  .hero-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mobile-cta-bar {
    display: block;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none; /* Mobile menu */
  }
  .hero h1 {
    font-size: 2rem;
  }
  .article-main {
    padding: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
