/**
 * KingP Club - Layout & Styles
 * All classes use g092- prefix for namespace isolation
 * Color Palette: #FFCC02 | #B22222 | #A9A9A9 | #FFAA00 | #1C2833
 */

/* CSS Reset & Base Styles */
:root {
  --g092-primary: #FFCC02;
  --g092-secondary: #B22222;
  --g092-accent: #FFAA00;
  --g092-dark: #1C2833;
  --g092-gray: #A9A9A9;
  --g092-light: #F5F5F5;
  --g092-white: #FFFFFF;
  --g092-black: #000000;
  --g092-shadow: rgba(0, 0, 0, 0.15);
  --g092-gradient: linear-gradient(135deg, #FFCC02 0%, #FFAA00 100%);
  --g092-font-size-base: 62.5%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--g092-font-size-base);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--g092-dark);
  background-color: var(--g092-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.g092-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
  background-color: var(--g092-white);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.g092-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 56px;
  background: var(--g092-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.g092-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--g092-primary);
}

.g092-logo img {
  width: 28px;
  height: 28px;
  margin-right: 8px;
}

.g092-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g092-white);
  letter-spacing: 0.5px;
}

.g092-header-buttons {
  display: flex;
  gap: 8px;
}

.g092-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.g092-btn-primary {
  background: var(--g092-primary);
  color: var(--g092-dark);
}

.g092-btn-primary:hover {
  background: var(--g092-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 170, 0, 0.3);
}

.g092-btn-secondary {
  background: transparent;
  color: var(--g092-white);
  border: 1px solid var(--g092-primary);
}

.g092-btn-secondary:hover {
  background: var(--g092-primary);
  color: var(--g092-dark);
}

.g092-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.g092-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--g092-white);
  margin: 2px 0;
  transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.g092-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9998;
}

.g092-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.g092-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--g092-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 1rem 0;
}

.g092-menu-open {
  right: 0;
}

.g092-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.g092-menu-close {
  background: none;
  border: none;
  color: var(--g092-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g092-menu-nav {
  padding: 1rem 0;
}

.g092-menu-nav a {
  display: block;
  padding: 12px 1rem;
  color: var(--g092-white);
  text-decoration: none;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.g092-menu-nav a:hover {
  background: rgba(255, 204, 2, 0.1);
  color: var(--g092-primary);
}

/* Main Content */
.g092-main {
  flex: 1;
  margin-top: 56px;
  padding: 1rem;
  padding-bottom: 80px;
}

.g092-container {
  max-width: 100%;
  margin: 0 auto;
}

/* Carousel */
.g092-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.g092-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: none;
}

.g092-slide-active {
  opacity: 1;
  z-index: 1;
}

.g092-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g092-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.g092-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.g092-dot-active {
  background: var(--g092-primary);
  width: 24px;
  border-radius: 4px;
}

/* Section Styles */
.g092-section {
  margin-bottom: 2rem;
}

.g092-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g092-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--g092-primary);
}

.g092-card {
  background: var(--g092-white);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.g092-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Game Grid */
.g092-game-category {
  margin-bottom: 2rem;
}

.g092-category-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g092-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.g092-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.g092-game-item {
  background: var(--g092-white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: block;
}

.g092-game-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.g092-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.g092-game-name {
  padding: 4px 2px;
  font-size: 0.9rem;
  color: var(--g092-dark);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Promo Links */
.g092-promo-link {
  color: var(--g092-secondary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.g092-promo-link:hover {
  color: var(--g092-accent);
  text-decoration: underline;
}

.g092-cta-button {
  display: inline-block;
  background: var(--g092-gradient);
  color: var(--g092-dark);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(255, 170, 0, 0.3);
}

.g092-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 170, 0, 0.4);
}

/* Footer */
.g092-footer {
  background: var(--g092-dark);
  color: var(--g092-white);
  padding: 2rem 1rem 6rem;
  margin-top: auto;
}

.g092-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.g092-footer-links a {
  color: var(--g092-gray);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 4px 8px;
  transition: color 0.3s ease;
}

.g092-footer-links a:hover {
  color: var(--g092-primary);
}

.g092-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.g092-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.g092-partner-logo:hover {
  opacity: 1;
}

.g092-footer-text {
  text-align: center;
  font-size: 1rem;
  color: var(--g092-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.g092-copyright {
  text-align: center;
  font-size: 0.9rem;
  color: var(--g092-gray);
}

/* Mobile Bottom Navigation */
.g092-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: var(--g092-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  border-top: 2px solid var(--g092-primary);
}

.g092-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--g092-gray);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px;
}

.g092-nav-item:hover,
.g092-nav-item.g092-nav-active {
  color: var(--g092-primary);
  transform: scale(1.1);
}

.g092-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.g092-nav-text {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* Responsive Desktop */
@media (min-width: 769px) {
  .g092-wrapper {
    max-width: 100%;
  }

  .g092-header {
    max-width: 100%;
    padding: 0 2rem;
  }

  .g092-main {
    padding: 2rem;
    padding-bottom: 2rem;
  }

  .g092-game-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .g092-carousel {
    height: 300px;
  }

  .g092-bottom-nav {
    display: none;
  }

  .g092-footer {
    padding-bottom: 2rem;
  }
}

/* Animation Classes */
.g092-animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.g092-animate-in {
  opacity: 1;
  transform: translateY(0);
}

.g092-loaded .g092-header,
.g092-loaded .g092-main,
.g092-loaded .g092-footer {
  animation: g092-fadeIn 0.5s ease;
}

@keyframes g092-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Utility Classes */
.g092-text-center {
  text-align: center;
}

.g092-text-primary {
  color: var(--g092-secondary);
}

.g092-mt-1 {
  margin-top: 1rem;
}

.g092-mb-1 {
  margin-bottom: 1rem;
}

.g092-mt-2 {
  margin-top: 2rem;
}

.g092-mb-2 {
  margin-bottom: 2rem;
}
