/* XOPLAY Layout Styles */
/* Class prefix: g8b4- */
/* Colors: #262626 bg | #696969 secondary | #FFFFFF text | #708090 accent */

:root {
  --g8b4-primary: #708090;
  --g8b4-bg: #262626;
  --g8b4-bg-light: #1e1e1e;
  --g8b4-bg-card: #2a2a2a;
  --g8b4-text: #FFFFFF;
  --g8b4-text-muted: #696969;
  --g8b4-accent: #708090;
  --g8b4-accent-light: #8a9bae;
  --g8b4-border: #3a3a3a;
  --g8b4-gradient: linear-gradient(135deg, #708090, #5a6a7a);
  --g8b4-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --g8b4-radius: 8px;
  --g8b4-radius-lg: 12px;
  --g8b4-transition: all 0.3s ease;
}

/* Reset and base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--g8b4-bg);
  color: var(--g8b4-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--g8b4-accent-light);
  text-decoration: none;
  transition: var(--g8b4-transition);
}

a:hover {
  color: var(--g8b4-text);
}

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

/* Header */
.g8b4-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--g8b4-bg-light);
  border-bottom: 1px solid var(--g8b4-border);
  z-index: 1000;
  padding: 0 12px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g8b4-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--g8b4-text);
  letter-spacing: 1px;
}

.g8b4-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

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

.g8b4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: none;
  border-radius: var(--g8b4-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--g8b4-transition);
  min-height: 36px;
  min-width: 70px;
}

.g8b4-btn-register {
  background: var(--g8b4-gradient);
  color: var(--g8b4-text);
}

.g8b4-btn-register:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

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

.g8b4-btn-login:hover {
  background: var(--g8b4-accent);
  color: var(--g8b4-text);
}

.g8b4-menu-btn {
  background: none;
  border: none;
  color: var(--g8b4-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* Mobile menu overlay */
.g8b4-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

.g8b4-overlay-active {
  display: block;
}

/* Mobile slide menu */
.g8b4-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--g8b4-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.g8b4-menu-active {
  right: 0;
}

.g8b4-menu-close {
  background: none;
  border: none;
  color: var(--g8b4-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 16px;
}

.g8b4-menu-links {
  margin-top: 40px;
  list-style: none;
}

.g8b4-menu-links li {
  border-bottom: 1px solid var(--g8b4-border);
}

.g8b4-menu-links a {
  display: block;
  padding: 14px 8px;
  color: var(--g8b4-text);
  font-size: 1.5rem;
  transition: var(--g8b4-transition);
}

.g8b4-menu-links a:hover {
  color: var(--g8b4-accent-light);
  padding-left: 16px;
}

/* Main content */
main {
  padding-top: 56px;
  padding-bottom: 80px;
}

/* Carousel */
.g8b4-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 16px;
}

.g8b4-slide {
  display: none;
  cursor: pointer;
}

.g8b4-slide img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.g8b4-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.g8b4-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
  transition: var(--g8b4-transition);
}

.g8b4-dot-active {
  background: var(--g8b4-text);
  transform: scale(1.2);
}

/* Section container */
.g8b4-section {
  padding: 16px 12px;
}

.g8b4-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g8b4-text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--g8b4-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.g8b4-section-title i,
.g8b4-section-title .material-icons {
  color: var(--g8b4-accent);
  font-size: 2rem;
}

/* Game grid layout */
.g8b4-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.g8b4-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--g8b4-transition);
  border-radius: var(--g8b4-radius);
  padding: 6px 4px;
  background: var(--g8b4-bg-card);
}

.g8b4-game-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--g8b4-shadow);
}

.g8b4-game-item img {
  width: 64px;
  height: 64px;
  border-radius: var(--g8b4-radius);
  margin-bottom: 4px;
  object-fit: cover;
}

.g8b4-game-name {
  font-size: 1.1rem;
  color: var(--g8b4-text-muted);
  text-align: center;
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  max-width: 80px;
}

/* Content card */
.g8b4-card {
  background: var(--g8b4-bg-card);
  border-radius: var(--g8b4-radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--g8b4-border);
}

.g8b4-card h2 {
  font-size: 1.7rem;
  color: var(--g8b4-text);
  margin-bottom: 10px;
}

.g8b4-card h3 {
  font-size: 1.5rem;
  color: var(--g8b4-accent-light);
  margin-bottom: 8px;
}

.g8b4-card p {
  font-size: 1.3rem;
  color: var(--g8b4-text-muted);
  line-height: 1.8rem;
  margin-bottom: 8px;
}

.g8b4-card ul {
  padding-left: 18px;
  margin-bottom: 10px;
}

.g8b4-card li {
  font-size: 1.3rem;
  color: var(--g8b4-text-muted);
  line-height: 1.8rem;
  margin-bottom: 4px;
}

/* CTA button */
.g8b4-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  background: var(--g8b4-gradient);
  color: var(--g8b4-text);
  font-size: 1.6rem;
  font-weight: 700;
  border: none;
  border-radius: var(--g8b4-radius-lg);
  cursor: pointer;
  transition: var(--g8b4-transition);
  margin: 12px 0;
}

.g8b4-cta:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Promo inline link */
.g8b4-promo-link {
  color: var(--g8b4-accent-light);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--g8b4-transition);
}

.g8b4-promo-link:hover {
  color: var(--g8b4-text);
}

/* Footer */
.g8b4-footer {
  background: var(--g8b4-bg-light);
  border-top: 1px solid var(--g8b4-border);
  padding: 20px 12px 80px;
  text-align: center;
}

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

.g8b4-footer-partners img {
  height: 28px;
  opacity: 0.7;
  transition: var(--g8b4-transition);
}

.g8b4-footer-partners img:hover {
  opacity: 1;
}

.g8b4-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.g8b4-footer-links a {
  font-size: 1.2rem;
  color: var(--g8b4-text-muted);
}

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

.g8b4-footer-copy {
  font-size: 1.2rem;
  color: var(--g8b4-text-muted);
  margin-top: 12px;
}

/* Bottom navigation */
.g8b4-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--g8b4-bg-light);
  border-top: 1px solid var(--g8b4-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.g8b4-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--g8b4-text-muted);
  cursor: pointer;
  padding: 6px 4px;
  min-width: 60px;
  min-height: 56px;
  transition: var(--g8b4-transition);
  border-radius: 8px;
}

.g8b4-nav-btn:hover,
.g8b4-nav-btn:focus {
  color: var(--g8b4-accent-light);
  background: rgba(112, 128, 144, 0.1);
}

.g8b4-nav-btn i,
.g8b4-nav-btn .material-icons,
.g8b4-nav-btn .bi {
  font-size: 22px;
  margin-bottom: 2px;
}

.g8b4-nav-btn span {
  font-size: 1rem;
  font-weight: 500;
}

/* Bottom nav active state */
.g8b4-nav-active {
  color: var(--g8b4-accent-light) !important;
}

/* Feature list styling */
.g8b4-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.g8b4-feature-item {
  background: var(--g8b4-bg-card);
  border-radius: var(--g8b4-radius);
  padding: 14px 10px;
  text-align: center;
  border: 1px solid var(--g8b4-border);
  cursor: pointer;
  transition: var(--g8b4-transition);
}

.g8b4-feature-item:hover {
  border-color: var(--g8b4-accent);
  transform: translateY(-2px);
}

.g8b4-feature-item i,
.g8b4-feature-item .material-icons {
  font-size: 2.4rem;
  color: var(--g8b4-accent);
  margin-bottom: 6px;
  display: block;
}

.g8b4-feature-item h3 {
  font-size: 1.3rem;
  color: var(--g8b4-text);
  margin-bottom: 4px;
}

.g8b4-feature-item p {
  font-size: 1.1rem;
  color: var(--g8b4-text-muted);
  line-height: 1.4rem;
}

/* Winner ticker */
.g8b4-winners {
  background: var(--g8b4-bg-card);
  border-radius: var(--g8b4-radius-lg);
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--g8b4-border);
}

.g8b4-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid var(--g8b4-border);
  font-size: 1.2rem;
}

.g8b4-winner-item:last-child {
  border-bottom: none;
}

.g8b4-winner-name {
  color: var(--g8b4-text);
  font-weight: 600;
}

.g8b4-winner-game {
  color: var(--g8b4-text-muted);
}

.g8b4-winner-amount {
  color: var(--g8b4-accent-light);
  font-weight: 700;
}

/* Testimonials */
.g8b4-testimonial {
  background: var(--g8b4-bg-card);
  border-radius: var(--g8b4-radius-lg);
  padding: 14px;
  margin-bottom: 12px;
  border-left: 3px solid var(--g8b4-accent);
}

.g8b4-testimonial p {
  font-size: 1.3rem;
  color: var(--g8b4-text-muted);
  font-style: italic;
  margin-bottom: 6px;
}

.g8b4-testimonial-author {
  font-size: 1.2rem;
  color: var(--g8b4-accent-light);
  font-weight: 600;
}

/* FAQ accordion */
.g8b4-faq-item {
  background: var(--g8b4-bg-card);
  border-radius: var(--g8b4-radius);
  margin-bottom: 8px;
  border: 1px solid var(--g8b4-border);
  overflow: hidden;
}

.g8b4-faq-question {
  padding: 14px 12px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--g8b4-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g8b4-faq-question:hover {
  color: var(--g8b4-accent-light);
}

.g8b4-faq-answer {
  padding: 0 12px 14px;
  font-size: 1.3rem;
  color: var(--g8b4-text-muted);
  line-height: 1.8rem;
}

/* Help page styling */
.g8b4-help-content {
  padding: 16px 12px;
}

.g8b4-help-content h1 {
  font-size: 2rem;
  color: var(--g8b4-text);
  margin-bottom: 16px;
}

.g8b4-help-content h2 {
  font-size: 1.7rem;
  color: var(--g8b4-accent-light);
  margin: 16px 0 10px;
}

.g8b4-help-content h3 {
  font-size: 1.5rem;
  color: var(--g8b4-text);
  margin: 12px 0 8px;
}

.g8b4-help-content p {
  font-size: 1.3rem;
  color: var(--g8b4-text-muted);
  line-height: 1.8rem;
  margin-bottom: 10px;
}

.g8b4-help-content ul,
.g8b4-help-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.g8b4-help-content li {
  font-size: 1.3rem;
  color: var(--g8b4-text-muted);
  line-height: 1.8rem;
  margin-bottom: 4px;
}

/* Back to top button */
.g8b4-back-top {
  position: fixed;
  bottom: 72px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--g8b4-accent);
  color: var(--g8b4-text);
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--g8b4-shadow);
  transition: var(--g8b4-transition);
}

.g8b4-back-top:hover {
  background: var(--g8b4-accent-light);
  transform: translateY(-2px);
}

/* Desktop responsive */
@media (min-width: 769px) {
  body {
    max-width: 430px;
  }
  .g8b4-bottom-nav {
    display: none;
  }
  main {
    padding-bottom: 0;
  }
  .g8b4-footer {
    padding-bottom: 20px;
  }
}
