/* FunPH Design CSS - All classes with pg20- prefix */

/* CSS Variables */
:root {
  --pg20-primary: #FF6347;
  --pg20-secondary: #FF4500;
  --pg20-dark: #212F3D;
  --pg20-light: #FAFAFA;
  --pg20-text: #333333;
  --pg20-text-light: #666666;
  --pg20-border: #e0e0e0;
  --pg20-shadow: rgba(0, 0, 0, 0.1);
  --pg20-gradient: linear-gradient(135deg, #FF6347 0%, #FF4500 100%);
  --pg20-header-height: 60px;
  --pg20-bottom-nav-height: 60px;
}

/* 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(--pg20-text);
  background-color: var(--pg20-light);
  overflow-x: hidden;
}

/* Container */
.pg20-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.pg20-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--pg20-header-height);
  background-color: var(--pg20-dark);
  color: var(--pg20-light);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 2px 10px var(--pg20-shadow);
  transition: transform 0.3s ease;
}

.pg20-header-hidden {
  transform: translateY(-100%);
}

.pg20-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg20-logo {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.pg20-site-name {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--pg20-light);
}

.pg20-header-right {
  display: flex;
  gap: 0.5rem;
}

.pg20-header-btn {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.pg20-btn-register {
  background: var(--pg20-gradient);
  color: var(--pg20-light);
}

.pg20-btn-login {
  background: transparent;
  color: var(--pg20-light);
  border: 2px solid var(--pg20-light);
}

.pg20-header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--pg20-shadow);
}

.pg20-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pg20-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu Overlay */
.pg20-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pg20-overlay-active {
  display: block;
  opacity: 1;
}

/* Mobile Menu */
.pg20-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background-color: var(--pg20-dark);
  z-index: 9999;
  padding: 2rem 1rem;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.pg20-menu-open {
  right: 0;
}

.pg20-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.pg20-menu-close {
  background: none;
  border: none;
  color: var(--pg20-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.pg20-menu-list {
  list-style: none;
}

.pg20-menu-item {
  margin-bottom: 0.5rem;
}

.pg20-menu-link {
  display: block;
  color: var(--pg20-light);
  text-decoration: none;
  padding: 1rem;
  font-size: 1.6rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.pg20-menu-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.pg20-main {
  margin-top: var(--pg20-header-height);
  padding-bottom: var(--pg20-bottom-nav-height);
  min-height: calc(100vh - var(--pg20-header-height) - var(--pg20-bottom-nav-height));
}

@media (min-width: 769px) {
  .pg20-main {
    padding-bottom: 2rem;
  }
}

/* Carousel */
.pg20-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.pg20-carousel-slide {
  width: 100%;
  height: 100%;
  display: none;
}

.pg20-carousel-slide:first-child {
  display: block;
}

.pg20-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg20-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.pg20-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pg20-carousel-indicator.pg20-active {
  background-color: var(--pg20-light);
}

/* Page Title */
.pg20-page-title {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--pg20-dark);
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

/* Section */
.pg20-section {
  margin-bottom: 3rem;
}

.pg20-section-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--pg20-dark);
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

/* Game Grid */
.pg20-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0 1rem;
}

.pg20-game-item {
  display: block;
  text-decoration: none;
  color: var(--pg20-text);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.pg20-game-item:hover {
  transform: scale(1.05);
}

.pg20-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background-color: var(--pg20-border);
}

.pg20-game-name {
  font-size: 1.2rem;
  text-align: center;
  color: var(--pg20-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card */
.pg20-card {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px var(--pg20-shadow);
}

.pg20-card-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--pg20-dark);
  margin-bottom: 1rem;
}

.pg20-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--pg20-text-light);
}

/* Button */
.pg20-btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--pg20-light);
  background: var(--pg20-gradient);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.pg20-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--pg20-shadow);
}

.pg20-btn-full {
  width: 100%;
  display: block;
}

/* Footer */
.pg20-footer {
  background-color: var(--pg20-dark);
  color: var(--pg20-light);
  padding: 3rem 1rem calc(var(--pg20-bottom-nav-height) + 2rem) 1rem;
  margin-top: 3rem;
}

.pg20-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.pg20-footer-link {
  color: var(--pg20-light);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.pg20-footer-link:hover {
  color: var(--pg20-primary);
}

.pg20-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.pg20-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.pg20-partner-logo:hover {
  opacity: 1;
}

.pg20-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Bottom Navigation */
.pg20-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--pg20-bottom-nav-height);
  background: linear-gradient(135deg, var(--pg20-dark) 0%, #1a2835 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--pg20-shadow);
}

@media (min-width: 769px) {
  .pg20-bottom-nav {
    display: none;
  }
}

.pg20-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  position: relative;
}

.pg20-nav-item:hover,
.pg20-nav-item.pg20-nav-active {
  color: var(--pg20-primary);
}

.pg20-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.pg20-nav-label {
  font-size: 10px;
  font-weight: 500;
}

/* Mobile Menu Toggle Visibility */
@media (max-width: 768px) {
  .pg20-menu-toggle {
    display: block;
  }

  .pg20-header-btn {
    display: none;
  }
}

/* Desktop Navigation */
@media (min-width: 769px) {
  .pg20-header-btn {
    display: inline-block;
  }

  .pg20-menu-toggle {
    display: none;
  }
}

/* Link Styling */
.pg20-link {
  color: var(--pg20-primary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.pg20-link:hover {
  color: var(--pg20-secondary);
  text-decoration: underline;
}

/* Text Utilities */
.pg20-text-center {
  text-align: center;
}

.pg20-text-bold {
  font-weight: bold;
}

.pg20-text-primary {
  color: var(--pg20-primary);
}

/* Spacing Utilities */
.pg20-mt-1 { margin-top: 1rem; }
.pg20-mt-2 { margin-top: 2rem; }
.pg20-mb-1 { margin-bottom: 1rem; }
.pg20-mb-2 { margin-bottom: 2rem; }
