/*!
 * Nino Gaming APK - Core Layout Stylesheet
 * All custom classes use the pged- prefix.
 * Palette: #8A2BE2 | #BA55D3 | #D8BFD8 | #3A3A3A | #8FBC8F
 */

:root {
  --pged-primary: #8A2BE2;
  --pged-secondary: #BA55D3;
  --pged-soft: #D8BFD8;
  --pged-dark: #3A3A3A;
  --pged-green: #8FBC8F;
  --pged-bg: #1c1426;
  --pged-bg-2: #2a1f3d;
  --pged-card: #2e2244;
  --pged-text: #f5eefc;
  --pged-muted: #c8b8de;
  --pged-gold: #ffd56b;
  --pged-radius: 14px;
  --pged-radius-sm: 10px;
  --pged-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --pged-maxw: 430px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(160deg, var(--pged-bg) 0%, var(--pged-bg-2) 100%);
  color: var(--pged-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: var(--pged-maxw);
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--pged-soft); text-decoration: none; }

.pged-container { width: 100%; padding: 0 14px; }

.pged-wrapper { padding-bottom: 20px; }

/* ===== Header ===== */
.pged-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--pged-maxw);
  z-index: 1000;
  background: linear-gradient(135deg, rgba(58, 58, 58, 0.96), rgba(138, 43, 226, 0.96));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216, 191, 216, 0.25);
  transition: box-shadow 0.3s ease;
}
.pged-header.pged-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45); }

.pged-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  gap: 8px;
}

.pged-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: 0.3px;
  min-width: 0;
}
.pged-logo img { width: 28px; height: 28px; border-radius: 8px; }
.pged-logo span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(90deg, #ffd56b, #D8BFD8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pged-header-actions { display: flex; align-items: center; gap: 8px; }

.pged-btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 30px;
  padding: 9px 16px;
  font-size: 1.3rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}
.pged-btn:hover { transform: translateY(-1px); }
.pged-btn:active { transform: scale(0.96); }

.pged-btn-register {
  background: linear-gradient(135deg, var(--pged-gold), #ff9a3c);
  color: #2a1500;
  box-shadow: 0 4px 12px rgba(255, 213, 107, 0.35);
}
.pged-btn-login {
  background: linear-gradient(135deg, var(--pged-primary), var(--pged-secondary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

.pged-icon-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

/* ===== Mobile Menu ===== */
.pged-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.pged-menu-overlay.pged-active { opacity: 1; visibility: visible; }

.pged-mobile-menu {
  position: fixed;
  top: 0;
  right: -85%;
  width: 78%;
  height: 100vh;
  background: linear-gradient(160deg, #241836, #160f24);
  z-index: 9999;
  padding: 70px 18px 30px;
  transition: right 0.3s ease;
  overflow-y: auto;
}
.pged-mobile-menu.pged-menu-open { right: 0; }
.pged-mobile-menu h3 {
  color: var(--pged-gold);
  font-size: 1.5rem;
  margin: 18px 0 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pged-mobile-menu a {
  display: block;
  padding: 11px 12px;
  margin-bottom: 6px;
  background: rgba(216, 191, 216, 0.08);
  border-radius: var(--pged-radius-sm);
  color: var(--pged-text);
  font-size: 1.4rem;
  border-left: 3px solid var(--pged-secondary);
  transition: background 0.2s ease;
}
.pged-mobile-menu a:hover { background: rgba(186, 85, 211, 0.22); }

/* ===== Hero / Carousel ===== */
.pged-main { padding-top: 62px; }

.pged-hero {
  position: relative;
  margin: 12px 0 18px;
  border-radius: var(--pged-radius);
  overflow: hidden;
  box-shadow: var(--pged-shadow);
}
.pged-carousel { position: relative; height: 180px; }
.pged-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.pged-slide.pged-active { opacity: 1; }
.pged-slide img { width: 100%; height: 100%; object-fit: cover; }
.pged-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 20, 38, 0.78) 0%, rgba(28, 20, 38, 0.15) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 18px;
}
.pged-slide-overlay h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.pged-slide-overlay p {
  color: var(--pged-soft);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.pged-slide-cta {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--pged-gold), #ff9a3c);
  color: #2a1500;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 24px;
  font-size: 1.25rem;
}
.pged-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.pged-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
}
.pged-dot.pged-active { background: var(--pged-gold); width: 22px; border-radius: 4px; }

/* ===== Sections ===== */
.pged-section { margin: 22px 0; padding: 0 14px; }
.pged-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
  border-left: 4px solid var(--pged-secondary);
  padding-left: 10px;
}
.pged-section-title i { color: var(--pged-gold); }
.pged-section-title small {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--pged-muted);
  margin-left: 6px;
}

.pged-text p { margin-bottom: 10px; color: var(--pged-muted); font-size: 1.35rem; }
.pged-text strong { color: var(--pged-soft); }
.pged-text a { color: var(--pged-gold); font-weight: 600; text-decoration: underline; }

/* ===== Game grid ===== */
.pged-game-block { margin-bottom: 24px; }
.pged-cat-title {
  font-size: 1.65rem;
  color: var(--pged-gold);
  margin: 6px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: capitalize;
}
.pged-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pged-game-card {
  background: var(--pged-card);
  border-radius: var(--pged-radius-sm);
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(216, 191, 216, 0.12);
}
.pged-game-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(138, 43, 226, 0.35); }
.pged-game-card img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}
.pged-game-card span {
  display: block;
  font-size: 1.15rem;
  color: var(--pged-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ===== Feature / Info Cards ===== */
.pged-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pged-card {
  background: var(--pged-card);
  border-radius: var(--pged-radius);
  padding: 14px;
  border: 1px solid rgba(186, 85, 211, 0.2);
}
.pged-card h3 {
  font-size: 1.5rem;
  color: var(--pged-gold);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pged-card p { color: var(--pged-muted); font-size: 1.25rem; }

.pged-cta-banner {
  background: linear-gradient(135deg, var(--pged-primary), var(--pged-secondary));
  border-radius: var(--pged-radius);
  padding: 16px;
  text-align: center;
  margin: 18px 14px;
  box-shadow: var(--pged-shadow);
}
.pged-cta-banner h3 { color: #fff; font-size: 1.8rem; margin-bottom: 6px; }
.pged-cta-banner p { color: var(--pged-soft); font-size: 1.25rem; margin-bottom: 12px; }

/* ===== Testimonials ===== */
.pged-testimonial {
  background: var(--pged-card);
  border-radius: var(--pged-radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  border-left: 4px solid var(--pged-green);
}
.pged-testimonial .pged-stars { color: var(--pged-gold); margin-bottom: 4px; }
.pged-testimonial p { color: var(--pged-text); font-size: 1.25rem; font-style: italic; }
.pged-testimonial strong { display: block; margin-top: 6px; color: var(--pged-green); font-size: 1.2rem; }

/* ===== Payment / Winners ===== */
.pged-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pged-chip {
  background: rgba(216, 191, 216, 0.12);
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 1.2rem;
  color: var(--pged-soft);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pged-winner {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--pged-card);
  border-radius: var(--pged-radius-sm);
  margin-bottom: 6px;
  font-size: 1.2rem;
}
.pged-winner span:last-child { color: var(--pged-gold); font-weight: 700; }

/* ===== Footer ===== */
.pged-footer {
  background: #160f24;
  padding: 24px 14px 30px;
  margin-top: 20px;
  border-top: 2px solid var(--pged-primary);
}
.pged-footer-brand { color: var(--pged-muted); font-size: 1.25rem; margin-bottom: 14px; }
.pged-footer-brand strong { color: var(--pged-gold); }
.pged-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.pged-footer-links a {
  background: rgba(216, 191, 216, 0.1);
  padding: 6px 11px;
  border-radius: 16px;
  font-size: 1.15rem;
}
.pged-footer-links a:hover { background: var(--pged-primary); color: #fff; }
.pged-footer-copy {
  color: var(--pged-muted);
  font-size: 1.1rem;
  text-align: center;
  border-top: 1px solid rgba(216, 191, 216, 0.15);
  padding-top: 12px;
}

/* ===== Bottom Nav ===== */
.pged-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--pged-maxw);
  height: 62px;
  background: linear-gradient(135deg, #2a1f3d, #160f24);
  border-top: 2px solid var(--pged-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.5);
}
.pged-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--pged-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: color 0.2s ease, transform 0.15s ease;
  position: relative;
}
.pged-bottomnav-btn i,
.pged-bottomnav-btn .material-icons-outlined {
  font-size: 22px;
}
.pged-bottomnav-btn:active { transform: scale(0.9); }
.pged-bottomnav-btn:hover { color: var(--pged-soft); }
.pged-bottomnav-btn.pged-nav-active { color: var(--pged-gold); }
.pged-bottomnav-btn.pged-nav-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--pged-gold);
  border-radius: 0 0 4px 4px;
}

/* ===== Responsive ===== */
@media (min-width: 769px) {
  .pged-bottomnav { display: none; }
  body { padding-bottom: 0; }
}
@media (max-width: 768px) {
  .pged-main { padding-bottom: 80px; }
}
@media (max-width: 360px) {
  .pged-grid { grid-template-columns: repeat(2, 1fr); }
  .pged-slide-overlay h2 { font-size: 1.7rem; }
}
