/**
 * Club Ph - Main Stylesheet
 * Prefix: pg91-
 * Color Palette: #CD853F (accent) | #F0E68C (light text) | #1C2833 (dark bg)
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
  --pg91-primary: #CD853F;
  --pg91-secondary: #F0E68C;
  --pg91-bg: #1C2833;
  --pg91-bg-light: #2C3E50;
  --pg91-bg-dark: #0D1117;
  --pg91-text: #F0E68C;
  --pg91-text-light: #FAFAD2;
  --pg91-text-muted: #BDC3C7;
  --pg91-accent: #CD853F;
  --pg91-accent-hover: #DAA520;
  --pg91-border: #34495E;
  --pg91-shadow: rgba(205, 133, 63, 0.25);
  --pg91-radius: 1.2rem;
  --pg91-radius-sm: 0.8rem;
  --pg91-transition: all 0.3s ease;
}

/* Root font for rem units */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--pg91-bg);
  color: var(--pg91-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--pg91-accent);
  text-decoration: none;
  transition: var(--pg91-transition);
}

a:hover {
  color: var(--pg91-accent-hover);
}

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

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

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

.pg91-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.pg91-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
}

.pg91-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg91-primary);
  letter-spacing: 0.5px;
}

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

.pg91-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--pg91-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--pg91-transition);
  min-height: 36px;
  min-width: 44px;
  text-align: center;
}

.pg91-btn-register {
  background: linear-gradient(135deg, var(--pg91-primary) 0%, #B8860B 100%);
  color: var(--pg91-bg-dark);
}

.pg91-btn-register:hover {
  background: linear-gradient(135deg, var(--pg91-accent-hover) 0%, var(--pg91-primary) 100%);
  transform: scale(1.05);
}

.pg91-btn-login {
  background: transparent;
  border: 1.5px solid var(--pg91-primary);
  color: var(--pg91-primary);
}

.pg91-btn-login:hover {
  background: rgba(205, 133, 63, 0.15);
  transform: scale(1.05);
}

.pg91-menu-toggle {
  background: none;
  border: none;
  color: var(--pg91-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--pg91-transition);
}

.pg91-toggle-active {
  color: var(--pg91-primary);
  transform: rotate(90deg);
}

/* Mobile Menu */
.pg91-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--pg91-transition);
}

.pg91-overlay-active {
  opacity: 1;
  visibility: visible;
}

#pg91-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, var(--pg91-bg-dark) 0%, var(--pg91-bg) 100%);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.pg91-menu-active {
  right: 0 !important;
}

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

.pg91-menu-header span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg91-primary);
}

.pg91-menu-close {
  background: none;
  border: none;
  color: var(--pg91-text-muted);
  font-size: 2rem;
  cursor: pointer;
}

.pg91-menu-links {
  list-style: none;
}

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

.pg91-menu-links a {
  display: block;
  padding: 1.2rem 0;
  font-size: 1.4rem;
  color: var(--pg91-text);
  transition: var(--pg91-transition);
}

.pg91-menu-links a:hover {
  color: var(--pg91-primary);
  padding-left: 0.8rem;
}

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

.pg91-slides-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.pg91-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--pg91-transition);
  cursor: pointer;
}

.pg91-slide-active {
  opacity: 1;
}

.pg91-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg91-slide-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 5;
}

.pg91-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--pg91-transition);
  border: none;
}

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

/* Main Content Area */
.pg91-main {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

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

/* Section Modules */
.pg91-section {
  margin: 2rem 0;
  padding: 0 1rem;
}

.pg91-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg91-primary);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pg91-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg91-section-title i,
.pg91-section-title .material-icons {
  font-size: 2rem;
}

/* Game List Grid */
.pg91-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.pg91-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 0.6rem;
  border-radius: var(--pg91-radius-sm);
  transition: var(--pg91-transition);
  background: var(--pg91-bg-light);
}

.pg91-game-item:hover,
.pg91-game-touched {
  transform: scale(1.05);
  background: rgba(205, 133, 63, 0.15);
  box-shadow: 0 2px 8px var(--pg91-shadow);
}

.pg91-game-item img {
  width: 56px;
  height: 56px;
  border-radius: 0.6rem;
  margin-bottom: 0.3rem;
  object-fit: cover;
}

.pg91-game-item span {
  font-size: 1rem;
  color: var(--pg91-text-light);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category Tabs */
.pg91-category-label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pg91-secondary);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Content Cards */
.pg91-card {
  background: var(--pg91-bg-light);
  border-radius: var(--pg91-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--pg91-border);
}

.pg91-card h3 {
  font-size: 1.5rem;
  color: var(--pg91-primary);
  margin-bottom: 0.8rem;
}

.pg91-card p {
  font-size: 1.3rem;
  color: var(--pg91-text-muted);
  line-height: 1.8rem;
  margin-bottom: 0.6rem;
}

/* CTA Buttons */
.pg91-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pg91-primary) 0%, #B8860B 100%);
  color: var(--pg91-bg-dark);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: var(--pg91-radius);
  border: none;
  cursor: pointer;
  transition: var(--pg91-transition);
  min-height: 44px;
  text-align: center;
}

.pg91-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--pg91-shadow);
}

/* Affiliate text link */
.pg91-affiliate-link {
  color: var(--pg91-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--pg91-transition);
}

.pg91-affiliate-link:hover {
  color: var(--pg91-accent-hover);
}

/* Footer */
.pg91-footer {
  background: var(--pg91-bg-dark);
  padding: 2rem 1rem;
  border-top: 1px solid var(--pg91-border);
  text-align: center;
}

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

.pg91-footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pg91-footer-btns .pg91-btn {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
}

.pg91-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pg91-footer-links a {
  font-size: 1.1rem;
  color: var(--pg91-text-muted);
}

.pg91-footer-links a:hover {
  color: var(--pg91-primary);
}

.pg91-copyright {
  font-size: 1.1rem;
  color: var(--pg91-text-muted);
  opacity: 0.7;
}

/* Bottom Mobile Navigation */
.pg91-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, var(--pg91-bg-dark) 0%, #080C12 100%);
  border-top: 1px solid var(--pg91-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 769px) {
  .pg91-bottom-nav {
    display: none;
  }
}

.pg91-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--pg91-text-muted);
  cursor: pointer;
  transition: var(--pg91-transition);
  padding: 0.4rem;
  border-radius: 0.6rem;
}

.pg91-nav-btn:hover,
.pg91-nav-btn.pg91-nav-active {
  color: var(--pg91-primary);
  background: rgba(205, 133, 63, 0.1);
}

.pg91-nav-btn:active {
  transform: scale(0.92);
}

.pg91-nav-btn i,
.pg91-nav-btn .material-icons,
.pg91-nav-btn bi {
  font-size: 22px;
  margin-bottom: 2px;
}

.pg91-nav-btn span {
  font-size: 10px;
  line-height: 1.2;
}

/* Help page styles */
.pg91-help-section {
  margin: 1.5rem 0;
  padding: 1.2rem;
  background: var(--pg91-bg-light);
  border-radius: var(--pg91-radius);
  border-left: 3px solid var(--pg91-primary);
}

.pg91-help-section h3 {
  font-size: 1.4rem;
  color: var(--pg91-primary);
  margin-bottom: 0.8rem;
}

.pg91-help-section p,
.pg91-help-section li {
  font-size: 1.3rem;
  color: var(--pg91-text-muted);
  line-height: 1.8rem;
}

.pg91-help-section ul,
.pg91-help-section ol {
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
}

/* FAQ item styles */
.pg91-faq-item {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--pg91-bg-light);
  border-radius: var(--pg91-radius-sm);
  border: 1px solid var(--pg91-border);
}

.pg91-faq-item h4 {
  font-size: 1.3rem;
  color: var(--pg91-secondary);
  margin-bottom: 0.5rem;
}

.pg91-faq-item p {
  font-size: 1.2rem;
  color: var(--pg91-text-muted);
  line-height: 1.7rem;
}

/* Testimonial styles */
.pg91-testimonial {
  background: var(--pg91-bg-light);
  border-radius: var(--pg91-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--pg91-border);
}

.pg91-testimonial-name {
  font-size: 1.2rem;
  color: var(--pg91-primary);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.pg91-testimonial-text {
  font-size: 1.2rem;
  color: var(--pg91-text-muted);
  line-height: 1.6rem;
  font-style: italic;
}

/* Winner showcase */
.pg91-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: var(--pg91-bg-light);
  border-radius: var(--pg91-radius-sm);
  margin-bottom: 0.6rem;
}

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

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

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

.pg91-winner-amount {
  font-size: 1.1rem;
  color: var(--pg91-primary);
  font-weight: 700;
}

/* Payment method icons */
.pg91-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1rem 0;
}

.pg91-payment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.pg91-payment-item i {
  font-size: 2.4rem;
  color: var(--pg91-primary);
}

.pg91-payment-item span {
  font-size: 1rem;
  color: var(--pg91-text-muted);
}

/* App download CTA */
.pg91-app-cta {
  background: linear-gradient(135deg, var(--pg91-bg-light) 0%, var(--pg91-bg-dark) 100%);
  border-radius: var(--pg91-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--pg91-primary);
}

.pg91-app-cta h3 {
  font-size: 1.6rem;
  color: var(--pg91-primary);
  margin-bottom: 0.8rem;
}

.pg91-app-cta p {
  font-size: 1.3rem;
  color: var(--pg91-text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.8rem;
}

/* Responsive adjustments */
@media (max-width: 360px) {
  .pg91-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .pg91-game-item img {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 769px) {
  .pg91-header {
    max-width: 430px;
  }
}
