/* ==========================================================================
   JILIBB Design System & UI Architecture
   Reverse-Engineered Blueprint for jilibbbet.ph
   ========================================================================== */

:root {
  /* Brand Palette Tokens */
  --primary: #0a2383;
  --accent: #20d1ed;
  --gold: #fcce0e;
  --gold-from: #f1ad0e;
  --gold-to: #f19221;
  --cta-gradient: linear-gradient(135deg, #f1ad0e, #f19221);
  --cta-text: #0a2383;
  
  /* Surfaces & Canvas */
  --outer-bg: #1a1a1a;
  --bg: #0b0d14;
  --surface: #141824;
  --surface2: #1c2230;
  --border: #262d3d;
  --hairline: color-mix(in srgb, #fcce0e 22%, transparent);
  
  /* Typography & Text */
  --text: #edeff5;
  --text-body: #c8cedc;
  --muted: #8d94a8;
  --font-display: Oswald, system-ui, sans-serif;
  --font-body: Karla, system-ui, -apple-system, sans-serif;
  
  /* Geometry & Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --glow: rgba(252, 206, 14, 0.18);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Reset & Outer Viewport (Desktop Centered Shell) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--outer-bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
}

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

/* Mobile App Shell Container */
.app-shell {
  width: 100%;
  max-width: 430px;
  background-color: var(--bg);
  min-height: 100vh;
  position: relative;
  padding-bottom: 86px; /* space for fixed bottom-nav */
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}

/* Sticky Header (.hdr) */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(11, 13, 20, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.hdr-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hdr-brand a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.hdr-brand img {
  height: 34px;
  width: 34px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.hdr-brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1;
  display: inline-block;
}

.hdr-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  min-height: 36px;
  text-decoration: none;
}

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

.btn-primary, .btn-gold {
  background: var(--cta-gradient);
  color: var(--cta-text);
  box-shadow: 0 2px 10px var(--glow);
}

.btn-primary:hover, .btn-gold:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 14px rgba(241, 173, 14, 0.4);
}

.btn-login {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn-login:hover {
  background: rgba(252, 206, 14, 0.1);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* Notification Bar & Pill Badges (Strictly Zero Heading Tags) */
.notification-banner {
  background: linear-gradient(90deg, rgba(10, 35, 131, 0.4), rgba(32, 209, 237, 0.2));
  border-bottom: 1px solid rgba(32, 209, 237, 0.2);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notification-banner p {
  font-size: 11px;
  color: var(--text);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

.pill-badge-warning {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.pill-badge-accent {
  background: rgba(32, 209, 237, 0.15);
  color: var(--accent);
  border-color: rgba(32, 209, 237, 0.3);
}

.compliance-bar {
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.compliance-bar p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.hero-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 430/220;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.hero-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(11, 13, 20, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 0.015em;
  line-height: 1.15;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}

/* Main Content Area */
.main-content {
  padding: 16px;
  flex: 1;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 18px 0 12px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-head h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--gold);
  border-radius: 2px;
}

.section-head a {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}

/* 3x2 Interactive Game Grids */
.grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 20px;
}

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

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: #07090e;
  overflow: hidden;
}

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

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

.badge-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(10, 35, 131, 0.85);
  color: #fff;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
}

.card-body {
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.card-provider {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 6px;
}

/* Dual-Button Overlay / Action Row */
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 4px;
}

.btn-game-play {
  background: var(--cta-gradient);
  color: var(--cta-text);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 0;
  border-radius: 6px;
  text-align: center;
  border: none;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.btn-game-play:hover {
  filter: brightness(1.1);
  color: var(--cta-text);
}

.btn-game-guide {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 10px;
  font-weight: 600;
  padding: 5px 0;
  border-radius: 6px;
  text-align: center;
  display: block;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-game-guide:hover {
  background: rgba(32, 209, 237, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

/* Quick Hub Carousel / Grid */
.hub-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 12px 0 18px;
}

.hub-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.hub-cat-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

.hub-cat-item span {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* Cashier Preview Box */
.cashier-preview {
  background: linear-gradient(135deg, rgba(20, 24, 36, 0.9), rgba(28, 34, 48, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin: 18px 0;
}

.cashier-methods {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.cashier-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  justify-content: center;
}

/* Fixed Bottom Navigation (.bottom-nav) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(11, 13, 20, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0 max(8px, env(safe-area-inset-bottom));
  z-index: 1000;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  transition: color 0.2s ease;
  flex: 1;
  padding: 4px 0;
}

.nav-tab.active, .nav-tab:hover {
  color: var(--gold);
}

.nav-tab em {
  font-size: 18px;
  font-style: normal;
  line-height: 1.1;
  margin-bottom: 2px;
}

/* Center Promo CTA button */
.nav-tab-cta {
  background: var(--cta-gradient);
  color: var(--cta-text) !important;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(241, 173, 14, 0.45);
  transform: translateY(-8px);
  border: 3px solid var(--bg);
}

.nav-tab-cta em {
  font-size: 18px;
}

.nav-tab-cta span {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Footer & Responsible Gaming Block */
.app-footer {
  background: #07090e;
  border-top: 1px solid var(--border);
  padding: 20px 16px 10px;
  text-align: center;
  margin-top: 24px;
}

.app-footer p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-nav a {
  font-size: 11px;
  color: var(--muted);
}

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

/* Mobile responsive adjustments */
@media (max-width: 430px) {
  body {
    background-color: var(--bg);
  }
  .app-shell {
    max-width: 100%;
    box-shadow: none;
  }
  .bottom-nav {
    max-width: 100%;
  }
}
