/* ============================================
   me88 Singapore - Main Stylesheet
   Brand Colors: Orange #ff4e00, Dark #191518
   ============================================ */

:root {
  --primary: #ff4e00;
  --primary-dark: #d94000;
  --accent: #e03a3c;
  --bg-dark: #0b070b;
  --bg-body: #191518;
  --bg-card: #211c22;
  --bg-section: #141215;
  --text-light: #d2d2d2;
  --text-muted: #939393;
  --text-white: #ffffff;
  --border: #2a2a2a;
  --gold: #f5c518;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(180deg, #0b070b 0%, #0f050e 100%);
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

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

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

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

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

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

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; color: var(--text-light); }

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

/* ---- HEADER ---- */
.site-header {
  background: #000;
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 20px;
}

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

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

.main-nav { display: flex; align-items: center; gap: 0; }

.main-nav a {
  color: var(--text-light);
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: color 0.3s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active { color: var(--primary); }

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

.btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.btn-register {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: #fff;
}
.btn-register:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-lg { padding: 14px 36px; font-size: 1rem; border-radius: 5px; }

/* ---- HERO / BANNER ---- */
.hero {
  position: relative;
  min-height: 520px;
  background: #000 url('../images/topbanner.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.1) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.hero h1 { font-size: 2.8rem; margin-bottom: 16px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.1rem; max-width: 560px; margin-bottom: 28px; color: var(--text-light); }
.hero-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }

.badge {
  background: rgba(255,78,0,0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, #0f050e 0%, #1a0a1a 50%, #0b070b 100%);
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,78,0,0.08) 0%, transparent 70%);
}

.page-hero h1 { position: relative; z-index: 1; }
.page-hero p { position: relative; z-index: 1; max-width: 700px; margin: 16px auto 0; font-size: 1.05rem; }

/* ---- SECTIONS ---- */
section { padding: 60px 0; }

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

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

.section-title h2 { margin-bottom: 12px; }
.section-title h2 span { color: var(--primary); }
.section-title p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 14px auto;
  border-radius: 2px;
}

/* ---- GAMES GRID ---- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

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

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

.game-card img { width: 100%; height: 160px; object-fit: cover; }

.game-card-info { padding: 14px; }
.game-card-info h4 { margin-bottom: 5px; font-size: 0.95rem; }
.game-card-info p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ---- FEATURE BOXES ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px 24px;
  transition: border-color 0.3s;
}

.feature-box:hover { border-color: var(--primary); }

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.feature-box h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature-box p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

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

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

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

.promo-card img { width: 100%; height: 200px; object-fit: cover; }

.promo-card-body { padding: 20px; }
.promo-card-body h3 { margin-bottom: 10px; }

.promo-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--primary);
  padding: 20px 0;
}

.stats-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.stat-item { text-align: center; }
.stat-item .number { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-item .label { font-size: 0.82rem; color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ---- WHY CHOOSE ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.why-item {
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 0 8px 8px 0;
}

.why-item h4 { color: var(--primary); margin-bottom: 8px; }
.why-item p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ---- TABLE ---- */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
}

.styled-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

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

.faq-list { max-width: 800px; margin: 0 auto; }

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

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

.faq-question:hover { background: rgba(255,78,0,0.08); }
.faq-question span { color: var(--primary); font-size: 1.2rem; transition: transform 0.3s; }

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

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

.faq-item.open .faq-question span { transform: rotate(45deg); }
.faq-item.open .faq-question { color: var(--primary); }

/* ---- TRUST BADGES ---- */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 30px 0;
}

.trust-row img { height: 40px; width: auto; filter: grayscale(30%); opacity: 0.8; transition: opacity 0.3s; }
.trust-row img:hover { opacity: 1; filter: none; }

/* ---- PAYMENT ROW ---- */
.payment-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: var(--bg-section);
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--primary); margin: 0 6px; }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #c63000 100%);
  padding: 60px 20px;
  text-align: center;
}

.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 28px; font-size: 1.05rem; }

.btn-white {
  background: #fff;
  color: var(--primary);
  border: 2px solid #fff;
}
.btn-white:hover { background: transparent; color: #fff; }

/* ---- CONTENT SECTION ---- */
.content-section { padding: 60px 0; }

.content-section h2 { color: var(--text-white); margin-bottom: 16px; }
.content-section h3 { color: var(--primary); margin: 28px 0 12px; }
.content-section p { color: var(--text-light); margin-bottom: 16px; }
.content-section ul li { color: var(--text-light); }
.content-section a { color: var(--primary); }
.content-section a:hover { text-decoration: underline; }

/* ---- TWO COLUMN LAYOUT ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.two-col-reverse { grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

.img-rounded { border-radius: 12px; overflow: hidden; border: 2px solid var(--border); }
.img-rounded img { width: 100%; height: 280px; object-fit: cover; }

/* ---- HIGHLIGHT BOX ---- */
.highlight-box {
  background: rgba(255,78,0,0.1);
  border: 1px solid rgba(255,78,0,0.3);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}

.highlight-box p { color: var(--text-light); margin: 0; }

/* ---- AMBASSADOR ---- */
.ambassador-strip {
  background: var(--bg-section);
  padding: 50px 0;
  overflow: hidden;
}

.ambassador-row {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}

.ambassador-item {
  text-align: center;
}

.ambassador-item img {
  height: 220px;
  width: auto;
  filter: drop-shadow(0 10px 30px rgba(255,78,0,0.3));
}

/* ---- FOOTER ---- */
.site-footer {
  background: #000;
  border-top: 2px solid var(--border);
  padding: 50px 0 20px;
}

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

.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

.footer-col h5 {
  color: var(--text-white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.85rem; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--primary); }

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

.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; margin: 0; }
.responsible-icons { display: flex; gap: 14px; align-items: center; }
.responsible-icons img { height: 28px; width: auto; opacity: 0.6; }

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

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

.page-404 h2 { font-size: 2rem; margin: 16px 0; }
.page-404 p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 30px; }

/* ---- HAMBURGER MOBILE ---- */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.hamburger span {
  display: block; width: 25px; height: 2px;
  background: var(--text-white); margin: 5px 0;
  transition: all 0.3s;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .main-nav a { padding: 0 10px; font-size: 0.82rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .hamburger { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #000;
    flex-direction: column;
    padding: 20px;
    border-bottom: 2px solid var(--primary);
    gap: 4px;
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; font-size: 0.95rem; border-bottom: 1px solid var(--border); }

  .header-actions { gap: 6px; }
  .btn { padding: 7px 14px; font-size: 0.8rem; }
  .btn-lg { padding: 12px 24px; }

  .hero { min-height: 360px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-inner { padding: 40px 20px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stats-inner { gap: 12px; }
  .stat-item .number { font-size: 1.5rem; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .header-actions .btn-login { display: none; }
}

/* ---- UTILITY ---- */
.text-center { text-align: center; }
.text-orange { color: var(--primary); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
