/* me88 Singapore - Main Stylesheet */
:root {
  --primary: #ff4e00;
  --primary-hover: #e64400;
  --dark-bg: #181818;
  --nav-bg: #2a2a2a;
  --card-bg: #333333;
  --card-hover: #3d3d3d;
  --border: #484848;
  --text-white: #ffffff;
  --text-muted: #b5b5b5;
  --text-dark: #333333;
  --gold: #f5c518;
  --gradient: linear-gradient(135deg, #ff4e00 0%, #ff8c00 100%);
  --section-bg: #222222;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-white);
  line-height: 1.7;
  font-size: 16px;
}

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

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

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

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

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================
   HEADER & NAVIGATION
======================== */
header {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 2px 20px rgba(255, 78, 0, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1280px;
  margin: 0 auto;
  height: 65px;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  color: var(--text-white);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(255, 78, 0, 0.1);
}

.auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-login, .btn-register {
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-login {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-login:hover {
  background: var(--primary);
  color: #fff;
}

.btn-register {
  background: var(--gradient);
  color: #fff;
  border: 2px solid transparent;
}

.btn-register:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 78, 0, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========================
   HERO SLIDER
======================== */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #111;
}

.slider-container {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  max-width: 540px;
  z-index: 2;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
}

.slide-content {
  z-index: 3;
}

.slide-content h1,
.slide-content h2 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slide-content p {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.slide-content .btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.slide-content .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 78, 0, 0.5);
  color: #fff;
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.slider-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-prev:hover, .slider-next:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Page Hero (non-slider) */
.page-hero {
  position: relative;
  overflow: hidden;
  height: 380px;
  background: #111;
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.page-hero-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  max-width: 600px;
}

.page-hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.page-hero-content p {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* ========================
   BUTTONS
======================== */
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--gradient);
  color: #fff !important;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,78,0,0.45);
}

.btn-secondary {
  display: inline-block;
  padding: 10px 28px;
  background: transparent;
  color: var(--primary) !important;
  font-weight: 700;
  border-radius: 4px;
  border: 2px solid var(--primary);
  text-transform: uppercase;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff !important;
}

/* ========================
   SECTION STYLES
======================== */
section {
  padding: 60px 0;
}

.section-dark {
  background: var(--section-bg);
}

.section-darker {
  background: var(--dark-bg);
}

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

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

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

.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 20px auto 0;
}

/* Game Category Cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.game-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(255,78,0,0.25);
  border-color: var(--primary);
}

.game-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s;
}

.game-card:hover img {
  transform: scale(1.05);
}

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

.game-card-content h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--text-white);
}

.game-card-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.game-card-tag {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
}

/* ========================
   PROMO BANNER
======================== */
.promo-banner {
  background: linear-gradient(135deg, #1a0a00 0%, #2d1400 50%, #1a0a00 100%);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,78,0,0.08) 0%, transparent 60%);
}

.promo-banner h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.promo-banner .bonus-amount {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
  margin: 10px 0;
  text-shadow: 0 0 20px rgba(245,197,24,0.4);
}

.promo-banner p {
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 24px;
}

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

.feature-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* ========================
   CONTENT SECTIONS
======================== */
.content-block {
  max-width: 900px;
  margin: 0 auto;
}

.content-block h2 {
  font-size: 1.8rem;
  margin: 30px 0 14px;
  color: var(--text-white);
}

.content-block h3 {
  font-size: 1.3rem;
  margin: 24px 0 10px;
  color: var(--primary);
}

.content-block p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.8;
}

.content-block ul, .content-block ol {
  color: var(--text-muted);
  padding-left: 24px;
  margin-bottom: 14px;
}

.content-block ul li, .content-block ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.content-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 40px 0;
}

.content-with-image.reverse {
  direction: rtl;
}

.content-with-image.reverse > * {
  direction: ltr;
}

.content-with-image img {
  border-radius: 10px;
  border: 2px solid var(--border);
}

/* ========================
   PROVIDERS
======================== */
.providers-section {
  padding: 50px 0;
  background: var(--section-bg);
}

.providers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 30px;
}

.provider-badge {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.3s;
}

.provider-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ========================
   FAQ SECTION
======================== */
.faq-section {
  padding: 60px 0;
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.active {
  border-color: var(--primary);
}

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

.faq-question:hover {
  background: rgba(255,78,0,0.06);
}

.faq-icon {
  color: var(--primary);
  font-size: 1.3rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 22px;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 22px 18px;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* ========================
   STATS STRIP
======================== */
.stats-strip {
  background: var(--gradient);
  padding: 30px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 20px;
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.stat-item p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin: 0;
}

/* ========================
   PROMOTIONS CARDS
======================== */
.promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.promo-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.promo-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(255,78,0,0.2);
}

.promo-card-badge {
  background: var(--gradient);
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.5px;
}

.promo-card-body {
  padding: 22px;
}

.promo-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.promo-card-body .bonus-highlight {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  margin: 8px 0;
  display: block;
}

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

/* ========================
   PAYMENT METHODS
======================== */
.payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.payment-badge {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================
   FOOTER
======================== */
footer {
  background: #111111;
  border-top: 2px solid var(--primary);
  padding-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 38px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

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

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

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: #666;
  margin-top: 8px;
  line-height: 1.6;
}

.license-badges {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.license-badge {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ========================
   BREADCRUMB
======================== */
.breadcrumb {
  padding: 14px 0;
  background: var(--section-bg);
  border-bottom: 1px solid var(--border);
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
  font-size: 0.88rem;
}

.breadcrumb ol li::after {
  content: '›';
  margin-left: 8px;
  color: var(--border);
}

.breadcrumb ol li:last-child::after {
  content: '';
}

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

.breadcrumb ol li:last-child {
  color: var(--primary);
}

/* ========================
   404 PAGE
======================== */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  text-align: center;
  padding: 40px 20px;
}

.error-content h1 {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  text-shadow: 0 0 40px rgba(255,78,0,0.4);
}

.error-content h2 {
  font-size: 2rem;
  margin: 10px 0 16px;
}

.error-content p {
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ========================
   BADGE / TAG
======================== */
.badge-new {
  background: #00a651;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  margin-left: 6px;
}

.badge-hot {
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  margin-left: 6px;
}

/* ========================
   TABLE
======================== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.comparison-table th {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.comparison-table tr:nth-child(even) td {
  background: var(--card-bg);
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links, .auth-buttons {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    padding: 20px;
    gap: 8px;
    z-index: 999;
    border-bottom: 2px solid var(--primary);
  }

  .nav-links.open + .auth-buttons {
    display: flex;
    position: fixed;
    top: calc(65px + var(--menu-height, 300px));
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    padding: 12px 20px;
    z-index: 998;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .slide img {
    height: 260px;
  }

  .slide-content h1,
  .slide-content h2 {
    font-size: 1.6rem;
  }

  .page-hero {
    height: 240px;
  }

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

  .content-with-image {
    grid-template-columns: 1fr;
  }

  .content-with-image.reverse {
    direction: ltr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .promo-banner h2 {
    font-size: 1.6rem;
  }

  .promo-banner .bonus-amount {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .game-grid {
    grid-template-columns: 1fr;
  }

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

  .promo-cards {
    grid-template-columns: 1fr;
  }
}
