/**
 * JLJL11 Main Stylesheet
 * All classes use pgc5 prefix for namespace isolation
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --pgc5-primary: #BC8F8F;
  --pgc5-secondary: #D2691E;
  --pgc5-accent: #FDF5E6;
  --pgc5-bg-dark: #2C2C2C;
  --pgc5-bg-darker: #1a1a1a;
  --pgc5-text-light: #FDF5E6;
  --pgc5-text-muted: #d4d4d4;
  --pgc5-border: #3a3a3a;
  --pgc5-success: #4CAF50;
  --pgc5-shadow: rgba(0, 0, 0, 0.3);
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--pgc5-text-light);
  background-color: var(--pgc5-bg-dark);
  min-height: 100vh;
}

/* Container */
.pgc5-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.pgc5-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--pgc5-bg-darker);
  border-bottom: 2px solid var(--pgc5-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--pgc5-shadow);
}

.pgc5-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
}

.pgc5-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--pgc5-text-light);
  font-size: 1.3rem;
  font-weight: bold;
}

.pgc5-logo img {
  width: 28px;
  height: 28px;
}

.pgc5-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.pgc5-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.pgc5-btn-register {
  background: linear-gradient(135deg, var(--pgc5-secondary), #b8541a);
  color: var(--pgc5-accent);
}

.pgc5-btn-login {
  background: linear-gradient(135deg, var(--pgc5-primary), #a67f7f);
  color: var(--pgc5-accent);
}

.pgc5-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--pgc5-shadow);
}

.pgc5-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pgc5-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem;
}

/* Mobile Menu */
.pgc5-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--pgc5-bg-darker);
  z-index: 9999;
  transition: right 0.3s ease;
  box-shadow: -2px 0 15px var(--pgc5-shadow);
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
}

.pgc5-mobile-menu.pgc5-menu-active {
  right: 0;
}

.pgc5-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--pgc5-text-light);
  font-size: 2rem;
  cursor: pointer;
}

.pgc5-menu-list {
  list-style: none;
}

.pgc5-menu-list li {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--pgc5-border);
  padding-bottom: 0.8rem;
}

.pgc5-menu-link {
  color: var(--pgc5-text-light);
  text-decoration: none;
  font-size: 1.5rem;
  display: block;
  transition: color 0.3s ease;
}

.pgc5-menu-link:hover {
  color: var(--pgc5-primary);
}

/* Main Content */
main {
  margin-top: 60px;
  padding-bottom: 80px;
}

/* Carousel */
.pgc5-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.pgc5-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pgc5-carousel-slide.pgc5-slide-active {
  opacity: 1;
}

.pgc5-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Headings */
h1 {
  font-size: 2rem;
  color: var(--pgc5-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}

h2 {
  font-size: 1.7rem;
  color: var(--pgc5-primary);
  margin: 2rem 0 1rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  color: var(--pgc5-text-light);
  margin: 1.5rem 0 0.8rem;
  font-weight: 600;
}

/* Section */
.pgc5-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--pgc5-border);
}

/* Game Grid */
.pgc5-game-category {
  margin-bottom: 2rem;
}

.pgc5-category-title {
  font-size: 1.6rem;
  color: var(--pgc5-secondary);
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: linear-gradient(90deg, var(--pgc5-bg-darker), transparent);
  border-left: 4px solid var(--pgc5-primary);
}

.pgc5-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.pgc5-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.pgc5-game-item:hover {
  transform: scale(1.05);
}

.pgc5-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  border: 2px solid var(--pgc5-border);
  transition: border-color 0.3s ease;
}

.pgc5-game-item:hover .pgc5-game-icon {
  border-color: var(--pgc5-secondary);
}

.pgc5-game-name {
  font-size: 1rem;
  color: var(--pgc5-text-light);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Promotional Links */
.pgc5-promo-link {
  color: var(--pgc5-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  cursor: pointer;
}

.pgc5-promo-link:hover {
  color: var(--pgc5-primary);
  text-decoration: underline;
}

/* Footer */
.pgc5-footer {
  background-color: var(--pgc5-bg-darker);
  padding: 2rem 0 7rem;
  margin-top: 2rem;
  border-top: 2px solid var(--pgc5-primary);
}

.pgc5-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.pgc5-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pgc5-footer-link {
  color: var(--pgc5-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.pgc5-footer-link:hover {
  color: var(--pgc5-primary);
}

.pgc5-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
  justify-content: center;
}

.pgc5-partner-logo {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.pgc5-partner-logo:hover {
  opacity: 1;
}

.pgc5-copyright {
  text-align: center;
  color: var(--pgc5-text-muted);
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

/* Bottom Navigation (Mobile) */
.pgc5-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--pgc5-bg-darker) 0%, var(--pgc5-bg-dark) 100%);
  border-top: 2px solid var(--pgc5-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--pgc5-shadow);
}

.pgc5-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--pgc5-text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.pgc5-nav-item:hover,
.pgc5-nav-item.pgc5-nav-active {
  color: var(--pgc5-secondary);
}

.pgc5-nav-item i {
  font-size: 22px;
  margin-bottom: 4px;
}

.pgc5-nav-item span {
  font-size: 0.9rem;
  font-weight: 500;
}

.pgc5-nav-item.pgc5-nav-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: var(--pgc5-secondary);
  border-radius: 0 0 3px 3px;
}

/* Card Component */
.pgc5-card {
  background-color: var(--pgc5-bg-darker);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--pgc5-border);
}

.pgc5-card-title {
  color: var(--pgc5-secondary);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.pgc5-card-content {
  color: var(--pgc5-text-muted);
  line-height: 1.8;
}

/* List Styles */
.pgc5-list {
  list-style: none;
  padding-left: 0;
}

.pgc5-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--pgc5-border);
  color: var(--pgc5-text-muted);
}

.pgc5-list li:last-child {
  border-bottom: none;
}

.pgc5-list li::before {
  content: '▸';
  color: var(--pgc5-secondary);
  margin-right: 0.5rem;
  font-weight: bold;
}

/* Responsive */
@media (min-width: 769px) {
  .pgc5-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }

  .pgc5-footer {
    padding-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .pgc5-menu-toggle {
    display: block;
  }
}
