/**
 * CasinoSignup Core Stylesheet
 * File: css/layout-6d64.css
 * Prefix: pg6d-
 * Palette: #CC99FF | #4169E1 | #F0F8FF | #6495ED | #1C2833
 */

/* === CSS Variables === */
:root {
  --pg6d-primary: #4169E1;
  --pg6d-accent: #CC99FF;
  --pg6d-light: #F0F8FF;
  --pg6d-mid: #6495ED;
  --pg6d-dark: #1C2833;
  --pg6d-bg: #0F1923;
  --pg6d-card: #1A2A3A;
  --pg6d-text: #E8EDF2;
  --pg6d-muted: #8899AA;
  --pg6d-border: #2A3A4A;
  --pg6d-gold: #FFD700;
  --pg6d-success: #2ECC71;
  --pg6d-danger: #E74C3C;
  --pg6d-radius: 8px;
  --pg6d-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* === Reset & Base === */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--pg6d-dark);
  color: var(--pg6d-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pg6d-mid); text-decoration: none; }
a:hover { color: var(--pg6d-accent); }

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

/* === Header === */
.pg6d-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pg6d-dark) 0%, #162030 100%);
  border-bottom: 1px solid var(--pg6d-border);
  transition: all 0.3s ease;
  padding: 0.8rem 1rem;
}
.pg6d-header-scrolled {
  background: rgba(15,25,35,0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.pg6d-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.pg6d-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pg6d-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.pg6d-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg6d-accent);
  letter-spacing: 0.5px;
}
.pg6d-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pg6d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--pg6d-radius);
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  min-height: 36px;
}
.pg6d-btn-register {
  background: linear-gradient(135deg, var(--pg6d-gold), #FFA500);
  color: var(--pg6d-dark);
}
.pg6d-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255,215,0,0.5);
}
.pg6d-btn-login {
  background: transparent;
  border: 1.5px solid var(--pg6d-mid);
  color: var(--pg6d-mid);
}
.pg6d-btn-login:hover {
  background: var(--pg6d-mid);
  color: #fff;
}
.pg6d-menu-toggle {
  background: none;
  border: none;
  color: var(--pg6d-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* === Mobile Menu === */
.pg6d-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--pg6d-bg);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.pg6d-menu-active {
  right: 0;
}
.pg6d-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}
.pg6d-overlay-active {
  display: block;
}
.pg6d-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--pg6d-text);
  font-size: 2.4rem;
  cursor: pointer;
}
.pg6d-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg6d-accent);
  margin-bottom: 2rem;
}
.pg6d-menu-link {
  display: block;
  padding: 1rem 0;
  color: var(--pg6d-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--pg6d-border);
  transition: color 0.2s;
}
.pg6d-menu-link:hover {
  color: var(--pg6d-accent);
}

/* === Carousel === */
.pg6d-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--pg6d-radius);
  margin-top: 0.8rem;
}
.pg6d-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.pg6d-slide-active {
  display: block;
}
.pg6d-carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--pg6d-radius);
}
.pg6d-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.pg6d-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
}
.pg6d-dot-active {
  background: var(--pg6d-gold);
  transform: scale(1.2);
}

/* === Section Titles === */
.pg6d-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg6d-text);
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--pg6d-accent);
}
.pg6d-section-subtitle {
  font-size: 1.3rem;
  color: var(--pg6d-muted);
  margin-bottom: 1rem;
}

/* === Game Grid === */
.pg6d-game-section {
  margin: 1.5rem 0;
}
.pg6d-game-cat-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pg6d-accent);
  margin: 1.5rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pg6d-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.pg6d-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  border-radius: var(--pg6d-radius);
  padding: 0.5rem 0.2rem;
  transition: all 0.2s ease;
  background: var(--pg6d-card);
}
.pg6d-game-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background: #223344;
}
.pg6d-game-item img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-bottom: 0.3rem;
  object-fit: cover;
}
.pg6d-game-item span {
  font-size: 1rem;
  color: var(--pg6d-text);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* === Cards === */
.pg6d-card {
  background: var(--pg6d-card);
  border-radius: var(--pg6d-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--pg6d-border);
}
.pg6d-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pg6d-accent);
  margin-bottom: 0.8rem;
}
.pg6d-card p {
  color: var(--pg6d-muted);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

/* === Promo Links === */
.pg6d-promo-link {
  display: inline-block;
  color: var(--pg6d-gold);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: underline;
}
.pg6d-promo-link:hover {
  color: var(--pg6d-accent);
}
.pg6d-promo-btn {
  display: block;
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--pg6d-primary), var(--pg6d-mid));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  border-radius: var(--pg6d-radius);
  cursor: pointer;
  border: none;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
}
.pg6d-promo-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(65,105,225,0.4);
}

/* === Testimonials === */
.pg6d-testimonials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pg6d-testimonial {
  background: var(--pg6d-card);
  border-radius: var(--pg6d-radius);
  padding: 1.2rem;
  border-left: 3px solid var(--pg6d-accent);
}
.pg6d-testimonial-name {
  font-weight: 600;
  color: var(--pg6d-accent);
  font-size: 1.3rem;
}
.pg6d-testimonial-text {
  color: var(--pg6d-muted);
  font-size: 1.2rem;
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* === Payment Methods === */
.pg6d-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.pg6d-payment-item {
  background: var(--pg6d-card);
  border-radius: var(--pg6d-radius);
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  color: var(--pg6d-text);
  border: 1px solid var(--pg6d-border);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* === Winners Showcase === */
.pg6d-winner-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pg6d-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background: var(--pg6d-card);
  border-radius: var(--pg6d-radius);
  font-size: 1.2rem;
}
.pg6d-winner-name {
  color: var(--pg6d-mid);
  font-weight: 600;
}
.pg6d-winner-amount {
  color: var(--pg6d-gold);
  font-weight: 700;
}
.pg6d-winner-game {
  color: var(--pg6d-muted);
  font-size: 1.1rem;
}

/* === Feature Grid === */
.pg6d-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.pg6d-feature-item {
  background: var(--pg6d-card);
  border-radius: var(--pg6d-radius);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--pg6d-border);
}
.pg6d-feature-icon {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  color: var(--pg6d-accent);
}
.pg6d-feature-title {
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--pg6d-text);
  margin-bottom: 0.3rem;
}
.pg6d-feature-desc {
  font-size: 1.1rem;
  color: var(--pg6d-muted);
  line-height: 1.4;
}

/* === App Download CTA === */
.pg6d-app-cta {
  background: linear-gradient(135deg, var(--pg6d-primary), var(--pg6d-accent));
  border-radius: var(--pg6d-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}
.pg6d-app-cta h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.pg6d-app-cta p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
}

/* === Footer === */
.pg6d-footer {
  background: var(--pg6d-bg);
  padding: 2rem 1rem 8rem;
  border-top: 1px solid var(--pg6d-border);
  text-align: center;
}
.pg6d-footer-brand {
  font-size: 1.3rem;
  color: var(--pg6d-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.pg6d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.pg6d-footer-link {
  padding: 0.5rem 1rem;
  background: var(--pg6d-card);
  border-radius: 20px;
  font-size: 1.1rem;
  color: var(--pg6d-text);
  border: 1px solid var(--pg6d-border);
  transition: all 0.2s;
  cursor: pointer;
}
.pg6d-footer-link:hover {
  border-color: var(--pg6d-accent);
  color: var(--pg6d-accent);
}
.pg6d-footer-copy {
  font-size: 1.1rem;
  color: var(--pg6d-muted);
  margin-top: 1rem;
}

/* === Bottom Navigation === */
.pg6d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #162030, var(--pg6d-dark));
  border-top: 1px solid var(--pg6d-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}
.pg6d-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--pg6d-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0.3rem;
  border-radius: 8px;
}
.pg6d-bottom-nav-btn:hover,
.pg6d-nav-active {
  color: var(--pg6d-accent);
  background: rgba(204,153,255,0.1);
}
.pg6d-bottom-nav-btn .pg6d-nav-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
}
.pg6d-bottom-nav-btn .pg6d-nav-label {
  font-size: 10px;
  line-height: 1.2;
}

/* === Main Content === */
main {
  padding-top: 5.6rem;
  padding-bottom: 1rem;
}

/* === Internal Links === */
.pg6d-internal-link {
  color: var(--pg6d-mid);
  text-decoration: underline;
  font-weight: 500;
}
.pg6d-internal-link:hover {
  color: var(--pg6d-accent);
}

/* === FAQ === */
.pg6d-faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--pg6d-border);
  padding-bottom: 1rem;
}
.pg6d-faq-q {
  font-weight: 600;
  color: var(--pg6d-accent);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.pg6d-faq-a {
  color: var(--pg6d-muted);
  font-size: 1.3rem;
  line-height: 1.5;
}

/* === Badge === */
.pg6d-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
}
.pg6d-badge-hot {
  background: var(--pg6d-danger);
  color: #fff;
}
.pg6d-badge-new {
  background: var(--pg6d-success);
  color: #fff;
}

/* === Desktop Responsive === */
@media (min-width: 769px) {
  .pg6d-bottom-nav {
    display: none;
  }
  main {
    padding-bottom: 2rem;
  }
  .pg6d-footer {
    padding-bottom: 2rem;
  }
}

/* === Mobile adjustments === */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

/* === Utility === */
.pg6d-text-center { text-align: center; }
.pg6d-mt-1 { margin-top: 1rem; }
.pg6d-mb-1 { margin-bottom: 1rem; }
.pg6d-hidden { display: none; }
