/**
 * Taya365 Layout Stylesheet
 * All classes use pgb2- prefix for namespace isolation
 * Mobile-first responsive design, max-width 430px
 */

/* CSS Variables */
:root {
  --pgb2-primary: #228B22;
  --pgb2-bg: #1A1A1A;
  --pgb2-text: #E0FFFF;
  --pgb2-muted: #6C757D;
  --pgb2-accent: #8B008B;
  --pgb2-white: #FFFFFF;
  --pgb2-dark: #111111;
  --pgb2-card-bg: #222222;
  --pgb2-border: #333333;
  --pgb2-green-light: #2ECC40;
  --pgb2-gold: #FFD700;
  --pgb2-radius: 8px;
  --pgb2-shadow: 0 2px 12px rgba(0,0,0,0.4);
  --pgb2-font-size: 62.5%;
}

/* Reset & Base */
html { font-size: var(--pgb2-font-size); }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--pgb2-bg);
  color: var(--pgb2-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--pgb2-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.pgb2-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; position: relative; }
.pgb2-wrapper { width: 100%; min-height: 100vh; }

/* Header */
.pgb2-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--pgb2-dark) 0%, #1e1e1e 100%);
  border-bottom: 2px solid var(--pgb2-primary);
  padding: 0;
}
.pgb2-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; height: 56px;
}
.pgb2-logo-area { display: flex; align-items: center; gap: 0.6rem; }
.pgb2-logo-area img { width: 28px; height: 28px; border-radius: 4px; }
.pgb2-logo-text { font-size: 1.6rem; font-weight: 700; color: var(--pgb2-primary); letter-spacing: 0.5px; }
.pgb2-header-btns { display: flex; align-items: center; gap: 0.5rem; }
.pgb2-btn-register {
  background: var(--pgb2-primary); color: var(--pgb2-white);
  border: none; border-radius: 20px; padding: 0.5rem 1.2rem;
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s ease;
}
.pgb2-btn-register:hover { background: var(--pgb2-green-light); transform: scale(1.05); }
.pgb2-btn-login {
  background: transparent; color: var(--pgb2-gold);
  border: 1.5px solid var(--pgb2-gold); border-radius: 20px;
  padding: 0.5rem 1rem; font-size: 1.2rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease;
}
.pgb2-btn-login:hover { background: var(--pgb2-gold); color: var(--pgb2-dark); }

/* Menu Toggle */
.pgb2-menu-toggle {
  background: none; border: none; color: var(--pgb2-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem; line-height: 1;
}

/* Mobile Menu Overlay */
.pgb2-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); z-index: 9998;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.pgb2-overlay-active { opacity: 1; visibility: visible; }

/* Mobile Menu */
.pgb2-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--pgb2-dark); z-index: 9999;
  transition: right 0.3s ease; overflow-y: auto;
  border-left: 2px solid var(--pgb2-primary);
}
.pgb2-menu-active { right: 0; }
.pgb2-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--pgb2-border);
}
.pgb2-menu-header h3 { color: var(--pgb2-primary); font-size: 1.6rem; }
.pgb2-menu-close {
  background: none; border: none; color: var(--pgb2-text);
  font-size: 2rem; cursor: pointer;
}
.pgb2-menu-links { list-style: none; padding: 1rem 0; }
.pgb2-menu-links li { border-bottom: 1px solid var(--pgb2-border); }
.pgb2-menu-links a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.4rem; color: var(--pgb2-text); font-size: 1.3rem;
  transition: background 0.2s ease;
}
.pgb2-menu-links a:hover { background: rgba(34,139,34,0.15); }
.pgb2-menu-links i { width: 22px; text-align: center; color: var(--pgb2-primary); }

/* Carousel */
.pgb2-carousel {
  position: relative; overflow: hidden; border-radius: var(--pgb2-radius);
  margin-bottom: 1.5rem;
}
.pgb2-slide {
  display: none; opacity: 0; transition: opacity 0.5s ease;
  cursor: pointer;
}
.pgb2-slide img { width: 100%; height: auto; border-radius: var(--pgb2-radius); }

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

/* Game Grid */
.pgb2-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem;
  margin-bottom: 2rem;
}
.pgb2-game-item {
  text-align: center; cursor: pointer;
  transition: transform 0.2s ease;
  border-radius: var(--pgb2-radius);
  padding: 0.5rem;
}
.pgb2-game-item:hover { transform: scale(1.05); background: rgba(34,139,34,0.1); }
.pgb2-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: var(--pgb2-radius);
  border: 1px solid var(--pgb2-border);
}
.pgb2-game-item span {
  display: block; font-size: 1rem; color: var(--pgb2-text);
  margin-top: 0.3rem; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Label */
.pgb2-cat-label {
  font-size: 1.4rem; font-weight: 600; color: var(--pgb2-gold);
  margin: 1.5rem 0 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}

/* Cards */
.pgb2-card {
  background: var(--pgb2-card-bg); border-radius: var(--pgb2-radius);
  padding: 1.5rem; margin-bottom: 1.2rem;
  border: 1px solid var(--pgb2-border);
  box-shadow: var(--pgb2-shadow);
}
.pgb2-card h3 { color: var(--pgb2-primary); font-size: 1.5rem; margin-bottom: 0.8rem; }
.pgb2-card p { color: var(--pgb2-text); font-size: 1.2rem; line-height: 1.6; margin-bottom: 0.6rem; }

/* Promo CTA */
.pgb2-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--pgb2-primary), #1a6b1a);
  color: var(--pgb2-white); padding: 1rem 2.5rem;
  border-radius: 30px; font-size: 1.4rem; font-weight: 700;
  cursor: pointer; border: none;
  transition: all 0.3s ease; text-align: center;
}
.pgb2-cta:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(34,139,34,0.4); }
.pgb2-cta-text {
  color: var(--pgb2-gold); font-weight: 600; font-size: 1.2rem;
  cursor: pointer; text-decoration: underline;
  transition: color 0.2s;
}
.pgb2-cta-text:hover { color: var(--pgb2-green-light); }

/* Footer */
.pgb2-footer {
  background: var(--pgb2-dark); border-top: 2px solid var(--pgb2-primary);
  padding: 2rem 1.2rem 3rem; margin-top: 2rem;
}
.pgb2-footer-inner { max-width: 430px; margin: 0 auto; }
.pgb2-footer-brand { color: var(--pgb2-muted); font-size: 1.1rem; line-height: 1.6; margin-bottom: 1.2rem; }
.pgb2-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.pgb2-footer-links a {
  color: var(--pgb2-primary); font-size: 1.1rem;
  padding: 0.3rem 0.6rem; border: 1px solid var(--pgb2-border);
  border-radius: 4px; transition: all 0.2s;
}
.pgb2-footer-links a:hover { background: var(--pgb2-primary); color: var(--pgb2-white); }
.pgb2-footer-copy { color: var(--pgb2-muted); font-size: 1rem; text-align: center; margin-top: 1rem; }

/* Bottom Navigation */
.pgb2-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1a1a2e 0%, var(--pgb2-dark) 100%);
  border-top: 1.5px solid var(--pgb2-accent);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 0.4rem;
}
.pgb2-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 54px;
  background: none; border: none; cursor: pointer;
  color: var(--pgb2-muted); transition: all 0.2s ease;
  border-radius: 8px; padding: 0.3rem 0.4rem;
}
.pgb2-bottom-nav-btn:hover,
.pgb2-bottom-nav-btn.pgb2-nav-active { color: var(--pgb2-primary); background: rgba(34,139,34,0.1); }
.pgb2-bottom-nav-btn i, .pgb2-bottom-nav-btn .material-icons { font-size: 22px; }
.pgb2-bottom-nav-btn span { font-size: 1rem; margin-top: 0.2rem; }

/* Content sections */
.pgb2-content-section { margin-bottom: 1.5rem; }
.pgb2-content-section h2 { font-size: 1.6rem; color: var(--pgb2-primary); margin-bottom: 0.8rem; }
.pgb2-content-section p { font-size: 1.2rem; line-height: 1.6; color: var(--pgb2-text); margin-bottom: 0.5rem; }

/* RTP Table */
.pgb2-rtp-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.pgb2-rtp-table th {
  background: var(--pgb2-primary); color: var(--pgb2-white);
  padding: 0.6rem 0.8rem; font-size: 1.1rem; text-align: left;
}
.pgb2-rtp-table td {
  padding: 0.5rem 0.8rem; font-size: 1.1rem;
  border-bottom: 1px solid var(--pgb2-border);
}

/* Winners List */
.pgb2-winners-list { list-style: none; }
.pgb2-winners-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px solid var(--pgb2-border);
  font-size: 1.1rem;
}
.pgb2-winner-name { color: var(--pgb2-text); }
.pgb2-winner-amount { color: var(--pgb2-gold); font-weight: 700; }

/* Payment icons row */
.pgb2-payment-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1rem 0; }
.pgb2-payment-item {
  background: var(--pgb2-card-bg); border: 1px solid var(--pgb2-border);
  border-radius: 6px; padding: 0.5rem 1rem; font-size: 1.1rem;
  color: var(--pgb2-text);
}

/* Testimonials */
.pgb2-testimonial {
  background: var(--pgb2-card-bg); border-left: 3px solid var(--pgb2-accent);
  padding: 1rem; margin-bottom: 0.8rem; border-radius: 0 var(--pgb2-radius) var(--pgb2-radius) 0;
}
.pgb2-testimonial p { font-size: 1.1rem; font-style: italic; color: var(--pgb2-text); }
.pgb2-testimonial cite { color: var(--pgb2-gold); font-size: 1rem; display: block; margin-top: 0.4rem; }

/* Spacing */
.pgb2-mt-1 { margin-top: 0.8rem; }
.pgb2-mt-2 { margin-top: 1.5rem; }
.pgb2-mb-1 { margin-bottom: 0.8rem; }
.pgb2-mb-2 { margin-bottom: 1.5rem; }
.pgb2-text-center { text-align: center; }

/* Highlight Badge */
.pgb2-badge {
  display: inline-block; background: var(--pgb2-accent); color: var(--pgb2-white);
  padding: 0.2rem 0.6rem; border-radius: 10px; font-size: 0.9rem;
  font-weight: 600;
}

/* Responsive */
@media (min-width: 769px) {
  .pgb2-bottom-nav { display: none; }
}
@media (max-width: 768px) {
  .pgb2-main-content { padding-bottom: 80px; }
}
