/* G Perya Design System */
/* All classes use 'pg96-' prefix for namespace isolation */
/* Mobile-first responsive design with max-width 430px */

:root {
  --pg96-silver: #C0C0C0;
  --pg96-spring-green: #00FF7F;
  --pg96-gray: #ADB5BD;
  --pg96-dark: #141414;
  --pg96-lime: #00FF00;
  --pg96-white: #ECF0F1;
}

* {
  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, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--pg96-white);
  background-color: var(--pg96-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

.pg96-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  background-color: var(--pg96-dark);
}

/* Header Styles */
.pg96-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pg96-spring-green) 0%, var(--pg96-lime) 100%);
  box-shadow: 0 2px 10px rgba(0, 255, 127, 0.3);
}

.pg96-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.pg96-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--pg96-dark);
  font-weight: 700;
  font-size: 1.8rem;
}

.pg96-logo-icon {
  font-size: 2.4rem;
  margin-right: 0.5rem;
}

.pg96-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.pg96-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.pg96-btn-primary {
  background-color: var(--pg96-white);
  color: var(--pg96-dark);
}

.pg96-btn-primary:hover {
  background-color: var(--pg96-silver);
  transform: translateY(-2px);
}

.pg96-btn-secondary {
  background-color: transparent;
  color: var(--pg96-dark);
  border: 2px solid var(--pg96-dark);
}

.pg96-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.pg96-menu-btn {
  background: none;
  border: none;
  color: var(--pg96-dark);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.pg96-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pg96-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pg96-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: linear-gradient(180deg, var(--pg96-spring-green) 0%, var(--pg96-lime) 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.pg96-mobile-menu.active {
  right: 0;
}

.pg96-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(20, 20, 20, 0.2);
}

.pg96-menu-title {
  color: var(--pg96-dark);
  font-size: 1.8rem;
  font-weight: 700;
}

.pg96-close-menu {
  background: none;
  border: none;
  color: var(--pg96-dark);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.pg96-menu-list {
  list-style: none;
  padding: 1rem 0;
}

.pg96-menu-item {
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
}

.pg96-menu-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--pg96-dark);
  text-decoration: none;
  font-size: 1.5rem;
  transition: background 0.3s ease;
}

.pg96-menu-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.pg96-menu-icon {
  margin-right: 1rem;
  font-size: 1.8rem;
  width: 24px;
  text-align: center;
}

/* Main Content */
main {
  padding-top: 70px;
  padding-bottom: 80px;
}

.pg96-section {
  padding: 2rem 0;
}

.pg96-section-title {
  color: var(--pg96-spring-green);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

.pg96-subtitle {
  color: var(--pg96-gray);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Card Styles */
.pg96-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 255, 127, 0.3);
}

.pg96-card-title {
  color: var(--pg96-spring-green);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pg96-card-content {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  line-height: 1.6;
}

.pg96-card-content p {
  margin-bottom: 1rem;
}

/* Carousel */
.pg96-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.pg96-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pg96-carousel-slide.pg96-active {
  opacity: 1;
}

.pg96-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg96-carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.pg96-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pg96-carousel-indicator.pg96-active {
  background-color: var(--pg96-spring-green);
  transform: scale(1.2);
}

/* Game Grid */
.pg96-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.pg96-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--pg96-white);
  transition: transform 0.3s ease;
}

.pg96-game-item:hover {
  transform: scale(1.05);
}

.pg96-game-icon {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
}

.pg96-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg96-game-name {
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* List Styles */
.pg96-list {
  list-style: none;
}

.pg96-list-item {
  padding: 0.8rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pg96-list-item:last-child {
  border-bottom: none;
}

/* Link Styles */
.pg96-link {
  color: var(--pg96-spring-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.pg96-link:hover {
  color: var(--pg96-lime);
  text-decoration: underline;
}

/* Footer */
.pg96-footer {
  background: linear-gradient(135deg, var(--pg96-spring-green) 0%, var(--pg96-lime) 100%);
  padding: 2rem 1rem 8rem;
  margin-top: 3rem;
}

.pg96-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.pg96-footer-section {
  margin-bottom: 2rem;
}

.pg96-footer-title {
  color: var(--pg96-dark);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pg96-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.pg96-footer-link {
  color: var(--pg96-dark);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  background-color: rgba(20, 20, 20, 0.1);
  border-radius: 6px;
  transition: background 0.3s ease;
}

.pg96-footer-link:hover {
  background-color: rgba(20, 20, 20, 0.2);
}

.pg96-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.pg96-partners img {
  width: 50px;
  height: 30px;
  object-fit: contain;
}

.pg96-copyright {
  text-align: center;
  color: rgba(20, 20, 20, 0.8);
  font-size: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 20, 20, 0.2);
}

/* Bottom Navigation */
.pg96-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--pg96-spring-green) 0%, var(--pg96-lime) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.pg96-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--pg96-dark);
  min-width: 60px;
  min-height: 60px;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.pg96-nav-item:hover {
  transform: scale(1.1);
}

.pg96-nav-item.active {
  color: var(--pg96-white);
  background-color: rgba(255, 255, 255, 0.2);
}

.pg96-nav-icon {
  font-size: 22px;
  margin-bottom: 0.2rem;
}

.pg96-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Desktop Responsive */
@media (min-width: 769px) {
  .pg96-bottom-nav {
    display: none;
  }
  main {
    padding-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

/* Utility Classes */
.pg96-text-center {
  text-align: center;
}

.pg96-mt-1 {
  margin-top: 1rem;
}

.pg96-mt-2 {
  margin-top: 2rem;
}

.pg96-mb-1 {
  margin-bottom: 1rem;
}

.pg96-mb-2 {
  margin-bottom: 2rem;
}

.pg96-highlight {
  color: var(--pg96-spring-green);
  font-weight: 600;
}
