/* ================================================
   ROXYCLUBS — Main Stylesheet
   Theme: Deep Ocean + Copper/Rose Gold
   Niche: Multi-Product (เว็บพนันออนไลน์)
   ================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Base Palette */
  --color-primary: #0E1420;
  --color-secondary: #E8975C;
  --color-accent: #F0C987;
  --color-bg: #0A0F18;
  --color-surface: rgba(232, 151, 92, 0.10);
  --color-text: #FFFFFF;

  /* Extended Tokens */
  --bg-footer: #080C14;
  --bg-card-solid: #141C2A;
  --bg-card-dark: #0C1220;
  --bg-heading-block: rgba(14, 20, 32, 0.5);
  --bg-ticker: #111826;
  --text-heading: #F5DEB3;
  --text-heading-alt: #FAEBD7;
  --text-nav-hover: #F0C987;
  --text-link: #F0B87C;
  --text-keyword: #E8975C;
  --text-footer-brand: #E8975C;
  --border-header: rgba(232, 151, 92, 0.3);
  --border-section: #E8975C;
  --border-footer: #E8975C;
  --border-faq: #1A2435;
  --border-divider: rgba(232, 151, 92, 0.2);

  /* Gradients */
  --gradient-btn-primary: linear-gradient(180deg, #E8975C 0%, #C47A3E 100%);
  --gradient-btn-secondary: linear-gradient(180deg, #F0B87C 0%, #E8975C 100%);
  --gradient-btn-mobile: linear-gradient(180deg, #E8975C 0%, #C47A3E 100%);
  --gradient-provider: linear-gradient(135deg, #141C2A 0%, #1A2435 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-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body:not(.js-ready) main {
  opacity: 0;
}
body.js-ready main {
  opacity: 1;
  transition: opacity 0.3s ease;
}

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

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

h1, h2, h3, h4 {
  font-family: 'Kanit', sans-serif;
  color: var(--text-heading);
  line-height: 1.3;
  font-weight: 600;
}
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 25px; }
h3 { font-size: 20px; color: var(--text-heading-alt); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 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;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header-logo img {
  height: 56px;
  width: auto;
  display: block;
}
.header-logo {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--color-accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.header-nav a {
  color: var(--color-text);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--text-nav-hover);
}
.cta-header-nav {
  display: inline-block;
  background: var(--gradient-btn-primary);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 500;
  font-size: 16px;
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
  text-decoration: none;
}
.cta-header-nav:hover {
  transform: scale(0.96);
  color: #fff !important;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-text);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 24, 0.98);
  z-index: 999;
  padding: var(--space-xl);
  flex-direction: column;
  gap: var(--space-lg);
}
.mobile-nav.active {
  display: flex;
}
.mobile-nav a {
  color: var(--color-text);
  font-size: 20px;
  font-weight: 600;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-divider);
}
.mobile-nav .cta-button {
  display: block;
  text-align: center;
  margin-top: var(--space-md);
}

/* --- CTA Button --- */
.cta-button {
  display: inline-block;
  background: var(--gradient-btn-primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 25px;
  font-weight: 500;
  font-size: 16px;
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.cta-button:hover {
  transform: scale(0.96);
  color: #fff;
}
.cta-button-secondary {
  background: var(--gradient-btn-secondary);
  border: 1px solid rgba(255,255,255,0.9);
}

/* --- Hero Section --- */
.hero-section {
  padding: var(--space-2xl) 0;
  text-align: center;
}
.hero-banner img {
  border-radius: 10px;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: var(--space-lg);
}
.hero-section h1 {
  margin-bottom: var(--space-md);
}
.hero-section p {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  font-size: 18px;
  line-height: 1.7;
}

/* --- TOC (Table of Contents) --- */
.toc-container {
  background: var(--bg-card-dark);
  border: 2px solid var(--border-section);
  border-radius: 10px;
  padding: var(--space-lg);
  margin: var(--space-xl) auto;
  max-width: 800px;
}
.toc-container h2 {
  font-size: 20px;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}
.toc-container ol {
  list-style: decimal;
  padding-left: var(--space-lg);
}
.toc-container li {
  margin-bottom: var(--space-sm);
}
.toc-container a {
  color: var(--text-link);
  font-size: 16px;
  transition: color 0.2s ease;
}
.toc-container a:hover {
  color: var(--color-accent);
}

/* --- Ticker / Announcement Bar --- */
.ticker-bar {
  background: var(--bg-ticker);
  border-radius: 20px;
  padding: 12px var(--space-lg);
  margin: var(--space-lg) auto;
  max-width: 1240px;
  overflow: hidden;
  position: relative;
}
.ticker-bar .ticker-text {
  display: inline-block;
  white-space: nowrap;
  animation: tickerScroll 20s linear infinite;
  color: var(--color-accent);
  font-weight: 500;
}
@keyframes tickerScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* --- Content Sections --- */
.content-section {
  padding: var(--space-xl) 0;
}
.content-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);
}
.content-card h2 {
  margin-bottom: var(--space-md);
}
.content-card p {
  margin-bottom: var(--space-md);
}
.content-image img {
  filter: brightness(117%) contrast(124%);
  border-radius: 10px;
  width: 100%;
  height: auto;
  display: block;
}
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.two-column.reverse {
  direction: rtl;
}
.two-column.reverse > * {
  direction: ltr;
}

/* --- H3 Feature Blocks --- */
.h3-block {
  background: var(--bg-heading-block);
  border-radius: 10px;
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.h3-block h3 {
  margin-bottom: var(--space-sm);
}
.h3-block ul, .h3-block ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}
.h3-block li {
  margin-bottom: var(--space-xs);
  line-height: 1.6;
}

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

/* --- FAQ / Review Cards --- */
.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(--color-accent);
  margin-bottom: var(--space-sm);
  font-size: 18px;
}
.faq-card p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}

/* --- Registration Steps --- */
.steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.steps-list li {
  counter-increment: step;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card-solid);
  border-radius: 10px;
  margin-bottom: var(--space-md);
  padding-left: 60px;
  position: relative;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--gradient-btn-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

/* --- Promo Images --- */
.promo-image {
  max-width: 600px;
  margin: 0 auto;
  display: block;
  width: 100%;
  height: auto;
}
.promo-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* --- Login Form --- */
.login-form-wrapper {
  max-width: 480px;
  margin: 0 auto var(--space-xl);
  background: var(--bg-card-solid);
  border: 2px solid var(--border-section);
  border-radius: 20px;
  padding: var(--space-xl);
}
.login-form-wrapper h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
  font-size: 22px;
}
.form-group {
  margin-bottom: var(--space-md);
}
.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  font-size: 15px;
}
.form-group input {
  width: 100%;
  height: 48px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 0 var(--space-md);
  color: var(--color-text);
  font-family: 'Kanit', sans-serif;
  font-size: 16px;
  transition: border-color 0.2s ease;
}
.form-group input:focus {
  outline: none;
  border-color: var(--color-accent);
}
.login-form-wrapper .cta-button {
  width: 100%;
  text-align: center;
  margin-top: var(--space-md);
  display: block;
}

/* --- Archive Cards --- */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.archive-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-faq);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.archive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.archive-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.archive-card-body {
  padding: var(--space-lg);
}
.archive-card-body h3 {
  font-size: 18px;
  margin-bottom: var(--space-sm);
}
.archive-card-body h3 a {
  color: var(--text-heading);
  text-decoration: none;
}
.archive-card-body h3 a:hover {
  color: var(--color-accent);
}
.archive-card-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-sm);
}
.archive-card-body p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}
.read-more {
  color: var(--color-secondary);
  font-weight: 500;
  font-size: 15px;
}
.read-more:hover {
  color: var(--color-accent);
}

/* --- Blog Post --- */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}
.blog-post .featured-image {
  margin-bottom: var(--space-lg);
  border-radius: 10px;
  overflow: hidden;
}
.blog-post .featured-image img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-post h1 {
  margin-bottom: var(--space-md);
}
.blog-post h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-divider);
}
.blog-post p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}
.blog-post ul, .blog-post ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}
.blog-post li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}
.blog-meta {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin-bottom: var(--space-lg);
}
.blog-cross-links {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-divider);
  border-radius: 10px;
  padding: var(--space-lg);
  margin-top: var(--space-xl);
}
.blog-cross-links h3 {
  font-size: 18px;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}
.blog-cross-links ul {
  list-style: none;
  padding: 0;
}
.blog-cross-links li {
  margin-bottom: var(--space-sm);
}
.blog-cross-links a {
  color: var(--text-link);
  font-size: 16px;
}

/* --- Floating CTA --- */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 998;
  animation: floatPulse 2s ease-in-out infinite;
}
.floating-cta .cta-button {
  box-shadow: 0 4px 20px rgba(232, 151, 92, 0.4);
  padding: 14px 28px;
  font-size: 15px;
}
@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-footer);
  border-top: 2px solid var(--border-footer);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-brand {
  color: var(--text-footer-brand);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.footer-section h4 {
  color: var(--color-accent);
  font-size: 16px;
  margin-bottom: var(--space-md);
}
.footer-section a {
  display: block;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-sm);
  font-size: 15px;
}
.footer-section a:hover {
  color: var(--color-accent);
}
.footer-section p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.6;
}
.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-divider);
  color: rgba(255,255,255,0.4);
  font-size: 14px;
}
.footer-cta {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.footer-cta .cta-button-secondary {
  display: inline-block;
  background: var(--gradient-btn-secondary);
  border: 1px solid rgba(255,255,255,0.9);
  color: #fff;
  padding: 14px 32px;
  border-radius: 25px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.footer-cta .cta-button-secondary:hover {
  transform: scale(0.96);
}

/* --- Scroll Animations --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
}
.gallery-grid img {
  border-radius: 7px;
  transition: filter 0.3s ease;
  width: 100%;
  height: auto;
  display: block;
}
.gallery-grid img:hover {
  filter: brightness(132%) contrast(121%) saturate(116%);
}

/* --- Keyword Highlight --- */
.kw-highlight {
  color: var(--text-keyword);
  font-weight: 500;
}

/* ================================================
   RESPONSIVE BREAKPOINTS
   ================================================ */

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

  .cta-header-nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .header-nav {
    display: none;
  }
  .two-column {
    grid-template-columns: 1fr;
  }
  .two-column.reverse {
    direction: ltr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .container {
    padding: 0 var(--space-sm);
  }
  .hero-section {
    padding: var(--space-xl) 0;
  }
  .content-card {
    padding: var(--space-md);
  }
  .faq-card {
    padding: var(--space-lg);
  }
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-button {
    width: 100%;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .floating-cta {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
  .floating-cta .cta-button {
    width: 100%;
    text-align: center;
    display: block;
  }
  .steps-list li {
    padding-left: 52px;
  }
  .blog-post {
    padding: var(--space-xl) var(--space-sm);
  }
}
