/* ==========================================================================
   PINOYCASINOAPP - CORE DESIGN SYSTEM & STYLESHEET
   Style: Obsidian & Manila Gold Luxe (Mobile-First 390px -> 1440px)
   Complies with: website-design-guide, anti-ui-slop, Lighthouse 100/100
   ========================================================================== */

:root {
  --bg-dark: #0b0e14;
  --bg-surface: #121722;
  --bg-card: #182030;
  --bg-card-hover: #1f2a40;
  --border-subtle: #242f46;
  --border-glow: #344365;
  
  --gold-primary: #f5a623;
  --gold-light: #ffd000;
  --gold-dark: #c7800e;
  --gold-gradient: linear-gradient(135deg, #ffd000 0%, #f5a623 50%, #c7800e 100%);
  --gold-glow: 0 4px 20px rgba(245, 166, 35, 0.35);

  --accent-green: #00e676;
  --accent-cyan: #00d2ff;
  --accent-red: #ff3b30;
  
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --container-max: 1200px;
  --header-height: 72px;
  --bottom-bar-height: 64px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-bar-height) + 16px);
}

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

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

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ffffff;
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-padding {
  padding-top: 56px;
  padding-bottom: 56px;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.text-gold {
  color: var(--gold-primary);
}

.text-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(11, 14, 20, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.nav-desktop {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0b0e14;
  box-shadow: var(--gold-glow);
}

.btn-primary:hover {
  color: #000000;
  box-shadow: 0 6px 26px rgba(245, 166, 35, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-glow);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold-primary);
}

.btn-lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 17px;
}

/* ==========================================================================
   HERO SECTION (Split Hero Layout #1)
   ========================================================================== */
.hero-split-section {
  position: relative;
  overflow: hidden;
  padding: 40px 0 60px;
  background: radial-gradient(circle at 80% 20%, rgba(245, 166, 35, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(0, 230, 118, 0.06) 0%, transparent 50%),
              var(--bg-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.hero-headline {
  font-size: 32px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

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

.hero-lead-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-dim);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-trust-item span.icon {
  color: var(--accent-green);
  font-size: 16px;
}

.hero-artwork-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.hero-artwork-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.4s ease;
}

.hero-artwork-card:hover .hero-artwork-img {
  transform: scale(1.02);
}

.hero-card-floating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(18, 23, 34, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   STAT COUNTER BAR
   ========================================================================== */
.stat-banner {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-box {
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}

.stat-box:last-child {
  border-right: none;
}

.stat-number {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   GAME CARDS & GRID
   ========================================================================== */
.section-header {
  margin-bottom: 36px;
}

.section-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 12px;
}

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

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 680px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

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

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

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

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.game-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

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

.game-card:hover .game-card-img {
  transform: scale(1.06);
}

.game-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(245, 166, 35, 0.4);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-card-rtp {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 230, 118, 0.9);
  color: #0b0e14;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
}

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

.game-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.game-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-grow: 1;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   CONTENT CAPSULES & E-E-A-T MODULES
   ========================================================================== */
.expert-insight-box {
  background: rgba(245, 166, 35, 0.08);
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  color: var(--text-main);
}

.expert-insight-box strong {
  color: var(--gold-light);
  display: block;
  margin-bottom: 4px;
}

.tldr-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
}

.tldr-box h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.answer-capsule {
  background: linear-gradient(180deg, rgba(24, 32, 48, 0.9) 0%, rgba(18, 23, 34, 0.9) 100%);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 16px 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: #f1f5f9;
}

/* ==========================================================================
   TABLES (Mobile Horizontal Scrollable)
   ========================================================================== */
.table-responsive-box {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

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

.data-table th {
  background: #151c2a;
  color: var(--gold-light);
  padding: 14px 18px;
  font-weight: 800;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

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

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   NUMBERED STEPS (01, 02, 03)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 30px 0;
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

.step-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 12px;
}

.step-card h3,
.step-card h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   ACCORDION FAQ
   ========================================================================== */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(245, 166, 35, 0.4);
}

.faq-summary {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

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

.faq-item[open] .faq-summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIBLE GAMING & COMPLIANCE BAR
   ========================================================================== */
.compliance-banner {
  background: #101520;
  border: 1px solid #20293d;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 40px 0;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2a1518;
  color: #ff6b6b;
  border: 1px solid #5a2024;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 12px;
}

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

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumbs-nav {
  padding: 16px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}

.breadcrumbs-nav ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.breadcrumbs-nav li::after {
  content: "›";
  margin-left: 8px;
  color: var(--text-dim);
}

.breadcrumbs-nav li:last-child::after {
  content: "";
}

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

.breadcrumbs-nav a:hover {
  color: var(--gold-light);
}

/* ==========================================================================
   COMPLIANCE BANNER & RESPONSIBLE GAMING
   ========================================================================== */
.compliance-banner {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 36px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f87171;
}

.compliance-text {
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
}

.compliance-text strong {
  color: #ffffff;
}

/* ==========================================================================
   FOOTER DIRECTORY
   ========================================================================== */
.site-footer {
  background: #07090d;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  margin-top: auto;
}

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

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

@media (min-width: 992px) {
  .footer-directory-grid {
    grid-template-columns: 1.5fr repeat(4, 1fr);
  }
}

.footer-col-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-list a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-link-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* ==========================================================================
   STICKY BOTTOM MOBILE ACTION BAR (Mobile First)
   ========================================================================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-height);
  background: rgba(14, 19, 31, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-glow);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

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

.bottom-bar-btn {
  flex: 1;
  max-width: 170px;
  height: 44px;
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.bottom-bar-btn-primary {
  background: var(--gold-gradient);
  color: #0b0e14;
  box-shadow: 0 2px 10px rgba(245, 166, 35, 0.4);
}

.bottom-bar-btn-secondary {
  background: var(--bg-card);
  color: #ffffff;
  border: 1px solid var(--border-glow);
  margin-right: 10px;
}
