/**
 * winph.cfd - Core Stylesheet
 * All classes use pg33- prefix for namespace isolation
 * Color palette: #D4AF37 (gold) | #0C0C0C (dark) | #FFD700 (bright gold)
 * Mobile-first design, max-width 430px viewport
 */

/* === CSS Variables === */
:root {
  --pg33-primary: #D4AF37;
  --pg33-bg: #0C0C0C;
  --pg33-text: #FFD700;
  --pg33-bg-card: #1a1a1a;
  --pg33-bg-dark: #111111;
  --pg33-bg-light: #222222;
  --pg33-text-light: #f0f0f0;
  --pg33-text-muted: #999999;
  --pg33-border: #333333;
  --pg33-accent: #FFD700;
  --pg33-gold-dark: #b8960c;
  --pg33-radius: 8px;
  --pg33-radius-sm: 4px;
  --pg33-radius-lg: 12px;
  --pg33-shadow: 0 2px 8px rgba(0,0,0,0.4);
  --pg33-shadow-lg: 0 4px 16px rgba(0,0,0,0.6);
  --pg33-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; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--pg33-bg);
  color: var(--pg33-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--pg33-primary); text-decoration: none; transition: var(--pg33-transition); }
a:hover { color: var(--pg33-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Header === */
.pg33-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--pg33-bg-dark);
  border-bottom: 1px solid var(--pg33-border);
  z-index: 1000;
  padding: 0 1rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pg33-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.pg33-logo img { width: 28px; height: 28px; border-radius: 50%; }
.pg33-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg33-primary);
  letter-spacing: 0.5px;
}
.pg33-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pg33-btn-register {
  background: var(--pg33-primary);
  color: var(--pg33-bg);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--pg33-radius);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--pg33-transition);
  min-height: 36px;
}
.pg33-btn-register:hover { background: var(--pg33-accent); transform: scale(1.05); }
.pg33-btn-login {
  background: transparent;
  color: var(--pg33-primary);
  border: 1px solid var(--pg33-primary);
  padding: 0.5rem 1.2rem;
  border-radius: var(--pg33-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg33-transition);
  min-height: 36px;
}
.pg33-btn-login:hover { background: var(--pg33-primary); color: var(--pg33-bg); }
.pg33-menu-toggle {
  background: none;
  border: none;
  color: var(--pg33-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* === Mobile Menu === */
.pg33-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}
.pg33-overlay-active { display: block; }
.pg33-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 260px;
  height: 100%;
  background: var(--pg33-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  border-left: 1px solid var(--pg33-border);
}
.pg33-menu-active { right: 0; }
.pg33-menu-close {
  background: none;
  border: none;
  color: var(--pg33-text-muted);
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem; right: 1rem;
}
.pg33-mobile-menu h3 {
  color: var(--pg33-primary);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--pg33-border);
}
.pg33-mobile-menu a {
  display: block;
  padding: 0.8rem 0;
  color: var(--pg33-text-light);
  font-size: 1.3rem;
  border-bottom: 1px solid var(--pg33-border);
  transition: var(--pg33-transition);
}
.pg33-mobile-menu a:hover { color: var(--pg33-primary); padding-left: 0.5rem; }

/* === Main Content === */
.pg33-main {
  margin-top: 52px;
  padding: 1rem;
  min-height: 60vh;
}

/* === Carousel === */
.pg33-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--pg33-radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--pg33-shadow-lg);
  cursor: pointer;
}
.pg33-carousel-slide {
  display: none;
  width: 100%;
  aspect-ratio: 16/7;
}
.pg33-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg33-slide-active { display: block; }
.pg33-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.pg33-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: var(--pg33-transition);
}
.pg33-dot-active { background: var(--pg33-accent); width: 20px; border-radius: 4px; }

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

/* === Game Grid === */
.pg33-game-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pg33-accent);
  margin: 1.2rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--pg33-primary);
}
.pg33-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.pg33-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--pg33-transition);
  border-radius: var(--pg33-radius);
  padding: 0.4rem;
}
.pg33-game-item:hover { background: var(--pg33-bg-light); transform: scale(1.03); }
.pg33-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--pg33-radius);
  margin-bottom: 0.3rem;
  box-shadow: var(--pg33-shadow);
}
.pg33-game-item span {
  display: block;
  font-size: 1rem;
  color: var(--pg33-text-light);
  line-height: 1.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Content Cards === */
.pg33-card {
  background: var(--pg33-bg-card);
  border-radius: var(--pg33-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--pg33-border);
  box-shadow: var(--pg33-shadow);
}
.pg33-card h2 {
  color: var(--pg33-primary);
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}
.pg33-card h3 {
  color: var(--pg33-accent);
  font-size: 1.4rem;
  margin: 1rem 0 0.5rem;
}
.pg33-card p {
  color: var(--pg33-text-light);
  line-height: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* === Promo Button === */
.pg33-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg33-primary), var(--pg33-accent));
  color: var(--pg33-bg);
  padding: 0.8rem 2rem;
  border-radius: var(--pg33-radius);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--pg33-transition);
  text-align: center;
  min-height: 44px;
  box-shadow: var(--pg33-shadow);
}
.pg33-promo-btn:hover { transform: scale(1.05); box-shadow: var(--pg33-shadow-lg); }

/* === Promo Text Link === */
.pg33-promo-link {
  color: var(--pg33-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--pg33-transition);
}
.pg33-promo-link:hover { color: #fff; }

/* === Footer === */
.pg33-footer {
  background: var(--pg33-bg-dark);
  border-top: 1px solid var(--pg33-border);
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
}
.pg33-footer-brand {
  color: var(--pg33-text-muted);
  font-size: 1.2rem;
  line-height: 1.5rem;
  margin-bottom: 1.5rem;
}
.pg33-footer-brand strong { color: var(--pg33-primary); }
.pg33-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.pg33-footer-links a {
  background: var(--pg33-bg-light);
  color: var(--pg33-text-light);
  padding: 0.4rem 0.8rem;
  border-radius: var(--pg33-radius-sm);
  font-size: 1.1rem;
  border: 1px solid var(--pg33-border);
  transition: var(--pg33-transition);
}
.pg33-footer-links a:hover { border-color: var(--pg33-primary); color: var(--pg33-primary); }
.pg33-footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--pg33-border);
  border-bottom: 1px solid var(--pg33-border);
}
.pg33-footer-partners img {
  height: 24px;
  opacity: 0.6;
  transition: var(--pg33-transition);
}
.pg33-footer-partners img:hover { opacity: 1; }
.pg33-copyright {
  text-align: center;
  color: var(--pg33-text-muted);
  font-size: 1.1rem;
  padding-top: 1rem;
}

/* === Bottom Navigation === */
.pg33-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--pg33-bg-dark);
  border-top: 1px solid var(--pg33-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}
.pg33-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--pg33-text-muted);
  cursor: pointer;
  transition: var(--pg33-transition);
  padding: 0.3rem;
  position: relative;
}
.pg33-bottom-btn i,
.pg33-bottom-btn .material-icons,
.pg33-bottom-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}
.pg33-bottom-btn span {
  font-size: 1rem;
  line-height: 1.2rem;
}
.pg33-bottom-btn:hover,
.pg33-bottom-btn:focus {
  color: var(--pg33-accent);
  transform: scale(1.08);
}
.pg33-bottom-btn.pg33-btn-active {
  color: var(--pg33-primary);
}
.pg33-btn-active::after {
  content: '';
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 2px;
  background: var(--pg33-primary);
  border-radius: 1px;
}

/* === Responsive === */
@media (min-width: 769px) {
  .pg33-bottom-nav { display: none; }
  .pg33-menu-toggle { display: none; }
}
@media (max-width: 768px) {
  .pg33-main { padding-bottom: 80px; }
  .pg33-footer { padding-bottom: 80px; }
}

/* === Utility Classes === */
.pg33-text-center { text-align: center; }
.pg33-mt-1 { margin-top: 1rem; }
.pg33-mb-1 { margin-bottom: 1rem; }
.pg33-mb-2 { margin-bottom: 2rem; }
.pg33-hidden { display: none; }
.pg33-badge {
  display: inline-block;
  background: var(--pg33-primary);
  color: var(--pg33-bg);
  padding: 0.2rem 0.6rem;
  border-radius: var(--pg33-radius-sm);
  font-size: 1rem;
  font-weight: 600;
}

/* === RTP Table === */
.pg33-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 1.2rem;
}
.pg33-rtp-table th {
  background: var(--pg33-primary);
  color: var(--pg33-bg);
  padding: 0.6rem;
  text-align: left;
  font-weight: 600;
}
.pg33-rtp-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--pg33-border);
  color: var(--pg33-text-light);
}
.pg33-rtp-table tr:hover td { background: var(--pg33-bg-light); }

/* === Testimonials === */
.pg33-testimonial {
  background: var(--pg33-bg-light);
  border-radius: var(--pg33-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--pg33-primary);
}
.pg33-testimonial-name {
  color: var(--pg33-primary);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.pg33-testimonial-text {
  color: var(--pg33-text-muted);
  font-size: 1.2rem;
  line-height: 1.4rem;
}

/* === Winners === */
.pg33-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--pg33-border);
  font-size: 1.2rem;
}
.pg33-winner-name { color: var(--pg33-text-light); }
.pg33-winner-amount { color: var(--pg33-accent); font-weight: 700; }

/* === Help Page Styles === */
.pg33-help-section {
  margin-bottom: 1.5rem;
}
.pg33-help-section h2 {
  color: var(--pg33-primary);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--pg33-border);
}
.pg33-help-section h3 {
  color: var(--pg33-accent);
  font-size: 1.3rem;
  margin: 1rem 0 0.5rem;
}
.pg33-help-section p {
  color: var(--pg33-text-light);
  font-size: 1.3rem;
  line-height: 1.6rem;
  margin-bottom: 0.6rem;
}
.pg33-faq-item {
  background: var(--pg33-bg-card);
  border-radius: var(--pg33-radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--pg33-border);
}
.pg33-faq-item strong {
  color: var(--pg33-primary);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
}
.pg33-faq-item p {
  color: var(--pg33-text-light);
  font-size: 1.2rem;
  line-height: 1.5rem;
}

/* === Payment Methods === */
.pg33-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.pg33-payment-item {
  background: var(--pg33-bg-light);
  border: 1px solid var(--pg33-border);
  border-radius: var(--pg33-radius);
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--pg33-text-light);
}

/* === Breadcrumb === */
.pg33-breadcrumb {
  font-size: 1.1rem;
  color: var(--pg33-text-muted);
  margin-bottom: 1rem;
}
.pg33-breadcrumb a { color: var(--pg33-primary); }
