/**
 * Jiliuu Theme Stylesheet
 * All classes use pg7a- prefix for namespace isolation
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --pg7a-primary: #004D40;
  --pg7a-secondary: #708090;
  --pg7a-accent: #696969;
  --pg7a-dark: #262626;
  --pg7a-light: #A9A9A9;
  --pg7a-bg: #262626;
  --pg7a-bg-light: #333333;
  --pg7a-text: #A9A9A9;
  --pg7a-text-light: #D3D3D3;
  --pg7a-white: #FFFFFF;
  --pg7a-success: #004D40;
  --pg7a-warning: #FFA500;
  --pg7a-error: #DC3545;
  --pg7a-border: #444444;
  --pg7a-shadow: rgba(0, 0, 0, 0.3);
  --pg7a-radius: 8px;
  --pg7a-transition: all 0.3s ease;
}

/* 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--pg7a-text);
  background-color: var(--pg7a-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.pg7a-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.pg7a-wrapper {
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .pg7a-wrapper {
    padding-bottom: 0;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--pg7a-text-light);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }

p {
  margin-bottom: 1rem;
  color: var(--pg7a-text);
}

a {
  color: var(--pg7a-primary);
  text-decoration: none;
  transition: var(--pg7a-transition);
}

a:hover {
  color: var(--pg7a-secondary);
}

/* Header */
.pg7a-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--pg7a-dark);
  border-bottom: 1px solid var(--pg7a-border);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--pg7a-shadow);
}

.pg7a-header-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pg7a-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.pg7a-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.pg7a-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg7a-primary);
}

.pg7a-header-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.pg7a-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--pg7a-radius);
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--pg7a-transition);
  border: none;
  display: inline-block;
  text-decoration: none;
}

.pg7a-btn-primary {
  background: linear-gradient(135deg, var(--pg7a-primary), #00695C);
  color: var(--pg7a-white);
}

.pg7a-btn-primary:hover {
  background: linear-gradient(135deg, #00695C, var(--pg7a-primary));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 77, 64, 0.4);
}

.pg7a-btn-outline {
  background: transparent;
  color: var(--pg7a-white);
  border: 2px solid var(--pg7a-primary);
}

.pg7a-btn-outline:hover {
  background-color: var(--pg7a-primary);
  transform: translateY(-2px);
}

.pg7a-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--pg7a-text-light);
  font-size: 2rem;
}

@media (min-width: 769px) {
  .pg7a-menu-toggle {
    display: none;
  }
}

/* Mobile Menu */
.pg7a-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background-color: var(--pg7a-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px var(--pg7a-shadow);
  overflow-y: auto;
}

.pg7a-mobile-menu.pg7a-menu-open {
  right: 0;
}

.pg7a-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  border-bottom: 1px solid var(--pg7a-border);
}

.pg7a-menu-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--pg7a-text-light);
}

.pg7a-menu-close {
  background: transparent;
  border: none;
  color: var(--pg7a-text-light);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg7a-menu-list {
  list-style: none;
  padding: 1rem 0;
}

.pg7a-menu-item {
  border-bottom: 1px solid var(--pg7a-border);
}

.pg7a-menu-link {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--pg7a-text);
  font-size: 1.5rem;
  transition: var(--pg7a-transition);
}

.pg7a-menu-link:hover {
  background-color: var(--pg7a-bg-light);
  color: var(--pg7a-primary);
  padding-left: 1.8rem;
}

.pg7a-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pg7a-menu-overlay.pg7a-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
.pg7a-main {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
}

.pg7a-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--pg7a-border);
}

.pg7a-section-title {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.pg7a-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--pg7a-primary), var(--pg7a-secondary));
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* Carousel */
.pg7a-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--pg7a-radius);
  margin-bottom: 1.5rem;
}

.pg7a-carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.pg7a-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.pg7a-carousel-slide.pg7a-slide-active {
  opacity: 1;
  z-index: 1;
}

.pg7a-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg7a-carousel-prev,
.pg7a-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--pg7a-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 2;
  transition: var(--pg7a-transition);
}

.pg7a-carousel-prev {
  left: 10px;
}

.pg7a-carousel-next {
  right: 10px;
}

.pg7a-carousel-prev:hover,
.pg7a-carousel-next:hover {
  background-color: var(--pg7a-primary);
}

.pg7a-carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.pg7a-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--pg7a-transition);
}

.pg7a-carousel-dot.pg7a-dot-active,
.pg7a-carousel-dot:hover {
  background-color: var(--pg7a-primary);
  transform: scale(1.2);
}

/* Game Grid */
.pg7a-game-section {
  margin-bottom: 2rem;
}

.pg7a-category-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  color: var(--pg7a-text-light);
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.pg7a-category-icon {
  font-size: 2rem;
  color: var(--pg7a-primary);
}

.pg7a-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0 0.5rem;
}

.pg7a-game-item {
  display: block;
  text-decoration: none;
  transition: var(--pg7a-transition);
}

.pg7a-game-item:hover {
  transform: scale(1.05);
}

.pg7a-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--pg7a-radius);
  background-color: var(--pg7a-bg-light);
  margin-bottom: 0.3rem;
}

.pg7a-game-name {
  font-size: 1rem;
  color: var(--pg7a-text);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

/* Cards */
.pg7a-card {
  background-color: var(--pg7a-bg-light);
  border-radius: var(--pg7a-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px var(--pg7a-shadow);
}

.pg7a-card-title {
  color: var(--pg7a-text-light);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.pg7a-card-content {
  color: var(--pg7a-text);
  line-height: 1.6;
}

/* Features List */
.pg7a-features {
  list-style: none;
  padding: 0;
}

.pg7a-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--pg7a-border);
}

.pg7a-feature-item:last-child {
  border-bottom: none;
}

.pg7a-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pg7a-primary), #00695C);
  border-radius: 50%;
  color: var(--pg7a-white);
  font-size: 1.8rem;
}

.pg7a-feature-text {
  flex: 1;
}

.pg7a-feature-title {
  font-weight: 600;
  color: var(--pg7a-text-light);
  margin-bottom: 0.3rem;
}

/* FAQ */
.pg7a-faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--pg7a-border);
  border-radius: var(--pg7a-radius);
  overflow: hidden;
}

.pg7a-faq-question {
  background-color: var(--pg7a-bg-light);
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--pg7a-text-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pg7a-faq-answer {
  padding: 1rem 1.2rem;
  color: var(--pg7a-text);
  line-height: 1.6;
}

/* Footer */
.pg7a-footer {
  background-color: var(--pg7a-dark);
  border-top: 1px solid var(--pg7a-border);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}

.pg7a-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.pg7a-footer-link {
  color: var(--pg7a-text);
  font-size: 1.3rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--pg7a-border);
  border-radius: 4px;
  transition: var(--pg7a-transition);
}

.pg7a-footer-link:hover {
  background-color: var(--pg7a-primary);
  color: var(--pg7a-white);
  border-color: var(--pg7a-primary);
}

.pg7a-partners {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pg7a-partners-title {
  font-size: 1.3rem;
  color: var(--pg7a-text-light);
  margin-bottom: 1rem;
}

.pg7a-partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0 1rem;
}

.pg7a-partner-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.8;
  transition: var(--pg7a-transition);
}

.pg7a-partner-img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.pg7a-footer-info {
  text-align: center;
  padding: 0 1rem;
  color: var(--pg7a-text);
  font-size: 1.2rem;
  line-height: 1.6;
}

.pg7a-footer-copyright {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pg7a-border);
  color: var(--pg7a-accent);
  font-size: 1.1rem;
}

/* Bottom Navigation (Mobile) */
.pg7a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--pg7a-dark);
  border-top: 2px solid var(--pg7a-primary);
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--pg7a-shadow);
}

@media (min-width: 769px) {
  .pg7a-bottom-nav {
    display: none;
  }
}

.pg7a-bottom-nav-content {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.5rem;
}

.pg7a-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  text-decoration: none;
  transition: var(--pg7a-transition);
  position: relative;
}

.pg7a-nav-item:hover {
  background-color: var(--pg7a-bg-light);
  transform: scale(1.05);
}

.pg7a-nav-icon {
  font-size: 24px;
  color: var(--pg7a-text-light);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}

.pg7a-nav-text {
  font-size: 10px;
  color: var(--pg7a-text);
  font-weight: 500;
}

.pg7a-nav-item.active .pg7a-nav-icon,
.pg7a-nav-item.active .pg7a-nav-text {
  color: var(--pg7a-primary);
}

/* Badge */
.pg7a-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  background: linear-gradient(135deg, #FF4081, #F50057);
  color: var(--pg7a-white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Utility Classes */
.pg7a-text-center {
  text-align: center;
}

.pg7a-mt-1 { margin-top: 1rem; }
.pg7a-mt-2 { margin-top: 2rem; }
.pg7a-mb-1 { margin-bottom: 1rem; }
.pg7a-mb-2 { margin-bottom: 2rem; }

.pg7a-highlight {
  color: var(--pg7a-primary);
  font-weight: 600;
}

.pg7a-promo-link {
  color: var(--pg7a-warning);
  font-weight: 600;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .pg7a-container {
    padding: 0 1rem;
  }

  .pg7a-main {
    margin-top: 60px;
  }

  .pg7a-btn {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
  }
}
