/*
Theme Name: VN Studio
Theme URI: https://example.com
Description: Vietnamese casino affiliate theme - variable-based for mass deployment
Version: 1.0.0
Text Domain: vs-studio
*/

/* ── CSS Variables (replaced by build-site.sh per brand) ── */
:root {
  --vs-bg: #000;
  --vs-bg2: #252b38;
  --vs-header: #252b38;
  --vs-nav: #db8300;
  --vs-text: #fff;
  --vs-text2: #b0b8c8;
  --vs-heading: #ffad01;
  --vs-cta-reg: #e01f1f;
  --vs-cta-login: #1fa2dc;
  --vs-cta-text: #fff;
  --vs-link: #ffad01;
  --vs-footer-bg: #111;
  --vs-footer-text: #878ea6;
  --vs-border: #333;
  --vs-card-bg: #1a1f2e;
  --vs-accent: #ffad01;
  --vs-font: 'Roboto', sans-serif;
  --vs-font-head: 'Roboto', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--vs-font);
  background: var(--vs-bg);
  color: var(--vs-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--vs-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--vs-font-head);
  color: var(--vs-heading);
  font-weight: 700;
  line-height: 1.3;
}

/* ── Container ── */
.vs-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── Header ── */
.vs-header {
  background: var(--vs-header);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.5);
  transition: all .3s;
}
.vs-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; min-height: 70px;
}
.vs-logo img { height: 50px; width: auto; }
.vs-header-btns { display: flex; gap: 10px; }
.vs-btn-reg, .vs-btn-login {
  display: inline-block; padding: 10px 24px; border-radius: 6px;
  font-weight: 700; font-size: 14px; cursor: pointer; border: none;
  color: var(--vs-cta-text); transition: all .3s; text-transform: uppercase;
}
.vs-btn-reg {
  background: var(--vs-cta-reg);
  animation: vs-pulse 2s infinite;
}
.vs-btn-login { background: var(--vs-cta-login); }
.vs-btn-reg:hover, .vs-btn-login:hover {
  transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,.4);
  text-decoration: none;
}
@keyframes vs-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224,31,31,.5); }
  50% { box-shadow: 0 0 0 10px rgba(224,31,31,0); }
}

/* ── Navigation ── */
.vs-nav {
  background: var(--vs-nav); overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.vs-nav-inner {
  display: flex; align-items: center; gap: 0;
  max-width: 1200px; margin: 0 auto; padding: 0;
}
.vs-nav a {
  color: #fff; font-weight: 700; font-size: 14px; padding: 12px 18px;
  white-space: nowrap; text-transform: uppercase; transition: background .2s;
}
.vs-nav a:hover, .vs-nav a.active {
  background: rgba(255,255,255,.15); text-decoration: none;
}

/* ── Mobile Menu ── */
.vs-hamburger {
  display: none; background: none; border: none; color: #fff;
  font-size: 28px; cursor: pointer; padding: 8px;
}
.vs-mobile-menu {
  display: none; position: fixed; top: 0; left: 0; width: 280px; height: 100%;
  background: var(--vs-bg2); z-index: 200; padding: 20px;
  overflow-y: auto; transform: translateX(-100%); transition: transform .3s;
}
.vs-mobile-menu.open { transform: translateX(0); display: block; }
.vs-mobile-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.6); z-index: 199;
}
.vs-mobile-overlay.open { display: block; }
.vs-mobile-menu a {
  display: block; padding: 12px 0; color: #fff; font-weight: 600;
  border-bottom: 1px solid var(--vs-border);
}

/* ── Hero Banner ── */
.vs-hero { width: 100%; overflow: hidden; }
.vs-hero img { width: 100%; display: block; }
.vs-hero-mobile { display: none; }

/* ── Game Categories Grid ── */
.vs-cats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  padding: 20px 0;
}
.vs-cat-item { border-radius: 12px; overflow: hidden; transition: transform .3s; }
.vs-cat-item:hover { transform: translateY(-4px); }
.vs-cat-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* ── Content Section ── */
.vs-content {
  background: var(--vs-bg2); border-radius: 12px;
  padding: 32px; margin: 20px 0;
}
.vs-content h1 { font-size: 28px; margin-bottom: 16px; }
.vs-content h2 { font-size: 22px; margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--vs-accent); }
.vs-content h3 { font-size: 18px; margin: 20px 0 10px; }
.vs-content p { margin-bottom: 14px; color: var(--vs-text2); }
.vs-content ul, .vs-content ol { margin: 10px 0 14px 24px; color: var(--vs-text2); }
.vs-content li { margin-bottom: 6px; }
.vs-content blockquote {
  border-left: 4px solid var(--vs-accent); padding: 16px 20px;
  background: rgba(255,173,1,.08); border-radius: 0 8px 8px 0;
  margin: 16px 0; font-style: italic;
}
.vs-content table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
}
.vs-content th, .vs-content td {
  padding: 10px 14px; border: 1px solid var(--vs-border); text-align: left;
}
.vs-content th { background: var(--vs-card-bg); color: var(--vs-heading); font-weight: 700; }
.vs-content strong { color: var(--vs-text); }

/* ── FAQ Accordion ── */
.vs-faq { margin: 24px 0; }
.vs-faq details {
  background: var(--vs-card-bg); border-radius: 8px; margin-bottom: 8px;
  border: 1px solid var(--vs-border);
}
.vs-faq summary {
  padding: 14px 18px; cursor: pointer; font-weight: 700;
  color: var(--vs-text); list-style: none; display: flex;
  justify-content: space-between; align-items: center;
}
.vs-faq summary::after { content: '+'; font-size: 20px; color: var(--vs-accent); }
.vs-faq details[open] summary::after { content: '−'; }
.vs-faq .vs-faq-body { padding: 0 18px 14px; color: var(--vs-text2); }

/* ── Article Cards Slider ── */
.vs-articles { padding: 24px 0; }
.vs-articles h2 { text-align: center; margin-bottom: 20px; }
.vs-article-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.vs-article-card {
  background: var(--vs-card-bg); border-radius: 10px; overflow: hidden;
  transition: transform .3s; border: 1px solid var(--vs-border);
}
.vs-article-card:hover { transform: translateY(-4px); }
.vs-article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.vs-article-card-body { padding: 14px; }
.vs-article-card h5 {
  font-size: 14px; color: var(--vs-text); margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vs-article-card time { font-size: 12px; color: var(--vs-text2); }

/* ── App Download ── */
.vs-app {
  background: var(--vs-card-bg); border-radius: 12px; padding: 32px;
  margin: 24px 0; text-align: center;
}
.vs-app h2 { margin-bottom: 16px; }
.vs-app-btns { display: flex; gap: 16px; justify-content: center; margin-top: 20px; }
.vs-app-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px;
  background: var(--vs-cta-reg); color: #fff; border-radius: 8px;
  font-weight: 700; transition: all .3s;
}
.vs-app-btn:hover { transform: scale(1.05); text-decoration: none; }

/* ── Footer ── */
.vs-footer {
  background: var(--vs-footer-bg); padding: 40px 0 0; margin-top: 32px;
  border-top: 3px solid var(--vs-accent);
}
.vs-footer-grid {
  display: grid; grid-template-columns: 3fr 2fr 2fr 3fr; gap: 24px;
}
.vs-footer h3 { font-size: 16px; margin-bottom: 14px; color: var(--vs-accent); }
.vs-footer p, .vs-footer li { color: var(--vs-footer-text); font-size: 14px; }
.vs-footer ul { list-style: none; }
.vs-footer li { margin-bottom: 8px; }
.vs-footer a { color: var(--vs-footer-text); }
.vs-footer a:hover { color: var(--vs-accent); }
.vs-copyright {
  text-align: center; padding: 16px; margin-top: 24px;
  border-top: 1px solid var(--vs-border); color: var(--vs-footer-text); font-size: 13px;
}

/* ── Back to top ── */
.vs-btt {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
  background: var(--vs-accent); color: #000; border: none; border-radius: 50%;
  font-size: 20px; cursor: pointer; display: none; z-index: 90;
  align-items: center; justify-content: center; transition: opacity .3s;
}
.vs-btt.show { display: flex; }

/* ── CTA Floating Bar ── */
.vs-float-cta {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: var(--vs-header); padding: 10px 16px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  z-index: 95; box-shadow: 0 -2px 12px rgba(0,0,0,.5);
}
.vs-float-cta span { color: var(--vs-accent); font-weight: 700; font-size: 14px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .vs-hamburger { display: block; }
  .vs-nav { display: none; }
  .vs-header-btns .vs-btn-reg,
  .vs-header-btns .vs-btn-login { padding: 8px 14px; font-size: 12px; }
  .vs-cats { grid-template-columns: repeat(3, 1fr); }
  .vs-article-grid { grid-template-columns: repeat(2, 1fr); }
  .vs-footer-grid { grid-template-columns: 1fr 1fr; }
  .vs-content { padding: 20px 16px; }
  .vs-content h1 { font-size: 22px; }
  .vs-content h2 { font-size: 18px; }
  .vs-hero-desktop { display: none; }
  .vs-hero-mobile { display: block; }
  .vs-app-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .vs-cats { grid-template-columns: repeat(2, 1fr); }
  .vs-article-grid { grid-template-columns: 1fr; }
  .vs-footer-grid { grid-template-columns: 1fr; }
  .vs-float-cta span { font-size: 12px; }
}
