/* ==========================================================================
   JLJL77 PHILIPPINES DESIGN SYSTEM (Mobile-First 390px -> 1440px)
   ========================================================================== */

:root {
  --bg-dark: #090c15;
  --bg-surface: #101524;
  --bg-card: #161d31;
  --bg-card-hover: #1e2742;
  --border-subtle: #232c47;
  --border-gold: rgba(255, 184, 0, 0.4);
  
  --gold-primary: #ffb800;
  --gold-gradient: linear-gradient(135deg, #ffe259 0%, #ffa751 100%);
  --green-cta: #00e676;
  --green-gradient: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);
  --blue-brand: #0072ff;
  --red-accent: #ff3b30;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(255, 184, 0, 0.25);
}

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

html {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for mobile sticky footer */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 12, 21, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

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

.nav-links {
  display: none;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
  }
  
  .nav-links a {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
  }
  
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--gold-primary);
    background: rgba(255, 184, 0, 0.1);
    text-decoration: none;
  }
}

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

.btn-login {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-play {
  background: var(--gold-gradient);
  color: #0b0e17;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 13px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.4);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 184, 0, 0.4); }
  50% { box-shadow: 0 0 25px rgba(255, 184, 0, 0.8); }
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
  max-width: 1280px;
  margin: 12px auto 0;
  padding: 0 16px;
  font-size: 12px;
  color: var(--text-dim);
}

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

.breadcrumbs span {
  margin: 0 6px;
}

/* ==========================================================================
   PAGE HERO SECTION
   ========================================================================== */

.page-hero {
  max-width: 1280px;
  margin: 16px auto 30px;
  padding: 0 16px;
}

.hero-box {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .hero-box {
    padding: 40px 48px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 40px;
  }
}

.hero-desc {
  font-size: 15px;
  color: #d1d5db;
  margin-bottom: 20px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-hero-primary {
  background: var(--gold-gradient);
  color: #090c15 !important;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 184, 0, 0.4);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-artwork {
  margin-top: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .hero-artwork {
    margin-top: 0;
  }
}

/* ==========================================================================
   CONTENT LAYOUT (MAIN ARTICLE + SIDEBAR)
   ========================================================================== */

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

@media (min-width: 992px) {
  .layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
  }
}

/* ==========================================================================
   ARTICLE & E-E-A-T COMPONENTS
   ========================================================================== */

.article-body {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .article-body {
    padding: 36px 40px;
  }
}

/* 1. Expert Insight Callout */
.expert-insight-box {
  background: rgba(255, 184, 0, 0.08);
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #fef3c7;
}

.expert-insight-title {
  font-weight: 800;
  color: var(--gold-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 2. TL;DR Box */
.tldr-box {
  background: linear-gradient(135deg, rgba(30, 41, 67, 0.8) 0%, rgba(20, 27, 45, 0.9) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 30px;
}

.tldr-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--gold-primary);
  font-size: 15px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tldr-content {
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.5;
}

/* Headings */
.article-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-top: 36px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #f3f4f6;
  margin-top: 24px;
  margin-bottom: 12px;
}

.article-body p {
  font-size: 15px;
  color: #d1d5db;
  margin-bottom: 18px;
  line-height: 1.7;
}

/* 3. Answer Capsule */
.answer-capsule {
  background: rgba(0, 230, 118, 0.06);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 16px 0 20px;
  font-size: 14px;
  color: #d1fae5;
  line-height: 1.6;
}

.answer-capsule strong {
  color: var(--green-cta);
}

/* Callout Highlights */
.pro-tip {
  background: rgba(0, 114, 255, 0.08);
  border-left: 4px solid var(--blue-brand);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 18px 0;
  font-size: 14px;
  color: #bfdbfe;
}

.warning-callout {
  background: rgba(239, 68, 68, 0.08);
  border-left: 4px solid var(--red-accent);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 18px 0;
  font-size: 14px;
  color: #fecaca;
}

/* Lists */
.article-body ul, .article-body ol {
  margin: 16px 0 24px 20px;
  color: #d1d5db;
}

.article-body li {
  margin-bottom: 8px;
  font-size: 15px;
}

/* Responsive Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

th {
  background: rgba(255, 184, 0, 0.12);
  color: var(--gold-primary);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Responsible Gaming Box */
.responsible-gaming-box {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 36px 0;
}

.rg-title {
  color: #f87171;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rg-links {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.rg-links a {
  color: #fca5a5;
  text-decoration: underline;
}

/* Conclusion Box & Dual CTAs */
.conclusion-box {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.1) 0%, rgba(20, 27, 45, 0.8) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
}

.conclusion-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.dual-cta-banner {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-promo-item {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cta-promo-item p {
  margin: 0 !important;
  font-size: 13px;
  color: #f3f4f6;
}

.cta-promo-item a {
  background: var(--gold-gradient);
  color: #090c15 !important;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none !important;
}

/* FAQ Accordion */
.faq-section {
  margin-top: 36px;
}

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

.faq-question {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  color: #f3f4f6;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--gold-primary);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   SIDEBAR & WIDGETS
   ========================================================================== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-primary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-links-list {
  list-style: none;
}

.quick-links-list li {
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.quick-links-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.quick-links-list a {
  color: #d1d5db;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-links-list a:hover {
  color: var(--gold-primary);
}

.promo-badge-card {
  background: linear-gradient(135deg, #1f1435 0%, #2a0845 100%);
  border: 1px solid #7c3aed;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.promo-badge-card h4 {
  color: #ffd700;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}

.promo-badge-card p {
  font-size: 13px;
  color: #e2e8f0;
  margin-bottom: 14px;
}

/* ==========================================================================
   CARDS & GRIDS (HOMEPAGE & HUBS)
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 24px 0 40px;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-grow: 1;
  line-height: 1.5;
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.card-action a {
  font-weight: 700;
  font-size: 13px;
}

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

.site-footer {
  background: #06080e;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 16px 24px;
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-brand p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 14px;
}

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

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

.footer-col a {
  color: var(--text-muted);
}

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

.footer-compliance {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-compliance {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.compliance-text {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-21 {
  background: var(--red-accent);
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   STICKY MOBILE BOTTOM BAR (390px)
   ========================================================================== */

.mobile-bottom-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(9, 12, 21, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-gold);
  padding: 8px 12px;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

@media (min-width: 992px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.bottom-cta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-decoration: none !important;
}

.bottom-cta-item span {
  margin-top: 2px;
}

.bottom-cta-btn-main {
  background: var(--gold-gradient);
  color: #090c15 !important;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 24px;
  border-radius: 30px;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.5);
  animation: pulse-glow 2s infinite;
}
