/**
 * pk7 CSS Stylesheet
 * All classes use 'pg8c-' prefix to avoid conflicts
 * Color Palette: #273746 (Dark), #FFD700 (Gold), #F4A460 (Light)
 * Mobile-first responsive design
 */

/* Root variables */
:root {
  --pg8c-primary: #FFD700;
  --pg8c-primary-dark: #FFA500;
  --pg8c-secondary: #F4A460;
  --pg8c-bg-dark: #273746;
  --pg8c-bg-darker: #1a252f;
  --pg8c-bg-card: #2c3e50;
  --pg8c-text-light: #ffffff;
  --pg8c-text-muted: #bdc3c7;
  --pg8c-text-dark: #2c3e50;
  --pg8c-border: #34495e;
  --pg8c-shadow: rgba(0, 0, 0, 0.3);
  --pg8c-gradient: linear-gradient(135deg, #273746 0%, #1a252f 100%);
  --pg8c-gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--pg8c-text-light);
  background-color: var(--pg8c-bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.pg8c-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

/* Header */
.pg8c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--pg8c-bg-darker);
  box-shadow: 0 2px 10px var(--pg8c-shadow);
  z-index: 1000;
  border-bottom: 2px solid var(--pg8c-primary);
}

.pg8c-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  max-width: 430px;
  margin: 0 auto;
}

.pg8c-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--pg8c-text-light);
}

.pg8c-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  object-fit: cover;
}

.pg8c-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg8c-primary);
  text-decoration: none;
}

.pg8c-header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.pg8c-btn {
  padding: 0.6rem 1.6rem;
  border: none;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.pg8c-btn-primary {
  background: var(--pg8c-gold-gradient);
  color: var(--pg8c-text-dark);
}

.pg8c-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.pg8c-btn-secondary {
  background: transparent;
  color: var(--pg8c-primary);
  border: 2px solid var(--pg8c-primary);
}

.pg8c-btn-secondary:hover {
  background: var(--pg8c-primary);
  color: var(--pg8c-text-dark);
}

/* Mobile menu toggle */
.pg8c-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.4rem;
  background: none;
  border: none;
}

@media (min-width: 769px) {
  .pg8c-menu-toggle {
    display: none;
  }
}

.pg8c-menu-toggle span {
  display: block;
  width: 2.4rem;
  height: 0.3rem;
  background: var(--pg8c-primary);
  border-radius: 0.2rem;
  transition: all 0.3s ease;
}

/* Mobile menu */
.pg8c-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--pg8c-bg-darker);
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding-top: 6rem;
  box-shadow: 2px 0 10px var(--pg8c-shadow);
}

.pg8c-mobile-menu.pg8c-menu-open {
  left: 0;
}

.pg8c-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pg8c-mobile-menu.pg8c-menu-open + .pg8c-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.pg8c-menu-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.2rem;
  background: var(--pg8c-bg-darker);
  border-bottom: 1px solid var(--pg8c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pg8c-menu-close {
  background: none;
  border: none;
  color: var(--pg8c-text-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.pg8c-menu-nav {
  padding: 1rem 0;
}

.pg8c-menu-link {
  display: block;
  padding: 1.2rem 2rem;
  color: var(--pg8c-text-light);
  text-decoration: none;
  font-size: 1.6rem;
  border-bottom: 1px solid var(--pg8c-border);
  transition: all 0.3s ease;
}

.pg8c-menu-link:hover {
  background: var(--pg8c-bg-card);
  color: var(--pg8c-primary);
  padding-left: 2.5rem;
}

.pg8c-menu-link.pg8c-active {
  color: var(--pg8c-primary);
  background: var(--pg8c-bg-card);
  border-left: 4px solid var(--pg8c-primary);
}

/* Main content */
.pg8c-main {
  margin-top: 7rem;
  padding-bottom: 8rem;
  min-height: 100vh;
}

@media (min-width: 769px) {
  .pg8c-main {
    margin-top: 7rem;
    padding-bottom: 2rem;
  }
}

/* Carousel */
.pg8c-carousel {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.pg8c-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pg8c-carousel-slide.pg8c-active {
  opacity: 1;
}

.pg8c-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg8c-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.pg8c-carousel-indicator {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pg8c-carousel-indicator.pg8c-active,
.pg8c-carousel-indicator:hover {
  background: var(--pg8c-primary);
  transform: scale(1.2);
}

/* Hero section */
.pg8c-hero {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.pg8c-hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--pg8c-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.pg8c-hero-subtitle {
  font-size: 1.4rem;
  color: var(--pg8c-text-muted);
  line-height: 1.5;
}

/* Section */
.pg8c-section {
  margin-bottom: 3rem;
}

.pg8c-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg8c-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pg8c-section-title::before {
  content: '';
  width: 0.4rem;
  height: 2.4rem;
  background: var(--pg8c-gold-gradient);
  border-radius: 0.2rem;
}

/* Game grid */
.pg8c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 360px) {
  .pg8c-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pg8c-game-item {
  text-align: center;
  text-decoration: none;
  color: var(--pg8c-text-light);
  transition: transform 0.3s ease;
}

.pg8c-game-item:hover {
  transform: scale(1.05);
}

.pg8c-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  background: var(--pg8c-bg-card);
  border: 2px solid var(--pg8c-border);
  transition: all 0.3s ease;
}

.pg8c-game-item:hover .pg8c-game-icon {
  border-color: var(--pg8c-primary);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.pg8c-game-name {
  font-size: 1rem;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
  color: var(--pg8c-text-light);
}

/* Card */
.pg8c-card {
  background: var(--pg8c-bg-card);
  border-radius: 1rem;
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  border: 1px solid var(--pg8c-border);
  transition: all 0.3s ease;
}

.pg8c-card:hover {
  border-color: var(--pg8c-primary);
  box-shadow: 0 4px 20px var(--pg8c-shadow);
}

.pg8c-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--pg8c-primary);
  margin-bottom: 1rem;
}

.pg8c-card-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--pg8c-text-muted);
}

.pg8c-card-content p {
  margin-bottom: 1rem;
}

.pg8c-card-content p:last-child {
  margin-bottom: 0;
}

/* Link */
.pg8c-link {
  color: var(--pg8c-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pg8c-link:hover {
  color: var(--pg8c-primary-dark);
  text-decoration: underline;
}

/* List */
.pg8c-list {
  list-style: none;
  padding: 0;
}

.pg8c-list-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--pg8c-border);
  font-size: 1.4rem;
  line-height: 1.5;
}

.pg8c-list-item:last-child {
  border-bottom: none;
}

.pg8c-list-item::before {
  content: '▸';
  color: var(--pg8c-primary);
  margin-right: 0.8rem;
  font-weight: bold;
}

/* Text highlight */
.pg8c-highlight {
  color: var(--pg8c-primary);
  font-weight: 600;
}

/* Footer */
.pg8c-footer {
  background: var(--pg8c-bg-darker);
  padding: 2rem 0 1rem;
  border-top: 2px solid var(--pg8c-primary);
  margin-top: 3rem;
}

.pg8c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.pg8c-footer-link {
  color: var(--pg8c-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--pg8c-border);
  border-radius: 0.4rem;
  transition: all 0.3s ease;
}

.pg8c-footer-link:hover {
  color: var(--pg8c-primary);
  border-color: var(--pg8c-primary);
}

.pg8c-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
  align-items: center;
}

.pg8c-partner-logo {
  height: 3rem;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.pg8c-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.pg8c-footer-copyright {
  text-align: center;
  color: var(--pg8c-text-muted);
  font-size: 1.2rem;
  padding: 1rem;
  border-top: 1px solid var(--pg8c-border);
}

/* Bottom navigation (mobile only) */
.pg8c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pg8c-bg-darker);
  border-top: 2px solid var(--pg8c-primary);
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--pg8c-shadow);
}

@media (min-width: 769px) {
  .pg8c-bottom-nav {
    display: none;
  }
}

.pg8c-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--pg8c-text-muted);
  min-width: 6rem;
  min-height: 6rem;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pg8c-nav-item:hover,
.pg8c-nav-item.pg8c-active {
  color: var(--pg8c-primary);
  transform: scale(1.1);
}

.pg8c-nav-icon {
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg8c-nav-text {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Utility classes */
.pg8c-text-center {
  text-align: center;
}

.pg8c-mt-1 { margin-top: 1rem; }
.pg8c-mt-2 { margin-top: 2rem; }
.pg8c-mt-3 { margin-top: 3rem; }
.pg8c-mb-1 { margin-bottom: 1rem; }
.pg8c-mb-2 { margin-bottom: 2rem; }
.pg8c-mb-3 { margin-bottom: 3rem; }

.pg8c-p-1 { padding: 1rem; }
.pg8c-p-2 { padding: 2rem; }
.pg8c-p-3 { padding: 3rem; }

/* Promotional banner */
.pg8c-promo-banner {
  background: var(--pg8c-gold-gradient);
  color: var(--pg8c-text-dark);
  padding: 1.6rem;
  border-radius: 1rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 380px) {
  html {
    font-size: 56.25%;
  }
}

/* Animation */
@keyframes pg8c-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pg8c-fade-in {
  animation: pg8c-fadeIn 0.6s ease;
}
