/* ============================================
   MAIN STYLESHEET - Luxury Casino Theme
   Color Scheme: Deep Purple + Gold + Crimson
   Font: System + Noto Sans SC
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

/* === CSS Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #0a0618;
  --primary-mid: #1a0f3c;
  --primary-light: #2d1b69;
  --accent-gold: #daa520;
  --accent-gold-light: #ffd700;
  --accent-crimson: #dc143c;
  --accent-crimson-dark: #8b0000;
  --text-white: #f0ece4;
  --text-muted: #a8a0b8;
  --text-gold: #e8c547;
  --card-bg: rgba(30, 18, 68, 0.85);
  --card-border: rgba(218, 165, 32, 0.25);
  --gradient-hero: linear-gradient(135deg, #0a0618 0%, #1a0f3c 40%, #2d1b69 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 18, 68, 0.9), rgba(15, 8, 40, 0.95));
  --gradient-btn: linear-gradient(135deg, #daa520, #ffd700);
  --gradient-cta: linear-gradient(135deg, #dc143c, #ff4060);
  --shadow-gold: 0 0 20px rgba(218, 165, 32, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --font-main: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-med: 0.35s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--primary-dark);
  color: var(--text-white);
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-white);
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.8rem; color: var(--text-gold); }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* === Layout Container === */
.site-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === HEADER (Non-sticky) === */
.site-header {
  background: linear-gradient(180deg, rgba(10, 6, 24, 0.98), rgba(26, 15, 60, 0.95));
  border-bottom: 1px solid var(--card-border);
  position: relative;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-register {
  background: var(--gradient-cta);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
  color: #fff;
}

.btn-login {
  background: transparent;
  color: var(--accent-gold);
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--accent-gold);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-login:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
}

/* === Navigation === */
.main-nav {
  background: rgba(15, 8, 40, 0.6);
  border-top: 1px solid rgba(218, 165, 32, 0.1);
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.nav-list li a {
  display: block;
  padding: 14px 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: all var(--transition-med);
  transform: translateX(-50%);
}

.nav-list li a:hover,
.nav-list li a.active {
  color: var(--accent-gold);
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
  width: 60%;
}

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--accent-gold);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* === HERO SECTION === */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 6, 24, 0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.hero-overlay h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent-gold-light);
  text-shadow: 0 2px 20px rgba(218, 165, 32, 0.5);
  margin-bottom: 16px;
}

.hero-overlay p {
  font-size: 1.2rem;
  color: var(--text-white);
  max-width: 600px;
  margin-bottom: 24px;
}

.btn-cta {
  display: inline-block;
  background: var(--gradient-cta);
  color: #fff;
  padding: 14px 40px;
  border-radius: var(--radius-xl);
  font-size: 1.1rem;
  font-weight: 700;
  transition: all var(--transition-med);
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 20, 60, 0.5);
  color: #fff;
}

/* === SECTION COMMON === */
.section-block {
  padding: 60px 0;
}

.section-block:nth-child(even) {
  background: rgba(15, 8, 40, 0.3);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-btn);
  border-radius: 2px;
}

.section-title p {
  margin-top: 10px;
  font-size: 1rem;
}

/* === VIDEO MODULE === */
.video-module {
  position: relative;
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.video-module .video-thumb {
  width: 100%;
  display: block;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(220, 20, 60, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-med);
}

.video-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 28px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}

.video-module:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(220, 20, 60, 1);
}

.video-player-wrapper {
  display: none;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-player-wrapper iframe,
.video-player-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* === CARD GRID === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-med);
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: var(--accent-gold);
}

.game-card .card-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.game-card .card-body {
  padding: 18px;
}

.game-card .card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--accent-gold);
}

.game-card .card-body p {
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.btn-play {
  display: inline-block;
  background: var(--gradient-btn);
  color: var(--primary-dark);
  padding: 8px 22px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.btn-play:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
  color: var(--primary-dark);
}

/* === LOTTERY MODULE === */
.lottery-module {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
}

.lottery-balls-img {
  max-width: 600px;
  margin: 20px auto;
}

.lottery-trend-img {
  max-width: 800px;
  margin: 20px auto;
}

/* === PROMO SECTION === */
.promo-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin: 20px 0;
}

.promo-banner img {
  width: 100%;
}

/* === ABOUT SECTION === */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text {
  line-height: 1.9;
}

.about-text p {
  margin-bottom: 16px;
  text-align: justify;
}

.about-sidebar {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 30px;
}

/* === PAYMENT SECTION === */
.payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.payment-item {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  width: 160px;
  transition: all var(--transition-fast);
}

.payment-item:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
}

.payment-item img {
  width: 80px;
  margin: 0 auto 10px;
}

/* === LICENSE SECTION === */
.license-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.license-card {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  max-width: 400px;
}

.license-card img {
  max-width: 250px;
  margin: 0 auto 15px;
}

/* === SUPPORT SECTION === */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.support-card {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all var(--transition-fast);
}

.support-card:hover {
  border-color: var(--accent-gold);
}

.support-card img {
  width: 60px;
  margin: 0 auto 12px;
  border-radius: 50%;
}

/* === FAQ SECTION === */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-white);
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: rgba(218, 165, 32, 0.08);
}

.faq-question .faq-icon {
  font-size: 1.4rem;
  color: var(--accent-gold);
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 18px;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* === REVIEWS === */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.review-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
}

.review-meta {
  flex: 1;
}

.review-meta .reviewer-name {
  font-weight: 700;
  color: var(--text-white);
}

.review-meta .reviewer-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-stars {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.review-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
  opacity: 0.7;
}

/* === ARTICLES === */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-med);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.article-card .article-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-card .article-body {
  padding: 18px;
}

.article-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.article-card p {
  font-size: 0.88rem;
}

.article-card .read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-gold);
  font-size: 0.88rem;
  font-weight: 600;
}

/* === AUTHOR BOX === */
.author-box {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 30px 0;
}

.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
}

.author-info h4 {
  color: var(--accent-gold);
}

.author-info p {
  font-size: 0.9rem;
}

/* === BREADCRUMB === */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.breadcrumb span {
  color: var(--text-muted);
  margin: 0 8px;
}

.breadcrumb .current {
  color: var(--accent-gold);
}

/* === INNER PAGE BANNER === */
.inner-banner {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.inner-banner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.inner-banner .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(10, 6, 24, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner-banner .banner-overlay h1 {
  font-size: 2.4rem;
  color: var(--accent-gold-light);
  text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

/* === INNER PAGE CONTENT === */
.page-content {
  padding: 40px 0;
}

.page-content article {
  max-width: 1000px;
  margin: 0 auto;
}

.page-content article p {
  text-align: justify;
  margin-bottom: 16px;
  line-height: 1.9;
}

.page-content article h2 {
  margin-top: 30px;
}

.content-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.content-img-grid img {
  border-radius: var(--radius-md);
  width: 100%;
}

/* === APP DOWNLOAD PAGE === */
.app-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
}

.app-info h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.app-info p {
  margin-bottom: 20px;
}

.app-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.app-buttons img {
  height: 55px;
  width: auto;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast);
}

.app-buttons img:hover {
  transform: scale(1.05);
}

.app-mockup img {
  max-width: 400px;
  margin: 0 auto;
}

.app-qr {
  text-align: center;
  margin: 40px 0;
}

.app-qr img {
  max-width: 200px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 3px solid var(--accent-gold);
}

/* === FOOTER === */
.site-footer {
  background: linear-gradient(180deg, rgba(10, 6, 24, 0.95), #050210);
  border-top: 1px solid var(--card-border);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--accent-gold);
  font-size: 1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-social img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: transform var(--transition-fast);
}

.footer-social img:hover {
  transform: scale(1.15);
}

.footer-payment {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.footer-payment img {
  height: 35px;
  width: auto;
  border-radius: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(218, 165, 32, 0.15);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-age {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.footer-age img {
  width: 40px;
}

/* === RESPONSIBLE GAMING === */
.responsible-section {
  background: rgba(220, 20, 60, 0.05);
  border: 1px solid rgba(220, 20, 60, 0.2);
  border-radius: var(--radius-md);
  padding: 30px;
  margin: 30px 0;
}

.responsible-section h3 {
  color: var(--accent-crimson);
}

/* === RECHARGE ACTIVITY === */
.recharge-section {
  text-align: center;
}

.recharge-section img {
  border-radius: var(--radius-lg);
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  .app-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .main-nav.open {
    max-height: 500px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list li a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

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

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

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }

  .section-block {
    padding: 40px 0;
  }

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

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

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

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

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .license-grid {
    flex-direction: column;
    align-items: center;
  }

  .inner-banner {
    min-height: 180px;
  }

  .inner-banner img {
    height: 180px;
  }

  .inner-banner .banner-overlay h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

  .header-cta .btn-login {
    display: none;
  }

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

  .payment-grid {
    gap: 10px;
  }

  .payment-item {
    width: 120px;
    padding: 12px;
  }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* === PRINT === */
@media print {
  .site-header, .site-footer, .btn-cta, .btn-play {
    display: none;
  }
}
