/**
 * LoveJili Main Stylesheet
 * All classes use pg0f prefix for namespace isolation
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --pg0f-primary: #26A69A;
  --pg0f-primary-dark: #00796B;
  --pg0f-bg-light: #E0F2F1;
  --pg0f-bg-dark: #0E1621;
  --pg0f-text-light: #E0F2F1;
  --pg0f-text-dark: #0E1621;
  --pg0f-accent: #FF6B6B;
  --pg0f-gold: #FFD700;
  --pg0f-white: #FFFFFF;
  --pg0f-gray: #757575;
  --pg0f-shadow: rgba(14, 22, 33, 0.15);
}

/* 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.4rem;
  line-height: 1.6;
  color: var(--pg0f-text-dark);
  background: linear-gradient(135deg, var(--pg0f-bg-dark) 0%, #1a2332 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.pg0f-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0;
  background: var(--pg0f-bg-light);
  min-height: 100vh;
  position: relative;
}

/* Header Styles */
.pg0f-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--pg0f-bg-dark) 0%, #1a2332 100%);
  padding: 12px 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px var(--pg0f-shadow);
  transition: transform 0.3s ease;
}

.pg0f-header-hidden {
  transform: translateX(-50%) translateY(-100%);
}

.pg0f-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.pg0f-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.pg0f-logo-text {
  color: var(--pg0f-text-light);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.pg0f-header-buttons {
  display: flex;
  gap: 8px;
}

.pg0f-header-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pg0f-btn-register {
  background: linear-gradient(135deg, var(--pg0f-primary) 0%, var(--pg0f-primary-dark) 100%);
  color: var(--pg0f-white);
}

.pg0f-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(38, 166, 154, 0.4);
}

.pg0f-btn-login {
  background: transparent;
  color: var(--pg0f-text-light);
  border: 1px solid var(--pg0f-primary);
}

.pg0f-btn-login:hover {
  background: var(--pg0f-primary);
  color: var(--pg0f-white);
}

.pg0f-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.pg0f-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--pg0f-text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.pg0f-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(135deg, var(--pg0f-bg-dark) 0%, #1a2332 100%);
  z-index: 9999;
  padding: 60px 20px 20px;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.pg0f-menu-open {
  right: 0;
}

.pg0f-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pg0f-menu-open ~ .pg0f-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.pg0f-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--pg0f-text-light);
  font-size: 2.4rem;
  cursor: pointer;
}

.pg0f-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pg0f-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--pg0f-text-light);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

.pg0f-menu-link:hover {
  background: rgba(38, 166, 154, 0.2);
  transform: translateX(4px);
}

.pg0f-menu-link i {
  width: 20px;
  text-align: center;
}

/* Main Content */
.pg0f-main {
  padding-top: 60px;
  padding-bottom: 80px;
  min-height: calc(100vh - 140px);
}

/* Carousel */
.pg0f-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  margin-bottom: 20px;
}

.pg0f-carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.pg0f-carousel-slide {
  min-width: 100%;
  height: 100%;
}

.pg0f-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Section */
.pg0f-hero {
  padding: 20px 16px;
  text-align: center;
}

.pg0f-hero h1 {
  font-size: 2.2rem;
  color: var(--pg0f-bg-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.pg0f-hero p {
  font-size: 1.4rem;
  color: var(--pg0f-gray);
  line-height: 1.6;
}

/* Section Styles */
.pg0f-section {
  padding: 20px 16px;
  margin-bottom: 16px;
}

.pg0f-section-title {
  font-size: 1.8rem;
  color: var(--pg0f-bg-dark);
  margin-bottom: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg0f-section-title i {
  color: var(--pg0f-primary);
}

/* Game Grid */
.pg0f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.pg0f-game-card {
  background: var(--pg0f-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--pg0f-shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.pg0f-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--pg0f-shadow);
}

.pg0f-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.pg0f-game-name {
  padding: 6px 4px;
  font-size: 1rem;
  color: var(--pg0f-bg-dark);
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Styles */
.pg0f-card {
  background: var(--pg0f-white);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px var(--pg0f-shadow);
}

.pg0f-card-title {
  font-size: 1.6rem;
  color: var(--pg0f-bg-dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.pg0f-card-text {
  font-size: 1.4rem;
  color: var(--pg0f-gray);
  line-height: 1.6;
  margin-bottom: 12px;
}

.pg0f-card-list {
  list-style: none;
  padding: 0;
}

.pg0f-card-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 1.3rem;
  color: var(--pg0f-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg0f-card-list li:before {
  content: "✓";
  color: var(--pg0f-primary);
  font-weight: bold;
}

.pg0f-card-list li:last-child {
  border-bottom: none;
}

/* Button Styles */
.pg0f-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--pg0f-primary) 0%, var(--pg0f-primary-dark) 100%);
  color: var(--pg0f-white);
  text-decoration: none;
  border-radius: 24px;
  font-weight: 600;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(38, 166, 154, 0.3);
}

.pg0f-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(38, 166, 154, 0.4);
}

.pg0f-btn-secondary {
  background: linear-gradient(135deg, var(--pg0f-accent) 0%, #ff5252 100%);
}

.pg0f-btn-gold {
  background: linear-gradient(135deg, var(--pg0f-gold) 0%, #ffb300 100%);
  color: var(--pg0f-bg-dark);
}

/* Feature List */
.pg0f-feature-list {
  display: grid;
  gap: 12px;
}

.pg0f-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(38, 166, 154, 0.1) 0%, rgba(224, 242, 241, 0.3) 100%);
  border-radius: 12px;
}

.pg0f-feature-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--pg0f-primary) 0%, var(--pg0f-primary-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pg0f-white);
  font-size: 1.8rem;
  flex-shrink: 0;
}

.pg0f-feature-content h4 {
  font-size: 1.4rem;
  color: var(--pg0f-bg-dark);
  margin-bottom: 4px;
  font-weight: 600;
}

.pg0f-feature-content p {
  font-size: 1.2rem;
  color: var(--pg0f-gray);
  line-height: 1.5;
}

/* Footer */
.pg0f-footer {
  background: linear-gradient(135deg, var(--pg0f-bg-dark) 0%, #1a2332 100%);
  padding: 24px 16px 80px;
  text-align: center;
}

.pg0f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.pg0f-footer-link {
  color: var(--pg0f-text-light);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(38, 166, 154, 0.2);
  transition: all 0.3s ease;
}

.pg0f-footer-link:hover {
  background: var(--pg0f-primary);
  transform: scale(1.05);
}

.pg0f-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.pg0f-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.pg0f-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.pg0f-copyright {
  color: rgba(224, 242, 241, 0.6);
  font-size: 1.1rem;
  line-height: 1.5;
}

.pg0f-copyright a {
  color: var(--pg0f-primary);
  text-decoration: none;
}

/* Bottom Navigation */
.pg0f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(135deg, var(--pg0f-bg-dark) 0%, #1a2332 100%);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--pg0f-shadow);
  padding: 0 8px;
}

.pg0f-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(224, 242, 241, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 12px;
  padding: 6px 8px;
}

.pg0f-bottom-nav-btn:hover {
  background: rgba(38, 166, 154, 0.2);
  color: var(--pg0f-text-light);
  transform: scale(1.05);
}

.pg0f-bottom-nav-btn.active {
  color: var(--pg0f-primary);
  background: rgba(38, 166, 154, 0.15);
}

.pg0f-bottom-nav-btn i {
  font-size: 22px;
}

.pg0f-bottom-nav-btn span {
  font-size: 10px;
  font-weight: 500;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .pg0f-bottom-nav {
    display: none;
  }

  .pg0f-main {
    padding-bottom: 20px;
  }

  .pg0f-footer {
    padding-bottom: 24px;
  }
}

/* Utilities */
.pg0f-text-center {
  text-align: center;
}

.pg0f-mb-1 {
  margin-bottom: 8px;
}

.pg0f-mb-2 {
  margin-bottom: 16px;
}

.pg0f-mb-3 {
  margin-bottom: 24px;
}

/* Link Styles */
.pg0f-link {
  color: var(--pg0f-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pg0f-link:hover {
  color: var(--pg0f-primary-dark);
  text-decoration: underline;
}

/* Touch feedback */
.pg0f-touch-active {
  transform: scale(0.95);
}
