/* ============================================================
   Maxim88 Live Casino Malaysia — style.css
   Domain: maxim88casino.net
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  --color-primary:      #1A7A4A;
  --color-primary-dark: #0D4F2F;
  --color-gold:         #B8860B;
  --color-gold-light:   #C9A227;
  --color-black:        #FFFFFF;
  --color-surface:      #F7F7F7;
  --color-surface-2:    #EEEEEE;
  --color-text:         #1A1A1A;
  --color-text-muted:   #5A6472;
  --color-success:      #16A34A;
  --color-danger:       #DC2626;
  --color-border:       rgba(0,0,0,0.1);
  --font-display:       'Playfair Display', Georgia, serif;
  --font-body:          'Inter', system-ui, sans-serif;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--color-black);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: clamp(28px, 4vw, 48px); }
h2 { font-size: clamp(22px, 3vw, 36px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.section-heading h2 { margin-bottom: 12px; }
.section-heading p  { color: var(--color-text-muted); max-width: 600px; margin: 0 auto; }

/* ── Navigation ──────────────────────────────────────────── */
header {
  background: #1A7A4A;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 24px;
}

.logo img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav-links > li { position: relative; }

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: block;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: #FFFFFF; background: rgba(0,0,0,0.15); }

/* Dropdown */
.dropdown .submenu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 200px;
  padding: 8px 0;
  list-style: none;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.dropdown:hover .submenu { display: block; }
.submenu li a {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 0;
  color: var(--color-text);
}
.submenu li a:hover { color: var(--color-primary); background: var(--color-surface); }

.nav-cta { display: flex; gap: 8px; flex-shrink: 0; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--color-gold-light);
  color: var(--color-black);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}
.btn-primary:hover { background: var(--color-gold); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--color-gold-light);
  padding: 11px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  border: 1.5px solid var(--color-gold-light);
  transition: background 0.2s;
  line-height: 1.4;
}
.btn-secondary:hover { background: rgba(232,201,107,0.1); }

.btn-alt {
  background: var(--color-gold-light);
  color: #FFFFFF;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  border: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-alt:hover { background: var(--color-gold); transform: translateY(-1px); }

.cta-group   { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.alt-links   { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }

.alt-links-section { text-align: center; }
.alt-links-section h2 { margin-bottom: 8px; }
.alt-links-section > p { color: var(--color-text-muted); margin-bottom: 0; }
.alt-links-disclaimer { font-size: 12px; color: var(--color-text-muted); margin-top: 12px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
}

.hero-overlay { display: none; }

.hero-content {
  background: #1A7A4A;
  padding: 56px 48px;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Force white text in hero — overrides light theme variables */
.hero-content h1,
.hero-content p,
.hero-content .hero-desc { color: #FFFFFF; margin-bottom: 16px; }

.hero-subheading {
  font-size: 18px;
  color: #E8C96B;
  margin-bottom: 8px;
  font-weight: 500;
}

.hero-desc { font-size: 15px; max-width: 460px; opacity: 0.9; }

/* ── Trust badges ────────────────────────────────────────── */
.trust-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.trust-badge {
  background: rgba(0,0,0,0.40);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: #FFFFFF;
  white-space: nowrap;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: #1A7A4A;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: #FFFFFF;
  display: block;
}
.card:hover { border-color: var(--color-gold); transform: translateY(-3px); }

.card-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.card h3 { margin-bottom: 8px; color: #FFFFFF; }
.card p  { color: rgba(255,255,255,0.8); font-size: 14px; margin: 0; }

/* Game card image placeholder */
.game-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0D4F2F;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── Grids ───────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 16px; }

/* ── Stars ───────────────────────────────────────────────── */
.stars { color: var(--color-gold-light); font-size: 20px; letter-spacing: 2px; }
.rating-row { display: flex; align-items: center; gap: 12px; }
.rating-score { font-size: 28px; font-weight: 700; color: var(--color-gold-light); font-family: var(--font-display); }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--color-surface-2);
  color: var(--color-primary);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 14px;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: rgba(0,0,0,0.02); }

/* Summary table */
.summary-table { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.summary-table td:first-child { color: var(--color-gold-light); font-weight: 600; width: 40%; }

/* ── Pros & Cons ─────────────────────────────────────────── */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pros, .cons {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border);
}
.pros h3 { color: var(--color-success); margin-bottom: 16px; }
.cons h3 { color: var(--color-danger);  margin-bottom: 16px; }
.pros ul, .cons ul { list-style: none; padding: 0; }
.pros li, .cons li { padding: 6px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.pros li:last-child, .cons li:last-child { border-bottom: none; }
.pros li::before { content: "✓  "; color: var(--color-success); font-weight: 700; }
.cons li::before { content: "✗  "; color: var(--color-danger);  font-weight: 700; }

/* ── FAQ Accordion ───────────────────────────────────────── */
.faq-list { list-style: none; padding: 0; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-question:hover { color: var(--color-gold-light); }
.faq-icon { font-size: 20px; flex-shrink: 0; transition: transform 0.25s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding-bottom: 18px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb { display: none; }
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-gold-light); }
.breadcrumb-sep { color: rgba(255,255,255,0.2); }

/* ── Article content ─────────────────────────────────────── */
.article-body h2 { margin: 40px 0 16px; }
.article-body h3 { margin: 28px 0 12px; color: var(--color-gold); }
.article-body p  { margin-bottom: 16px; color: var(--color-text-muted); line-height: 1.8; }
.article-body ul, .article-body ol { margin-bottom: 16px; color: var(--color-text-muted); }
.article-body li { margin-bottom: 6px; }
.article-body a  { color: var(--color-gold-light); }
.article-body a:hover { text-decoration: underline; }

/* ── Page Hero (inner page headers) ─────────────────────── */
.page-hero {
  background: #1A7A4A;
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.15) 25%, transparent 25%),
    linear-gradient(225deg, rgba(0,0,0,0.10) 25%, transparent 25%),
    linear-gradient(to bottom, #1A7A4A, #0D4F2F);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.page-hero h1 {
  color: #FFFFFF;
  margin-bottom: 16px;
}

.page-intro {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  max-width: 780px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.page-hero .article-meta {
  color: rgba(255,255,255,0.7);
  border-bottom-color: rgba(255,255,255,0.15);
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.page-hero .article-meta strong { color: #FFFFFF; }
.page-hero .article-meta time { color: rgba(255,255,255,0.8); }
.page-hero .reading-time { color: var(--color-gold-light); }

.page-hero .rating-row { margin: 16px 0; }
.page-hero .rating-score { color: var(--color-gold-light); }

/* Gold divider line at bottom of page-hero */
.page-hero-divider {
  height: 3px;
  background: linear-gradient(to right, var(--color-gold-light), transparent);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.author-bio {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 48px;
}
.author-bio h3 { color: var(--color-gold); margin-bottom: 8px; }
.author-bio p  { color: var(--color-text-muted); font-size: 14px; margin: 0; }

.reading-time { color: var(--color-text-muted); font-size: 13px; }

/* Mid-article CTA block */
.cta-block {
  background: linear-gradient(135deg, #0D4F2F 0%, #1A7A4A 100%);
  border: 1px solid rgba(26,122,74,0.4);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
  color: #FFFFFF;
}
.cta-block h3, .cta-block p { color: #FFFFFF; }
.cta-block h3 { margin-bottom: 8px; color: #FFFFFF; }
.cta-block p  { color: #FFFFFF; margin-bottom: 20px; }
.article-body .cta-block h3 { color: #FFFFFF; }
.article-body .cta-block p  { color: #FFFFFF; }
.cta-block .btn-primary {
  background: #C9A84C;
  color: #FFFFFF;
  font-weight: 700;
}
.cta-block .btn-primary:hover { background: #F0F0F0; transform: translateY(-1px); }

/* ── Age badge ───────────────────────────────────────────── */
.age-badge {
  background: #b91c1c;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

/* ── Responsible gambling banner ─────────────────────────── */
.rg-banner {
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.2);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  text-align: center;
  color: var(--color-text-muted);
}
.rg-banner a { color: var(--color-gold-light); }

/* ── Alt links section ───────────────────────────────────── */
.alt-links-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
}
.alt-links-section h2 { margin-bottom: 12px; }
.alt-links-section p  { color: var(--color-text-muted); margin-bottom: 24px; }
.alt-links-disclaimer {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 16px;
}

/* ── Provider/game card link ─────────────────────────────── */
.card-link {
  display: inline-block;
  color: var(--color-gold-light);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 12px;
}
.card-link:hover { text-decoration: underline; }

/* ── Related posts ───────────────────────────────────────── */
.related-posts {
  border-top: 1px solid var(--color-border);
  padding-top: 40px;
  margin-top: 40px;
}
.related-posts h3 { margin-bottom: 20px; color: var(--color-gold); }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: #1C1C1C;
  color: #E0E0E0;
  border-top: 3px solid var(--color-primary);
  padding: 60px 24px 32px;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-top img { height: 32px; width: auto; }
.footer-top p { color: #9CA3AF; font-size: 13px; margin: 0; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-grid h3, .footer-grid h4 {
  color: #C9A227;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-body);
}
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-grid ul a:hover { color: #E0E0E0; }
.footer-grid p { color: #9CA3AF; font-size: 13px; margin-bottom: 4px; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: #9CA3AF;
}
.footer-bottom p { margin-bottom: 8px; }
.footer-bottom a { color: #9CA3AF; }
.footer-bottom a:hover { color: #E0E0E0; }
.footer-nav-links a { margin: 0 4px; }
.responsible-line { color: rgba(239,68,68,0.6); }

/* ── Skip link (accessibility) ───────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-gold-light);
  color: var(--color-black);
  padding: 8px 16px;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; }

/* ── Mobile nav ──────────────────────────────────────────── */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #FFFFFF;
  border-top: 1px solid var(--color-border);
  padding: 16px 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 15px;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--color-gold-light); }
.mobile-cta { display: flex; gap: 10px; margin-top: 14px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid  { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid-4       { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-6       { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 768px) {
  .nav-links    { display: none; }
  .nav-cta      { display: none; }
  .hamburger    { display: block; }
  .footer-grid  { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3       { grid-template-columns: 1fr 1fr; }
  .grid-2       { grid-template-columns: 1fr; }
  .pros-cons    { grid-template-columns: 1fr; }
  .hero-content { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .footer-grid  { grid-template-columns: 1fr; }
  .cta-group    { flex-direction: column; }
  .alt-links    { flex-direction: column; }
  .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
}
