/* jljl888 Gaming Platform - Theme CSS Module */
/* All classes prefixed with pg46- for namespace isolation */

:root {
  --pg46-primary: #FFA500;
  --pg46-primary-dark: #FF8C00;
  --pg46-secondary: #FFAA00;
  --pg46-accent: #FFB347;
  --pg46-bg-dark: #262626;
  --pg46-bg-light: #f0f0f0;
  --pg46-text-light: #ffffff;
  --pg46-text-dark: #333333;
  --pg46-border-color: #ddd;
  --pg46-hover-overlay: rgba(255, 165, 0, 0.15);
  --pg46-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --pg46-radius: 8px;
  --pg46-radius-large: 12px;
  --pg46-transition: all 0.3s ease;
}

* {
  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', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--pg46-bg-dark);
  color: var(--pg46-text-dark);
  line-height: 1.5rem;
  font-size: 1.4rem;
  letter-spacing: 0.3px;
}

/* Typography */
h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--pg46-text-light);
  margin: 1.5rem 0 1rem 0;
  line-height: 1.3;
}

h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--pg46-primary);
  margin: 1.5rem 0 0.8rem 0;
}

h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--pg46-text-light);
  margin: 1.2rem 0 0.6rem 0;
}

h4, h5, h6 {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--pg46-secondary);
  margin: 1rem 0 0.5rem 0;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #e0e0e0;
}

a {
  color: var(--pg46-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--pg46-transition);
}

a:hover {
  color: var(--pg46-accent);
  text-decoration: underline;
}

/* Container Layouts */
.pg46-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.pg46-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--pg46-bg-dark);
}

.pg46-main {
  flex: 1;
  padding-top: 6rem;
  padding-bottom: 8rem;
}

.pg46-section {
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
}

.pg46-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg46-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--pg46-secondary);
}

/* Header Navigation */
.pg46-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--pg46-bg-dark);
  border-bottom: 2px solid var(--pg46-primary);
  z-index: 1000;
  box-shadow: var(--pg46-box-shadow);
}

.pg46-header-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pg46-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.pg46-logo-img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background-color: var(--pg46-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--pg46-bg-dark);
  font-size: 1.8rem;
}

.pg46-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg46-primary);
  display: none;
}

@media (min-width: 380px) {
  .pg46-logo-text {
    display: block;
  }
}

.pg46-header-buttons {
  display: flex;
  gap: 0.6rem;
}

.pg46-btn-header {
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: var(--pg46-radius);
  cursor: pointer;
  transition: var(--pg46-transition);
  display: none;
}

@media (min-width: 380px) {
  .pg46-btn-header {
    display: inline-block;
  }
}

.pg46-btn-register {
  background-color: var(--pg46-primary);
  color: var(--pg46-bg-dark);
}

.pg46-btn-register:hover {
  background-color: var(--pg46-secondary);
  transform: translateY(-2px);
  box-shadow: var(--pg46-box-shadow);
}

.pg46-btn-login {
  background-color: transparent;
  color: var(--pg46-accent);
  border: 1.5px solid var(--pg46-accent);
}

.pg46-btn-login:hover {
  background-color: var(--pg46-hover-overlay);
  box-shadow: var(--pg46-box-shadow);
}

.pg46-mobile-menu-btn {
  width: 3.2rem;
  height: 3.2rem;
  background: none;
  border: none;
  color: var(--pg46-primary);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--pg46-transition);
}

.pg46-mobile-menu-btn:hover {
  color: var(--pg46-accent);
}

/* Mobile Menu */
.pg46-mobile-menu {
  display: none;
  position: fixed;
  top: 5.2rem;
  left: 0;
  right: 0;
  background-color: var(--pg46-bg-dark);
  border-bottom: 2px solid var(--pg46-primary);
  z-index: 999;
  max-height: calc(100vh - 5.2rem);
  overflow-y: auto;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pg46-mobile-menu.pro3de-menu-active {
  display: block;
}

.pg46-mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--pg46-text-light);
  border-bottom: 1px solid rgba(255, 165, 0, 0.2);
  font-size: 1.4rem;
  transition: var(--pg46-transition);
}

.pg46-mobile-menu a:hover,
.pg46-mobile-menu a.pro3de-active-nav {
  background-color: var(--pg46-hover-overlay);
  color: var(--pg46-accent);
  padding-left: 2rem;
}

@media (min-width: 769px) {
  .pg46-mobile-menu {
    display: none !important;
  }

  .pg46-mobile-menu-btn {
    display: none !important;
  }

  .pg46-header-buttons {
    gap: 0.8rem;
  }
}

/* Carousel Styles */
.pg46-carousel {
  width: 100%;
  position: relative;
  border-radius: var(--pg46-radius-large);
  overflow: hidden;
  background-color: var(--pg46-bg-light);
  margin-bottom: 1.5rem;
}

.pg46-carousel-slide {
  width: 100%;
  display: none;
  position: relative;
  height: 200px;
}

.pg46-carousel-slide.pg46-slide-active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pg46-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: var(--pg46-transition);
}

.pg46-carousel-slide img:hover {
  transform: scale(1.05);
}

.pg46-carousel-prev,
.pg46-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 165, 0, 0.8);
  color: white;
  border: none;
  width: 3.6rem;
  height: 3.6rem;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--pg46-transition);
}

.pg46-carousel-prev {
  left: 0;
}

.pg46-carousel-next {
  right: 0;
}

.pg46-carousel-prev:hover,
.pg46-carousel-next:hover {
  background-color: var(--pg46-secondary);
}

/* Game Grid */
.pg46-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pg46-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  background-color: var(--pg46-bg-light);
  border-radius: var(--pg46-radius);
  transition: var(--pg46-transition);
  text-align: center;
  cursor: pointer;
}

.pg46-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(255, 165, 0, 0.2);
}

.pg46-game-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--pg46-radius);
}

.pg46-game-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pg46-text-dark);
  line-height: 1.3;
  word-break: break-word;
}

.pg46-game-item:hover .pg46-game-name {
  color: var(--pg46-primary);
}

.pg46-game-item a {
  color: inherit;
  text-decoration: none;
  width: 100%;
}

/* Button Styles */
.pg46-btn {
  padding: 1rem 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  border: none;
  border-radius: var(--pg46-radius);
  cursor: pointer;
  transition: var(--pg46-transition);
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

.pg46-btn-primary {
  background-color: var(--pg46-primary);
  color: var(--pg46-bg-dark);
  width: 100%;
  margin-bottom: 1rem;
}

.pg46-btn-primary:hover {
  background-color: var(--pg46-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 165, 0, 0.3);
}

.pg46-btn-secondary {
  background-color: var(--pg46-bg-light);
  color: var(--pg46-text-dark);
  border: 2px solid var(--pg46-primary);
}

.pg46-btn-secondary:hover {
  background-color: var(--pg46-hover-overlay);
}

/* Feature Cards */
.pg46-feature-card {
  background-color: var(--pg46-bg-light);
  padding: 1.2rem;
  border-radius: var(--pg46-radius-large);
  margin-bottom: 1rem;
  border-left: 4px solid var(--pg46-primary);
}

.pg46-feature-icon {
  font-size: 2rem;
  color: var(--pg46-primary);
  margin-bottom: 0.5rem;
}

.pg46-feature-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pg46-text-dark);
  margin-bottom: 0.5rem;
}

.pg46-feature-desc {
  font-size: 1.3rem;
  color: #666;
  line-height: 1.5;
}

/* Footer Styles */
.pg46-footer {
  background-color: #1a1a1a;
  color: var(--pg46-text-light);
  padding: 2rem 1rem 8rem 1rem;
  margin-top: auto;
  border-top: 2px solid var(--pg46-primary);
}

.pg46-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.pg46-footer-section {
  margin-bottom: 1.5rem;
}

.pg46-footer-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg46-primary);
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--pg46-secondary);
  padding-bottom: 0.5rem;
}

.pg46-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pg46-footer-link {
  color: var(--pg46-accent);
  font-size: 1.3rem;
  transition: var(--pg46-transition);
}

.pg46-footer-link:hover {
  color: var(--pg46-primary);
  text-decoration: underline;
}

.pg46-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.pg46-partner-icon {
  width: 100%;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: var(--pg46-transition);
}

.pg46-partner-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.pg46-copyright {
  font-size: 1.2rem;
  color: #999;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 165, 0, 0.2);
}

/* Mobile Bottom Navigation */
.pg46-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--pg46-bg-dark) 0%, #1a1a1a 100%);
  border-top: 2px solid var(--pg46-primary);
  height: 6.4rem;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 0.5rem;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

.pg46-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem 0.5rem;
  cursor: pointer;
  transition: var(--pg46-transition);
  min-height: 6rem;
  text-align: center;
  text-decoration: none;
  color: #999;
}

.pg46-nav-item:hover {
  color: var(--pg46-primary);
  transform: scale(1.05);
}

.pg46-nav-item.pg46-nav-active {
  color: var(--pg46-accent);
}

.pg46-nav-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.8rem;
  width: 100%;
}

.pg46-nav-label {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (min-width: 769px) {
  .pg46-bottom-nav {
    display: none !important;
  }

  .pg46-main {
    padding-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .pg46-main {
    padding-bottom: 8rem;
  }
}

/* Content Sections */
.pg46-content-block {
  background-color: var(--pg46-bg-light);
  padding: 1.5rem;
  border-radius: var(--pg46-radius-large);
  margin-bottom: 1.5rem;
  color: var(--pg46-text-dark);
}

.pg46-content-block h3 {
  color: var(--pg46-primary);
}

.pg46-content-block p {
  color: var(--pg46-text-dark);
}

.pg46-content-block a {
  color: var(--pg46-primary);
  text-decoration: underline;
}

.pg46-highlight {
  background-color: var(--pg46-hover-overlay);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 430px) {
  html {
    font-size: 60%;
  }

  .pg46-container {
    padding: 0 0.8rem;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .pg46-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.8rem;
  }
}

@media (min-width: 769px) {
  .pg46-container {
    max-width: 100%;
    padding: 0 2rem;
  }

  .pg46-logo-text {
    font-size: 2rem;
  }

  .pg46-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
  }

  .pg46-main {
    max-width: 1200px;
    margin: 0 auto;
  }
}
