/*
Theme Name: 8Xbet Theme
Theme URI: http://localhost/8xbet
Description: Theme tùy chỉnh cho brand 8Xbet – Nhà Cái Cá Cược Uy Tín
Version: 1.0.0
Text Domain: 8xbet-theme
*/

/* ============================================================
   VARIABLES & RESET — 8Xbet Brand: Blue Light Theme
   ============================================================ */
:root {
  --blue:        #E10600;
  --blue-dark:   #9E0B0B;
  --blue-light:  #FF3B30;
  --blue-bright: #FF6F61;
  --gold:        #F5C518;
  --gold-dark:   #D4A510;
  --gold-light:  #FFD740;
  --green:       #00C060;
  /* Light theme background scale */
  --black:       #f8f6f4;   /* body bg — very light blue-white */
  --dark:        #f1efec;   /* section bg */
  --dark2:       #ffffff;   /* card bg */
  --dark3:       #f8fafd;   /* alt card bg */
  --gray:        #8b9099;   /* muted / borders */
  --light:       #5f6b78;   /* secondary text */
  --white:       #ffffff;
  /* Text colors */
  --text:        #20242b;
  --text-muted:  #5f6b78;
  --border:      #ecdfdf;
  --font-main:   'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
  --radius:      8px;
  --shadow:      0 4px 24px rgba(225,6,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: #f8f6f4;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.single, body.page { background: #eef4fb; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Sections ───────────────────────────────────────────── */
.home-section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.section-header { text-align: center; margin-bottom: 40px; }
.section-tag {
  display: inline-block;
  background: rgba(225,6,0,.1);
  border: 1px solid rgba(225,6,0,.3);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.4rem,3vw,2rem);
  font-weight: 900;
  color: var(--blue-dark);
  line-height: 1.25;
  margin-bottom: 10px;
}
.section-title span { color: var(--gold-dark); }
.section-subtitle { font-size: .9rem; color: var(--text-muted); max-width: 640px; margin: 0 auto; line-height: 1.6; }

/* ── Hero ────────────────────────────────────────────────── */
.home-hero {
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 60px 20px 50px;
  position: relative;
  overflow: hidden;
}
.hero-bg-particles .hero-particle {
  position: absolute;
  border-radius: 50%;
  animation: floatParticle 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floatParticle {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(10deg); }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}
.hero-panel { min-width: 0; }

/* ── Game Cards ──────────────────────────────────────────── */
.game-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.game-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 8px 30px rgba(225,6,0,.18);
}
.game-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 3rem;
}
.game-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: .65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.game-card-body { padding: 14px 16px; }
.game-card-name { font-size: .95rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }

/* ── Feature Cards ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(225,6,0,.12);
}
.feature-icon { font-size: 2.2rem; display: block; margin-bottom: 14px; }
.feature-title { font-size: 1rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 8px; }
.feature-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.65; }

/* ── Steps ───────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(225,6,0,.06);
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}
.step-title { font-size: .95rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.step-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.55; }

/* ── Magazine Posts Grid ─────────────────────────────────── */
.mgz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.mgz-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative;
}
.mgz-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 8px 28px rgba(225,6,0,.14); }
.mgz-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.mgz-no-img {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #8b9099;
  background: #f5d7d8;
}
.mgz-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(10,20,35,.88), transparent);
  pointer-events: none;
}
.mgz-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px;
}
.mgz-cat-chip {
  background: var(--blue);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .4px;
  display: inline-block;
  margin-bottom: 6px;
}
.mgz-card-title a {
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: block;
  margin-bottom: 4px;
}
.mgz-rtime { font-size: .72rem; color: rgba(255,255,255,.7); }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  max-width: 1200px;
  margin: 12px auto 0;
  padding: 0 20px;
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { color: var(--blue-dark); }
.breadcrumb-sep { color: var(--gray); font-size: .7rem; }

/* ── Single Post ─────────────────────────────────────────── */
.single-wrap {
  max-width: 860px;
  margin: 32px auto 60px;
  padding: 0 20px;
}
.single-header {
  background: linear-gradient(135deg, var(--blue-dark), #6c0b0e);
  border-radius: 16px 16px 0 0;
  padding: 28px 32px 24px;
  margin-bottom: 0;
}
.single-cat {
  background: var(--gold);
  color: var(--blue-dark);
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}
.single-title {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.28;
  margin-bottom: 14px;
}
.single-meta { font-size: .8rem; color: rgba(255,255,255,.65); display: flex; gap: 16px; flex-wrap: wrap; }
.single-thumb { width: 100%; height: 400px; object-fit: cover; margin-bottom: 0; display: block; }
/* White card body for content */
.single-content-card {
  background: #fff;
  border-radius: 0 0 16px 16px;
  padding: 32px 36px 36px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
.single-content {
  color: #20242b;
  line-height: 1.82;
  font-size: .96rem;
}
.single-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin: 36px 0 14px;
  border-left: 4px solid var(--blue);
  padding-left: 14px;
}
.single-content h3 { font-size: 1.05rem; font-weight: 700; color: #9E0B0B; margin: 28px 0 10px; }
.single-content h4 { font-size: .95rem; font-weight: 700; color: #E10600; margin: 20px 0 8px; }
.single-content p { margin-bottom: 18px; color: #56292a; }
.single-content ul, .single-content ol { margin: 0 0 18px 24px; }
.single-content li { margin-bottom: 6px; color: #56292a; }
.single-content strong { color: #620d10; font-weight: 700; }
.single-content a { color: var(--blue); border-bottom: 1px solid rgba(225,6,0,.3); text-decoration: none; }
.single-content a:hover { color: var(--blue-dark); border-bottom-color: var(--blue-dark); }
.single-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .88rem; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.single-content th { background: var(--blue-dark); color: #fff; padding: 11px 14px; text-align: left; font-size: .85rem; }
.single-content td { padding: 10px 14px; border-bottom: 1px solid #e8f0f8; color: #56292a; background: #fff; }
.single-content tr:nth-child(even) td { background: #f4f8fd; }
.single-content blockquote {
  border-left: 4px solid var(--blue);
  padding: 14px 20px;
  background: #eef5fd;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
  color: #5e181a;
  font-style: italic;
}

/* ── Related Posts ───────────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

/* ── Archive ─────────────────────────────────────────────── */
.archive-wrap {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 20px;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ── Widget Sidebar CTA ──────────────────────────────────── */
.widget-cta {
  background: linear-gradient(135deg, var(--blue-dark), var(--dark2));
  border: 1px solid rgba(225,6,0,.3);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: #0a1e32;
  border-top: 1px solid rgba(225,6,0,.2);
  padding: 60px 20px 30px;
  margin-top: 40px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 14px;
}
.footer-desc { font-size: .83rem; color: #da898c; line-height: 1.65; margin-bottom: 16px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(225,6,0,.35);
  color: #da898c;
  text-transform: uppercase;
}
.footer-col h4 {
  font-size: .82rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .83rem; color: #da898c; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: #da898c;
}
.footer-disclaimer {
  margin-top: 20px;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  line-height: 1.55;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
}

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: #fff;
  transition: all .2s;
}
.pagination a:hover, .pagination .current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ── Related posts card ──────────────────────────────────── */
.related-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.related-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(225,6,0,.14);
  color: inherit;
}

/* ── Pulse CTA animation ─────────────────────────────────── */
@keyframes pulseCta {
  0%,100% { box-shadow: 0 0 12px rgba(225,6,0,.5); }
  50%      { box-shadow: 0 0 28px rgba(91,180,232,.8); }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner          { grid-template-columns: 1fr; }
  .hero-panel          { display: none; }
  .game-cards-grid     { grid-template-columns: repeat(2, 1fr); }
  .features-grid       { grid-template-columns: repeat(2, 1fr); }
  .steps-grid          { grid-template-columns: repeat(2, 1fr); }
  .footer-grid         { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .game-cards-grid     { grid-template-columns: repeat(2, 1fr); }
  .mgz-grid            { grid-template-columns: 1fr; }
  .related-grid        { grid-template-columns: 1fr; }
  .archive-grid        { grid-template-columns: 1fr; }
  .features-grid       { grid-template-columns: 1fr; }
  .steps-grid          { grid-template-columns: 1fr; }
  .footer-grid         { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom       { flex-direction: column; text-align: center; }
  .single-thumb        { height: 220px; }
}
@media (max-width: 480px) {
  .game-cards-grid     { grid-template-columns: 1fr 1fr; }
  .home-section        { margin-bottom: 40px; }
}
