/* 777ph Theme CSS - All classes use pg37- prefix */

/* CSS Variables */
:root {
  --pg37-primary: #FFCC33;
  --pg37-secondary: #273746;
  --pg37-accent: #FFDFBA;
  --pg37-text: #ADB5BD;
  --pg37-white: #FFFFFF;
  --pg37-transition: all 0.3s ease;
  --pg37-border-radius: 8px;
  --pg37-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --pg37-gradient: linear-gradient(135deg, var(--pg37-primary), var(--pg37-accent));
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--pg37-secondary);
  color: var(--pg37-white);
  line-height: 1.5;
  font-size: 1.4rem;
  overflow-x: hidden;
}

/* Container Layouts */
.pg37-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
  width: 100%;
}

.pg37-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pg37-content {
  flex: 1;
  padding-bottom: 8rem; /* Space for bottom nav */
}

/* Header Styles */
.pg37-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--pg37-secondary);
  border-bottom: 1px solid rgba(255, 204, 51, 0.2);
  z-index: 1000;
  height: 6rem;
}

.pg37-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.6rem;
}

.pg37-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--pg37-white);
}

.pg37-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
}

.pg37-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg37-primary);
}

.pg37-nav-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.pg37-menu-btn {
  background: none;
  border: none;
  color: var(--pg37-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  transition: var(--pg37-transition);
}

.pg37-menu-btn:hover {
  color: var(--pg37-primary);
}

/* Mobile Menu */
.pg37-mobile-menu {
  position: fixed;
  top: 6rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(39, 55, 70, 0.98);
  backdrop-filter: blur(10px);
  transform: translateX(-100%);
  transition: var(--pg37-transition);
  z-index: 999;
  overflow-y: auto;
}

.pg37-menu-active {
  transform: translateX(0);
}

.pg37-menu-list {
  list-style: none;
  padding: 2rem 1.6rem;
}

.pg37-menu-item {
  margin-bottom: 1rem;
}

.pg37-menu-link {
  display: block;
  padding: 1.2rem 0;
  color: var(--pg37-white);
  text-decoration: none;
  font-size: 1.6rem;
  border-bottom: 1px solid rgba(255, 204, 51, 0.2);
  transition: var(--pg37-transition);
}

.pg37-menu-link:hover {
  color: var(--pg37-primary);
  padding-left: 1rem;
}

/* Button Styles */
.pg37-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: var(--pg37-gradient);
  color: var(--pg37-secondary);
  text-decoration: none;
  border-radius: var(--pg37-border-radius);
  font-weight: 600;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  transition: var(--pg37-transition);
  min-height: 4.4rem;
  text-align: center;
  box-shadow: var(--pg37-shadow);
}

.pg37-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 204, 51, 0.3);
}

.pg37-btn-secondary {
  background: var(--pg37-accent);
  color: var(--pg37-secondary);
}

.pg37-btn-outline {
  background: transparent;
  border: 2px solid var(--pg37-primary);
  color: var(--pg37-primary);
}

/* Main Content */
.pg37-main {
  margin-top: 6rem;
  padding: 2rem 0;
}

/* Carousel Styles */
.pg37-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  border-radius: var(--pg37-border-radius);
  margin-bottom: 2rem;
}

.pg37-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.pg37-slide.pg37-active {
  opacity: 1;
}

.pg37-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg37-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.pg37-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--pg37-transition);
}

.pg37-dot.pg37-active {
  background: var(--pg37-primary);
}

/* Game Grid */
.pg37-game-section {
  margin-bottom: 3rem;
}

.pg37-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg37-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.pg37-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pg37-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--pg37-white);
  padding: 1rem;
  border-radius: var(--pg37-border-radius);
  background: rgba(255, 204, 51, 0.1);
  transition: var(--pg37-transition);
  cursor: pointer;
}

.pg37-game-item:hover {
  background: rgba(255, 204, 51, 0.2);
  transform: translateY(-2px);
}

.pg37-game-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--pg37-border-radius);
  margin-bottom: 0.8rem;
  object-fit: cover;
}

.pg37-game-name {
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.2;
  font-weight: 500;
}

/* Content Sections */
.pg37-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 204, 51, 0.05);
  border-radius: var(--pg37-border-radius);
  border: 1px solid rgba(255, 204, 51, 0.2);
}

.pg37-section h2 {
  font-size: 2.2rem;
  color: var(--pg37-primary);
  margin-bottom: 1.5rem;
}

.pg37-section h3 {
  font-size: 1.8rem;
  color: var(--pg37-accent);
  margin-bottom: 1rem;
}

.pg37-section p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--pg37-text);
}

.pg37-section ul {
  list-style: none;
  padding-left: 0;
}

.pg37-section li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 204, 51, 0.2);
  color: var(--pg37-text);
}

.pg37-section li:before {
  content: "⭐";
  color: var(--pg37-primary);
  margin-right: 0.8rem;
}

/* Promotional Links */
.pg37-promo-link {
  color: var(--pg37-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--pg37-transition);
}

.pg37-promo-link:hover {
  color: var(--pg37-accent);
  text-decoration: underline;
}

/* Bottom Navigation */
.pg37-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pg37-secondary);
  border-top: 1px solid rgba(255, 204, 51, 0.2);
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 0;
  z-index: 100;
  height: 6.4rem;
}

.pg37-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--pg37-text);
  transition: var(--pg37-transition);
  padding: 0.4rem;
  border-radius: 0.8rem;
  min-width: 4.4rem;
  cursor: pointer;
}

.pg37-nav-item:hover {
  color: var(--pg37-primary);
  background: rgba(255, 204, 51, 0.1);
}

.pg37-nav-item.pg37-active {
  color: var(--pg37-primary);
}

.pg37-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.pg37-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.pg37-footer {
  background: rgba(0, 0, 0, 0.3);
  padding: 3rem 0 8rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 204, 51, 0.2);
}

.pg37-footer h3 {
  color: var(--pg37-primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.pg37-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pg37-footer-link {
  color: var(--pg37-text);
  text-decoration: none;
  padding: 0.8rem;
  border-radius: var(--pg37-border-radius);
  background: rgba(255, 204, 51, 0.05);
  transition: var(--pg37-transition);
  font-size: 1.3rem;
}

.pg37-footer-link:hover {
  color: var(--pg37-primary);
  background: rgba(255, 204, 51, 0.1);
}

.pg37-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.pg37-partner-logo {
  width: 100%;
  height: 3rem;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--pg37-transition);
}

.pg37-partner-logo:hover {
  opacity: 1;
}

.pg37-copyright {
  text-align: center;
  color: var(--pg37-text);
  font-size: 1.2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 204, 51, 0.2);
}

/* Loading Animation */
.pg37-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(39, 55, 70, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.pg37-spinner {
  width: 4rem;
  height: 4rem;
  border: 4px solid rgba(255, 204, 51, 0.2);
  border-top: 4px solid var(--pg37-primary);
  border-radius: 50%;
  animation: pg37-spin 1s linear infinite;
}

@keyframes pg37-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 480px) {
  .pg37-container {
    padding: 0 1.2rem;
  }
  
  .pg37-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
  
  .pg37-game-icon {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .pg37-game-name {
    font-size: 1rem;
  }
  
  .pg37-section {
    padding: 1.5rem;
  }
  
  .pg37-partners {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 360px) {
  .pg37-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pg37-bottom-nav {
    padding: 0.6rem 0;
  }
  
  .pg37-nav-icon {
    font-size: 2rem;
  }
  
  .pg37-nav-text {
    font-size: 0.9rem;
  }
}

/* Utility Classes */
.pg37-text-center { text-align: center; }
.pg37-text-primary { color: var(--pg37-primary); }
.pg37-text-accent { color: var(--pg37-accent); }
.pg37-mb-1 { margin-bottom: 1rem; }
.pg37-mb-2 { margin-bottom: 2rem; }
.pg37-mt-1 { margin-top: 1rem; }
.pg37-mt-2 { margin-top: 2rem; }
.pg37-hidden { display: none; }
.pg37-visible { display: block; }

/* Animation Classes */
.pg37-fade-in {
  animation: pg37-fadeIn 0.5s ease-in;
}

@keyframes pg37-fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pg37-scale-hover {
  transition: transform 0.2s ease;
}

.pg37-scale-hover:hover {
  transform: scale(1.05);
}