/**
 * JILIUU - Theme Stylesheet
 * All classes use prefix: pgc4-
 * Color Palette: #FDF5E6 | #FFCC02 | #1B263B | #8B7355 | #D2B48C
 * Version: 1.0.0
 */

/* CSS Variables with prefix */
:root {
  --pgc4-primary: #FFCC02;
  --pgc4-primary-dark: #E6B800;
  --pgc4-secondary: #8B7355;
  --pgc4-bg-dark: #1B263B;
  --pgc4-bg-light: #FDF5E6;
  --pgc4-accent: #D2B48C;
  --pgc4-text-dark: #1B263B;
  --pgc4-text-light: #FDF5E6;
  --pgc4-white: #FFFFFF;
  --pgc4-black: #000000;
  --pgc4-shadow: rgba(27, 38, 59, 0.15);
  --pgc4-transition: all 0.3s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--pgc4-text-dark);
  background: linear-gradient(135deg, var(--pgc4-bg-light) 0%, var(--pgc4-accent) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.pgc4-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Header Styles */
.pgc4-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pgc4-bg-dark) 0%, #2A3A55 100%);
  padding: 0.8rem 1rem;
  box-shadow: 0 2px 10px var(--pgc4-shadow);
  transition: var(--pgc4-transition);
}

.pgc4-header-hidden {
  transform: translateY(-100%);
}

.pgc4-header-content {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pgc4-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--pgc4-text-light);
  font-size: 1.8rem;
  font-weight: 700;
}

.pgc4-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.pgc4-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 36px;
  height: 36px;
  justify-content: center;
}

.pgc4-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--pgc4-primary);
  border-radius: 2px;
  transition: var(--pgc4-transition);
}

.pgc4-menu-toggle:hover span {
  background: var(--pgc4-white);
}

.pgc4-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.pgc4-header-btn {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--pgc4-transition);
  text-decoration: none;
  display: inline-block;
}

.pgc4-btn-register {
  background: var(--pgc4-primary);
  color: var(--pgc4-text-dark);
}

.pgc4-btn-register:hover {
  background: var(--pgc4-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 204, 2, 0.4);
}

.pgc4-btn-login {
  background: transparent;
  color: var(--pgc4-text-light);
  border: 2px solid var(--pgc4-primary);
}

.pgc4-btn-login:hover {
  background: var(--pgc4-primary);
  color: var(--pgc4-text-dark);
}

/* Mobile Menu */
.pgc4-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--pgc4-transition);
}

.pgc4-overlay-active {
  opacity: 1;
  visibility: visible;
}

.pgc4-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--pgc4-bg-dark) 0%, #2A3A55 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 4rem 1rem 2rem;
}

.pgc4-menu-open {
  right: 0;
}

.pgc4-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 204, 2, 0.2);
}

.pgc4-menu-close {
  background: none;
  border: none;
  color: var(--pgc4-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.pgc4-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pgc4-menu-link {
  color: var(--pgc4-text-light);
  text-decoration: none;
  padding: 1rem;
  border-radius: 8px;
  transition: var(--pgc4-transition);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pgc4-menu-link:hover {
  background: rgba(255, 204, 2, 0.15);
  padding-left: 1.5rem;
}

.pgc4-menu-link i {
  width: 20px;
  text-align: center;
  color: var(--pgc4-primary);
}

/* Main Content */
.pgc4-main {
  padding-top: 60px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Carousel */
.pgc4-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 4px 20px var(--pgc4-shadow);
}

.pgc4-carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.pgc4-carousel-slide {
  min-width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.pgc4-slide-active {
  opacity: 1;
  position: relative;
}

.pgc4-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pgc4-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.pgc4-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--pgc4-transition);
}

.pgc4-dot-active {
  background: var(--pgc4-primary);
  width: 24px;
  border-radius: 4px;
}

/* Content Sections */
.pgc4-section {
  background: var(--pgc4-white);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 2px 12px var(--pgc4-shadow);
}

.pgc4-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pgc4-bg-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pgc4-section-title i {
  color: var(--pgc4-primary);
}

.pgc4-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--pgc4-primary);
  border-radius: 2px;
}

/* Game Grid */
.pgc4-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.pgc4-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: var(--pgc4-transition);
}

.pgc4-game-item:hover {
  transform: scale(1.05);
}

.pgc4-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  box-shadow: 0 2px 8px var(--pgc4-shadow);
}

.pgc4-game-name {
  font-size: 1rem;
  color: var(--pgc4-text-dark);
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Buttons */
.pgc4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--pgc4-transition);
  text-decoration: none;
}

.pgc4-btn-primary {
  background: linear-gradient(135deg, var(--pgc4-primary) 0%, var(--pgc4-primary-dark) 100%);
  color: var(--pgc4-text-dark);
  box-shadow: 0 4px 12px rgba(255, 204, 2, 0.3);
}

.pgc4-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 204, 2, 0.4);
}

.pgc4-btn-secondary {
  background: var(--pgc4-bg-dark);
  color: var(--pgc4-text-light);
}

.pgc4-btn-secondary:hover {
  background: #2A3A55;
}

/* Content Typography */
.pgc4-content p {
  margin-bottom: 1rem;
  color: #3A3A3A;
}

.pgc4-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pgc4-bg-dark);
  margin: 1.5rem 0 0.8rem;
}

.pgc4-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pgc4-secondary);
  margin: 1.2rem 0 0.6rem;
}

.pgc4-content ul, .pgc4-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.pgc4-content li {
  margin-bottom: 0.5rem;
  color: #3A3A3A;
}

.pgc4-content a {
  color: var(--pgc4-bg-dark);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--pgc4-primary);
}

.pgc4-content a:hover {
  color: var(--pgc4-primary);
}

/* Footer */
.pgc4-footer {
  background: linear-gradient(135deg, var(--pgc4-bg-dark) 0%, #2A3A55 100%);
  color: var(--pgc4-text-light);
  padding: 2rem 1rem 7rem;
  margin-top: 2rem;
}

.pgc4-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.pgc4-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0;
}

.pgc4-footer-link {
  color: var(--pgc4-text-light);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 204, 2, 0.1);
  border-radius: 6px;
  transition: var(--pgc4-transition);
}

.pgc4-footer-link:hover {
  background: var(--pgc4-primary);
  color: var(--pgc4-text-dark);
}

.pgc4-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
  justify-content: center;
}

.pgc4-partner-img {
  height: 30px;
  width: auto;
  opacity: 0.8;
  transition: var(--pgc4-transition);
}

.pgc4-partner-img:hover {
  opacity: 1;
}

.pgc4-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--pgc4-accent);
  margin-top: 1.5rem;
}

/* Bottom Navigation */
.pgc4-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(90deg, var(--pgc4-bg-dark) 0%, #2A3A55 50%, var(--pgc4-bg-dark) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--pgc4-shadow);
  border-top: 2px solid var(--pgc4-primary);
}

.pgc4-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pgc4-text-light);
  text-decoration: none;
  transition: var(--pgc4-transition);
  padding: 0.5rem;
}

.pgc4-nav-btn i, .pgc4-nav-btn svg {
  font-size: 24px;
  margin-bottom: 4px;
  width: 24px;
  height: 24px;
}

.pgc4-nav-btn span {
  font-size: 10px;
  font-weight: 500;
}

.pgc4-nav-btn:hover {
  color: var(--pgc4-primary);
  transform: scale(1.1);
}

.pgc4-nav-btn.pgc4-nav-active {
  color: var(--pgc4-primary);
}

.pgc4-nav-btn.pgc4-nav-active i {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.pgc4-btn-touched {
  transform: scale(0.95);
}

/* Desktop: Hide bottom nav */
@media (min-width: 769px) {
  .pgc4-bottom-nav {
    display: none;
  }

  .pgc4-main {
    padding-bottom: 2rem;
  }

  .pgc4-footer {
    padding-bottom: 2rem;
  }
}

/* Utilities */
.pgc4-text-center { text-align: center; }
.pgc4-text-primary { color: var(--pgc4-primary); }
.pgc4-mt-1 { margin-top: 1rem; }
.pgc4-mb-1 { margin-bottom: 1rem; }
.pgc4-mt-2 { margin-top: 2rem; }
.pgc4-mb-2 { margin-bottom: 2rem; }

/* Link Promotions */
.pgc4-promo-link {
  display: inline-block;
  color: var(--pgc4-bg-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid var(--pgc4-primary);
  padding-bottom: 2px;
  transition: var(--pgc4-transition);
  cursor: pointer;
}

.pgc4-promo-link:hover {
  color: var(--pgc4-primary);
  border-bottom-color: var(--pgc4-bg-dark);
}

/* Responsive */
@media (max-width: 380px) {
  .pgc4-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pgc4-header-btn {
    padding: 0.4rem 0.8rem;
    font-size: 1.1rem;
  }
}
