/**
 * Nustar Rewards Counter - Theme Stylesheet
 * All classes prefixed with pgfd- to avoid collisions
 * Color palette: #FF69B4 | #212F3D | #C9C9FF | #FF91A4 | #D3D3D3 | #DDA0DD
 */

/* CSS Variables */
:root {
  --pgfd-primary: #FF69B4;
  --pgfd-secondary: #FF91A4;
  --pgfd-accent: #DDA0DD;
  --pgfd-bg-dark: #212F3D;
  --pgfd-bg-card: #2a3a4d;
  --pgfd-text-light: #C9C9FF;
  --pgfd-text-muted: #D3D3D3;
  --pgfd-gradient: linear-gradient(135deg, #FF69B4 0%, #DDA0DD 50%, #FF91A4 100%);
  --pgfd-gradient-dark: linear-gradient(180deg, #212F3D 0%, #1a2533 100%);
  --pgfd-radius: 1.2rem;
  --pgfd-radius-sm: 0.8rem;
  --pgfd-shadow: 0 4px 15px rgba(255, 105, 180, 0.15);
  --pgfd-shadow-lg: 0 8px 30px rgba(255, 105, 180, 0.2);
  --pgfd-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset & Base */
html { font-size: 62.5%; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--pgfd-font);
  background: var(--pgfd-bg-dark);
  color: var(--pgfd-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

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

/* Header */
.pgfd-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(33, 47, 61, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--pgfd-primary);
  max-width: 430px; margin: 0 auto;
}
.pgfd-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; max-width: 430px; margin: 0 auto;
}
.pgfd-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.pgfd-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pgfd-logo span { color: var(--pgfd-primary); font-size: 1.3rem; font-weight: 700; }
.pgfd-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pgfd-btn-register {
  background: var(--pgfd-gradient); color: #fff; border: none;
  padding: 0.5rem 1.2rem; border-radius: 2rem; font-size: 1.2rem;
  font-weight: 700; cursor: pointer; min-height: 36px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pgfd-btn-register:hover { transform: scale(1.05); box-shadow: var(--pgfd-shadow); }
.pgfd-btn-login {
  background: transparent; color: var(--pgfd-text-light); border: 1.5px solid var(--pgfd-primary);
  padding: 0.5rem 1rem; border-radius: 2rem; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; min-height: 36px;
  transition: background 0.2s, color 0.2s;
}
.pgfd-btn-login:hover { background: var(--pgfd-primary); color: #fff; }
.pgfd-menu-btn {
  background: none; border: none; color: var(--pgfd-text-light);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu Overlay */
.pgfd-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 9998;
}
.pgfd-mobile-menu {
  display: none; position: fixed; top: 0; left: 0; bottom: 0;
  width: 75%; max-width: 300px; z-index: 9999;
  background: var(--pgfd-bg-dark); flex-direction: column;
  transform: translateX(-100%); transition: transform 0.3s ease;
  border-right: 2px solid var(--pgfd-primary);
}
.pgfd-mobile-menu-header {
  padding: 1.5rem; display: flex; align-items: center; gap: 0.8rem;
  border-bottom: 1px solid rgba(255,105,180,0.2);
}
.pgfd-mobile-menu-header img { width: 32px; height: 32px; border-radius: 6px; }
.pgfd-mobile-menu-header span { color: var(--pgfd-primary); font-size: 1.5rem; font-weight: 700; }
.pgfd-mobile-menu-close {
  margin-left: auto; background: none; border: none;
  color: var(--pgfd-text-light); font-size: 2rem; cursor: pointer;
}
.pgfd-mobile-menu nav { flex: 1; padding: 1rem 0; }
.pgfd-mobile-menu a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem; color: var(--pgfd-text-light);
  text-decoration: none; font-size: 1.4rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,105,180,0.08);
  transition: background 0.2s, color 0.2s;
}
.pgfd-mobile-menu a:hover { background: rgba(255,105,180,0.1); color: var(--pgfd-primary); }
.pgfd-mobile-menu a i { width: 22px; text-align: center; color: var(--pgfd-secondary); }

/* Main Content */
.pgfd-main { padding-top: 6rem; }

/* Carousel */
.pgfd-carousel { position: relative; overflow: hidden; border-radius: var(--pgfd-radius); margin: 1rem 0; }
.pgfd-carousel-inner { position: relative; width: 100%; }
.pgfd-carousel-item {
  display: none; width: 100%; cursor: pointer;
  border-radius: var(--pgfd-radius); overflow: hidden;
}
.pgfd-carousel-item.pgfd-carousel-active { display: block; }
.pgfd-carousel-item img { width: 100%; height: auto; display: block; border-radius: var(--pgfd-radius); }
.pgfd-carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.pgfd-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; transition: background 0.3s;
}
.pgfd-carousel-dot.pgfd-carousel-active { background: var(--pgfd-primary); width: 20px; border-radius: 4px; }

/* Section Titles */
.pgfd-section-title {
  font-size: 1.8rem; font-weight: 800; color: #fff;
  margin: 2rem 0 1rem; padding-left: 1rem;
  border-left: 4px solid var(--pgfd-primary);
  line-height: 2rem;
}
.pgfd-section-title span { color: var(--pgfd-primary); }

/* Game Grid */
.pgfd-game-section { margin: 1.5rem 0; }
.pgfd-game-category {
  font-size: 1.5rem; font-weight: 700; color: var(--pgfd-secondary);
  margin: 1.5rem 0 0.8rem; padding-left: 0.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.pgfd-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; padding: 0.5rem 0;
}
.pgfd-game-card {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; border-radius: var(--pgfd-radius-sm);
  overflow: hidden; background: var(--pgfd-bg-card);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.pgfd-game-card:hover { transform: translateY(-3px); box-shadow: var(--pgfd-shadow); }
.pgfd-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pgfd-game-card span {
  font-size: 1rem; color: var(--pgfd-text-muted); padding: 0.3rem 0.2rem;
  line-height: 1.2rem; font-weight: 500; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; width: 100%;
}

/* Content Sections */
.pgfd-content-section {
  background: var(--pgfd-bg-card); border-radius: var(--pgfd-radius);
  padding: 1.5rem; margin: 1.5rem 0;
  box-shadow: var(--pgfd-shadow);
}
.pgfd-content-section h2 {
  font-size: 1.7rem; color: #fff; margin-bottom: 1rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--pgfd-primary);
}
.pgfd-content-section h3 { font-size: 1.5rem; color: var(--pgfd-secondary); margin: 1rem 0 0.5rem; }
.pgfd-content-section p {
  color: var(--pgfd-text-muted); line-height: 2rem; margin-bottom: 0.8rem;
  font-size: 1.35rem;
}
.pgfd-content-section ul { padding-left: 1.5rem; margin-bottom: 0.8rem; }
.pgfd-content-section li {
  color: var(--pgfd-text-muted); line-height: 2rem; margin-bottom: 0.4rem;
  font-size: 1.35rem;
}

/* Promo Links & Buttons */
.pgfd-promo-btn {
  display: inline-block; background: var(--pgfd-gradient);
  color: #fff; padding: 0.8rem 2rem; border-radius: 2.5rem;
  font-size: 1.4rem; font-weight: 700; cursor: pointer;
  border: none; text-decoration: none; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 44px;
}
.pgfd-promo-btn:hover { transform: scale(1.05); box-shadow: var(--pgfd-shadow-lg); }
.pgfd-promo-text {
  color: var(--pgfd-primary); font-weight: 700; cursor: pointer;
  text-decoration: underline; transition: color 0.2s;
}
.pgfd-promo-text:hover { color: var(--pgfd-secondary); }
.pgfd-cta-center { text-align: center; margin: 1.5rem 0; }

/* Feature Cards */
.pgfd-features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin: 1rem 0;
}
.pgfd-feature-card {
  background: var(--pgfd-bg-dark); border-radius: var(--pgfd-radius-sm);
  padding: 1.2rem; text-align: center; border: 1px solid rgba(255,105,180,0.15);
  transition: border-color 0.3s;
}
.pgfd-feature-card:hover { border-color: var(--pgfd-primary); }
.pgfd-feature-card i { font-size: 2.4rem; color: var(--pgfd-primary); margin-bottom: 0.5rem; display: block; }
.pgfd-feature-card h4 { color: #fff; font-size: 1.3rem; margin-bottom: 0.3rem; }
.pgfd-feature-card p { color: var(--pgfd-text-muted); font-size: 1.15rem; line-height: 1.6rem; }

/* Testimonials */
.pgfd-testimonial {
  background: var(--pgfd-bg-dark); border-radius: var(--pgfd-radius-sm);
  padding: 1.2rem; margin: 0.8rem 0; border-left: 3px solid var(--pgfd-accent);
}
.pgfd-testimonial-name { color: var(--pgfd-primary); font-weight: 700; font-size: 1.3rem; }
.pgfd-testimonial-text { color: var(--pgfd-text-muted); font-size: 1.25rem; margin-top: 0.3rem; line-height: 1.8rem; }
.pgfd-testimonial-stars { color: #FFD700; font-size: 1.2rem; }

/* Payment Methods */
.pgfd-payment-row {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin: 1rem 0;
}
.pgfd-payment-item {
  background: var(--pgfd-bg-dark); border-radius: var(--pgfd-radius-sm);
  padding: 0.6rem 1rem; font-size: 1.2rem; color: var(--pgfd-text-muted);
  border: 1px solid rgba(255,105,180,0.1);
}

/* Winners Showcase */
.pgfd-winner {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--pgfd-bg-dark); border-radius: var(--pgfd-radius-sm);
  padding: 0.8rem 1rem; margin: 0.5rem 0;
}
.pgfd-winner-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--pgfd-gradient); display: flex; align-items: center;
  justify-content: center; color: #fff; font-weight: 700; font-size: 1.2rem;
}
.pgfd-winner-info { flex: 1; }
.pgfd-winner-name { color: #fff; font-weight: 600; font-size: 1.25rem; }
.pgfd-winner-amount { color: var(--pgfd-primary); font-weight: 800; font-size: 1.3rem; }

/* Footer */
.pgfd-footer {
  background: var(--pgfd-bg-card); padding: 2rem 1.2rem 8rem;
  margin-top: 2rem; border-top: 2px solid var(--pgfd-primary);
}
.pgfd-footer-brand {
  color: var(--pgfd-text-muted); font-size: 1.2rem; line-height: 1.8rem;
  margin-bottom: 1.5rem;
}
.pgfd-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0;
}
.pgfd-footer-links a {
  color: var(--pgfd-text-light); text-decoration: none; font-size: 1.2rem;
  padding: 0.4rem 0.8rem; background: rgba(255,105,180,0.08);
  border-radius: 1.5rem; transition: background 0.2s;
}
.pgfd-footer-links a:hover { background: rgba(255,105,180,0.2); }
.pgfd-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; justify-content: center;
}
.pgfd-footer-promos button {
  background: var(--pgfd-gradient); color: #fff; border: none;
  padding: 0.5rem 1rem; border-radius: 2rem; font-size: 1.15rem;
  font-weight: 600; cursor: pointer; transition: transform 0.2s;
}
.pgfd-footer-promos button:hover { transform: scale(1.05); }
.pgfd-copyright {
  text-align: center; color: rgba(201,201,255,0.4); font-size: 1.1rem;
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid rgba(255,105,180,0.1);
}

/* Bottom Navigation */
.pgfd-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(33, 47, 61, 0.98);
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--pgfd-primary);
  max-width: 430px; margin: 0 auto;
  display: flex; justify-content: space-around; align-items: center;
  height: 62px; padding: 0 0.3rem;
}
.pgfd-bottom-nav-item {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 56px;
  cursor: pointer; border: none; background: none;
  color: var(--pgfd-text-muted); text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.pgfd-bottom-nav-item:hover, .pgfd-bottom-nav-item.pgfd-nav-active {
  color: var(--pgfd-primary); transform: scale(1.08);
}
.pgfd-bottom-nav-item i, .pgfd-bottom-nav-item .material-icons {
  font-size: 24px; margin-bottom: 2px;
}
.pgfd-bottom-nav-item ion-icon { font-size: 24px; margin-bottom: 2px; }
.pgfd-bottom-nav-item span {
  font-size: 1rem; font-weight: 600; line-height: 1.2rem;
}

/* Responsive - Desktop */
@media (min-width: 769px) {
  .pgfd-bottom-nav { display: none; }
  .pgfd-footer { padding-bottom: 2rem; }
  .pgfd-header { max-width: 430px; left: 50%; transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .pgfd-main { padding-bottom: 80px; }
  .pgfd-footer { padding-bottom: 8rem; }
}

/* Utility Classes */
.pgfd-text-center { text-align: center; }
.pgfd-text-primary { color: var(--pgfd-primary); }
.pgfd-text-accent { color: var(--pgfd-accent); }
.pgfd-mt-1 { margin-top: 1rem; }
.pgfd-mt-2 { margin-top: 2rem; }
.pgfd-mb-1 { margin-bottom: 1rem; }
.pgfd-mb-2 { margin-bottom: 2rem; }
.pgfd-hidden { display: none; }
.pgfd-divider {
  height: 1px; background: rgba(255,105,180,0.15);
  margin: 1.5rem 0; border: none;
}

/* App Download Section */
.pgfd-app-cta {
  background: var(--pgfd-gradient); border-radius: var(--pgfd-radius);
  padding: 2rem; text-align: center; margin: 1.5rem 0;
}
.pgfd-app-cta h3 { color: #fff; font-size: 1.8rem; margin-bottom: 0.5rem; }
.pgfd-app-cta p { color: rgba(255,255,255,0.9); font-size: 1.3rem; margin-bottom: 1rem; }
.pgfd-app-cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: var(--pgfd-bg-dark); padding: 0.8rem 2rem;
  border-radius: 2rem; font-weight: 700; font-size: 1.3rem;
  cursor: pointer; border: none; transition: transform 0.2s;
}
.pgfd-app-cta-btn:hover { transform: scale(1.05); }

/* RTP Table */
.pgfd-rtp-table { width: 100%; border-collapse: collapse; margin: 0.8rem 0; }
.pgfd-rtp-table th {
  background: var(--pgfd-bg-dark); color: var(--pgfd-primary);
  padding: 0.6rem 0.5rem; font-size: 1.15rem; text-align: left;
  border-bottom: 2px solid var(--pgfd-primary);
}
.pgfd-rtp-table td {
  padding: 0.5rem; font-size: 1.15rem; color: var(--pgfd-text-muted);
  border-bottom: 1px solid rgba(255,105,180,0.1);
}
.pgfd-rtp-table tr:hover td { background: rgba(255,105,180,0.05); }

/* FAQ Styles */
.pgfd-faq-item {
  background: var(--pgfd-bg-card); border-radius: var(--pgfd-radius-sm);
  margin: 0.8rem 0; padding: 1.2rem; border-left: 3px solid var(--pgfd-primary);
}
.pgfd-faq-item h3 { color: var(--pgfd-secondary); font-size: 1.4rem; margin-bottom: 0.5rem; }
.pgfd-faq-item p { color: var(--pgfd-text-muted); font-size: 1.25rem; line-height: 1.8rem; }

/* Guide Steps */
.pgfd-guide-step {
  display: flex; gap: 1rem; margin: 1rem 0; align-items: flex-start;
}
.pgfd-guide-step-num {
  min-width: 32px; height: 32px; border-radius: 50%;
  background: var(--pgfd-gradient); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.pgfd-guide-step-content { flex: 1; }
.pgfd-guide-step-content h4 { color: #fff; font-size: 1.35rem; margin-bottom: 0.3rem; }
.pgfd-guide-step-content p { color: var(--pgfd-text-muted); font-size: 1.2rem; line-height: 1.7rem; }
