/**
 * JL588 - Core Stylesheet
 * All classes use prefix: pgf5-
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --pgf5-primary: #4DB6AC;
  --pgf5-primary-dark: #26A69A;
  --pgf5-primary-light: #B2DFDB;
  --pgf5-bg: #0F0F23;
  --pgf5-bg-light: #1A1A35;
  --pgf5-bg-card: #252540;
  --pgf5-text: #B2DFDB;
  --pgf5-text-dark: #80CBC4;
  --pgf5-text-muted: #4DB6AC;
  --pgf5-border: #4DB6AC33;
  --pgf5-shadow: rgba(77, 182, 172, 0.2);
  --pgf5-gradient: linear-gradient(135deg, #4DB6AC 0%, #26A69A 100%);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  background-color: var(--pgf5-bg);
  color: var(--pgf5-text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.pgf5-container {
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1.6rem;
  width: 100%;
}

.pgf5-wrapper {
  padding-top: 7.2rem;
  padding-bottom: 8rem;
}

/* Header */
.pgf5-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--pgf5-bg);
  border-bottom: 0.1rem solid var(--pgf5-border);
  box-shadow: 0 0.2rem 1rem var(--pgf5-shadow);
}

.pgf5-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  max-width: 43rem;
  margin: 0 auto;
}

.pgf5-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--pgf5-text);
  font-size: 2rem;
  font-weight: 700;
}

.pgf5-logo-icon {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
}

.pgf5-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.pgf5-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
}

.pgf5-btn-primary {
  background: var(--pgf5-gradient);
  color: var(--pgf5-bg);
}

.pgf5-btn-primary:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.4rem 1.2rem var(--pgf5-shadow);
}

.pgf5-btn-secondary {
  background: transparent;
  color: var(--pgf5-primary);
  border: 0.2rem solid var(--pgf5-primary);
}

.pgf5-btn-secondary:hover {
  background: var(--pgf5-primary);
  color: var(--pgf5-bg);
}

.pgf5-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.pgf5-menu-toggle span {
  display: block;
  width: 2.4rem;
  height: 0.2rem;
  background-color: var(--pgf5-primary);
  border-radius: 0.2rem;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.pgf5-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 32rem;
  height: 100vh;
  background-color: var(--pgf5-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem;
}

.pgf5-menu-open {
  right: 0;
}

.pgf5-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 15, 35, 0.8);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pgf5-overlay-active {
  opacity: 1;
  visibility: visible;
}

.pgf5-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.pgf5-menu-close {
  background: none;
  border: none;
  color: var(--pgf5-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.pgf5-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pgf5-menu-nav a {
  display: block;
  padding: 1.2rem 1.6rem;
  color: var(--pgf5-text);
  text-decoration: none;
  font-size: 1.5rem;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
}

.pgf5-menu-nav a:hover {
  background-color: var(--pgf5-bg-card);
  color: var(--pgf5-primary);
}

/* Hero Section */
.pgf5-hero {
  padding: 2rem 0;
}

.pgf5-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--pgf5-text);
  margin-bottom: 1.2rem;
  text-align: center;
}

.pgf5-hero p {
  font-size: 1.5rem;
  color: var(--pgf5-text-muted);
  text-align: center;
  line-height: 1.6;
}

/* Carousel */
.pgf5-carousel {
  position: relative;
  margin: 2rem 0;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 0.4rem 1.2rem var(--pgf5-shadow);
}

.pgf5-carousel-slide {
  display: none;
  width: 100%;
}

.pgf5-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.pgf5-carousel-slide:first-child {
  display: block;
}

.pgf5-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--pgf5-bg);
  color: var(--pgf5-text);
  border: none;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.pgf5-carousel-btn:hover {
  background-color: var(--pgf5-primary);
  color: var(--pgf5-bg);
}

.pgf5-carousel-prev {
  left: 1rem;
}

.pgf5-carousel-next {
  right: 1rem;
}

.pgf5-carousel-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.pgf5-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background-color: var(--pgf5-bg-light);
  border: 0.2rem solid var(--pgf5-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pgf5-dot-active {
  background-color: var(--pgf5-primary);
  border-color: var(--pgf5-primary);
}

/* Game Grid */
.pgf5-section {
  padding: 2.4rem 0;
}

.pgf5-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pgf5-text);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pgf5-section-title i {
  color: var(--pgf5-primary);
}

.pgf5-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pgf5-game-item {
  background-color: var(--pgf5-bg-card);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 0.1rem solid transparent;
}

.pgf5-game-item:hover {
  transform: translateY(-0.4rem);
  border-color: var(--pgf5-primary);
  box-shadow: 0 0.6rem 1.6rem var(--pgf5-shadow);
}

.pgf5-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.pgf5-game-item-name {
  padding: 0.8rem 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--pgf5-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cards */
.pgf5-card {
  background-color: var(--pgf5-bg-card);
  border-radius: 1.2rem;
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  border: 0.1rem solid var(--pgf5-border);
}

.pgf5-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pgf5-text);
  margin-bottom: 1rem;
}

.pgf5-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--pgf5-text-muted);
}

.pgf5-card-content p {
  margin-bottom: 1rem;
}

.pgf5-card-content a {
  color: var(--pgf5-primary);
  text-decoration: none;
  font-weight: 600;
}

.pgf5-card-content a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.pgf5-faq-item {
  background-color: var(--pgf5-bg-card);
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 0.1rem solid var(--pgf5-border);
}

.pgf5-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.6rem;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pgf5-text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.pgf5-faq-icon {
  font-size: 2rem;
  color: var(--pgf5-primary);
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--pgf5-bg);
}

.pgf5-faq-answer {
  display: none;
  padding: 0 1.6rem 1.2rem;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--pgf5-text-muted);
}

.pgf5-faq-item.active .pgf5-faq-answer {
  display: block;
}

/* Features */
.pgf5-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.pgf5-feature-item {
  background-color: var(--pgf5-bg-card);
  border-radius: 1rem;
  padding: 1.6rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  border: 0.1rem solid var(--pgf5-border);
  transition: all 0.3s ease;
}

.pgf5-feature-item:hover {
  border-color: var(--pgf5-primary);
  transform: translateX(0.4rem);
}

.pgf5-feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: var(--pgf5-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--pgf5-bg);
  flex-shrink: 0;
}

.pgf5-feature-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pgf5-text);
  margin-bottom: 0.4rem;
}

.pgf5-feature-content p {
  font-size: 1.3rem;
  color: var(--pgf5-text-muted);
  line-height: 1.5;
}

/* Footer */
.pgf5-footer {
  background-color: var(--pgf5-bg-light);
  padding: 2.4rem 0 1rem;
  margin-top: 2rem;
  border-top: 0.1rem solid var(--pgf5-border);
}

.pgf5-footer-content {
  margin-bottom: 2rem;
}

.pgf5-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.pgf5-footer-links a {
  color: var(--pgf5-text-muted);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  transition: all 0.3s ease;
}

.pgf5-footer-links a:hover {
  color: var(--pgf5-primary);
  background-color: var(--pgf5-bg-card);
}

.pgf5-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.pgf5-partner-logo {
  height: 2.4rem;
  width: auto;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.pgf5-partner-logo:hover {
  opacity: 1;
}

.pgf5-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--pgf5-text-muted);
  padding-top: 1.6rem;
  border-top: 0.1rem solid var(--pgf5-border);
}

/* Bottom Navigation */
.pgf5-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background-color: var(--pgf5-bg-light);
  border-top: 0.2rem solid var(--pgf5-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -0.2rem 1rem var(--pgf5-shadow);
}

.pgf5-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--pgf5-text-muted);
  font-size: 1rem;
  min-width: 6rem;
  min-height: 6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0.8rem;
  padding: 0.4rem;
}

.pgf5-nav-item i {
  font-size: 2.2rem;
  display: block;
}

.pgf5-nav-item span {
  font-size: 1rem;
  font-weight: 500;
}

.pgf5-nav-item:hover {
  color: var(--pgf5-primary);
  background-color: var(--pgf5-bg-card);
}

.pgf5-nav-item.pgf5-nav-active {
  color: var(--pgf5-primary);
}

.pgf5-nav-item.pgf5-nav-active i {
  transform: scale(1.1);
}

/* Desktop Styles */
@media (min-width: 769px) {
  .pgf5-bottom-nav {
    display: none;
  }

  .pgf5-wrapper {
    padding-bottom: 2rem;
  }

  .pgf5-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .pgf5-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Utility Classes */
.pgf5-text-center {
  text-align: center;
}

.pgf5-mt-1 { margin-top: 1rem; }
.pgf5-mt-2 { margin-top: 2rem; }
.pgf5-mb-1 { margin-bottom: 1rem; }
.pgf5-mb-2 { margin-bottom: 2rem; }

.pgf5-text-primary {
  color: var(--pgf5-primary);
}

.pgf5-text-gradient {
  background: var(--pgf5-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pgf5-link {
  color: var(--pgf5-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pgf5-link:hover {
  text-decoration: underline;
  transform: translateX(0.2rem);
  display: inline-block;
}

/* Animation */
@keyframes pgf5-fadeIn {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pgf5-animate-in {
  animation: pgf5-fadeIn 0.6s ease-out;
}
