/* ============================================
   FUN88 Bet TH - Main Stylesheet
   Theme: Dark Green | Accent: Emerald
   ============================================ */

:root {
  --primary: #0b1a0b;
  --primary-light: #142814;
  --accent: #2ecc71;
  --accent-light: #82e0aa;
  --red: #c62828;
  --red-light: #ef5350;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e0e0e0;
  --gray-300: #bdbdbd;
  --gray-600: #757575;
  --gray-800: #424242;
  --gradient-accent: linear-gradient(135deg, #2ecc71, #82e0aa, #2ecc71);
  --gradient-hero: linear-gradient(135deg, #0b1a0b 0%, #1a3a1a 50%, #0b1a0b 100%);
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-accent: 0 4px 20px rgba(46,204,113,0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Noto Sans Thai', sans-serif;
  background: var(--primary);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  color: var(--accent-light);
  text-shadow: 0 0 10px rgba(46,204,113,0.5);
}

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

/* ===== HEADER ===== */
.header {
  background: rgba(11,26,11,0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 2px solid var(--accent);
  padding: 0 2rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.logo span {
  -webkit-text-fill-color: var(--red-light);
  font-size: 0.5em;
  vertical-align: super;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav .btn-register {
  background: var(--red);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  border-bottom: none;
  animation: pulse-btn 2s infinite;
}

.nav .btn-register:hover {
  background: var(--red-light);
  transform: scale(1.05);
}

@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198,40,40,0.7); }
  50% { box-shadow: 0 0 0 10px rgba(198,40,40,0); }
}

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

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
  margin-top: 70px;
  padding: 5rem 2rem;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(46,204,113,0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(198,40,40,0.1) 0%, transparent 50%);
  animation: hero-glow 8s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray-200);
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  border: 2px solid var(--red);
}

.btn-primary:hover {
  background: var(--red-light);
  border-color: var(--red-light);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid var(--accent);
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

/* ===== STATS BANNER ===== */
.stats-banner {
  padding: 2rem;
  background: var(--primary-light);
  border-top: 1px solid rgba(46,204,113,0.2);
  border-bottom: 1px solid rgba(46,204,113,0.2);
}

.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  flex: 1;
  min-width: 150px;
}

.stat-item .stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item .stat-label {
  color: var(--gray-300);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* ===== FEATURES / HIGHLIGHTS ===== */
.features {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--gray-300);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--primary-light);
  border: 1px solid rgba(46,204,113,0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--gray-300);
  font-size: 0.95rem;
}

/* ===== STEPS SECTION ===== */
.steps {
  padding: 4rem 2rem;
  background: var(--primary-light);
}

.steps-inner {
  max-width: 900px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.3rem;
}

.step-content h3 {
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.step-content p {
  color: var(--gray-300);
}

/* ===== PROMO CARDS ===== */
.promo-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.promo-card {
  background: linear-gradient(135deg, var(--primary-light), rgba(46,204,113,0.1));
  border: 1px solid rgba(46,204,113,0.3);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-accent);
}

.promo-card-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, #1a3a1a, #0b1a0b);
}

.promo-card-body {
  padding: 1.5rem;
}

.promo-card-body h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.promo-card-body p {
  color: var(--gray-300);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.promo-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ===== BLOG / ARTICLES ===== */
.blog-section {
  padding: 4rem 2rem;
  background: var(--primary-light);
}

.blog-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--primary);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(46,204,113,0.15);
  transition: all 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.blog-card-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, #1a3a1a 0%, #0b1a0b 100%);
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-body .blog-date {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

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

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

.blog-card-body p {
  color: var(--gray-300);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.read-more:hover {
  text-decoration: underline;
}

/* ===== BLOG POST PAGE ===== */
.blog-post {
  margin-top: 70px;
  padding: 3rem 2rem;
}

.blog-post-inner {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-inner h1 {
  font-size: 2.2rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-post-meta {
  color: var(--gray-300);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.blog-post-inner h2 {
  color: var(--accent);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.blog-post-inner p {
  color: var(--gray-200);
  margin-bottom: 1rem;
}

.blog-post-inner ul, .blog-post-inner ol {
  color: var(--gray-200);
  margin: 1rem 0 1rem 2rem;
}

.blog-post-inner li {
  margin-bottom: 0.5rem;
}

.blog-post-cta {
  background: linear-gradient(135deg, rgba(198,40,40,0.2), rgba(46,204,113,0.1));
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.blog-post-cta h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.blog-post-cta p {
  margin-bottom: 1rem;
}

/* ===== CONTACT / CTA ===== */
.cta-section {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), #0f2f0f);
}

.cta-section h2 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--gray-300);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(5,12,5,0.95);
  padding: 3rem 2rem 1rem;
  border-top: 2px solid var(--accent);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-col p, .footer-col a {
  color: var(--gray-300);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(46,204,113,0.2);
  color: var(--gray-600);
  font-size: 0.85rem;
}

/* ===== PAGE BANNER ===== */
.page-banner {
  margin-top: 70px;
  padding: 4rem 2rem;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(46,204,113,0.1) 0%, transparent 70%);
}

.page-banner h1 {
  position: relative;
  font-size: 2.5rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.page-banner p {
  position: relative;
  color: var(--gray-300);
  font-size: 1.1rem;
}

/* ===== CONTENT SECTION ===== */
.content-section {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.content-section h2 {
  color: var(--accent);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.content-section h3 {
  color: var(--accent-light);
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

.content-section p {
  color: var(--gray-200);
  margin-bottom: 1rem;
}

.content-section ul, .content-section ol {
  color: var(--gray-200);
  margin: 1rem 0 1rem 2rem;
}

.content-section li {
  margin-bottom: 0.5rem;
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--primary-light);
  border: 1px solid rgba(46,204,113,0.15);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--gray-300);
  font-size: 0.95rem;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    border-bottom: 2px solid var(--accent);
  }

  .nav.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .features-grid,
  .promo-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .page-banner h1 {
    font-size: 1.8rem;
  }

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

  .stats-inner {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ===== TABLE ===== */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--primary-light);
  border-radius: 8px;
  overflow: hidden;
}

.styled-table th {
  background: var(--accent);
  color: var(--primary);
  padding: 1rem;
  text-align: left;
  font-weight: 700;
}

.styled-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(46,204,113,0.1);
  color: var(--gray-200);
}

.styled-table tr:hover td {
  background: rgba(46,204,113,0.05);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  z-index: 999;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}
