/* ==========================================================================
   PlaySuperAcePH - Professional iGaming Design System
   Target: Mobile-first (390px) responsive, Lighthouse 95+ performance
   ========================================================================== */

:root {
  --bg-dark: #070a12;
  --bg-primary: #0d1322;
  --bg-secondary: #131c31;
  --bg-card: #18233c;
  --bg-card-hover: #1f2c4a;
  
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #d97706;
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --gold-glow: rgba(245, 158, 11, 0.2);
  
  --emerald: #10b981;
  --emerald-gradient: linear-gradient(135deg, #34d399 0%, #059669 100%);
  --ruby: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 158, 11, 0.35);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.3);
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #152038 0%, var(--bg-dark) 70%);
}

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: var(--gold);
  text-decoration: underline;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 19, 34, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  border: 1px solid var(--border-gold);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-title {
  font-size: 1.125rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.625rem;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* In-Content Figures & Screenshots */
.content-figure {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.content-figure img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.figure-caption {
  padding: 0.75rem 1.25rem;
  background: var(--bg-secondary);
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.figure-caption strong {
  color: var(--gold-light);
}

/* Featured Game Grid (Anti-Vibe-Coded Visuals) */
.featured-game-section {
  margin: 2.5rem 0 3.5rem;
}

.game-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .game-card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

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

.game-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  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;
  position: relative;
}

.game-card-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.game-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

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

.game-card-item:hover .game-thumb-wrap img {
  transform: scale(1.05);
}

.game-rtp-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--emerald);
  color: #34d399;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.game-card-details {
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-card-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.game-card-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.game-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.game-card-actions .btn {
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  flex: 1;
}

/* Payment Partner Ribbon */
.payment-trust-ribbon {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
}

.ribbon-title {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 1rem;
}

.payment-badge-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.payment-badge-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-width: 100px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.payment-badge-item:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.payment-badge-item img {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: none;
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold-gradient);
  color: #070a12;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.6);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Breadcrumbs */
.breadcrumb-bar {
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--text-dim);
}

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

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

.breadcrumbs [aria-current="page"] {
  color: var(--gold-light);
  font-weight: 600;
}

/* Hero Section */
.hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

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

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-image-wrap {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
}

.hero-image-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Content Article Body */
.main-content {
  padding: 2.5rem 0 4rem;
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
}

/* Callout Boxes */
.expert-callout {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(13, 19, 34, 0.9) 100%);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  font-style: italic;
  font-size: 0.9375rem;
  color: #e2e8f0;
}

.expert-callout strong {
  color: var(--gold-light);
  font-style: normal;
  display: block;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

.tldr-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.tldr-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tldr-content {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* Typography Inside Article */
.article-body h2 {
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: -0.01em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--gold-light);
}

.article-body p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #cbd5e1;
}

/* Answer Capsule */
.answer-capsule {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--emerald);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d1fae5;
  font-weight: 500;
}

/* Step Cards */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.step-card {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold);
}

.step-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--gold-gradient);
  color: #070a12;
  font-weight: 900;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.step-content h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.375rem;
}

.step-content p {
  margin-bottom: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Tables */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.data-table th {
  background: var(--bg-secondary);
  color: var(--gold-light);
  padding: 0.875rem 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  color: #e2e8f0;
}

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

.data-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Spoke Grid Cards (Hub to Spokes Navigation) */
.spoke-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

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

.spoke-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.spoke-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  text-decoration: none;
}

.spoke-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.spoke-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.spoke-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
  flex-grow: 1;
}

.spoke-link-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* FAQ Accordion / Cards */
.faq-section {
  margin: 3rem 0;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.faq-question {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsible Gaming */
.responsible-gaming-box {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 3rem 0;
}

.rg-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.rg-badge {
  background: var(--ruby);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.rg-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
}

.rg-text {
  font-size: 0.9375rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.rg-links {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rg-links li {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.rg-links a {
  color: #fda4af;
  font-weight: 600;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #18233c 0%, #0d1322 100%);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  margin: 3rem 0;
  text-align: center;
  box-shadow: var(--shadow-gold);
}

.cta-banner h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Footer Directory */
.site-footer {
  background: #04070d;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: auto;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

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

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

.footer-brand p {
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 1rem;
}

.footer-col h4 {
  color: var(--gold-light);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.8125rem;
}

/* Mobile Sticky Bottom Conversion Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 19, 34, 0.98);
  border-top: 1px solid var(--border-gold);
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

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

.mobile-bottom-bar .btn {
  flex: 1;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
}

/* Add padding to body so sticky bottom bar doesn't overlap content on mobile */
@media (max-width: 899px) {
  body {
    padding-bottom: 60px;
  }
}
