/* ==========================================================================
   SWEET888 Official Affiliate SEO Engine - Master Stylesheet
   Color Palette: Candy Pink #EC4899 | Sky Blue #0EA5E9 | Crisp White #FFFFFF
   Core Web Vitals Optimized: Zero CLS, High Contrast, Mobile-First Responsive
   ========================================================================== */

:root {
  --primary: #EC4899;
  --primary-light: #FDF2F8;
  --primary-border: rgba(236, 72, 153, 0.32);
  --accent: #0284C7;
  --accent-light: #E0F2FE;
  --accent-hover: #0369A1;
  --bg-main: #FFFFFF;
  --bg-soft: #FFF5F9;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --border-light: #FBCFE8;
  --gold-accent: #DB2777;
  --shadow-sm: 0 4px 14px rgba(236, 72, 153, 0.08);
  --shadow-md: 0 10px 28px rgba(14, 165, 233, 0.12);
  --shadow-pink: 0 6px 20px rgba(236, 72, 153, 0.28);
  --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: linear-gradient(180deg, #FFF5F9 0%, #F0F9FF 50%, #FFFFFF 100%);
  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: var(--accent);
}

.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(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  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: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

.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.93rem;
  color: var(--text-main);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #EC4899 0%, #0EA5E9 100%);
  font-weight: 700;
}

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

/* ==========================================================================
   Buttons (Candy Pink, Sky Blue & Emerald Line)
   ========================================================================== */
.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-pink);
}

.btn-primary {
  color: #FFFFFF;
  background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F472B6 0%, #BE185D 100%);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-outline {
  color: #FFFFFF;
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.28);
}

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

.btn-line {
  color: #FFFFFF;
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.25);
}

.btn-line:hover {
  background: linear-gradient(135deg, #4ADE80 0%, #15803D 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(--primary-light);
  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(--primary);
  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: #F0F9FF;
  border-bottom: 1px solid #BAE6FD;
  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: var(--text-secondary);
}

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

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

/* ==========================================================================
   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(135deg, #FFFFFF 0%, #FFF0F7 55%, #F0F9FF 100%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary-border);
  box-shadow: var(--shadow-md);
}

.badge-pill {
  display: inline-block;
  background: linear-gradient(90deg, #FDF2F8 0%, #E0F2FE 100%);
  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.45rem);
  line-height: 1.28;
  color: var(--text-main);
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-secondary);
  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: #FFFFFF;
  border: 1px solid #7DD3FC;
  color: var(--text-main);
  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 & Brand Intro Box
   ========================================================================== */
.popular-showcase-section {
  padding: 1rem 0 2rem;
}

.gold-section-bar {
  background: linear-gradient(90deg, #EC4899 0%, #0EA5E9 75%, rgba(224, 242, 254, 0.2) 100%);
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gold-section-bar h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  color: #FFFFFF;
}

.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: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, filter 0.2s ease;
  text-align: center;
  background: #FFFFFF;
  padding: 4px;
  border: 2px solid #FBCFE8;
  box-shadow: var(--shadow-sm);
}

.game-card-item:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: #0EA5E9;
}

.game-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 220 / 288;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.vvip-intro-box {
  background: linear-gradient(135deg, #FFFFFF 0%, #FDF2F8 50%, #F0F9FF 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid #BAE6FD;
}

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

.vvip-intro-box p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  max-width: 960px;
  margin: 0 auto 1.45rem;
  line-height: 1.75;
}

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

.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: #FFFFFF;
  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: var(--text-secondary);
  background: #FDF2F8;
  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: #FFFFFF;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid #FBCFE8;
  box-shadow: var(--shadow-sm);
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: #FFFFFF;
  font-weight: 800;
  margin-bottom: 1rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: linear-gradient(90deg, #EC4899 0%, #0EA5E9 100%);
  border-left: 5px solid #0284C7;
}

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

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.direct-answer {
  background: linear-gradient(90deg, #FDF2F8 0%, #F0F9FF 100%);
  border: 1px solid #FBCFE8;
  border-left: 4px solid var(--primary);
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  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: #FFFFFF;
  border: 1px solid #BAE6FD;
  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(--primary);
  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: var(--text-secondary);
  font-size: 0.93rem;
}

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

.card-link {
  font-weight: 700;
  color: var(--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 #BAE6FD;
}

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

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

th, td {
  padding: 0.85rem 1.05rem;
  border-bottom: 1px solid #E2E8F0;
}

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

tbody tr:hover {
  background: #E0F2FE;
}

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

.faq-item {
  background: #FFFBFD;
  border: 1px solid #FBCFE8;
  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, #FDF2F8 0%, #E0F2FE 100%);
  border: 2px solid var(--primary);
  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: #0F172A;
  color: #E2E8F0;
  padding: 3rem 0 2rem;
  border-top: 4px 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: #F472B6;
  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: #38BDF8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.35rem;
  text-align: center;
  font-size: 0.85rem;
  color: #CBD5E1;
}

/* ==========================================================================
   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: 44px;
  }

  .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: #FDF2F8;
    border-top: 1px solid #FBCFE8;
    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: var(--text-main);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #FBCFE8;
    white-space: nowrap;
  }

  .mobile-strip-list a.active {
    background: linear-gradient(135deg, #EC4899 0%, #0EA5E9 100%);
    color: #FFFFFF;
    border-color: transparent;
  }

  .mobile-drawer {
    display: none;
    background: #FFFFFF;
    border-top: 2px solid var(--primary);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2);
    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: var(--text-main);
    background: #FFF5F9;
    border: 1px solid #FBCFE8;
  }

  .mobile-drawer-nav > li > a.active,
  .mobile-drawer-nav > li > a:hover {
    background: #E0F2FE;
    color: var(--accent);
    border-color: #38BDF8;
  }

  .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: var(--text-secondary);
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    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 #E2E8F0;
  }

  .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;
  }
}
