/* 365jl Mobile-First Design CSS */
/* Author: 365jl Development Team */
/* Mobile-optimized design with max-width 430px */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  color: #333333;
  background: linear-gradient(135deg, #BAFFC9 0%, #FFC0CB 100%);
  overflow-x: hidden;
}

/* CSS Variables */
:root {
  --pg9a-primary: #C71585;
  --pg9a-secondary: #BAFFC9;
  --pg9a-accent: #FFC0CB;
  --pg9a-bg: #333333;
  --pg9a-text: #333333;
  --pg9a-light: #FFC0CB;
  --pg9a-dark: #333333;
  --pg9a-border: #E0E0E0;
  --pg9a-shadow: rgba(0, 0, 0, 0.1);
  --pg9a-transition: all 0.3s ease;
}

/* Layout Components */
.pg9a-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.pg9a-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pg9a-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.pg9a-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pg9a-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg9a-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header Navigation */
.pg9a-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(51, 51, 51, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 2px 10px var(--pg9a-shadow);
}

.pg9a-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.pg9a-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--pg9a-light);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
}

.pg9a-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
}

.pg9a-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pg9a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--pg9a-transition);
  min-height: 4.4rem;
  min-width: 4.4rem;
}

.pg9a-btn-primary {
  background: var(--pg9a-primary);
  color: white;
}

.pg9a-btn-primary:hover {
  background: #A0125C;
  transform: translateY(-2px);
}

.pg9a-btn-secondary {
  background: var(--pg9a-secondary);
  color: var(--pg9a-bg);
}

.pg9a-btn-secondary:hover {
  background: #A8FFB8;
  transform: translateY(-2px);
}

.pg9a-btn-outline {
  background: transparent;
  color: var(--pg9a-light);
  border: 2px solid var(--pg9a-light);
}

.pg9a-btn-outline:hover {
  background: var(--pg9a-light);
  color: var(--pg9a-bg);
}

/* Mobile Menu Toggle */
.pg9a-menu-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  min-width: 4.4rem;
  min-height: 4.4rem;
  justify-content: center;
  align-items: center;
}

.pg9a-menu-toggle span {
  width: 2.5rem;
  height: 0.3rem;
  background: var(--pg9a-light);
  margin: 0.3rem 0;
  transition: var(--pg9a-transition);
}

.pg9a-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.pg9a-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.pg9a-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Mobile Menu */
.pg9a-mobile-menu {
  position: fixed;
  top: 7rem;
  left: 0;
  right: 0;
  background: rgba(51, 51, 51, 0.98);
  backdrop-filter: blur(15px);
  padding: 2rem 0;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: var(--pg9a-transition);
  z-index: 999;
}

.pg9a-mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.pg9a-mobile-menu ul {
  list-style: none;
  padding: 0 2rem;
}

.pg9a-mobile-menu li {
  margin: 1rem 0;
}

.pg9a-mobile-menu a {
  display: block;
  color: var(--pg9a-light);
  text-decoration: none;
  font-size: 1.6rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--pg9a-transition);
}

.pg9a-mobile-menu a:hover {
  color: var(--pg9a-secondary);
  padding-left: 1rem;
}

/* Main Content */
.pg9a-main {
  flex: 1;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.pg9a-section {
  padding: 2rem 0;
}

.pg9a-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  color: var(--pg9a-bg);
  margin-bottom: 2rem;
}

.pg9a-section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--pg9a-bg);
  margin-bottom: 1.5rem;
}

/* Hero Section */
.pg9a-hero {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--pg9a-secondary) 0%, var(--pg9a-accent) 100%);
  margin-bottom: 2rem;
  border-radius: 1rem;
}

.pg9a-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--pg9a-bg);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.pg9a-hero-subtitle {
  font-size: 1.6rem;
  color: var(--pg9a-bg);
  margin-bottom: 2rem;
  opacity: 0.8;
}

/* Carousel */
.pg9a-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.pg9a-carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.pg9a-carousel-item {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.pg9a-carousel-item img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: 1rem;
}

.pg9a-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.pg9a-carousel-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(51, 51, 51, 0.3);
  cursor: pointer;
  transition: var(--pg9a-transition);
}

.pg9a-carousel-dot.active {
  background: var(--pg9a-primary);
}

/* Game Grid */
.pg9a-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pg9a-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 2px 10px var(--pg9a-shadow);
  transition: var(--pg9a-transition);
  cursor: pointer;
}

.pg9a-game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px var(--pg9a-shadow);
}

.pg9a-game-item img {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 0.5rem;
}

.pg9a-game-item span {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pg9a-bg);
}

/* Card Components */
.pg9a-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 10px var(--pg9a-shadow);
  margin-bottom: 2rem;
}

.pg9a-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pg9a-card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--pg9a-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.pg9a-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg9a-bg);
}

.pg9a-card-content {
  color: var(--pg9a-bg);
  line-height: 1.6;
}

/* Stats Component */
.pg9a-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pg9a-stat-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 2px 10px var(--pg9a-shadow);
}

.pg9a-stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--pg9a-primary);
  display: block;
}

.pg9a-stat-label {
  font-size: 1.2rem;
  color: var(--pg9a-bg);
  margin-top: 0.5rem;
}

/* Footer */
.pg9a-footer {
  background: var(--pg9a-bg);
  color: var(--pg9a-light);
  padding: 3rem 0 8rem;
  margin-top: 3rem;
}

.pg9a-footer-content {
  padding: 0 1rem;
}

.pg9a-footer-section {
  margin-bottom: 2rem;
}

.pg9a-footer-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--pg9a-secondary);
}

.pg9a-footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.pg9a-footer-links a {
  color: var(--pg9a-light);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--pg9a-transition);
}

.pg9a-footer-links a:hover {
  color: var(--pg9a-secondary);
}

.pg9a-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.pg9a-partners img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.6;
  transition: var(--pg9a-transition);
}

.pg9a-partners img:hover {
  opacity: 1;
}

.pg9a-copyright {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Bottom Navigation */
.pg9a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pg9a-bg);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--pg9a-shadow);
}

.pg9a-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--pg9a-light);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--pg9a-transition);
  padding: 0.5rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
  justify-content: center;
}

.pg9a-bottom-nav-item:hover,
.pg9a-bottom-nav-item.active {
  color: var(--pg9a-secondary);
  transform: scale(1.1);
}

.pg9a-bottom-nav-item i {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

/* Utility Classes */
.pg9a-text-center { text-align: center; }
.pg9a-text-left { text-align: left; }
.pg9a-text-right { text-align: right; }
.pg9a-hidden { display: none; }
.pg9a-visible { display: block; }

/* Responsive Improvements */
@media (max-width: 360px) {
  .pg9a-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .pg9a-hero-title {
    font-size: 2.4rem;
  }
  
  .pg9a-game-item img {
    width: 4rem;
    height: 4rem;
  }
  
  .pg9a-game-item span {
    font-size: 1.1rem;
  }
}

@media (min-width: 431px) {
  .pg9a-container {
    max-width: 430px;
  }
}