/**
 * OKBet Register - Main Stylesheet
 * Class prefix: pg82-
 * CSS variable prefix: --pg82-
 * Color palette: #696969 | #34495E | #006400 | #F5F5F5
 */

/* ===== CSS Variables ===== */
:root {
  --pg82-primary: #006400;
  --pg82-secondary: #34495E;
  --pg82-accent: #006400;
  --pg82-bg-dark: #34495E;
  --pg82-bg-darker: #2C3E50;
  --pg82-bg-card: #3D566E;
  --pg82-text-light: #F5F5F5;
  --pg82-text-muted: #B0BEC5;
  --pg82-gray: #696969;
  --pg82-gold: #FFD700;
  --pg82-success: #27AE60;
  --pg82-danger: #E74C3C;
  --pg82-border: #4A6274;
  --pg82-shadow: rgba(0,0,0,0.3);
  --pg82-radius: 8px;
  --pg82-radius-lg: 12px;
  --pg82-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5rem;
  color: var(--pg82-text-light);
  background: var(--pg82-bg-dark);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pg82-gold);
  text-decoration: none;
  transition: var(--pg82-transition);
}

a:hover {
  color: var(--pg82-text-light);
  text-decoration: underline;
}

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

/* ===== Header ===== */
.pg82-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pg82-bg-darker) 0%, var(--pg82-bg-dark) 100%);
  border-bottom: 2px solid var(--pg82-primary);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

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

.pg82-btn-register {
  background: linear-gradient(135deg, var(--pg82-primary), #008800);
  color: var(--pg82-text-light);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--pg82-radius);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--pg82-transition);
  text-transform: uppercase;
  min-height: 36px;
}

.pg82-btn-register:hover {
  background: linear-gradient(135deg, #008800, var(--pg82-primary));
  transform: scale(1.05);
}

.pg82-btn-login {
  background: transparent;
  color: var(--pg82-gold);
  border: 1.5px solid var(--pg82-gold);
  padding: 0.5rem 1rem;
  border-radius: var(--pg82-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg82-transition);
  min-height: 36px;
}

.pg82-btn-login:hover {
  background: var(--pg82-gold);
  color: var(--pg82-bg-dark);
}

.pg82-menu-btn {
  background: none;
  border: none;
  color: var(--pg82-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Mobile Menu ===== */
.pg82-mobile-menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 100vh;
  background: var(--pg82-bg-darker);
  z-index: 9999;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--pg82-transition);
  flex-direction: column;
  padding-top: 6rem;
}

.pg82-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--pg82-border);
}

.pg82-mobile-menu-close {
  background: none;
  border: none;
  color: var(--pg82-text-light);
  font-size: 2.4rem;
  cursor: pointer;
}

.pg82-mobile-menu-links {
  list-style: none;
  padding: 1rem 0;
  flex: 1;
  overflow-y: auto;
}

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

.pg82-mobile-menu-links a {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--pg82-text-light);
  font-size: 1.5rem;
  transition: var(--pg82-transition);
}

.pg82-mobile-menu-links a:hover {
  background: var(--pg82-bg-card);
  color: var(--pg82-gold);
  text-decoration: none;
}

/* ===== Main Content ===== */
.pg82-main {
  padding-top: 6rem;
}

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

.pg82-container {
  width: 100%;
  padding: 0 1rem;
  max-width: 430px;
  margin: 0 auto;
}

/* ===== Carousel ===== */
.pg82-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--pg82-radius-lg);
  margin-bottom: 1.5rem;
}

.pg82-carousel-slide {
  display: none;
  cursor: pointer;
}

.pg82-carousel-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--pg82-radius-lg);
}

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

.pg82-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(245, 245, 245, 0.5);
  cursor: pointer;
  transition: var(--pg82-transition);
  border: none;
}

.pg82-carousel-dot-active {
  background: var(--pg82-gold);
  transform: scale(1.3);
}

/* ===== Section Headings ===== */
.pg82-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg82-gold);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pg82-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg82-section-title .material-symbols-outlined,
.pg82-section-title .fas,
.pg82-section-title .bi {
  font-size: 2rem;
}

/* ===== Game Grid ===== */
.pg82-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.pg82-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--pg82-transition);
  border-radius: var(--pg82-radius);
  padding: 0.5rem;
  background: var(--pg82-bg-card);
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pg82-game-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--pg82-shadow);
}

.pg82-game-item img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  margin-bottom: 0.3rem;
  object-fit: cover;
}

.pg82-game-item span {
  font-size: 1rem;
  color: var(--pg82-text-muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ===== Content Sections ===== */
.pg82-content-block {
  background: var(--pg82-bg-card);
  border-radius: var(--pg82-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--pg82-primary);
}

.pg82-content-block h2 {
  font-size: 1.8rem;
  color: var(--pg82-gold);
  margin-bottom: 1rem;
}

.pg82-content-block h3 {
  font-size: 1.5rem;
  color: var(--pg82-text-light);
  margin: 1rem 0 0.5rem;
}

.pg82-content-block p {
  color: var(--pg82-text-muted);
  margin-bottom: 0.8rem;
  line-height: 2.2rem;
}

.pg82-content-block ul, .pg82-content-block ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.pg82-content-block li {
  color: var(--pg82-text-muted);
  margin-bottom: 0.4rem;
  line-height: 2rem;
}

/* ===== Promo Buttons ===== */
.pg82-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg82-primary), #008800);
  color: var(--pg82-text-light);
  padding: 1rem 2rem;
  border-radius: var(--pg82-radius);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: var(--pg82-transition);
  text-transform: uppercase;
  min-height: 44px;
  margin: 0.5rem 0;
}

.pg82-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 100, 0, 0.4);
  text-decoration: none;
  color: var(--pg82-text-light);
}

.pg82-promo-link {
  color: var(--pg82-gold);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed var(--pg82-gold);
  transition: var(--pg82-transition);
}

.pg82-promo-link:hover {
  color: var(--pg82-text-light);
  border-bottom-color: var(--pg82-text-light);
  text-decoration: none;
}

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

.pg82-footer-brand {
  color: var(--pg82-text-muted);
  font-size: 1.3rem;
  line-height: 2rem;
  margin-bottom: 1.5rem;
}

.pg82-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.pg82-footer-links a {
  background: var(--pg82-bg-card);
  color: var(--pg82-text-light);
  padding: 0.6rem 1rem;
  border-radius: var(--pg82-radius);
  font-size: 1.2rem;
  transition: var(--pg82-transition);
  border: 1px solid var(--pg82-border);
}

.pg82-footer-links a:hover {
  background: var(--pg82-primary);
  border-color: var(--pg82-primary);
  text-decoration: none;
}

.pg82-footer-promo-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pg82-footer-promo-btns button {
  flex: 1;
  min-width: 45%;
  padding: 0.8rem;
  border-radius: var(--pg82-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg82-transition);
  border: none;
}

.pg82-footer-promo-btns .pg82-btn-gold {
  background: linear-gradient(135deg, var(--pg82-gold), #FFA500);
  color: var(--pg82-bg-dark);
}

.pg82-footer-promo-btns .pg82-btn-green {
  background: linear-gradient(135deg, var(--pg82-primary), #008800);
  color: var(--pg82-text-light);
}

.pg82-footer-copyright {
  text-align: center;
  color: var(--pg82-gray);
  font-size: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pg82-border);
}

/* ===== Bottom Navigation ===== */
.pg82-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, var(--pg82-bg-dark), var(--pg82-bg-darker));
  border-top: 2px solid var(--pg82-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

.pg82-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  cursor: pointer;
  color: var(--pg82-text-muted);
  transition: var(--pg82-transition);
  border: none;
  background: none;
  padding: 0.3rem;
  gap: 0.2rem;
}

.pg82-bottom-nav-item:hover,
.pg82-bottom-nav-item.pg82-nav-active {
  color: var(--pg82-gold);
  transform: scale(1.1);
}

.pg82-bottom-nav-item .material-symbols-outlined,
.pg82-bottom-nav-item .fas,
.pg82-bottom-nav-item .far,
.pg82-bottom-nav-item .fad,
.pg82-bottom-nav-item .bi,
.pg82-bottom-nav-item ion-icon {
  font-size: 22px;
}

.pg82-bottom-nav-item span {
  font-size: 1rem;
  line-height: 1;
}

/* ===== Hide bottom nav on desktop ===== */
@media (min-width: 769px) {
  .pg82-bottom-nav {
    display: none;
  }
}

/* ===== Testimonials ===== */
.pg82-testimonial {
  background: var(--pg82-bg-card);
  border-radius: var(--pg82-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--pg82-gold);
}

.pg82-testimonial-name {
  color: var(--pg82-gold);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.pg82-testimonial-text {
  color: var(--pg82-text-muted);
  font-size: 1.3rem;
  line-height: 2rem;
}

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

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

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

.pg82-rtp-table tr:hover td {
  background: var(--pg82-bg-card);
}

/* ===== Winner Badge ===== */
.pg82-winner-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--pg82-bg-card);
  border-radius: var(--pg82-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--pg82-border);
}

.pg82-winner-badge img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.pg82-winner-info {
  flex: 1;
}

.pg82-winner-name {
  color: var(--pg82-gold);
  font-weight: 600;
  font-size: 1.3rem;
}

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

/* ===== Payment Methods ===== */
.pg82-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0;
}

.pg82-payment-item {
  background: var(--pg82-bg-card);
  border-radius: var(--pg82-radius);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--pg82-text-muted);
  border: 1px solid var(--pg82-border);
}

/* ===== Utilities ===== */
.pg82-text-center { text-align: center; }
.pg82-text-gold { color: var(--pg82-gold); }
.pg82-text-green { color: var(--pg82-primary); }
.pg82-mt-1 { margin-top: 1rem; }
.pg82-mb-1 { margin-bottom: 1rem; }
.pg82-hidden { display: none; }

/* ===== Responsive Adjustments ===== */
@media (max-width: 380px) {
  .pg82-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .pg82-header-logo span {
    font-size: 1.2rem;
  }
  .pg82-btn-register, .pg82-btn-login {
    padding: 0.4rem 0.8rem;
    font-size: 1.1rem;
  }
}
