/* css/theme-3862.css
   filbet casino login - core theme styles
   All classes use the pg38- prefix for namespace isolation.
   Color palette: #D4AF37 | #8470FF | #FFEF94 | #333333 | #FF4500
   Dark colors for backgrounds, light colors for text.
   Mobile-first: max-width 430px base, expanding upward.
*/

:root {
  --pg38-primary: #D4AF37;       /* gold */
  --pg38-secondary: #8470FF;     /* purple */
  --pg38-accent: #FFEF94;        /* light gold */
  --pg38-bg: #1a1428;            /* deep dark purple */
  --pg38-bg-alt: #221a36;        /* slightly lighter panel */
  --pg38-surface: #2a2140;       /* card surface */
  --pg38-text: #f4f1ea;          /* warm white */
  --pg38-text-muted: #b9b3c7;    /* muted text */
  --pg38-danger: #FF4500;        /* orange-red CTA */
  --pg38-border: rgba(212, 175, 55, 0.25);
  --pg38-radius: 1.2rem;
  --pg38-radius-sm: 0.8rem;
  --pg38-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --pg38-header-h: 6rem;
  --pg38-bottomnav-h: 6.4rem;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif;
  background: radial-gradient(120% 80% at 50% -10%, #2a1f4a 0%, #1a1428 60%, #120c22 100%);
  color: var(--pg38-text);
  line-height: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--pg38-primary); text-decoration: none; }
a:hover { color: var(--pg38-accent); }

/* ---------- Layout ---------- */
.pg38-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.pg38-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

main.pg38-main {
  padding-top: var(--pg38-header-h);
  padding-bottom: calc(var(--pg38-bottomnav-h) + 1rem);
}

/* ---------- Header ---------- */
.pg38-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(26, 20, 40, 0.98) 0%, rgba(26, 20, 40, 0.92) 100%);
  border-bottom: 1px solid var(--pg38-border);
  backdrop-filter: blur(8px);
}

.pg38-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 5.6rem;
}

.pg38-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.pg38-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--pg38-primary), var(--pg38-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1428;
  font-weight: 800;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.pg38-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.pg38-logo-text strong {
  font-size: 1.4rem;
  color: var(--pg38-primary);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg38-logo-text span {
  font-size: 1rem;
  color: var(--pg38-text-muted);
}

.pg38-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.pg38-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--pg38-radius-sm);
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 3.6rem;
  text-align: center;
  line-height: 1.2;
}

.pg38-btn:hover { transform: translateY(-1px); }
.pg38-btn:active { transform: translateY(0); }

.pg38-btn-login {
  background: transparent;
  color: var(--pg38-primary);
  border: 1px solid var(--pg38-primary);
  padding: 0.7rem 1rem;
}

.pg38-btn-register {
  background: linear-gradient(135deg, var(--pg38-danger), #ff6a2b);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 69, 0, 0.4);
}

.pg38-btn-gold {
  background: linear-gradient(135deg, var(--pg38-primary), var(--pg38-accent));
  color: #1a1428;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.pg38-btn-block {
  display: flex;
  width: 100%;
}

.pg38-menu-btn {
  background: transparent;
  border: 1px solid var(--pg38-border);
  color: var(--pg38-text);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.6rem;
}

/* ---------- Mobile dropdown menu ---------- */
.pg38-mobile-menu {
  position: fixed;
  top: var(--pg38-header-h);
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1428;
  border-bottom: 1px solid var(--pg38-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.pg38-mobile-menu.pg38-menu-open {
  max-height: 70vh;
  overflow-y: auto;
}

.pg38-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 1rem 1.2rem 1.4rem;
}

.pg38-mobile-menu h4 {
  margin: 1rem 0 0.4rem;
  font-size: 1.2rem;
  color: var(--pg38-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pg38-mobile-menu a {
  display: block;
  padding: 0.9rem 0.8rem;
  color: var(--pg38-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 1.3rem;
}

.pg38-mobile-menu a:hover { color: var(--pg38-accent); }

/* ---------- Carousel ---------- */
.pg38-carousel {
  position: relative;
  border-radius: var(--pg38-radius);
  overflow: hidden;
  margin: 1.2rem 0;
  box-shadow: var(--pg38-shadow);
}

.pg38-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.pg38-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.pg38-carousel-slide.pg38-slide-active { opacity: 1; }

.pg38-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg38-carousel-caption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  right: 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
  padding: 1.4rem 1rem 0.6rem;
  border-radius: 0 0 var(--pg38-radius) var(--pg38-radius);
}

.pg38-carousel-caption span {
  display: inline-block;
  font-size: 1rem;
  color: var(--pg38-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pg38-carousel-caption strong {
  display: block;
  font-size: 1.6rem;
  color: #fff;
  margin-top: 0.2rem;
}

.pg38-carousel-dots {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  gap: 0.4rem;
}

.pg38-carousel-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
}

.pg38-carousel-dot.pg38-dot-active {
  background: var(--pg38-primary);
}

/* ---------- Section heading ---------- */
.pg38-section {
  margin: 2rem 0;
}

.pg38-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.8rem;
}

.pg38-section-head h2 {
  font-size: 1.6rem;
  color: var(--pg38-primary);
  margin: 0;
  font-weight: 800;
}

.pg38-section-head .pg38-link {
  font-size: 1.1rem;
  color: var(--pg38-accent);
}

/* ---------- Filter chips ---------- */
.pg38-filters {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.4rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}

.pg38-filters::-webkit-scrollbar { display: none; }

.pg38-filter-chip {
  flex-shrink: 0;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--pg38-surface);
  color: var(--pg38-text-muted);
  font-size: 1.1rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.pg38-filter-chip.pg38-chip-active {
  background: linear-gradient(135deg, var(--pg38-primary), var(--pg38-secondary));
  color: #1a1428;
  border-color: var(--pg38-primary);
}

/* ---------- Game grid ---------- */
.pg38-game-section {
  margin: 1.4rem 0;
}

.pg38-game-section h3 {
  font-size: 1.35rem;
  color: var(--pg38-accent);
  margin: 0 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg38-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.pg38-game-card {
  background: var(--pg38-surface);
  border: 1px solid var(--pg38-border);
  border-radius: var(--pg38-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}

.pg38-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(132, 112, 255, 0.35);
  border-color: var(--pg38-primary);
}

.pg38-game-card .pg38-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  position: relative;
}

.pg38-game-card .pg38-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg38-game-card .pg38-game-name {
  font-size: 1.05rem;
  color: var(--pg38-text);
  padding: 0.5rem 0.4rem 0.6rem;
  text-align: center;
  line-height: 1.2;
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Info / feature cards ---------- */
.pg38-card {
  background: var(--pg38-surface);
  border: 1px solid var(--pg38-border);
  border-radius: var(--pg38-radius);
  padding: 1.2rem;
  margin: 1rem 0;
}

.pg38-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  color: var(--pg38-primary);
}

.pg38-card p {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  color: var(--pg38-text);
  line-height: 1.5;
}

.pg38-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.pg38-feature {
  background: var(--pg38-bg-alt);
  border-radius: var(--pg38-radius-sm);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--pg38-border);
}

.pg38-feature .pg38-feature-icon {
  font-size: 2rem;
  color: var(--pg38-primary);
  margin-bottom: 0.4rem;
}

.pg38-feature h4 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
  color: var(--pg38-text);
}

.pg38-feature p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--pg38-text-muted);
  line-height: 1.4;
}

/* ---------- FAQ ---------- */
.pg38-faq-item {
  background: var(--pg38-surface);
  border: 1px solid var(--pg38-border);
  border-radius: var(--pg38-radius-sm);
  padding: 1rem 1.2rem;
  margin: 0.6rem 0;
}

.pg38-faq-item h4 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  color: var(--pg38-accent);
}

.pg38-faq-item p {
  margin: 0;
  font-size: 1.15rem;
  color: var(--pg38-text);
  line-height: 1.5;
}

/* ---------- Testimonials ---------- */
.pg38-testimonial {
  background: var(--pg38-bg-alt);
  border-left: 3px solid var(--pg38-primary);
  border-radius: 0.6rem;
  padding: 1rem 1.2rem;
  margin: 0.6rem 0;
}

.pg38-testimonial p {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--pg38-text);
  line-height: 1.5;
}

.pg38-testimonial cite {
  font-size: 1.05rem;
  color: var(--pg38-accent);
  font-style: normal;
}

/* ---------- Payment / winners ---------- */
.pg38-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.pg38-pill {
  background: var(--pg38-surface);
  border: 1px solid var(--pg38-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  color: var(--pg38-text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pg38-winners {
  background: var(--pg38-bg-alt);
  border-radius: var(--pg38-radius-sm);
  padding: 0.8rem 1rem;
  margin: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--pg38-border);
}

.pg38-winners .pg38-win-name {
  font-size: 1.15rem;
  color: var(--pg38-text);
  font-weight: 700;
}

.pg38-winners .pg38-win-amount {
  font-size: 1.2rem;
  color: var(--pg38-primary);
  font-weight: 800;
}

.pg38-winners .pg38-win-game {
  font-size: 1rem;
  color: var(--pg38-text-muted);
}

/* ---------- CTA strip ---------- */
.pg38-cta {
  background: linear-gradient(135deg, rgba(132, 112, 255, 0.25), rgba(212, 175, 55, 0.18));
  border: 1px solid var(--pg38-border);
  border-radius: var(--pg38-radius);
  padding: 1.4rem;
  margin: 1.4rem 0;
  text-align: center;
}

.pg38-cta h3 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  color: var(--pg38-accent);
}

.pg38-cta p {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--pg38-text);
}

/* ---------- Footer ---------- */
.pg38-footer {
  background: #120c22;
  border-top: 1px solid var(--pg38-border);
  padding: 1.6rem 0 calc(var(--pg38-bottomnav-h) + 1.2rem);
  margin-top: 2rem;
}

.pg38-footer-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.pg38-footer h4 {
  font-size: 1.2rem;
  color: var(--pg38-primary);
  margin: 1.2rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pg38-footer p {
  font-size: 1.1rem;
  color: var(--pg38-text-muted);
  line-height: 1.5;
  margin: 0 0 0.6rem;
}

.pg38-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin: 0.6rem 0;
}

.pg38-footer-links a {
  font-size: 1.1rem;
  color: var(--pg38-text);
}

.pg38-footer-links a:hover { color: var(--pg38-accent); }

.pg38-footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.pg38-footer-copy {
  font-size: 1rem;
  color: var(--pg38-text-muted);
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1rem;
}

/* ---------- Bottom navigation ---------- */
.pg38-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(26, 20, 40, 0.96), rgba(18, 12, 34, 0.98));
  border-top: 1px solid var(--pg38-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: var(--pg38-bottomnav-h);
  backdrop-filter: blur(8px);
}

.pg38-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg38-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  padding: 0.4rem 0.2rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.pg38-bottomnav-btn .pg38-nav-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.pg38-bottomnav-btn .pg38-nav-label {
  font-size: 1rem;
  font-weight: 700;
}

.pg38-bottomnav-btn:hover {
  color: var(--pg38-accent);
  transform: translateY(-2px);
}

.pg38-bottomnav-btn.pg38-nav-active {
  color: var(--pg38-primary);
}

.pg38-bottomnav-btn.pg38-nav-active .pg38-nav-icon {
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

/* ---------- Scroll-to-top ---------- */
.pg38-top-btn {
  position: fixed;
  right: 1.2rem;
  bottom: calc(var(--pg38-bottomnav-h) + 1rem);
  z-index: 999;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pg38-primary), var(--pg38-secondary));
  color: #1a1428;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--pg38-shadow);
}

.pg38-top-btn.pg38-top-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Desktop / tablet ---------- */
@media (min-width: 769px) {
  body { background: radial-gradient(60% 60% at 50% 0%, #2a1f4a 0%, #1a1428 70%, #120c22 100%); }
  .pg38-container, .pg38-header-inner, .pg38-mobile-menu-inner, .pg38-footer-inner {
    max-width: 760px;
  }
  .pg38-bottomnav { display: none; }
  main.pg38-main { padding-bottom: 2rem; }
  .pg38-footer { padding-bottom: 2rem; }
  .pg38-game-grid { grid-template-columns: repeat(6, 1fr); }
  .pg38-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .pg38-header-actions .pg38-btn { padding: 0.8rem 1.6rem; font-size: 1.3rem; }
}

/* ---------- Small phone fine-tune ---------- */
@media (max-width: 360px) {
  .pg38-game-grid { grid-template-columns: repeat(2, 1fr); }
  .pg38-logo-text strong { font-size: 1.2rem; }
  .pg38-btn { padding: 0.7rem 0.9rem; font-size: 1.1rem; }
}
