/* JL16 Casino Layout Styles - pgfd namespace */
/* Color Palette: #BA55D3 | #D3D3D3 | #141414 | #FDF5E6 | #800080 | #E6E6FA */

/* CSS Variables */
:root {
  --pgfd-primary: #BA55D3;
  --pgfd-secondary: #800080;
  --pgfd-bg: #141414;
  --pgfd-bg-light: #1a1a1a;
  --pgfd-text: #FDF5E6;
  --pgfd-text-secondary: #E6E6FA;
  --pgfd-gray: #D3D3D3;
  --pgfd-accent: #BA55D3;
  --pgfd-border: #333333;
  --pgfd-shadow: rgba(186, 85, 211, 0.3);
  font-size: 62.5%; /* 1rem = 10px */
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--pgfd-text);
  background-color: var(--pgfd-bg);
  overflow-x: hidden;
}

/* Container */
.pgfd-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.pgfd-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 7rem; /* Space for fixed bottom nav */
}

/* Header */
.pgfd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--pgfd-bg) 0%, var(--pgfd-bg-light) 100%);
  border-bottom: 2px solid var(--pgfd-primary);
  padding: 1rem 1.5rem;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--pgfd-shadow);
}

.pgfd-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.pgfd-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--pgfd-text);
}

.pgfd-logo-img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
}

.pgfd-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pgfd-primary), var(--pgfd-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pgfd-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pgfd-btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  border-radius: 0.6rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  touch-action: manipulation;
  min-height: 44px;
}

.pgfd-btn-register {
  background: linear-gradient(135deg, var(--pgfd-primary), var(--pgfd-secondary));
  color: white;
}

.pgfd-btn-login {
  background: transparent;
  color: var(--pgfd-primary);
  border: 2px solid var(--pgfd-primary);
}

.pgfd-burger {
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  cursor: pointer;
  padding: 0.3rem;
}

.pgfd-burger span {
  width: 100%;
  height: 3px;
  background: var(--pgfd-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.pgfd-burger.pgfd-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.pgfd-burger.pgfd-active span:nth-child(2) {
  opacity: 0;
}

.pgfd-burger.pgfd-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.pgfd-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pgfd-menu-overlay.pgfd-active {
  opacity: 1;
  visibility: visible;
}

.pgfd-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--pgfd-bg-light);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 8rem 2rem 2rem;
}

.pgfd-mobile-menu.pgfd-active {
  right: 0;
}

.pgfd-mobile-nav-link {
  display: block;
  padding: 1.5rem;
  color: var(--pgfd-text);
  text-decoration: none;
  font-size: 1.6rem;
  border-bottom: 1px solid var(--pgfd-border);
  transition: all 0.3s ease;
}

.pgfd-mobile-nav-link:hover,
.pgfd-mobile-nav-link.pgfd-active-page {
  color: var(--pgfd-primary);
  padding-left: 2rem;
}

/* Main Content */
.pgfd-main {
  flex: 1;
  margin-top: 7rem;
  padding-bottom: 2rem;
}

.pgfd-section {
  padding: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.pgfd-section.pgfd-animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Carousel */
.pgfd-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.pgfd-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.pgfd-carousel-item.pgfd-active {
  opacity: 1;
}

.pgfd-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pgfd-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.pgfd-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pgfd-carousel-dot.pgfd-active {
  background: var(--pgfd-primary);
  width: 2.4rem;
  border-radius: 0.4rem;
}

/* Typography */
.pgfd-h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--pgfd-text);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.pgfd-h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pgfd-text);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--pgfd-primary);
}

.pgfd-h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--pgfd-text-secondary);
  margin-bottom: 1rem;
}

.pgfd-text {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--pgfd-text-secondary);
  margin-bottom: 1rem;
}

/* Buttons */
.pgfd-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 0.8rem;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 44px;
  touch-action: manipulation;
}

.pgfd-btn-primary {
  background: linear-gradient(135deg, var(--pgfd-primary), var(--pgfd-secondary));
  color: white;
  box-shadow: 0 4px 15px var(--pgfd-shadow);
}

.pgfd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--pgfd-shadow);
}

.pgfd-btn-secondary {
  background: transparent;
  color: var(--pgfd-primary);
  border: 2px solid var(--pgfd-primary);
}

/* Game Grid */
.pgfd-game-category {
  margin-bottom: 3rem;
}

.pgfd-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.pgfd-game-item {
  background: var(--pgfd-bg-light);
  border-radius: 0.8rem;
  padding: 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--pgfd-border);
}

.pgfd-game-item:active {
  transform: scale(0.95);
}

.pgfd-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.6rem;
  margin-bottom: 0.5rem;
}

.pgfd-game-name {
  font-size: 1.2rem;
  color: var(--pgfd-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Info Card */
.pgfd-card {
  background: var(--pgfd-bg-light);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--pgfd-border);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer */
.pgfd-footer {
  background: var(--pgfd-bg-light);
  border-top: 2px solid var(--pgfd-primary);
  padding: 3rem 0 8rem;
  margin-top: 4rem;
}

.pgfd-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pgfd-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pgfd-footer-link {
  color: var(--pgfd-text-secondary);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.pgfd-footer-link:hover {
  color: var(--pgfd-primary);
}

.pgfd-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.pgfd-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.pgfd-partner-logo:hover {
  opacity: 1;
}

.pgfd-copyright {
  text-align: center;
  color: var(--pgfd-gray);
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Bottom Navigation */
.pgfd-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--pgfd-bg-light) 0%, var(--pgfd-bg) 100%);
  border-top: 2px solid var(--pgfd-primary);
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 0;
  z-index: 900;
  box-shadow: 0 -2px 10px var(--pgfd-shadow);
}

.pgfd-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--pgfd-gray);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  flex: 1;
  padding: 0.5rem;
  min-height: 60px;
  justify-content: center;
}

.pgfd-bottom-nav-item:active {
  transform: scale(0.9);
}

.pgfd-bottom-nav-item.pgfd-active-page {
  color: var(--pgfd-primary);
}

.pgfd-nav-icon {
  font-size: 2.4rem;
}

/* Utility Classes */
.pgfd-text-center {
  text-align: center;
}

.pgfd-mt-1 {
  margin-top: 1rem;
}

.pgfd-mt-2 {
  margin-top: 2rem;
}

.pgfd-mb-1 {
  margin-bottom: 1rem;
}

.pgfd-mb-2 {
  margin-bottom: 2rem;
}

/* Link Styles */
.pgfd-link {
  color: var(--pgfd-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.pgfd-link:hover {
  color: var(--pgfd-secondary);
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (min-width: 431px) {
  .pgfd-container {
    max-width: 430px;
  }
}

/* List Styles */
.pgfd-list {
  list-style: none;
  padding-left: 0;
}

.pgfd-list-item {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--pgfd-text-secondary);
  font-size: 1.5rem;
  line-height: 1.6;
}

.pgfd-list-item:before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--pgfd-primary);
  font-weight: bold;
}

/* FAQ Styles */
.pgfd-faq-item {
  background: var(--pgfd-bg-light);
  border-radius: 0.8rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--pgfd-border);
}

.pgfd-faq-question {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pgfd-primary);
  margin-bottom: 0.8rem;
}

.pgfd-faq-answer {
  font-size: 1.4rem;
  color: var(--pgfd-text-secondary);
  line-height: 1.6;
}
