/* ============================================================
   LottoX Bangladesh - Global Stylesheet
   Site: https://lottox.it.com
   ============================================================ */

/* ---- CSS Variables / Design Tokens ---- */
:root {
  --color-primary: #1a6ef5;
  --color-primary-dark: #0d52c4;
  --color-secondary: #00c6a7;
  --color-accent: #ff8c00;
  --color-gold: #ffd700;
  --color-danger: #e53935;

  --bg-dark: #0a1628;
  --bg-dark-2: #0d2a5e;
  --bg-mid: #112244;
  --bg-light: #eaf2fd;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-footer: #0d1b35;
  --bg-footer-bottom: #070f1f;

  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-white: #ffffff;
  --text-light: rgba(255,255,255,0.85);

  --border-color: #e2e8f0;
  --border-card: rgba(26,110,245,0.15);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
  --shadow-card: 0 4px 24px rgba(26,110,245,0.1);
  --shadow-hover: 0 8px 32px rgba(26,110,245,0.2);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;

  --header-height: 72px;
  --topbar-height: 36px;
  --container-max: 1280px;
  --container-pad: 24px;

  --transition: 0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-stack);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--text-primary); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar a { color: rgba(255,255,255,0.7); font-size: 13px; }
.topbar a:hover { color: var(--color-gold); }
.topbar-badge {
  background: var(--color-accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
  background: var(--bg-white);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
  border-bottom: 2px solid var(--color-primary);
}
.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: 24px;
}
/* Logo */
.logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-wrap img,
.logo-wrap svg {
  height: 44px;
  width: auto;
  max-width: 180px;
  display: block;
}
/* Main Nav */
.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.main-nav a {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  background: rgba(26,110,245,0.08);
}
/* Header CTA Buttons */
.header-ctas {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
  text-decoration: none;
}
.btn-register {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  box-shadow: 0 4px 14px rgba(26,110,245,0.35);
}
.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,110,245,0.45);
  color: white;
}
.btn-login {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-login:hover {
  background: var(--color-primary);
  color: white;
}
/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
}
.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0;
  width: 280px;
  height: 100%;
  background: var(--bg-white);
  padding: 24px;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,0.2);
}
.mobile-nav-panel .close-btn {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  cursor: pointer;
  font-size: 24px;
  color: var(--text-secondary);
  background: none;
  border: none;
}
.mobile-nav-panel nav a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}
.mobile-nav-panel nav a:hover { color: var(--color-primary); }
.mobile-nav-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.mobile-nav-ctas .btn { width: 100%; justify-content: center; }
.mobile-nav-drawer.open { display: block; }

/* ============================================================
   CATEGORY NAV BAR (below header)
   ============================================================ */
.cat-nav {
  background: linear-gradient(135deg, var(--color-primary), var(--bg-dark-2));
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
  padding: 0 var(--container-pad);
}
.cat-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.cat-nav a:hover,
.cat-nav a.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
  background: rgba(255,255,255,0.08);
}
.cat-nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero-banner {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-banner img,
.hero-banner svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}
.hero-mobile-cta {
  display: none;
  padding: 12px 16px;
  background: var(--bg-dark);
  gap: 10px;
}
.hero-mobile-cta .btn { flex: 1; justify-content: center; font-size: 13px; padding: 10px 12px; }

/* ============================================================
   SHORTCUT CARDS (Quick Entry Grid)
   ============================================================ */
.shortcut-section {
  padding: 32px 0 16px;
  background: var(--bg-light);
}
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.shortcut-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-card);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.shortcut-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}
.shortcut-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.shortcut-icon.blue { background: rgba(26,110,245,0.1); }
.shortcut-icon.green { background: rgba(0,198,167,0.1); }
.shortcut-icon.orange { background: rgba(255,140,0,0.1); }
.shortcut-icon.gold { background: rgba(255,215,0,0.1); }
.shortcut-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.shortcut-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
}
.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}
.section-link:hover { text-decoration: underline; }

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section {
  padding: 48px 0;
}
.content-section.bg-light { background: var(--bg-light); }
.content-section.bg-dark {
  background: var(--bg-dark);
  color: var(--text-white);
}
.content-section.bg-dark h2,
.content-section.bg-dark h3,
.content-section.bg-dark p { color: var(--text-white); }

/* ============================================================
   FEATURE CARDS (3-col)
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-card);
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.feature-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  color: white;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   GAME CATEGORY CARDS (Slots / Sports)
   ============================================================ */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.game-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  background: var(--bg-dark);
  position: relative;
  display: block;
  text-decoration: none;
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.game-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-dark-2), var(--bg-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.game-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}
.game-card-body {
  padding: 16px;
  background: var(--bg-dark);
}
.game-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}
.game-card-body p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: 0;
}
.game-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
}

/* ============================================================
   CONTENT FEED / ARTICLE CARDS
   ============================================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.article-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
  display: block;
  text-decoration: none;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.article-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-light), #c8ddf5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  overflow: hidden;
}
.article-card-body { padding: 16px; }
.article-card-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.article-card-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-body p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   LONG-FORM CONTENT AREA
   ============================================================ */
.longform-section {
  padding: 56px 0;
  background: var(--bg-white);
}
.longform-inner {
  max-width: 900px;
  margin: 0 auto;
}
.longform-inner h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 32px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--color-primary);
}
.longform-inner h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 12px;
}
.longform-inner p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}
.longform-inner ul,
.longform-inner ol {
  margin: 16px 0 20px 20px;
}
.longform-inner ul { list-style: disc; }
.longform-inner ol { list-style: decimal; }
.longform-inner li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}
.longform-inner strong { color: var(--text-primary); }
.longform-inner a { color: var(--color-primary); text-decoration: underline; }
.info-box {
  background: rgba(26,110,245,0.06);
  border: 1px solid rgba(26,110,245,0.2);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
}
.info-box p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.warning-box {
  background: rgba(255,140,0,0.06);
  border: 1px solid rgba(255,140,0,0.2);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
}
.warning-box p { margin: 0; font-size: 14px; color: var(--text-secondary); }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { padding: 56px 0; background: var(--bg-light); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  transition: all var(--transition);
  gap: 12px;
}
.faq-question:hover { color: var(--color-primary); }
.faq-question.open { color: var(--color-primary); }
.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(26,110,245,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: var(--color-primary);
  transition: transform var(--transition);
}
.faq-question.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.faq-answer.open { display: block; }
.faq-answer a { color: var(--color-primary); text-decoration: underline; }

/* ============================================================
   YOUTUBE VIDEO MODULE
   ============================================================ */
.video-section { padding: 56px 0; background: var(--bg-dark); }
.video-section .section-title { color: var(--text-white); }
.video-section .section-title::before { background: var(--color-gold); }
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
}
.video-desc {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--color-primary), var(--bg-dark-2));
  text-align: center;
}
.cta-section h2 {
  font-size: 32px;
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary {
  background: var(--color-gold);
  color: var(--bg-dark);
  font-size: 16px;
  font-weight: 800;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(255,215,0,0.4);
  transition: all var(--transition);
}
.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(255,215,0,0.5);
  color: var(--bg-dark);
}
.btn-cta-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.4);
  transition: all var(--transition);
}
.btn-cta-secondary:hover {
  background: rgba(255,255,255,0.25);
  color: white;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
  background: var(--bg-light);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--text-muted); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-2));
  padding: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(26,110,245,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   ARCHIVE / LISTING PAGE
   ============================================================ */
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 48px 0;
}
.archive-main {}
.archive-sidebar {}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  color: var(--text-primary);
}
.sidebar-link-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-link-list li:last-child { border-bottom: none; }
.sidebar-link-list a {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-link-list a:hover { color: var(--color-primary); }

/* ============================================================
   STATS / TRUST BAR
   ============================================================ */
.stats-bar {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-size: 32px;
  font-weight: 900;
  color: white;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,0.75);
}
.footer-main {
  padding: 56px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-brand {}
.footer-logo {
  margin-bottom: 16px;
}
.footer-logo img,
.footer-logo svg {
  height: 40px;
  width: auto;
  max-width: 160px;
}
.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 20px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.footer-contact-item a { color: rgba(255,255,255,0.7); }
.footer-contact-item a:hover { color: var(--color-gold); }
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--color-gold); }
.footer-links a::before {
  content: '›';
  color: var(--color-secondary);
  font-size: 16px;
}
.footer-bottom {
  background: var(--bg-footer-bottom);
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom-links a:hover { color: var(--color-gold); }
.footer-trust-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.trust-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* ============================================================
   ABOUT PAGE - Story / Blog Style
   ============================================================ */
.about-hero {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-2));
  padding: 64px 0;
}
.about-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px var(--container-pad);
}
.about-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 36px 0 16px;
  border-left: 4px solid var(--color-primary);
  padding-left: 16px;
}
.about-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 12px;
}
.about-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 18px;
}
.about-content ul {
  list-style: disc;
  margin: 16px 0 20px 24px;
}
.about-content li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}
.about-timeline {
  position: relative;
  padding-left: 32px;
  margin: 32px 0;
}
.about-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
}
.timeline-item {
  position: relative;
  margin-bottom: 28px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid white;
  box-shadow: 0 0 0 3px rgba(26,110,245,0.2);
}
.timeline-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.timeline-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.timeline-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   PRIVACY / POLICY PAGE
   ============================================================ */
.policy-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px var(--container-pad);
}
.policy-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 36px 0 14px;
}
.policy-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 10px;
}
.policy-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}
.policy-content ul {
  list-style: disc;
  margin: 12px 0 18px 24px;
}
.policy-content li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}
.policy-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding: 10px 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-primary);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.error-code {
  font-size: 120px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.error-page h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.error-page p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.error-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--transition);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}
.btn-solid {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(26,110,245,0.3);
}
.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,110,245,0.4);
  color: white;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  border: none;
  text-decoration: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); color: white; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   RESPONSIVE - TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-sidebar { display: none; }
}

/* ============================================================
   RESPONSIVE - MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --topbar-height: 0px;
    --container-pad: 16px;
  }
  .topbar { display: none; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-ctas { display: none; }
  .hero-mobile-cta { display: flex; }
  .hero-banner img,
  .hero-banner svg { max-height: 220px; }
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .page-hero h1 { font-size: 26px; }
  .cta-section h2 { font-size: 24px; }
  .error-code { font-size: 80px; }
  .archive-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 18px; }
  .longform-inner h2 { font-size: 20px; }
  .about-content h2 { font-size: 20px; }
}

@media (max-width: 480px) {
  .article-grid { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-buttons { flex-direction: column; align-items: center; }
  .error-links { flex-direction: column; align-items: center; }
}
