/* ============================================
   ME88 Singapore - Global Stylesheet
   ============================================ */

:root {
  --primary-bg: #0d0d1a;
  --secondary-bg: #12122a;
  --card-bg: #1a1a35;
  --accent-orange: #ff4e00;
  --accent-gold: #ffd700;
  --accent-orange-hover: #e64300;
  --text-white: #ffffff;
  --text-light: #cccccc;
  --text-muted: #888888;
  --border-color: #2a2a4a;
  --nav-bg: #080814;
  --footer-bg: #060610;
  --gradient-orange: linear-gradient(135deg, #ff4e00 0%, #e64300 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
  --gradient-dark: linear-gradient(180deg, #0d0d1a 0%, #12122a 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-white);
  line-height: 1.7;
  font-size: 16px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  background-color: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 20px rgba(255, 78, 0, 0.1);
}

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

.nav-logo img {
  height: 45px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-menu li a {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--accent-orange);
  background-color: rgba(255, 78, 0, 0.1);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-login {
  background: transparent;
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange);
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-register {
  background: var(--gradient-orange);
  color: #fff;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 78, 0, 0.3);
}

.btn-register:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 78, 0, 0.4);
}

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

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

/* ============================================
   HERO / BANNER SLIDER
   ============================================ */

.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--secondary-bg);
}

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

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

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

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 60px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.slide-cta {
  display: inline-block;
  background: var(--gradient-orange);
  color: #fff;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 78, 0, 0.4);
}

.slide-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 78, 0, 0.5);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,78,0,0.8);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover { background: var(--accent-orange); }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

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

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

.dot.active { background: var(--accent-orange); }

/* ============================================
   PAGE BANNER (non-homepage)
   ============================================ */

.page-banner {
  position: relative;
  overflow: hidden;
}

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

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 100%);
  display: flex;
  align-items: center;
  padding: 0 60px;
}

.page-banner-text h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  margin-bottom: 10px;
}

.page-banner-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
}

.breadcrumb {
  padding: 12px 0;
  background: var(--secondary-bg);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-inner a { color: var(--accent-orange); }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-inner span { margin: 0 6px; }

/* ============================================
   SECTIONS & LAYOUT
   ============================================ */

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

section {
  padding: 60px 0;
}

.section-alt {
  background-color: var(--secondary-bg);
}

.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-white);
}

.section-title span {
  color: var(--accent-orange);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 700px;
}

.section-header {
  margin-bottom: 40px;
}

/* ============================================
   GAME CATEGORIES
   ============================================ */

.game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.category-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px 15px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-orange);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.category-card:hover::before { opacity: 0.05; }

.category-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 78, 0, 0.2);
}

.category-card img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin: 0 auto 15px;
}

.category-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   BONUS / PROMO CARDS
   ============================================ */

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

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

.promo-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(255, 78, 0, 0.2);
}

.promo-badge {
  background: var(--gradient-orange);
  color: #fff;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.promo-body {
  padding: 20px;
}

.promo-amount {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1.1;
  margin-bottom: 6px;
}

.promo-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-white);
}

.promo-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.6;
}

.btn-claim {
  display: inline-block;
  background: var(--gradient-orange);
  color: #fff;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

/* ============================================
   FEATURES / WHY CHOOSE US
   ============================================ */

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

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

.feature-item:hover {
  border-color: var(--accent-orange);
  box-shadow: 0 8px 25px rgba(255, 78, 0, 0.15);
}

.feature-icon {
  font-size: 38px;
  margin-bottom: 15px;
  display: block;
}

.feature-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   CONTENT / ARTICLE AREA
   ============================================ */

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
}

.content-section h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.content-section h2:first-child {
  border-top: none;
  padding-top: 0;
}

.content-section h3 {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  color: var(--accent-orange);
  margin: 20px 0 10px;
}

.content-section p {
  color: var(--text-light);
  font-size: 15.5px;
  margin-bottom: 16px;
  line-height: 1.8;
}

.content-section ul,
.content-section ol {
  margin: 10px 0 20px 20px;
  list-style: disc;
}

.content-section ul li,
.content-section ol li {
  color: var(--text-light);
  font-size: 15.5px;
  margin-bottom: 8px;
  line-height: 1.7;
}

.content-section ol { list-style: decimal; }

.content-section strong {
  color: var(--text-white);
  font-weight: 600;
}

.content-img {
  border-radius: 12px;
  margin: 25px 0;
  border: 1px solid var(--border-color);
}

.content-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin: 30px 0;
}

/* ============================================
   PROVIDER LOGOS
   ============================================ */

.providers-strip {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
}

.providers-strip h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.provider-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.provider-logos img {
  height: 35px;
  width: auto;
  filter: brightness(0.8) grayscale(30%);
  transition: filter 0.3s ease;
}

.provider-logos img:hover {
  filter: brightness(1) grayscale(0%);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
  padding: 60px 0;
}

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

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

.faq-item.open {
  border-color: var(--accent-orange);
}

.faq-question {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  user-select: none;
}

.faq-question:hover { color: var(--accent-orange); }

.faq-icon {
  color: var(--accent-orange);
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

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

/* ============================================
   PAYMENT METHODS
   ============================================ */

.payment-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 30px;
  text-align: center;
  margin-top: 30px;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.payment-pill {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

/* ============================================
   TRUST BADGES
   ============================================ */

.trust-bar {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
}

.trust-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.trust-badge {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-badge::before {
  content: '✓';
  color: var(--accent-orange);
  font-weight: 700;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 20px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 15px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

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

.footer-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 20px 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--accent-orange);
  font-size: 12px;
}

.footer-bottom a:hover { text-decoration: underline; }

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent-orange);
  color: var(--accent-orange);
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
  background: linear-gradient(135deg, #12122a 0%, #1a1a35 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 25px 0;
}

.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  color: var(--accent-orange);
  line-height: 1.1;
}

.stat-item p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   GAME TABLE
   ============================================ */

.table-responsive {
  overflow-x: auto;
  margin: 20px 0;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.styled-table th {
  background: var(--accent-orange);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.styled-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
}

.styled-table tr:last-child td { border-bottom: none; }
.styled-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.styled-table tr:hover td { background: rgba(255,78,0,0.05); }

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, #1a0a00 0%, #2a1000 50%, #0d0d1a 100%);
  border: 1px solid rgba(255,78,0,0.3);
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  margin: 40px 0;
}

.cta-section h2 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 16px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gradient-orange);
  color: #fff;
  padding: 14px 35px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 78, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 78, 0, 0.5);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  padding: 14px 35px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* ============================================
   404 PAGE
   ============================================ */

.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: clamp(80px, 15vw, 140px);
  font-weight: 900;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}

.error-page h1 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 15px;
}

.error-page p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 500px;
}

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

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

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 5px;
  }

  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu li a { display: block; padding: 12px 16px; }

  .hamburger { display: flex; }

  .nav-actions .btn-login { display: none; }

  .site-header { position: relative; }

  .slide img { height: 220px; }
  .page-banner img { height: 200px; }
  .page-banner-overlay { padding: 0 20px; }
  .slide-overlay { padding: 20px; }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

  .cta-section { padding: 35px 20px; }
}

@media (max-width: 480px) {
  .game-categories {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .category-card img { width: 50px; height: 50px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
