/**
 * NustarGameAPK - Core Stylesheet
 * Prefix: pgdf-
 * Color Palette: #9400D3 | #DA70D6 | #00FF7F | #E6E6FA | #141414
 * Mobile-first design, max-width 430px
 */

/* Root variables */
:root {
  --pgdf-primary: #9400D3;
  --pgdf-secondary: #DA70D6;
  --pgdf-accent: #00FF7F;
  --pgdf-light: #E6E6FA;
  --pgdf-bg: #141414;
  --pgdf-bg-alt: #1a1a2e;
  --pgdf-bg-card: #1e1e38;
  --pgdf-text: #E6E6FA;
  --pgdf-text-muted: #a0a0c0;
  --pgdf-border: rgba(148, 0, 211, 0.3);
  --pgdf-shadow: rgba(0, 0, 0, 0.4);
  --pgdf-glow: rgba(148, 0, 211, 0.5);
  --pgdf-radius: 8px;
  --pgdf-radius-lg: 16px;
  --pgdf-transition: 0.3s ease;
  --pgdf-header-h: 56px;
  --pgdf-bottom-h: 60px;
}

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

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--pgdf-bg);
  color: var(--pgdf-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--pgdf-secondary);
}

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

/* Container */
.pgdf-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  position: relative;
}

.pgdf-wrapper {
  width: 100%;
  min-height: 100vh;
}

/* Header */
.pgdf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--pgdf-header-h);
  background: linear-gradient(135deg, var(--pgdf-bg) 0%, var(--pgdf-bg-alt) 100%);
  border-bottom: 1px solid var(--pgdf-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  backdrop-filter: blur(10px);
}

.pgdf-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.pgdf-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.pgdf-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pgdf-light);
  letter-spacing: 0.5px;
}

.pgdf-logo-text span {
  color: var(--pgdf-accent);
}

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

.pgdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--pgdf-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--pgdf-transition);
  min-height: 36px;
  text-decoration: none;
  white-space: nowrap;
}

.pgdf-btn-register {
  background: linear-gradient(135deg, var(--pgdf-accent), #00cc66);
  color: var(--pgdf-bg);
}

.pgdf-btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 255, 127, 0.4);
}

.pgdf-btn-login {
  background: linear-gradient(135deg, var(--pgdf-primary), var(--pgdf-secondary));
  color: var(--pgdf-light);
}

.pgdf-btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--pgdf-glow);
}

.pgdf-menu-toggle {
  background: none;
  border: 1px solid var(--pgdf-border);
  color: var(--pgdf-light);
  width: 36px;
  height: 36px;
  border-radius: var(--pgdf-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: all var(--pgdf-transition);
}

.pgdf-menu-toggle:hover,
.pgdf-toggle-active {
  background: var(--pgdf-primary);
  border-color: var(--pgdf-primary);
}

/* Mobile menu */
.pgdf-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--pgdf-bg-alt);
  z-index: 9999;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 2rem 1.5rem;
}

.pgdf-menu-active {
  right: 0;
}

.pgdf-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--pgdf-transition);
}

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

.pgdf-menu-close {
  background: none;
  border: none;
  color: var(--pgdf-light);
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
}

.pgdf-menu-list {
  list-style: none;
  margin-top: 3rem;
}

.pgdf-menu-list li {
  margin-bottom: 0.5rem;
}

.pgdf-menu-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  color: var(--pgdf-text);
  border-radius: var(--pgdf-radius);
  transition: all var(--pgdf-transition);
  font-size: 1.4rem;
}

.pgdf-menu-list a:hover {
  background: rgba(148, 0, 211, 0.2);
  color: var(--pgdf-accent);
}

.pgdf-menu-list .material-icons,
.pgdf-menu-list .fas,
.pgdf-menu-list .bi {
  font-size: 2rem;
  width: 2rem;
  text-align: center;
}

/* Main content */
.pgdf-main {
  padding-top: var(--pgdf-header-h);
  min-height: 100vh;
}

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

/* Carousel */
.pgdf-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--pgdf-radius-lg);
  margin: 1rem 0;
}

.pgdf-carousel-slide {
  display: none;
  cursor: pointer;
  position: relative;
}

.pgdf-slide-active {
  display: block;
}

.pgdf-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--pgdf-radius-lg);
}

.pgdf-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

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

.pgdf-dot-active {
  background: var(--pgdf-accent);
  width: 20px;
  border-radius: 4px;
}

/* Section headings */
.pgdf-section {
  padding: 2rem 0;
}

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

.pgdf-section-title .material-icons,
.pgdf-section-title .fas {
  color: var(--pgdf-accent);
  font-size: 2rem;
}

/* Game grid */
.pgdf-game-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pgdf-secondary);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--pgdf-accent);
}

.pgdf-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

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

.pgdf-game-item:hover {
  transform: scale(1.05);
}

.pgdf-game-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--pgdf-radius);
  object-fit: cover;
  border: 2px solid var(--pgdf-border);
  transition: border-color var(--pgdf-transition);
}

.pgdf-game-item:hover .pgdf-game-icon {
  border-color: var(--pgdf-accent);
  box-shadow: 0 0 12px var(--pgdf-glow);
}

.pgdf-game-name {
  font-size: 1.1rem;
  color: var(--pgdf-text-muted);
  margin-top: 0.4rem;
  line-height: 1.3rem;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.pgdf-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pgdf-light);
  margin-bottom: 0.8rem;
}

/* Promo link styling */
.pgdf-promo-text {
  color: var(--pgdf-accent);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--pgdf-transition);
}

.pgdf-promo-text:hover {
  color: var(--pgdf-secondary);
  text-decoration: underline;
}

.pgdf-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--pgdf-primary), #7b00b3);
  color: var(--pgdf-light);
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--pgdf-transition);
}

.pgdf-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--pgdf-glow);
}

/* CTA sections */
.pgdf-cta-section {
  background: linear-gradient(135deg, rgba(148, 0, 211, 0.15), rgba(0, 255, 127, 0.1));
  border-radius: var(--pgdf-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 2rem 0;
  border: 1px solid var(--pgdf-border);
}

.pgdf-cta-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pgdf-light);
  margin-bottom: 0.8rem;
}

.pgdf-cta-desc {
  font-size: 1.3rem;
  color: var(--pgdf-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8rem;
}

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

.pgdf-footer-desc {
  font-size: 1.2rem;
  color: var(--pgdf-text-muted);
  line-height: 1.7rem;
  margin-bottom: 1.5rem;
}

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

.pgdf-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(148, 0, 211, 0.15);
  border: 1px solid var(--pgdf-border);
  border-radius: 50px;
  color: var(--pgdf-text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--pgdf-transition);
  text-decoration: none;
}

.pgdf-footer-link:hover {
  background: var(--pgdf-primary);
  border-color: var(--pgdf-primary);
  color: var(--pgdf-light);
}

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

.pgdf-site-link {
  color: var(--pgdf-text-muted);
  font-size: 1.1rem;
  text-decoration: none;
  transition: color var(--pgdf-transition);
}

.pgdf-site-link:hover {
  color: var(--pgdf-accent);
}

.pgdf-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--pgdf-text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--pgdf-border);
}

/* Bottom navigation */
.pgdf-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--pgdf-bottom-h);
  background: linear-gradient(180deg, var(--pgdf-bg-alt) 0%, #0d0d1a 100%);
  border-top: 1px solid var(--pgdf-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.5rem;
}

.pgdf-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pgdf-text-muted);
  transition: all var(--pgdf-transition);
  position: relative;
  padding: 0.4rem 0;
}

.pgdf-bottom-nav-btn:hover,
.pgdf-nav-active {
  color: var(--pgdf-accent);
}

.pgdf-bottom-nav-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--pgdf-accent);
  transition: width var(--pgdf-transition);
  border-radius: 1px;
}

.pgdf-nav-active::after {
  width: 30px;
}

.pgdf-bottom-nav-btn .material-icons,
.pgdf-bottom-nav-btn .fas,
.pgdf-bottom-nav-btn .bi,
.pgdf-bottom-nav-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.pgdf-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1.2rem;
}

/* Scroll reveal animation */
.pgdf-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.pgdf-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonial card */
.pgdf-testimonial {
  background: var(--pgdf-bg-card);
  border-radius: var(--pgdf-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--pgdf-secondary);
}

.pgdf-testimonial-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pgdf-accent);
  margin-bottom: 0.3rem;
}

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

/* Payment icons row */
.pgdf-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  padding: 1rem 0;
}

.pgdf-payment-item {
  background: var(--pgdf-bg-card);
  padding: 0.6rem 1.2rem;
  border-radius: var(--pgdf-radius);
  font-size: 1.1rem;
  color: var(--pgdf-text-muted);
  border: 1px solid var(--pgdf-border);
}

/* Winner list */
.pgdf-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem;
  border-bottom: 1px solid rgba(148, 0, 211, 0.1);
}

.pgdf-winner-name {
  font-size: 1.2rem;
  color: var(--pgdf-light);
  font-weight: 500;
}

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

/* Paragraph text */
.pgdf-text {
  font-size: 1.3rem;
  color: var(--pgdf-text-muted);
  line-height: 2rem;
  margin-bottom: 1rem;
}

.pgdf-text strong {
  color: var(--pgdf-light);
}

/* Responsive - hide bottom nav on desktop */
@media (min-width: 769px) {
  .pgdf-bottom-nav {
    display: none;
  }
}

/* Responsive adjustments */
@media (max-width: 320px) {
  .pgdf-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* Utility classes */
.pgdf-text-center { text-align: center; }
.pgdf-text-accent { color: var(--pgdf-accent); }
.pgdf-text-primary { color: var(--pgdf-primary); }
.pgdf-mb-1 { margin-bottom: 1rem; }
.pgdf-mb-2 { margin-bottom: 2rem; }
.pgdf-mt-1 { margin-top: 1rem; }
.pgdf-mt-2 { margin-top: 2rem; }

/* FAQ styles */
.pgdf-faq-item {
  background: var(--pgdf-bg-card);
  border-radius: var(--pgdf-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--pgdf-border);
}

.pgdf-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pgdf-secondary);
  margin-bottom: 0.5rem;
}

.pgdf-faq-a {
  font-size: 1.2rem;
  color: var(--pgdf-text-muted);
  line-height: 1.8rem;
}

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

.pgdf-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(148, 0, 211, 0.1);
  font-size: 1.3rem;
  color: var(--pgdf-text-muted);
  line-height: 1.8rem;
}

.pgdf-feature-list li:last-child {
  border-bottom: none;
}

.pgdf-feature-list .material-icons,
.pgdf-feature-list .fas,
.pgdf-feature-list .bi {
  color: var(--pgdf-accent);
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* H1 styling */
h1.pgdf-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pgdf-light);
  line-height: 2.6rem;
  margin-bottom: 1rem;
}

h2.pgdf-h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pgdf-light);
  margin-bottom: 0.8rem;
}

h3.pgdf-h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pgdf-secondary);
  margin-bottom: 0.6rem;
}
