/**
 * ph978 casino - Main Stylesheet
 * All classes prefixed with pg32- to avoid conflicts
 * Mobile-first responsive design (max-width: 430px base)
 */

/* CSS Variables */
:root {
  --pg32-bg: #2C2C2C;
  --pg32-primary: #F4A460;
  --pg32-secondary: #CD853F;
  --pg32-highlight: #FA8072;
  --pg32-accent: #F0E68C;
  --pg32-text: #F0E68C;
  --pg32-text-light: #FFFFFF;
  --pg32-text-muted: #B0A080;
  --pg32-card-bg: #3A3A3A;
  --pg32-card-border: #4A4A4A;
  --pg32-header-bg: #1E1E1E;
  --pg32-footer-bg: #1A1A1A;
  --pg32-radius: 8px;
  --pg32-radius-sm: 4px;
  --pg32-radius-lg: 12px;
  --pg32-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --pg32-transition: all 0.3s ease;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--pg32-bg);
  color: var(--pg32-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--pg32-primary);
  text-decoration: none;
  transition: var(--pg32-transition);
}
a:hover { color: var(--pg32-highlight); }

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

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

/* Header */
.pg32-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--pg32-header-bg);
  border-bottom: 1px solid var(--pg32-card-border);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.pg32-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg32-logo {
  width: 28px;
  height: 28px;
  border-radius: var(--pg32-radius-sm);
}

.pg32-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg32-primary);
  white-space: nowrap;
}

.pg32-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg32-btn-register, .pg32-btn-login {
  padding: 0.5rem 1rem;
  border-radius: var(--pg32-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--pg32-transition);
  min-height: 34px;
  min-width: 60px;
}

.pg32-btn-register {
  background: var(--pg32-highlight);
  color: #fff;
}
.pg32-btn-register:hover {
  background: #E86E60;
  transform: scale(1.05);
}

.pg32-btn-login {
  background: var(--pg32-primary);
  color: var(--pg32-bg);
}
.pg32-btn-login:hover {
  background: #E09440;
  transform: scale(1.05);
}

.pg32-hamburger {
  background: none;
  border: none;
  color: var(--pg32-accent);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu */
.pg32-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: var(--pg32-header-bg);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 6rem 1.5rem 2rem;
  overflow-y: auto;
}

.pg32-mobile-menu.pg32-menu-active {
  right: 0;
}

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

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

.pg32-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--pg32-accent);
  font-size: 2.4rem;
  cursor: pointer;
}

.pg32-menu-link {
  display: block;
  padding: 1.1rem 0;
  color: var(--pg32-accent);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--pg32-card-border);
  transition: var(--pg32-transition);
}
.pg32-menu-link:hover {
  color: var(--pg32-primary);
  padding-left: 0.8rem;
}

/* Bottom Navigation */
.pg32-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--pg32-header-bg);
  border-top: 1px solid var(--pg32-card-border);
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

.pg32-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--pg32-text-muted);
  cursor: pointer;
  transition: var(--pg32-transition);
  border-radius: var(--pg32-radius-sm);
  padding: 0.3rem;
}

.pg32-bottom-btn:hover, .pg32-bottom-btn:active {
  color: var(--pg32-primary);
  transform: scale(1.08);
}

.pg32-bottom-btn.pg32-btn-active {
  color: var(--pg32-highlight);
}

.pg32-bottom-btn .pg32-btn-icon {
  font-size: 2.2rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg32-bottom-btn .pg32-btn-label {
  font-size: 1rem;
  margin-top: 0.1rem;
  white-space: nowrap;
}

/* Main content spacing for fixed elements */
.pg32-main {
  padding-top: 56px;
  padding-bottom: 2rem;
}

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

/* Carousel */
.pg32-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--pg32-radius);
  margin-top: 0.8rem;
}

.pg32-slide {
  display: none;
  cursor: pointer;
  width: 100%;
}
.pg32-slide.pg32-slide-active { display: block; }

.pg32-slide img {
  width: 100%;
  height: auto;
  min-height: 160px;
  object-fit: cover;
  border-radius: var(--pg32-radius);
}

.pg32-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
}

.pg32-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pg32-card-border);
  cursor: pointer;
  transition: var(--pg32-transition);
  border: none;
}
.pg32-dot.pg32-dot-active {
  background: var(--pg32-primary);
  width: 20px;
  border-radius: 4px;
}

/* Section titles */
.pg32-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg32-primary);
  margin: 1.6rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pg32-secondary);
}

.pg32-section-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pg32-secondary);
  margin: 1.2rem 0 0.8rem;
}

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

.pg32-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--pg32-transition);
  text-align: center;
}

.pg32-game-item:hover {
  transform: translateY(-2px);
}

.pg32-game-item img {
  width: 72px;
  height: 72px;
  border-radius: var(--pg32-radius);
  border: 2px solid var(--pg32-card-border);
  object-fit: cover;
  transition: var(--pg32-transition);
}

.pg32-game-item:hover img {
  border-color: var(--pg32-primary);
}

.pg32-game-name {
  font-size: 1rem;
  color: var(--pg32-accent);
  margin-top: 0.3rem;
  line-height: 1.2rem;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Cards */
.pg32-card {
  background: var(--pg32-card-bg);
  border: 1px solid var(--pg32-card-border);
  border-radius: var(--pg32-radius-lg);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}

.pg32-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg32-primary);
  margin-bottom: 0.8rem;
}

/* Content text styles */
.pg32-text { color: var(--pg32-accent); line-height: 2rem; font-size: 1.4rem; }
.pg32-text-sm { font-size: 1.2rem; color: var(--pg32-text-muted); line-height: 1.8rem; }
.pg32-text-highlight { color: var(--pg32-highlight); font-weight: 600; }
.pg32-text-primary { color: var(--pg32-primary); font-weight: 600; }

/* Promo button */
.pg32-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg32-highlight), var(--pg32-primary));
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--pg32-radius-lg);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--pg32-transition);
  text-align: center;
  min-height: 44px;
}
.pg32-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(244,164,96,0.4);
}

/* Promo text link */
.pg32-promo-link {
  color: var(--pg32-highlight);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--pg32-transition);
}
.pg32-promo-link:hover { color: var(--pg32-primary); }

/* Feature list */
.pg32-feature-list {
  list-style: none;
  padding: 0;
}

.pg32-feature-item {
  padding: 0.6rem 0;
  padding-left: 1.6rem;
  position: relative;
  color: var(--pg32-accent);
  font-size: 1.3rem;
  line-height: 1.8rem;
}

.pg32-feature-item::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--pg32-primary);
  font-size: 1.1rem;
}

/* RTP table */
.pg32-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  font-size: 1.2rem;
}

.pg32-rtp-table th {
  background: var(--pg32-secondary);
  color: var(--pg32-bg);
  padding: 0.6rem;
  text-align: left;
  font-size: 1.1rem;
}

.pg32-rtp-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--pg32-card-border);
  color: var(--pg32-accent);
}

.pg32-rtp-table tr:hover td {
  background: rgba(244,164,96,0.08);
}

/* Testimonial */
.pg32-testimonial {
  background: var(--pg32-card-bg);
  border-left: 3px solid var(--pg32-primary);
  padding: 1rem 1.2rem;
  margin: 0.8rem 0;
  border-radius: 0 var(--pg32-radius) var(--pg32-radius) 0;
}

.pg32-testimonial-name {
  font-weight: 700;
  color: var(--pg32-primary);
  font-size: 1.3rem;
}

.pg32-testimonial-text {
  color: var(--pg32-accent);
  font-size: 1.2rem;
  margin-top: 0.4rem;
  line-height: 1.6rem;
}

/* Winner badge */
.pg32-winner-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--pg32-card-bg);
  padding: 0.8rem;
  border-radius: var(--pg32-radius);
  margin-bottom: 0.6rem;
}

.pg32-winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pg32-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}

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

.pg32-winner-name {
  font-size: 1.2rem;
  color: var(--pg32-primary);
  font-weight: 600;
}

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

/* Payment icons */
.pg32-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0.8rem 0;
}

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

/* FAQ accordion */
.pg32-faq-item {
  border-bottom: 1px solid var(--pg32-card-border);
  padding: 1rem 0;
}

.pg32-faq-q {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pg32-primary);
  margin-bottom: 0.4rem;
}

.pg32-faq-a {
  font-size: 1.3rem;
  color: var(--pg32-accent);
  line-height: 1.8rem;
}

/* Footer */
.pg32-footer {
  background: var(--pg32-footer-bg);
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--pg32-card-border);
  margin-top: 2rem;
}

.pg32-footer-text {
  font-size: 1.2rem;
  color: var(--pg32-text-muted);
  line-height: 1.8rem;
  margin-bottom: 1rem;
}

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

.pg32-footer-link {
  font-size: 1.1rem;
  color: var(--pg32-accent);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--pg32-card-border);
  border-radius: var(--pg32-radius-sm);
  transition: var(--pg32-transition);
}
.pg32-footer-link:hover {
  color: var(--pg32-primary);
  border-color: var(--pg32-primary);
}

.pg32-footer-copy {
  font-size: 1rem;
  color: var(--pg32-text-muted);
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--pg32-card-border);
}

/* Promo buttons row */
.pg32-promo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.pg32-promo-small {
  background: var(--pg32-secondary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--pg32-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--pg32-transition);
}
.pg32-promo-small:hover {
  background: var(--pg32-highlight);
  transform: scale(1.05);
}

/* Desktop styles */
@media (min-width: 769px) {
  .pg32-bottom-nav { display: none; }
  .pg32-container { max-width: 480px; }
  .pg32-main { padding-bottom: 2rem; }
}

/* Highlight box */
.pg32-highlight-box {
  background: linear-gradient(135deg, rgba(244,164,96,0.15), rgba(250,128,114,0.1));
  border: 1px solid var(--pg32-secondary);
  border-radius: var(--pg32-radius-lg);
  padding: 1.2rem;
  margin: 1rem 0;
}

/* Badge */
.pg32-badge {
  display: inline-block;
  background: var(--pg32-highlight);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
}

/* Inline internal link */
.pg32-internal-link {
  color: var(--pg32-secondary);
  text-decoration: underline;
  font-weight: 500;
}
.pg32-internal-link:hover { color: var(--pg32-primary); }

/* H1 styling */
.pg32-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pg32-primary);
  margin: 1.2rem 0 0.8rem;
  line-height: 2.6rem;
}

/* Responsive game grid adjustments */
@media (max-width: 360px) {
  .pg32-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pg32-game-item img {
    width: 64px;
    height: 64px;
  }
}
