/* ============================================
   LION191 — Design System
   Theme: Deep Indigo + Electric Blue + Silver
   Niche: Slots (สล็อตเว็บตรง)
   ============================================ */

:root {
  /* Base Palette */
  --color-primary: #0A0E27;
  --color-secondary: #2979FF;
  --color-accent: #B0BEC5;
  --color-bg: #060920;
  --color-surface: rgba(10, 14, 39, 0.6);
  --color-text: #FFFFFF;

  /* Extended Tokens */
  --bg-footer: #050818;
  --bg-card-solid: #111638;
  --bg-card-dark: #0B0F2A;
  --bg-heading-block: rgba(10, 14, 39, 0.5);
  --bg-ticker: #0D1230;
  --text-heading: #D0E0FF;
  --text-heading-alt: #A8C4F0;
  --text-nav-hover: #B0BEC5;
  --text-link: #64B5F6;
  --text-keyword: #64B5F6;
  --text-footer-brand: #2979FF;
  --border-header: rgba(41, 121, 255, 0.3);
  --border-section: #2979FF;
  --border-footer: #2979FF;
  --border-faq: #111638;
  --border-divider: rgba(41, 121, 255, 0.2);

  /* Gradients */
  --gradient-btn-primary: linear-gradient(180deg, #2979FF 0%, #1A5CC7 100%);
  --gradient-btn-secondary: linear-gradient(180deg, #64B5F6 0%, #2979FF 100%);
  --gradient-btn-mobile: linear-gradient(180deg, #2979FF 0%, #1A5CC7 100%);
  --gradient-provider: linear-gradient(135deg, #111638 0%, #162040 100%);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 60px;
  --space-3xl: 80px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Kanit', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(41,121,255,0.06) 0%, transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body:not(.js-ready) .fade-in {
  opacity: 1 !important;
  transform: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================
   Typography
   ============================================ */

h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-heading);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-heading);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-heading-alt);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
}

/* ============================================
   Header
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary);
  border-bottom: 1px solid var(--border-header);
  height: 72px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.header-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Kanit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
}

.header-logo img {
  height: 56px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-family: 'Kanit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-nav-hover);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.cta-header-nav {
  display: inline-block;
  background: var(--gradient-btn-primary);
  color: #FFFFFF !important;
  font-family: 'Kanit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.cta-header-nav:hover {
  transform: scale(0.96);
  color: #FFFFFF !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
  padding: var(--space-2xl) 0;
  text-align: center;
}

.hero-image {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto var(--space-lg);
  border-radius: 10px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================
   CTA Buttons
   ============================================ */

.cta-button,
.cta-primary {
  display: inline-block;
  background: var(--gradient-btn-primary);
  color: #FFFFFF;
  font-family: 'Kanit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
  text-decoration: none;
}

.cta-button:hover,
.cta-primary:hover {
  transform: scale(0.96);
  color: #FFFFFF;
}

.cta-secondary {
  display: inline-block;
  background: var(--gradient-btn-secondary);
  color: #FFFFFF;
  font-family: 'Kanit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,0.9);
  cursor: pointer;
  transition: transform 0.2s ease;
  text-decoration: none;
}

.cta-secondary:hover {
  transform: scale(0.96);
  color: #FFFFFF;
}

/* ============================================
   Floating CTA
   ============================================ */

.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: var(--gradient-btn-primary);
  color: #FFFFFF;
  font-family: 'Kanit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(41,121,255,0.4);
  transition: transform 0.2s ease;
  text-decoration: none;
  animation: floatPulse 2s ease-in-out infinite;
}

.floating-cta:hover {
  transform: scale(0.96);
  color: #FFFFFF;
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(41,121,255,0.4); }
  50% { box-shadow: 0 4px 30px rgba(41,121,255,0.6); }
}

/* ============================================
   Ticker / Announcement Bar
   ============================================ */

.ticker-bar {
  background: var(--bg-ticker);
  border-radius: 20px;
  padding: 10px var(--space-md);
  margin: 0 auto var(--space-xl);
  max-width: 1240px;
  overflow: hidden;
  text-align: center;
  font-size: 14px;
  color: var(--color-accent);
}

/* ============================================
   Content Sections
   ============================================ */

.content-section {
  padding: var(--space-xl) 0;
}

.section-card {
  background: var(--color-surface);
  border: 2px solid var(--border-section);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-card:hover {
  transform: translateY(-5px);
}

.section-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.section-two-col.reverse {
  direction: rtl;
}

.section-two-col.reverse > * {
  direction: ltr;
}

.section-image {
  border-radius: 10px;
  overflow: hidden;
}

.section-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s ease;
}

.section-image img:hover {
  filter: brightness(132%) contrast(121%) saturate(116%);
}

/* ============================================
   H3 Blocks
   ============================================ */

.h3-block {
  background: var(--bg-heading-block);
  border-radius: 10px;
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.h3-block ul,
.h3-block ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.h3-block li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

/* ============================================
   Label Bars / Provider Badges
   ============================================ */

.label-bar {
  background: var(--gradient-provider);
  border: 1px solid var(--border-section);
  border-radius: 7px;
  padding: 10px var(--space-md);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

/* ============================================
   FAQ Section
   ============================================ */

.faq-section {
  background: var(--bg-card-dark);
  border-radius: 20px;
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.faq-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-faq);
  border-radius: 20px;
  padding: 35px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-card:hover {
  transform: translate3d(0, -8px, 0) scale(1.02);
}

.faq-card h3 {
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
  font-size: 18px;
}

.faq-card p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================
   TOC (Table of Contents)
   ============================================ */

.toc-container {
  background: var(--bg-card-solid);
  border: 2px solid var(--border-section);
  border-radius: 10px;
  padding: var(--space-lg);
  margin: var(--space-lg) auto var(--space-xl);
  max-width: 800px;
}

.toc-container h2 {
  font-size: 20px;
  margin-bottom: var(--space-md);
  text-align: center;
}

.toc-list {
  list-style: none;
  counter-reset: toc-counter;
  padding: 0;
}

.toc-list li {
  counter-increment: toc-counter;
  margin-bottom: var(--space-sm);
}

.toc-list li a {
  display: block;
  padding: 8px var(--space-md);
  border-radius: 8px;
  transition: background 0.2s ease;
  color: var(--text-link);
}

.toc-list li a::before {
  content: counter(toc-counter) ". ";
  color: var(--color-secondary);
  font-weight: 600;
}

.toc-list li a:hover {
  background: rgba(41,121,255,0.1);
  color: var(--color-accent);
}

/* ============================================
   Login Form
   ============================================ */

.login-form-container {
  max-width: 420px;
  margin: 0 auto var(--space-xl);
  background: var(--color-surface);
  border: 2px solid var(--border-section);
  border-radius: 10px;
  padding: var(--space-xl);
}

.login-form h3 {
  text-align: center;
  margin-bottom: var(--space-lg);
  font-size: 22px;
  color: var(--text-heading);
}

.login-form label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}

.login-form input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  height: 48px;
  padding: 0 var(--space-md);
  color: var(--color-text);
  font-family: 'Kanit', sans-serif;
  font-size: 16px;
  margin-bottom: var(--space-md);
  transition: border-color 0.2s ease;
}

.login-form input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.login-form .cta-button {
  width: 100%;
  text-align: center;
  margin-bottom: var(--space-md);
}

.form-links {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

/* ============================================
   Promotion Page
   ============================================ */

.promo-card {
  background: var(--color-surface);
  border: 2px solid var(--border-section);
  border-radius: 10px;
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.promo-image {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  border-radius: 10px;
  overflow: hidden;
}

.promo-image img {
  width: 100%;
  height: auto;
  display: block;
}

.promo-steps {
  list-style: none;
  counter-reset: promo-step;
  padding: 0;
}

.promo-steps li {
  counter-increment: promo-step;
  padding: var(--space-sm) 0;
  padding-left: 40px;
  position: relative;
}

.promo-steps li::before {
  content: counter(promo-step);
  position: absolute;
  left: 0;
  top: var(--space-sm);
  width: 28px;
  height: 28px;
  background: var(--gradient-btn-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

/* ============================================
   Archive / Blog Cards
   ============================================ */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.blog-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-faq);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
  transform: translateY(-8px);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: var(--space-md);
}

.blog-card-body h3 {
  font-size: 18px;
  margin-bottom: var(--space-sm);
}

.blog-card-body h3 a {
  color: var(--text-heading);
  text-decoration: none;
}

.blog-card-body h3 a:hover {
  color: var(--color-secondary);
}

.blog-card-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-sm);
}

.blog-card-excerpt {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.blog-card .read-more {
  color: var(--color-secondary);
  font-weight: 500;
  font-size: 14px;
}

/* ============================================
   Blog Post Page
   ============================================ */

.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.blog-article .featured-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.blog-article .featured-image img {
  width: 100%;
  height: auto;
}

.blog-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-lg);
}

.blog-content h2 {
  margin-top: var(--space-xl);
}

.blog-content ul,
.blog-content ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.blog-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.related-posts {
  background: var(--bg-card-dark);
  border-radius: 10px;
  padding: var(--space-lg);
  margin-top: var(--space-xl);
}

.related-posts h3 {
  margin-bottom: var(--space-md);
}

.related-posts ul {
  list-style: none;
  padding: 0;
}

.related-posts li {
  margin-bottom: var(--space-sm);
}

.related-posts a {
  color: var(--text-link);
  font-size: 16px;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--bg-footer);
  border-top: 2px solid var(--border-footer);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer-brand h3 {
  color: var(--text-footer-brand);
  font-size: 22px;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.5;
}

.footer-links h4 {
  color: var(--text-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid var(--border-divider);
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

/* ============================================
   Fade-In Animation
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Terms List
   ============================================ */

.terms-list {
  padding-left: var(--space-lg);
}

.terms-list li {
  margin-bottom: var(--space-sm);
  color: rgba(255,255,255,0.8);
}

/* ============================================
   Keyword Highlight
   ============================================ */

.kw {
  color: var(--text-keyword);
  font-weight: 500;
}

/* ============================================
   Responsive — Tablet (768-1024px)
   ============================================ */

@media (max-width: 1023px) {
  h1 { font-size: 25px; }
  h2 { font-size: 21px; }
  h3 { font-size: 19px; }
  body { font-size: 16px; }

  .cta-header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--border-header);
    z-index: 999;
    pointer-events: none;
    visibility: hidden;
  }

  .main-nav.open {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  .section-two-col {
    grid-template-columns: 1fr;
  }

  .section-two-col.reverse {
    direction: ltr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .archive-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   Responsive — Mobile (<767px)
   ============================================ */

@media (max-width: 767px) {
  h1 { font-size: 20px; }
  h2 { font-size: 19px; }
  h3 { font-size: 17px; }
  body { font-size: 15px; }

  .hero-section {
    padding: var(--space-lg) 0;
  }

  .content-section {
    padding: var(--space-lg) 0;
  }

  .section-card {
    padding: var(--space-md);
  }

  .faq-card {
    padding: var(--space-lg);
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .cta-button,
  .cta-primary,
  .cta-secondary {
    width: 100%;
    text-align: center;
    padding: 14px var(--space-md);
    min-height: 48px;
  }

  .floating-cta {
    bottom: 16px;
    right: 16px;
    left: 16px;
    text-align: center;
  }

  .blog-article {
    padding: var(--space-lg) var(--space-md);
  }
}
