﻿/* ==========================================================
   Mega888 — style.css
   Mobile-first, responsive, dark + gold theme
   ========================================================== */

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

:root {
  --gold:        #17c5e0;
  --gold-light:  #40d8f0;
  --gold-dark:   #0fa0b8;
  --accent:      #e53535;
  --accent-light:#ff5555;
  --bg-base:     #07090f;
  --bg-card:     #0d1220;
  --bg-card2:    #131a2e;
  --text-primary:#ffffff;
  --text-muted:  #7a8fa8;
  --border:      #1c2a3e;
  --radius:      8px;
  --radius-lg:   14px;
  --transition:  0.25s ease;
  --max-w:       1200px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

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

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

strong { color: var(--text-primary); }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.section-title {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}
.gold-line {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0.75rem 0 1.5rem;
}
.gold-line.center { margin: 0.75rem auto 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.btn-primary {
  background: var(--gold);
  color: #000;
}
.btn-primary:hover {
  background: var(--gold-light);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(23,197,224,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-secondary:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.btn-lg { padding: 0.95rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(7,9,15,0.97);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 1rem;
}
.logo a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo img { height: 40px; width: auto; }
.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* Primary nav */
.primary-nav { display: none; }
.primary-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.primary-nav ul li a {
  display: block;
  padding: 0.45rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.primary-nav ul li a:hover,
.primary-nav ul li a.active {
  color: var(--gold);
  background: rgba(23,197,224,0.1);
}

.header-actions { display: flex; gap: 0.6rem; align-items: center; }
.header-actions .btn { display: none; }

/* Hamburger */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 0; }
.mobile-menu ul li { border-bottom: 1px solid var(--border); }
.mobile-menu ul li:last-child { border-bottom: none; }
.mobile-menu ul li a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-muted);
  font-weight: 600;
  transition: color var(--transition);
}
.mobile-menu ul li a:hover { color: var(--gold); }
.mobile-menu-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.mobile-menu-actions .btn { flex: 1; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #07090f 0%, #0d1220 60%, #131a2e 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/featured.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7,9,15,0.55) 0%, rgba(7,9,15,0.80) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.25rem;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: rgba(23,197,224,0.15);
  border: 1px solid rgba(23,197,224,0.4);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 span { color: var(--gold); }
.hero-desc { font-size: 1.1rem; max-width: 580px; margin-bottom: 2rem; color: rgba(255,255,255,0.75); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.hero-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 1.25rem; max-width: 480px; line-height: 1.5; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(23,197,224,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.card h3 { color: var(--text-primary); margin-bottom: 0.5rem; }

/* Grid helpers */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* ---------- Quick Actions ---------- */
.quick-actions-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: -2.5rem auto 0;
  max-width: 860px;
  position: relative;
  z-index: 10;
}
.action-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 1rem;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  display: block;
  color: var(--text-primary);
}
.action-item:hover {
  border-color: var(--gold);
  background: rgba(23,197,224,0.08);
  color: var(--gold);
  transform: translateY(-2px);
}
.action-item .action-icon { font-size: 1.8rem; margin-bottom: 0.4rem; }
.action-item .action-label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.03em; }

/* ---------- Disclosure Notice ---------- */
.disclosure-notice {
  background: rgba(23,197,224,0.08);
  border: 1px solid rgba(23,197,224,0.25);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
}
.disclosure-notice .disc-icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.05rem; color: var(--gold); }
.disclosure-notice a { color: var(--gold); }
.disclosure-notice.full-width { margin-top: 1.5rem; max-width: 560px; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background-image: url('assets/featured.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.25rem;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,9,15,0.82) 0%, rgba(13,18,32,0.88) 100%);
  z-index: 0;
}
.page-hero h1,
.page-hero p,
.page-hero .breadcrumb-inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--text-primary); margin-bottom: 0.5rem; }
.page-hero p { max-width: 600px; margin: 0 auto; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
}
.breadcrumb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.breadcrumb-inner a { color: var(--text-muted); }
.breadcrumb-inner a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--text-muted); opacity: 0.5; }
.breadcrumb-current { color: var(--gold); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 1.25rem;
  color: var(--text-primary);
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--gold); }
.faq-icon {
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-answer { display: block; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-content h3 { margin-bottom: 0.3rem; }

/* ---------- Info List ---------- */
.info-list { list-style: none; padding: 0; }
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.93rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list .check { color: var(--gold); flex-shrink: 0; margin-top: 0.15rem; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead th {
  background: var(--bg-card2);
  color: var(--gold);
  font-weight: 700;
  padding: 0.85rem 1rem;
  text-align: left;
  white-space: nowrap;
}
tbody td {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* ---------- Game Category Cards ---------- */
.game-cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
}
.game-cat-card:hover { border-color: var(--gold-dark); transform: translateY(-2px); }
.game-cat-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.game-cat-card h3 { color: var(--text-primary); font-size: 1.1rem; margin-bottom: 0.4rem; }
.game-cat-card p { font-size: 0.88rem; margin-bottom: 0; }

/* ---------- Highlight Box ---------- */
.highlight-box {
  background: var(--bg-card2);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.highlight-box p { margin-bottom: 0; }

/* ---------- Payment Method Card ---------- */
.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--transition);
}
.payment-card:hover { border-color: var(--gold-dark); }
.payment-card .pm-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.payment-card h4 { font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.3rem; }
.payment-card p { font-size: 0.82rem; margin: 0; }

/* ---------- Stat Box ---------- */
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
}
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 0.35rem; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Alert / Notice ---------- */
.notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin: 1rem 0;
}
.notice-info {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
}
.notice-warning {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  color: #fcd34d;
}

/* ---------- Legal Content ---------- */
.legal-content h2 { color: var(--gold); font-size: 1.2rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.legal-content h3 { font-size: 1rem; color: var(--text-primary); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-content p, .legal-content li { font-size: 0.92rem; color: var(--text-muted); }
.legal-content ul { margin-bottom: 1rem; }
.last-updated { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }

/* ---------- Contact Items ---------- */
.contact-method {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-method .cm-icon { font-size: 1.75rem; flex-shrink: 0; }
.contact-method h3 { color: var(--text-primary); font-size: 1rem; margin-bottom: 0.3rem; }

/* ---------- Responsible Gaming ---------- */
.rg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.rg-card h3 { color: var(--text-primary); font-size: 1rem; margin-bottom: 0.5rem; }

/* ---------- Update Cards ---------- */
.update-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.update-meta {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.update-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}
.update-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

/* ---------- Article / Update Page ---------- */
.article-meta {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.article-body h2 { margin-top: 2rem; }
.article-body h3 { margin-top: 1.5rem; color: var(--text-primary); }
.article-body p, .article-body li { color: var(--text-muted); line-height: 1.8; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin: 0.75rem 0 1rem; }
.article-body li { margin-bottom: 0.4rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-text { font-size: 1.5rem; color: var(--gold); font-weight: 800; margin-bottom: 0.75rem; display: block; }
.footer-brand p { font-size: 0.88rem; max-width: 300px; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 0.75rem; }
.footer-col h4 { color: var(--text-primary); font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.87rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; margin: 0; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.footer-legal-links a { font-size: 0.82rem; color: var(--text-muted); }
.footer-legal-links a:hover { color: var(--gold); }
.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.75rem;
  line-height: 1.6;
  opacity: 0.75;
}

/* ---------- Responsive Breakpoints ---------- */
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .header-actions .btn { display: inline-block; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
  .primary-nav { display: flex; }
  .hamburger { display: none; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-legal-links { justify-content: flex-end; }
}

@media (min-width: 1200px) {
  .hero-content { padding: 6rem 1.25rem; }
}

/* Print styles */
@media print {
  .site-header, .site-footer, .hero-bg, .hero-overlay { display: none; }
  body { color: #000; background: #fff; }
}
