/**
 * 37777 bat - Main Stylesheet
 * All classes use pg52- prefix for namespace isolation
 * Color palette: #FFEB3B (yellow) | #FF4500 (orange-red) | #1A1A2E (dark navy) | #FFB74D (amber)
 * Mobile-first responsive design, max-width 430px
 */

/* CSS Variables */
:root {
  --pg52-primary: #FF4500;
  --pg52-secondary: #FFEB3B;
  --pg52-accent: #FFB74D;
  --pg52-bg-dark: #1A1A2E;
  --pg52-bg-darker: #0f0f1e;
  --pg52-text-light: #FFFFFF;
  --pg52-text-muted: #b0b0c0;
  --pg52-bg-card: #252542;
  --pg52-bg-card-hover: #2e2e52;
  --pg52-border: #3a3a5c;
  --pg52-gold: #FFD700;
  --pg52-success: #4CAF50;
  --pg52-font-size-base: 62.5%;
}

html {
  font-size: var(--pg52-font-size-base);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--pg52-bg-dark);
  color: var(--pg52-text-light);
  line-height: 1.5rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Container & Layout ===== */
.pg52-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  width: 100%;
  box-sizing: border-box;
}

.pg52-wrapper {
  width: 100%;
  box-sizing: border-box;
}

/* ===== Header ===== */
.pg52-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--pg52-bg-darker);
  border-bottom: 2px solid var(--pg52-primary);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.pg52-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.pg52-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.pg52-header-logo span {
  color: var(--pg52-secondary);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

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

.pg52-btn-register {
  background: var(--pg52-primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.pg52-btn-register:hover {
  background: #e03d00;
  transform: scale(1.05);
}

.pg52-btn-login {
  background: transparent;
  color: var(--pg52-secondary);
  border: 1.5px solid var(--pg52-secondary);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.pg52-btn-login:hover {
  background: rgba(255,235,59,0.1);
  transform: scale(1.05);
}

.pg52-menu-toggle {
  background: none;
  border: none;
  color: var(--pg52-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* ===== Mobile Menu ===== */
.pg52-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--pg52-bg-darker);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  border-left: 2px solid var(--pg52-primary);
}

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

.pg52-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.pg52-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

.pg52-menu-close {
  background: none;
  border: none;
  color: var(--pg52-text-light);
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
}

.pg52-menu-links {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
}

.pg52-menu-links li {
  margin-bottom: 0.8rem;
}

.pg52-menu-links a {
  color: var(--pg52-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.pg52-menu-links a:hover {
  background: rgba(255,69,0,0.15);
  border-left-color: var(--pg52-primary);
  color: var(--pg52-secondary);
}

/* ===== Carousel ===== */
.pg52-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 1rem;
}

.pg52-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.pg52-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}

.pg52-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.pg52-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.pg52-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.pg52-dot-active {
  background: var(--pg52-primary);
  transform: scale(1.3);
}

/* ===== Game Grid ===== */
.pg52-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg52-secondary);
  margin: 2rem 0 1rem;
  padding-left: 0.5rem;
  border-left: 4px solid var(--pg52-primary);
}

.pg52-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0.5rem 0;
}

.pg52-game-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.pg52-game-card:hover {
  transform: translateY(-3px);
}

.pg52-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--pg52-border);
  transition: border-color 0.2s;
}

.pg52-game-card:hover img {
  border-color: var(--pg52-primary);
}

.pg52-game-card p {
  font-size: 1rem;
  color: var(--pg52-text-light);
  margin: 0.3rem 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Content Sections ===== */
.pg52-content-section {
  background: var(--pg52-bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.2rem 0;
  border: 1px solid var(--pg52-border);
}

.pg52-content-section h2 {
  font-size: 1.7rem;
  color: var(--pg52-secondary);
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--pg52-border);
  padding-bottom: 0.6rem;
}

.pg52-content-section h3 {
  font-size: 1.4rem;
  color: var(--pg52-accent);
  margin: 1rem 0 0.5rem;
}

.pg52-content-section p {
  font-size: 1.3rem;
  color: var(--pg52-text-muted);
  line-height: 1.6;
  margin: 0.5rem 0;
}

.pg52-content-section ul {
  padding-left: 1.5rem;
  color: var(--pg52-text-muted);
  font-size: 1.3rem;
}

.pg52-content-section li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

/* ===== Promo Button ===== */
.pg52-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg52-primary), #ff6b35);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255,69,0,0.4);
}

.pg52-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,69,0,0.6);
}

/* ===== Promo Link ===== */
.pg52-promo-link {
  color: var(--pg52-primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.pg52-promo-link:hover {
  color: var(--pg52-accent);
  text-decoration: underline;
}

/* ===== Footer ===== */
.pg52-footer {
  background: var(--pg52-bg-darker);
  padding: 2rem 1.2rem 1rem;
  border-top: 2px solid var(--pg52-primary);
  margin-top: 2rem;
}

.pg52-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pg52-footer-brand p {
  font-size: 1.2rem;
  color: var(--pg52-text-muted);
  line-height: 1.5;
  margin: 0.5rem 0;
}

.pg52-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0;
}

.pg52-footer-links a {
  color: var(--pg52-text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  transition: color 0.2s;
}

.pg52-footer-links a:hover {
  color: var(--pg52-secondary);
}

.pg52-footer-promos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.pg52-footer-promos .pg52-promo-btn {
  font-size: 1.2rem;
  padding: 0.6rem 1.5rem;
}

.pg52-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  padding-top: 1rem;
  border-top: 1px solid var(--pg52-border);
}

/* ===== Bottom Nav ===== */
.pg52-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: var(--pg52-bg-darker);
  border-top: 2px solid var(--pg52-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.3rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.5);
}

.pg52-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--pg52-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.3rem;
  border-radius: 8px;
  position: relative;
}

.pg52-bottom-nav-btn:hover,
.pg52-bottom-nav-btn:focus {
  color: var(--pg52-secondary);
  background: rgba(255,235,59,0.08);
}

.pg52-bottom-nav-btn .pg52-nav-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 2px;
}

.pg52-bottom-nav-btn .pg52-nav-label {
  font-size: 1rem;
  font-weight: 500;
}

.pg52-bottom-active {
  color: var(--pg52-primary) !important;
}

.pg52-bottom-active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--pg52-primary);
  border-radius: 0 0 3px 3px;
}

/* ===== Hero Section ===== */
.pg52-hero {
  position: relative;
  margin-top: 56px;
  text-align: center;
  padding: 2rem 1rem;
}

.pg52-hero h1 {
  font-size: 2rem;
  color: var(--pg52-secondary);
  margin: 0 0 0.8rem;
  line-height: 1.3;
}

.pg52-hero p {
  font-size: 1.3rem;
  color: var(--pg52-text-muted);
  margin: 0 0 1.2rem;
}

/* ===== RTP Table ===== */
.pg52-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.pg52-rtp-table th {
  background: var(--pg52-primary);
  color: #fff;
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 600;
}

.pg52-rtp-table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--pg52-border);
  color: var(--pg52-text-muted);
}

.pg52-rtp-table tr:hover td {
  background: rgba(255,69,0,0.05);
}

/* ===== Testimonials ===== */
.pg52-testimonial {
  background: var(--pg52-bg-card);
  border-radius: 10px;
  padding: 1.2rem;
  margin: 0.8rem 0;
  border-left: 3px solid var(--pg52-accent);
}

.pg52-testimonial p {
  font-size: 1.2rem;
  color: var(--pg52-text-muted);
  font-style: italic;
  margin: 0 0 0.5rem;
}

.pg52-testimonial strong {
  color: var(--pg52-accent);
  font-size: 1.1rem;
}

/* ===== Winners ===== */
.pg52-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--pg52-border);
}

.pg52-winner-name {
  font-size: 1.2rem;
  color: var(--pg52-text-light);
}

.pg52-winner-amount {
  font-size: 1.3rem;
  color: var(--pg52-success);
  font-weight: 700;
}

/* ===== Payment Methods ===== */
.pg52-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.pg52-payment-item {
  background: var(--pg52-bg-card);
  border: 1px solid var(--pg52-border);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  color: var(--pg52-text-muted);
  text-align: center;
}

/* ===== App Download CTA ===== */
.pg52-app-cta {
  background: linear-gradient(135deg, #1A1A2E, #2d1b4e);
  border: 2px solid var(--pg52-primary);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  margin: 1.2rem 0;
}

.pg52-app-cta h3 {
  color: var(--pg52-secondary);
  font-size: 1.6rem;
  margin: 0 0 0.8rem;
}

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

/* ===== Main Content Padding ===== */
.pg52-main {
  margin-top: 56px;
  padding-bottom: 0;
}

/* ===== Responsive Desktop ===== */
@media (min-width: 769px) {
  .pg52-bottom-nav {
    display: none;
  }
  .pg52-main {
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  .pg52-main {
    padding-bottom: 70px;
  }
}

/* ===== Utility ===== */
.pg52-text-center { text-align: center; }
.pg52-text-bold { font-weight: 700; }
.pg52-mt-1 { margin-top: 0.5rem; }
.pg52-mt-2 { margin-top: 1rem; }
.pg52-mb-1 { margin-bottom: 0.5rem; }
.pg52-mb-2 { margin-bottom: 1rem; }
.pg52-hidden { display: none; }
