/**
 * PBA Odds Bet365 - Universal CSS Design
 * Class Prefix: g498-
 * All classes use g498- prefix to avoid naming conflicts
 * Color Palette: #D4AF37, #FFEF94, #FFA500, #1B263B, #F5F5F5
 */

/* CSS Variables */
:root {
  --g498-primary: #D4AF37;
  --g498-secondary: #FFA500;
  --g498-accent: #FFEF94;
  --g498-dark: #1B263B;
  --g498-light: #F5F5F5;
  --g498-white: #FFFFFF;
  --g498-gradient: linear-gradient(135deg, #D4AF37 0%, #FFA500 100%);
  --g498-shadow: 0 2px 8px rgba(0,0,0,0.1);
  --g498-shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
  --g498-transition: all 0.3s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--g498-dark);
  background-color: var(--g498-light);
  overflow-x: hidden;
}

/* Mobile First - max-width 430px */
.g498-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.g498-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

/* Header Styles */
.g498-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--g498-gradient);
  box-shadow: var(--g498-shadow);
  padding: 1rem 0;
}

.g498-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.g498-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--g498-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.6rem;
}

.g498-logo-img {
  width: 32px;
  height: 32px;
}

.g498-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g498-btn-register,
.g498-btn-login {
  padding: 0.6rem 1.4rem;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  transition: var(--g498-transition);
  white-space: nowrap;
}

.g498-btn-register {
  background-color: var(--g498-white);
  color: var(--g498-primary);
}

.g498-btn-register:hover {
  background-color: var(--g498-accent);
  transform: scale(1.05);
}

.g498-btn-login {
  background-color: transparent;
  color: var(--g498-white);
  border: 2px solid var(--g498-white);
}

.g498-btn-login:hover {
  background-color: var(--g498-white);
  color: var(--g498-primary);
  transform: scale(1.05);
}

.g498-menu-toggle {
  background: none;
  border: none;
  color: var(--g498-white);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.g498-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--g498-transition);
}

.g498-menu-overlay.g498-overlay-active {
  opacity: 1;
  visibility: visible;
}

.g498-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--g498-white);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
}

.g498-mobile-menu.g498-menu-open {
  right: 0;
}

.g498-menu-header {
  background: var(--g498-gradient);
  padding: 2rem 1.6rem;
  color: var(--g498-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g498-menu-close {
  background: none;
  border: none;
  color: var(--g498-white);
  font-size: 2.8rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.g498-menu-list {
  list-style: none;
  padding: 1rem 0;
}

.g498-menu-item {
  border-bottom: 1px solid var(--g498-light);
}

.g498-menu-link {
  display: block;
  padding: 1.4rem 1.6rem;
  color: var(--g498-dark);
  text-decoration: none;
  font-size: 1.5rem;
  transition: var(--g498-transition);
}

.g498-menu-link:hover,
.g498-menu-link.g498-active {
  background-color: var(--g498-light);
  color: var(--g498-primary);
}

/* Main Content */
.g498-main {
  margin-top: 5.6rem;
  padding-bottom: 8rem;
  min-height: calc(100vh - 5.6rem - 8rem);
}

/* Carousel */
.g498-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1.2rem;
  margin: 1.6rem 0;
}

.g498-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.g498-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}

.g498-carousel-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.2rem;
}

.g498-carousel-dots {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.g498-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--g498-transition);
}

.g498-carousel-dot.g498-dot-active {
  background-color: var(--g498-white);
  width: 2.4rem;
  border-radius: 0.4rem;
}

/* Section Styles */
.g498-section {
  padding: 2rem 0;
}

.g498-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g498-dark);
  margin-bottom: 1.6rem;
  padding-left: 1.2rem;
  border-left: 4px solid var(--g498-primary);
}

.g498-section-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g498-primary);
  margin-bottom: 1.2rem;
}

/* Game Grid */
.g498-game-category {
  margin-bottom: 3rem;
}

.g498-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.g498-game-card {
  text-align: center;
  cursor: pointer;
  transition: var(--g498-transition);
}

.g498-game-card:hover {
  transform: translateY(-4px);
}

.g498-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--g498-shadow);
}

.g498-game-name {
  font-size: 1.1rem;
  color: var(--g498-dark);
  margin-top: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* Content Modules */
.g498-content-box {
  background-color: var(--g498-white);
  border-radius: 1.2rem;
  padding: 2rem 1.6rem;
  margin-bottom: 2rem;
  box-shadow: var(--g498-shadow);
}

.g498-content-box h2 {
  font-size: 1.8rem;
  color: var(--g498-primary);
  margin-bottom: 1.2rem;
}

.g498-content-box h3 {
  font-size: 1.6rem;
  color: var(--g498-dark);
  margin: 1.6rem 0 0.8rem;
}

.g498-content-box p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1rem;
}

.g498-content-box ul,
.g498-content-box ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.g498-content-box li {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
  color: #444;
}

/* Promo Links */
.g498-promo-link {
  display: inline-block;
  color: var(--g498-primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--g498-transition);
  border-bottom: 2px solid transparent;
}

.g498-promo-link:hover {
  color: var(--g498-secondary);
  border-bottom-color: var(--g498-secondary);
}

.g498-btn-promo {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background: var(--g498-gradient);
  color: var(--g498-white);
  font-weight: 600;
  font-size: 1.5rem;
  border-radius: 2.4rem;
  cursor: pointer;
  border: none;
  transition: var(--g498-transition);
  box-shadow: var(--g498-shadow);
  margin: 0.8rem 0.4rem;
}

.g498-btn-promo:hover {
  transform: translateY(-2px);
  box-shadow: var(--g498-shadow-lg);
}

/* Accordion */
.g498-accordion-item {
  background-color: var(--g498-white);
  border-radius: 0.8rem;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--g498-shadow);
}

.g498-accordion-header {
  padding: 1.4rem 1.6rem;
  background-color: var(--g498-light);
  cursor: pointer;
  font-weight: 600;
  font-size: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--g498-transition);
}

.g498-accordion-header:hover {
  background-color: var(--g498-accent);
}

.g498-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.6rem;
}

.g498-accordion-item.g498-accordion-active .g498-accordion-content {
  padding: 1.6rem;
}

/* Bottom Navigation */
.g498-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(to top, var(--g498-dark) 0%, #2a3f5f 100%);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 0;
  height: 6.4rem;
}

.g498-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--g498-light);
  min-width: 6rem;
  min-height: 6rem;
  transition: var(--g498-transition);
  cursor: pointer;
  position: relative;
}

.g498-nav-item:hover,
.g498-nav-item.g498-active {
  color: var(--g498-primary);
  transform: scale(1.1);
}

.g498-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.g498-nav-text {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Footer */
.g498-footer {
  background-color: var(--g498-dark);
  color: var(--g498-light);
  padding: 3rem 0 10rem;
  margin-top: 4rem;
}

.g498-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.g498-footer-link {
  color: var(--g498-accent);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--g498-transition);
}

.g498-footer-link:hover {
  color: var(--g498-primary);
}

.g498-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.g498-partner-logo {
  width: 60px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--g498-transition);
}

.g498-partner-logo:hover {
  opacity: 1;
}

.g498-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2rem;
}

/* Back to Top */
.g498-back-to-top {
  position: fixed;
  bottom: 8rem;
  right: 2rem;
  width: 4.8rem;
  height: 4.8rem;
  background: var(--g498-gradient);
  color: var(--g498-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--g498-transition);
  z-index: 999;
  box-shadow: var(--g498-shadow-lg);
}

.g498-back-to-top.g498-visible {
  opacity: 1;
  visibility: visible;
}

.g498-back-to-top:hover {
  transform: translateY(-4px);
}

/* Responsive - Desktop */
@media (min-width: 769px) {
  .g498-bottom-nav {
    display: none;
  }

  .g498-main {
    padding-bottom: 2rem;
  }

  .g498-footer {
    padding-bottom: 3rem;
  }

  .g498-game-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Utility Classes */
.g498-text-center {
  text-align: center;
}

.g498-mb-1 {
  margin-bottom: 1rem;
}

.g498-mb-2 {
  margin-bottom: 2rem;
}

.g498-mt-2 {
  margin-top: 2rem;
}

.g498-hidden {
  display: none;
}

.g498-loaded {
  opacity: 1;
}
