/* ============================================================
   BD678 - Global Design System
   Target: Bangladesh (bn-BD) | Dark Premium Casino Theme
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --clr-bg-primary: #0a0e1a;
  --clr-bg-secondary: #0d1b2a;
  --clr-bg-tertiary: #111d30;
  --clr-bg-card: #12203a;
  --clr-bg-card-hover: #182848;
  --clr-gold: #f0a500;
  --clr-gold-light: #ffc947;
  --clr-orange: #ff6b35;
  --clr-accent: #4ecdc4;
  --clr-accent2: #e056a0;
  --clr-text: #e0e6ed;
  --clr-text-muted: #8899aa;
  --clr-text-heading: #ffffff;
  --clr-border: rgba(240,165,0,0.15);
  --clr-border-strong: rgba(240,165,0,0.35);
  --clr-success: #2ecc71;
  --clr-danger: #e74c3c;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --shadow-gold: 0 4px 20px rgba(240,165,0,0.15);
  --container-max: 1340px;
  --header-h: 70px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-stack);
  background: var(--clr-bg-primary);
  color: var(--clr-text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-gold-light); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--clr-text-heading);
  line-height: 1.3;
  font-weight: 700;
}

/* --- Container --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }

/* --- Top Bar --- */
.top-bar {
  background: #060a14;
  padding: 6px 0;
  font-size: 13px;
  color: var(--clr-text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: var(--clr-text-muted); font-size: 13px; }
.top-bar a:hover { color: var(--clr-gold); }

/* --- Header --- */
.site-header {
  background: rgba(13,27,42,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--clr-border);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}
.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo img, .header-logo svg {
  max-height: 44px;
  width: auto;
  max-width: 160px;
  height: auto;
}
.header-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.header-nav a {
  color: var(--clr-text);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition);
}
.header-nav a:hover, .header-nav a.active {
  color: var(--clr-gold);
  background: rgba(240,165,0,0.08);
}
.header-actions { display: flex; gap: 10px; flex-shrink: 0; align-items: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}
.btn-register {
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-orange));
  color: #0d1b2a;
}
.btn-register:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); color: #0d1b2a; }
.btn-login {
  background: transparent;
  color: var(--clr-gold);
  border: 2px solid var(--clr-gold);
}
.btn-login:hover { background: rgba(240,165,0,0.1); color: var(--clr-gold); }
.btn-primary {
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-orange));
  color: #0d1b2a;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); color: #0d1b2a; }
.btn-outline {
  background: transparent;
  color: var(--clr-gold);
  border: 2px solid var(--clr-border-strong);
}
.btn-outline:hover { border-color: var(--clr-gold); background: rgba(240,165,0,0.08); color: var(--clr-gold); }
.btn-lg { padding: 14px 36px; font-size: 16px; }

/* --- Mobile Menu --- */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--clr-bg-secondary);
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
}
.mobile-menu.active { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 16px;
  color: var(--clr-text);
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--clr-border);
}
.mobile-menu a:hover { color: var(--clr-gold); }
.mobile-menu .mobile-btns { display: flex; gap: 12px; margin-top: 20px; }
.mobile-menu .mobile-btns .btn { flex: 1; text-align: center; }

/* --- Hero / Banner --- */
.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.hero-banner img, .hero-banner svg {
  width: 100%;
  height: auto;
  display: block;
}
.hero-banner-home { min-height: auto; }

/* --- Section Styles --- */
.section { padding: 60px 0; }
.section-alt { background: var(--clr-bg-secondary); }
.section-dark { background: var(--clr-bg-primary); }
.section-bordered {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 40px auto;
  max-width: var(--container-max);
  background: rgba(13,27,42,0.6);
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 28px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title p { color: var(--clr-text-muted); max-width: 640px; margin: 0 auto; }

/* --- Shortcut Cards (Category Entry Grid) --- */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.shortcut-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  transition: all var(--transition);
  display: block;
  color: var(--clr-text);
}
.shortcut-card:hover {
  border-color: var(--clr-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  color: var(--clr-gold);
}
.shortcut-card .sc-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, rgba(240,165,0,0.15), rgba(255,107,53,0.1));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shortcut-card .sc-icon svg { width: 24px; height: 24px; }
.shortcut-card h3 { font-size: 15px; margin-bottom: 4px; }
.shortcut-card p { font-size: 12px; color: var(--clr-text-muted); }

/* --- Content Feed Cards --- */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.feed-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.feed-card:hover {
  border-color: var(--clr-border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feed-card-img {
  height: 180px;
  background: var(--clr-bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feed-card-img svg { width: 100%; height: 100%; }
.feed-card-body { padding: 20px; }
.feed-card-body .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--clr-gold);
  background: rgba(240,165,0,0.1);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.feed-card-body h3 { font-size: 17px; margin-bottom: 8px; }
.feed-card-body h3 a { color: var(--clr-text-heading); }
.feed-card-body h3 a:hover { color: var(--clr-gold); }
.feed-card-body p { font-size: 14px; color: var(--clr-text-muted); line-height: 1.6; }
.feed-card-body .meta { font-size: 12px; color: var(--clr-text-muted); margin-top: 10px; }

/* --- Feature List --- */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}
.feature-item:hover { border-color: var(--clr-border-strong); }
.feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(240,165,0,0.12), rgba(255,107,53,0.08));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; fill: var(--clr-gold); }
.feature-content h3 { font-size: 16px; margin-bottom: 6px; }
.feature-content p { font-size: 14px; color: var(--clr-text-muted); }

/* --- Long Content / Article --- */
.long-content {
  max-width: 900px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
  margin: 0 auto;
  padding: 40px 20px;
}
.long-content h1 { font-size: 32px; margin-bottom: 20px; color: var(--clr-gold); }
.long-content h2 {
  font-size: 24px;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--clr-border);
  color: var(--clr-gold-light);
}
.long-content h3 { font-size: 20px; margin: 28px 0 12px; color: var(--clr-text-heading); }
.long-content p { margin-bottom: 16px; text-align: justify; }
.long-content ul, .long-content ol {
  margin: 16px 0;
  padding-left: 24px;
}
.long-content ul { list-style: disc; }
.long-content ol { list-style: decimal; }
.long-content li { margin-bottom: 8px; color: var(--clr-text); }
.long-content a { color: var(--clr-gold); text-decoration: underline; }
.long-content a:hover { color: var(--clr-gold-light); }
.long-content blockquote {
  border-left: 4px solid var(--clr-gold);
  background: var(--clr-bg-card);
  padding: 16px 24px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--clr-text-muted);
}
.long-content figure { margin: 24px 0; text-align: center; }
.long-content figcaption { font-size: 13px; color: var(--clr-text-muted); margin-top: 8px; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
}
.breadcrumb a { color: var(--clr-text-muted); }
.breadcrumb a:hover { color: var(--clr-gold); }
.breadcrumb span { color: var(--clr-text-muted); margin: 0 6px; }
.breadcrumb .current { color: var(--clr-gold); }

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--clr-bg-card);
}
.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--clr-text-heading);
  font-size: 15px;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--clr-bg-card-hover); }
.faq-question .faq-toggle {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-question .faq-toggle svg { fill: var(--clr-gold); }
.faq-item.active .faq-toggle { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 24px 18px;
  color: var(--clr-text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 500px; }

/* --- CTA Block --- */
.cta-block {
  background: linear-gradient(135deg, var(--clr-bg-tertiary), var(--clr-bg-secondary));
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin: 40px 0;
}
.cta-block h2 { font-size: 28px; margin-bottom: 16px; }
.cta-block p { color: var(--clr-text-muted); margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-block .btn { margin: 0 8px; }

/* --- Footer --- */
.site-footer {
  background: #060a14;
  border-top: 1px solid var(--clr-border);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--clr-gold);
}
.footer-col p { font-size: 14px; color: var(--clr-text-muted); line-height: 1.7; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: var(--clr-text-muted); font-size: 14px; }
.footer-col ul a:hover { color: var(--clr-gold); }
.footer-contact-item { font-size: 14px; color: var(--clr-text-muted); margin-bottom: 10px; line-height: 1.5; }
.footer-contact-item strong { color: var(--clr-text); }
.footer-brand { margin-bottom: 16px; }
.footer-brand img, .footer-brand svg { max-height: 36px; width: auto; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--clr-text-muted);
}
.footer-bottom a { color: var(--clr-text-muted); }
.footer-bottom a:hover { color: var(--clr-gold); }

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--clr-bg-secondary), var(--clr-bg-tertiary));
  padding: 48px 0;
  border-bottom: 1px solid var(--clr-border);
}
.page-hero h1 { font-size: 32px; margin-bottom: 12px; }
.page-hero p { color: var(--clr-text-muted); max-width: 640px; }

/* --- Archive / List Page --- */
.archive-header {
  background: linear-gradient(135deg, var(--clr-bg-secondary), #0f1e35);
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--clr-border);
}
.archive-list { display: flex; flex-direction: column; gap: 20px; }
.archive-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.archive-item:hover { border-color: var(--clr-border-strong); transform: translateX(4px); }
.archive-item-img {
  width: 200px;
  flex-shrink: 0;
  background: var(--clr-bg-tertiary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}
.archive-item-body h3 { font-size: 18px; margin-bottom: 8px; }
.archive-item-body h3 a { color: var(--clr-text-heading); }
.archive-item-body h3 a:hover { color: var(--clr-gold); }
.archive-item-body p { font-size: 14px; color: var(--clr-text-muted); margin-bottom: 8px; }
.archive-item-body .meta { font-size: 12px; color: var(--clr-text-muted); }

/* --- Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step-counter;
}
.step-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  counter-increment: step-counter;
  position: relative;
}
.step-card::before {
  content: counter(step-counter);
  display: flex;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-orange));
  color: #0d1b2a;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 16px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--clr-text-muted); }

/* --- Table (Bonus / Info) --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.info-table th, .info-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
  font-size: 14px;
}
.info-table th {
  background: var(--clr-bg-card);
  color: var(--clr-gold);
  font-weight: 600;
}
.info-table tr:hover td { background: rgba(240,165,0,0.03); }

/* --- Related Pages Navigation --- */
.related-pages { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.related-pages a {
  padding: 10px 20px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  font-size: 14px;
  color: var(--clr-text);
  transition: all var(--transition);
}
.related-pages a:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
  background: rgba(240,165,0,0.05);
}

/* --- Bullet List Styled --- */
.check-list { list-style: none; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--clr-text);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-orange));
}

/* --- Article Detail --- */
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--clr-text-muted);
}
.article-related {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--clr-border);
}
.article-related h3 { font-size: 20px; margin-bottom: 20px; }

/* --- 404 Page --- */
.error-page {
  text-align: center;
  padding: 100px 20px;
}
.error-page h1 { font-size: 120px; color: var(--clr-gold); line-height: 1; }
.error-page h2 { font-size: 28px; margin: 16px 0; }
.error-page p { color: var(--clr-text-muted); margin-bottom: 32px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-toggle { display: block; }
  .header-actions .btn { padding: 8px 16px; font-size: 13px; }
  .section { padding: 40px 0; }
  .section-bordered { padding: 24px 16px; margin: 20px 16px; }
  .section-title h2 { font-size: 22px; }
  .shortcut-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .shortcut-card { padding: 16px 8px; }
  .feed-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-hero h1 { font-size: 24px; }
  .long-content h1 { font-size: 24px; }
  .long-content h2 { font-size: 20px; }
  .cta-block { padding: 32px 20px; }
  .cta-block .btn { display: block; margin: 8px auto; width: 100%; max-width: 280px; }
  .archive-item { flex-direction: column; }
  .archive-item-img { width: 100%; min-height: 160px; }
  .steps-grid { grid-template-columns: 1fr; }
  .error-page h1 { font-size: 80px; }
  .hero-banner { min-height: auto; }
}
@media (max-width: 480px) {
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .header-logo img, .header-logo svg { max-height: 36px; max-width: 120px; }
  .header-actions .btn { padding: 7px 12px; font-size: 12px; }
}
