/**
 * Core CSS Layout - okbet app login website
 * All classes use pgdf- prefix for namespace isolation
 * Color palette: #00CED1 | #0E1621 | #BBBBBB | #800080 | #DA70D6 | #8470FF
 * Mobile-first design, max-width: 430px
 */

/* Root variables */
:root {
  --pgdf-primary: #00CED1;
  --pgdf-bg-dark: #0E1621;
  --pgdf-text-muted: #BBBBBB;
  --pgdf-accent-purple: #800080;
  --pgdf-accent-pink: #DA70D6;
  --pgdf-accent-indigo: #8470FF;
  --pgdf-bg-card: #151e2d;
  --pgdf-bg-card-hover: #1a2740;
  --pgdf-text-light: #e8edf3;
  --pgdf-text-white: #ffffff;
  --pgdf-radius-sm: 6px;
  --pgdf-radius-md: 10px;
  --pgdf-radius-lg: 16px;
  --pgdf-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --pgdf-transition: all 0.25s ease;
  --pgdf-font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: var(--pgdf-font-main);
  background: var(--pgdf-bg-dark);
  color: var(--pgdf-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.pgdf-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pgdf-wrapper { width: 100%; padding: 0 1rem; }

/* ========== HEADER ========== */
.pgdf-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pgdf-bg-dark) 0%, #162033 100%);
  border-bottom: 1px solid rgba(0,206,209,0.2);
  height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
  backdrop-filter: blur(10px);
}
.pgdf-header-left {
  display: flex; align-items: center; gap: 0.6rem;
}
.pgdf-logo {
  width: 28px; height: 28px; border-radius: 6px;
}
.pgdf-site-name {
  font-size: 1.4rem; font-weight: 700;
  color: var(--pgdf-primary);
  white-space: nowrap;
}
.pgdf-header-right {
  display: flex; align-items: center; gap: 0.5rem;
}
.pgdf-btn-register {
  background: linear-gradient(135deg, var(--pgdf-accent-indigo), var(--pgdf-primary));
  color: var(--pgdf-text-white);
  font-size: 1.2rem; font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--pgdf-radius-sm);
  border: none; cursor: pointer;
  transition: var(--pgdf-transition);
}
.pgdf-btn-register:hover { opacity: 0.9; transform: scale(1.03); }
.pgdf-btn-login {
  background: transparent;
  color: var(--pgdf-primary);
  font-size: 1.2rem; font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--pgdf-radius-sm);
  border: 1.5px solid var(--pgdf-primary);
  cursor: pointer;
  transition: var(--pgdf-transition);
}
.pgdf-btn-login:hover { background: rgba(0,206,209,0.1); }

/* Menu toggle */
.pgdf-menu-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--pgdf-primary); font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  padding: 0.4rem;
}

/* ========== MOBILE MENU ========== */
.pgdf-mobile-menu {
  position: fixed; top: 0; right: -280px;
  width: 260px; height: 100vh;
  z-index: 9999;
  background: linear-gradient(180deg, #0e1621 0%, #1a1035 100%);
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.pgdf-menu-active { right: 0 !important; }
.pgdf-menu-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.pgdf-overlay-active { opacity: 1; pointer-events: auto; }
.pgdf-menu-close {
  background: none; border: none; cursor: pointer;
  color: var(--pgdf-text-muted); font-size: 2.2rem;
  position: absolute; top: 1rem; right: 1rem;
}
.pgdf-menu-title {
  font-size: 1.6rem; font-weight: 700;
  color: var(--pgdf-primary);
  margin-bottom: 1.5rem;
}
.pgdf-menu-link {
  display: block;
  padding: 1rem 0;
  color: var(--pgdf-text-light);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--pgdf-transition);
}
.pgdf-menu-link:hover { color: var(--pgdf-primary); padding-left: 0.5rem; }

/* ========== CAROUSEL ========== */
.pgdf-carousel {
  position: relative; overflow: hidden;
  margin-top: 54px;
  border-radius: 0 0 var(--pgdf-radius-md) var(--pgdf-radius-md);
}
.pgdf-carousel-slide {
  display: none; width: 100%;
  cursor: pointer;
}
.pgdf-carousel-slide img {
  width: 100%; height: auto; min-height: 180px; object-fit: cover;
}
.pgdf-slide-active { display: block; }
.pgdf-carousel-dots {
  position: absolute; bottom: 10px;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.pgdf-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer; border: none;
  transition: var(--pgdf-transition);
}
.pgdf-dot-active { background: var(--pgdf-primary); transform: scale(1.3); }

/* ========== MAIN CONTENT ========== */
.pgdf-main {
  padding-top: 0;
  padding-bottom: 2rem;
}
@media (max-width: 768px) {
  .pgdf-main { padding-bottom: 78px; }
}

/* Section headings */
.pgdf-section {
  padding: 1.5rem 0;
}
.pgdf-section-title {
  font-size: 1.8rem; font-weight: 700;
  color: var(--pgdf-text-white);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pgdf-accent-purple);
}
.pgdf-section-title span { color: var(--pgdf-primary); }

/* ========== GAME GRID ========== */
.pgdf-game-category-title {
  font-size: 1.5rem; font-weight: 600;
  color: var(--pgdf-accent-pink);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--pgdf-accent-indigo);
}
.pgdf-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
@media (min-width: 380px) {
  .pgdf-game-grid { grid-template-columns: repeat(5, 1fr); }
}
.pgdf-game-item {
  text-align: center; cursor: pointer;
  transition: var(--pgdf-transition);
  border-radius: var(--pgdf-radius-sm);
  padding: 0.4rem;
}
.pgdf-game-item:hover { transform: translateY(-2px); background: var(--pgdf-bg-card-hover); }
.pgdf-game-item img {
  width: 100%; aspect-ratio: 1;
  border-radius: var(--pgdf-radius-sm);
  border: 1px solid rgba(0,206,209,0.15);
  object-fit: cover;
}
.pgdf-game-name {
  font-size: 1.1rem; color: var(--pgdf-text-muted);
  margin-top: 0.3rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ========== CARDS & BLOCKS ========== */
.pgdf-card {
  background: var(--pgdf-bg-card);
  border-radius: var(--pgdf-radius-md);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(0,206,209,0.08);
  box-shadow: var(--pgdf-shadow);
}
.pgdf-card h3 {
  font-size: 1.6rem; font-weight: 700;
  color: var(--pgdf-text-white);
  margin-bottom: 0.8rem;
}
.pgdf-card p {
  font-size: 1.3rem; color: var(--pgdf-text-muted);
  line-height: 1.8rem;
}
.pgdf-card-highlight {
  background: linear-gradient(135deg, var(--pgdf-bg-card) 0%, rgba(132,112,255,0.1) 100%);
  border: 1px solid rgba(132,112,255,0.2);
}

/* ========== PROMO BUTTONS ========== */
.pgdf-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pgdf-accent-purple), var(--pgdf-accent-pink));
  color: var(--pgdf-text-white);
  font-size: 1.3rem; font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: var(--pgdf-radius-sm);
  border: none; cursor: pointer;
  transition: var(--pgdf-transition);
  text-align: center;
}
.pgdf-promo-btn:hover { transform: scale(1.04); opacity: 0.95; }
.pgdf-promo-btn-teal {
  background: linear-gradient(135deg, var(--pgdf-primary), var(--pgdf-accent-indigo));
}
.pgdf-promo-link {
  color: var(--pgdf-primary);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--pgdf-primary);
}
.pgdf-promo-link:hover { color: var(--pgdf-accent-pink); }

/* ========== FEATURES GRID ========== */
.pgdf-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.pgdf-feature-item {
  background: var(--pgdf-bg-card);
  padding: 1rem;
  border-radius: var(--pgdf-radius-sm);
  text-align: center;
  border: 1px solid rgba(0,206,209,0.08);
}
.pgdf-feature-item i, .pgdf-feature-item .material-icons {
  font-size: 2.4rem; color: var(--pgdf-primary);
  margin-bottom: 0.4rem;
}
.pgdf-feature-item h4 {
  font-size: 1.2rem; color: var(--pgdf-text-white);
  margin-bottom: 0.3rem;
}
.pgdf-feature-item p {
  font-size: 1.1rem; color: var(--pgdf-text-muted);
}

/* ========== TESTIMONIALS ========== */
.pgdf-testimonial {
  background: var(--pgdf-bg-card);
  border-radius: var(--pgdf-radius-md);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--pgdf-accent-pink);
}
.pgdf-testimonial-user {
  font-size: 1.2rem; font-weight: 600;
  color: var(--pgdf-primary);
  margin-bottom: 0.3rem;
}
.pgdf-testimonial-text {
  font-size: 1.2rem; color: var(--pgdf-text-muted);
  font-style: italic;
}

/* ========== WINNERS TABLE ========== */
.pgdf-winners-table {
  width: 100%;
  border-collapse: collapse;
}
.pgdf-winners-table th {
  font-size: 1.1rem; color: var(--pgdf-primary);
  padding: 0.6rem; text-align: left;
  border-bottom: 1px solid rgba(0,206,209,0.15);
}
.pgdf-winners-table td {
  font-size: 1.1rem; color: var(--pgdf-text-muted);
  padding: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ========== FOOTER ========== */
.pgdf-footer {
  background: linear-gradient(180deg, var(--pgdf-bg-dark) 0%, #090e17 100%);
  padding: 2rem 0 1rem;
  border-top: 1px solid rgba(0,206,209,0.1);
}
.pgdf-footer-brand {
  font-size: 1.3rem; color: var(--pgdf-text-muted);
  line-height: 1.8rem;
  margin-bottom: 1.2rem;
}
.pgdf-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.pgdf-footer-link {
  background: var(--pgdf-bg-card);
  color: var(--pgdf-text-light);
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--pgdf-radius-sm);
  cursor: pointer;
  transition: var(--pgdf-transition);
}
.pgdf-footer-link:hover { background: var(--pgdf-accent-purple); color: var(--pgdf-text-white); }
.pgdf-footer-copy {
  font-size: 1.1rem; color: rgba(187,187,187,0.5);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ========== BOTTOM NAVIGATION ========== */
.pgdf-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #162033 0%, var(--pgdf-bg-dark) 100%);
  border-top: 1px solid rgba(0,206,209,0.2);
  height: 60px;
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 0.3rem;
}
.pgdf-bottom-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px;
  background: none; border: none; cursor: pointer;
  color: var(--pgdf-text-muted);
  font-size: 1rem;
  transition: var(--pgdf-transition);
  border-radius: var(--pgdf-radius-sm);
}
.pgdf-bottom-btn i,
.pgdf-bottom-btn .material-icons,
.pgdf-bottom-btn ion-icon,
.pgdf-bottom-btn bi {
  font-size: 22px; margin-bottom: 2px;
}
.pgdf-bottom-btn span { font-size: 1rem; }
.pgdf-bottom-btn:hover,
.pgdf-bottom-btn-active {
  color: var(--pgdf-primary);
  transform: scale(1.05);
}
.pgdf-bottom-btn-active {
  background: rgba(0,206,209,0.08);
}

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

/* ========== UTILITY CLASSES ========== */
.pgdf-text-center { text-align: center; }
.pgdf-text-primary { color: var(--pgdf-primary); }
.pgdf-text-pink { color: var(--pgdf-accent-pink); }
.pgdf-text-purple { color: var(--pgdf-accent-purple); }
.pgdf-text-indigo { color: var(--pgdf-accent-indigo); }
.pgdf-mt-1 { margin-top: 0.8rem; }
.pgdf-mt-2 { margin-top: 1.5rem; }
.pgdf-mb-1 { margin-bottom: 0.8rem; }
.pgdf-mb-2 { margin-bottom: 1.5rem; }
.pgdf-py-1 { padding: 0.8rem 0; }
.pgdf-py-2 { padding: 1.5rem 0; }
.pgdf-hidden { display: none; }

/* Payment icons row */
.pgdf-payment-row {
  display: flex; align-items: center; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
  padding: 0.8rem 0;
}
.pgdf-payment-item {
  background: var(--pgdf-bg-card);
  padding: 0.6rem 1rem;
  border-radius: var(--pgdf-radius-sm);
  font-size: 1.1rem; color: var(--pgdf-text-muted);
  border: 1px solid rgba(0,206,209,0.08);
}

/* App download CTA */
.pgdf-cta-box {
  background: linear-gradient(135deg, rgba(128,0,128,0.2), rgba(0,206,209,0.15));
  border-radius: var(--pgdf-radius-md);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(218,112,214,0.2);
}
.pgdf-cta-title {
  font-size: 1.6rem; font-weight: 700;
  color: var(--pgdf-text-white);
  margin-bottom: 0.5rem;
}
.pgdf-cta-desc {
  font-size: 1.2rem; color: var(--pgdf-text-muted);
  margin-bottom: 1rem;
}

/* RTP table */
.pgdf-rtp-bar {
  background: var(--pgdf-bg-card);
  border-radius: var(--pgdf-radius-sm);
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.pgdf-rtp-name { font-size: 1.2rem; color: var(--pgdf-text-light); }
.pgdf-rtp-value {
  font-size: 1.2rem; font-weight: 600;
  color: var(--pgdf-primary);
}

/* Responsive tweaks */
@media (min-width: 769px) {
  .pgdf-header { max-width: 430px; left: 50%; transform: translateX(-50%); }
  .pgdf-bottom-nav { max-width: 430px; left: 50%; transform: translateX(-50%); }
  body { display: flex; justify-content: center; background: #070b11; }
  .pgdf-page-wrap { max-width: 430px; width: 100%; background: var(--pgdf-bg-dark); min-height: 100vh; box-shadow: 0 0 30px rgba(0,0,0,0.5); }
}
