/* ==========================================================================
   TOPGAMEVIP Official VVIP Affiliate SEO Engine - Master Stylesheet
   Theme: Royal Gold (#DD9933 / #D4AF37), Platinum Silver & Obsidian (#141822)
   Inspired by Reference https://topgamevip.center/ & Official TOPGAMEVIP Crest
   Core Web Vitals Optimized: Zero CLS, High Contrast, Mobile-First Responsive
   ========================================================================== */

:root {
  --primary: #DD9933;
  --primary-light: rgba(221, 153, 51, 0.18);
  --primary-border: rgba(212, 175, 55, 0.42);
  --accent: #06569C;
  --accent-hover: #0284C7;
  --bg-main: #11141C;
  --bg-soft: #171B26;
  --bg-card: #1C212E;
  --bg-darker: #0A0D14;
  --text-main: #FFFFFF;
  --text-secondary: #F1F5F9;
  --text-muted: #CBD5E1;
  --border-light: rgba(212, 175, 55, 0.28);
  --gold-accent: #FACC15;
  --platinum-silver: #E2E8F0;
  --btn-gold: #DD9933;
  --btn-blue: #06569C;
  --btn-green: #05AC06;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 6px 20px rgba(221, 153, 51, 0.3);
  --radius-md: 14px;
  --radius-lg: 18px;
  --max-width: 1200px;
}

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

html {
  font-family: 'Prompt', 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at 50% 0%, rgba(221, 153, 51, 0.14) 0%, rgba(17, 20, 28, 0) 60%);
  color: var(--text-main);
  overflow-x: hidden;
}

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

a:hover {
  color: #FEF08A;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Sticky Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 13, 20, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 0.75rem;
  flex-wrap: nowrap;
  padding: 0.45rem 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
  padding: 0.15rem 0.25rem;
  border-radius: 8px;
}

.brand-logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(221, 153, 51, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.94rem;
  color: #FFFFFF;
  padding: 0.48rem 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0A0D14;
  background: linear-gradient(90deg, #FACC15 0%, #DD9933 100%);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
}

/* ==========================================================================
   Buttons (Matching Reference: Royal Gold #DD9933, Blue #06569C, LINE #05AC06)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.62rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  border: none;
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  color: #0A0D14;
  background: linear-gradient(180deg, #FDE047 0%, #DD9933 100%);
  border: 1px solid #FEF08A;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #FEF08A 0%, #F59E0B 100%);
  color: #0A0D14;
  transform: translateY(-1px);
}

.btn-outline {
  color: #FFFFFF;
  background: linear-gradient(180deg, #0284C7 0%, #06569C 100%);
  border: 1px solid rgba(142, 209, 252, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn-outline:hover {
  background: linear-gradient(180deg, #0EA5E9 0%, #0369A1 100%);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-line {
  color: #FFFFFF;
  background: linear-gradient(180deg, #22C55E 0%, #05AC06 100%);
  border: 1px solid rgba(134, 239, 172, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn-line:hover {
  background: linear-gradient(180deg, #4ADE80 0%, #16A34A 100%);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 1rem;
  padding: 0.78rem 1.75rem;
  min-width: 170px;
}

/* ==========================================================================
   Mobile Hamburger Toggle & Drawer
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--bg-card);
  color: var(--gold-accent);
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.hamburger-box {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 15px;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--gold-accent);
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6.25px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6.25px) rotate(-45deg);
}

.mobile-quick-strip {
  display: none;
}

.mobile-drawer {
  display: none;
}

/* ==========================================================================
   Breadcrumb Navigation
   ========================================================================== */
.breadcrumb-bar {
  background: rgba(10, 13, 20, 0.85);
  border-bottom: 1px solid var(--border-light);
  padding: 0.6rem 0;
  font-size: 0.88rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.4rem;
  align-items: center;
  color: #E2E8F0;
}

.breadcrumb-list li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--gold-accent);
  font-weight: 700;
}

.breadcrumb-list a {
  color: var(--gold-accent);
  font-weight: 500;
}

/* ==========================================================================
   Hero Section & Popular Games Showcase
   ========================================================================== */
.hero-section {
  padding: 2.25rem 0 1.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(145deg, #1C212E 0%, #121620 100%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--primary-border);
  box-shadow: var(--shadow-md);
}

.badge-pill {
  display: inline-block;
  background: rgba(221, 153, 51, 0.18);
  color: var(--gold-accent);
  border: 1px solid var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

h1 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.28;
  color: #FFFFFF;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.hero-lead {
  font-size: 1.02rem;
  color: #F1F5F9;
  margin-bottom: 1.25rem;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  list-style: none;
}

.trust-chips li {
  background: rgba(10, 13, 20, 0.75);
  border: 1px solid var(--primary-border);
  color: #F8FAFC;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ==========================================================================
   Popular Slots Showcase & VVIP Banner Box
   ========================================================================== */
.popular-showcase-section {
  padding: 1rem 0 2rem;
}

.gold-section-bar {
  background: linear-gradient(90deg, #AA8200 0%, #DD9933 45%, rgba(28, 33, 46, 0.2) 100%);
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 4px solid #FACC15;
}

.gold-section-bar h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.game-cards-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.game-card-item {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  background: #0A0D14;
  border: 2px solid rgba(221, 153, 51, 0.55);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.game-card-item:hover {
  transform: translateY(-5px) scale(1.02);
  filter: brightness(1.08);
  border-color: #FACC15;
  box-shadow: 0 10px 24px rgba(221, 153, 51, 0.35);
}

.game-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 220 / 288;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.vvip-intro-box {
  background: linear-gradient(145deg, #1C212E 0%, #10141D 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--primary-border);
}

.vvip-intro-box h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  color: #FFFFFF;
  font-weight: 800;
  margin: 0 0 0.9rem;
}

.vvip-intro-box p {
  color: #E2E8F0;
  font-size: 0.96rem;
  max-width: 960px;
  margin: 0 auto 1.45rem;
  line-height: 1.75;
}

.vvip-intro-box .brand-gold {
  color: var(--gold-accent);
  font-weight: 700;
}

.vvip-btn-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Visual Protocol: Zero CLS Media Frame (800x450 16:9)
   ========================================================================== */
.media-frame {
  margin: 1rem auto;
  max-width: 800px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-darker);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.content-media-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.media-frame figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: #FDE68A;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   Content Sections, Direct Answer (GEO), Cards & Tables
   ========================================================================== */
main {
  padding-bottom: 3rem;
}

.content-section {
  padding: 1.75rem 0;
}

.content-section > .container {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(221, 153, 51, 0.25);
  box-shadow: var(--shadow-md);
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.72rem);
  color: #FFFFFF;
  font-weight: 800;
  margin-bottom: 1rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(170, 130, 0, 0.85) 0%, rgba(28, 33, 46, 0.3) 85%);
  border-left: 5px solid var(--gold-accent);
}

h3 {
  font-size: 1.16rem;
  color: var(--gold-accent);
  font-weight: 700;
  margin: 1.15rem 0 0.55rem;
}

p {
  color: #F1F5F9;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.direct-answer {
  background: rgba(10, 13, 20, 0.65);
  border: 1px solid var(--primary-border);
  border-left: 4px solid var(--gold-accent);
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-weight: 500;
  margin-bottom: 1.4rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 1.4rem 0;
}

.silo-card {
  background: rgba(10, 13, 20, 0.78);
  border: 1px solid var(--primary-border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.silo-card:hover {
  border-color: var(--gold-accent);
  transform: translateY(-2px);
}

.silo-card h3 {
  margin-top: 0;
  color: var(--gold-accent);
}

.silo-card ul {
  margin: 0.7rem 0 1.1rem 1.2rem;
  color: #E2E8F0;
  font-size: 0.93rem;
}

.silo-card li {
  margin-bottom: 0.35rem;
}

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

.table-wrapper {
  overflow-x: auto;
  margin: 1.4rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-darker);
  text-align: left;
  font-size: 0.94rem;
  color: #FFFFFF;
}

thead {
  background: linear-gradient(90deg, #AA8200 0%, #DD9933 100%);
  color: #FFFFFF;
}

th, td {
  padding: 0.85rem 1.05rem;
  border-bottom: 1px solid rgba(221, 153, 51, 0.2);
}

tbody tr:nth-child(even) {
  background: #161A25;
}

tbody tr:hover {
  background: rgba(221, 153, 51, 0.16);
}

/* ==========================================================================
   FAQ Section & Callout Box
   ========================================================================== */
.faq-list {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.15rem;
}

.faq-item {
  background: rgba(10, 13, 20, 0.78);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.35rem;
}

.faq-item h3 {
  margin-top: 0;
  color: var(--gold-accent);
  font-size: 1.06rem;
}

.faq-item p {
  margin-bottom: 0;
}

.cta-banner {
  background: linear-gradient(135deg, #0A0D14 0%, #241C08 100%);
  border: 2px solid var(--gold-accent);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  text-align: center;
  margin: 1.85rem 0 0.25rem;
}

.cta-banner h2 {
  background: none;
  border-left: none;
  padding: 0;
  color: var(--gold-accent);
}

/* ==========================================================================
   Footer & Full Silo Architecture Directory
   ========================================================================== */
.site-footer {
  background: #080A10;
  color: #E2E8F0;
  padding: 3rem 0 2rem;
  border-top: 3px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.85rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: var(--gold-accent);
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

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

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

.footer-col a {
  color: #E2E8F0;
  font-size: 0.91rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(221, 153, 51, 0.22);
  padding-top: 1.35rem;
  text-align: center;
  font-size: 0.85rem;
  color: #94A3B8;
}

/* ==========================================================================
   Responsive Design (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 1.35rem;
    gap: 1.35rem;
  }

  .game-cards-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
  }

  .navbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0.4rem 0;
  }

  .brand-logo-img {
    height: 46px;
  }

  .desktop-nav {
    display: none;
  }

  .nav-actions .btn-outline {
    display: none;
  }

  .nav-actions .btn-primary {
    padding: 0.48rem 0.95rem;
    font-size: 0.86rem;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .mobile-quick-strip {
    display: block;
    background: #141822;
    border-top: 1px solid var(--border-light);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-quick-strip::-webkit-scrollbar {
    display: none;
  }

  .mobile-strip-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    min-width: max-content;
  }

  .mobile-strip-list a {
    display: inline-block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #FFFFFF;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--bg-darker);
    border: 1px solid var(--border-light);
    white-space: nowrap;
  }

  .mobile-strip-list a.active {
    background: linear-gradient(90deg, #FACC15 0%, #DD9933 100%);
    color: #0A0D14;
    border-color: var(--gold-accent);
  }

  .mobile-drawer {
    display: none;
    background: var(--bg-darker);
    border-top: 2px solid var(--primary);
    border-bottom: 3px solid var(--gold-accent);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.75);
    padding: 1rem 1.25rem 1.35rem;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  .mobile-drawer.is-open {
    display: block;
  }

  .mobile-drawer-nav {
    list-style: none;
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
  }

  .mobile-drawer-nav > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.96rem;
    color: #FFFFFF;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
  }

  .mobile-drawer-nav > li > a.active,
  .mobile-drawer-nav > li > a:hover {
    background: rgba(221, 153, 51, 0.25);
    color: var(--gold-accent);
    border-color: var(--gold-accent);
  }

  .mobile-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 0.45rem 0.25rem 0.25rem;
    list-style: none;
  }

  .mobile-sub-grid a {
    display: block;
    font-size: 0.83rem;
    font-weight: 500;
    color: #E2E8F0;
    background: rgba(28, 33, 46, 0.85);
    border: 1px solid var(--border-light);
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-drawer-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
  }

  .mobile-drawer-cta .btn {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 520px) {
  .game-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .vvip-btn-row .btn {
    width: 100%;
  }
  .mobile-sub-grid {
    grid-template-columns: 1fr;
  }
}
