/* Main CSS file for km88 website */
/* All classes use wb125- prefix for namespace isolation */

/* CSS Variables */
:root {
  --wb125-primary: #006400;
  --wb125-primary-light: #98FB98;
  --wb125-bg: #1E1E1E;
  --wb125-bg-light: #A9A9A9;
  --wb125-text: #FFFFFF;
  --wb125-text-muted: #98FB98;
  --wb125-border: #006400;
  --wb125-shadow: rgba(0, 100, 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.6rem;
  line-height: 1.5;
  color: var(--wb125-text);
  background-color: var(--wb125-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.wb125-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Header */
.wb125-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--wb125-bg);
  border-bottom: 2px solid var(--wb125-primary);
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 10px var(--wb125-shadow);
}

.wb125-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.wb125-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--wb125-text);
}

.wb125-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.wb125-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wb125-primary-light);
}

.wb125-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.wb125-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.wb125-btn-register {
  background-color: var(--wb125-primary);
  color: var(--wb125-text);
}

.wb125-btn-register:hover {
  background-color: var(--wb125-primary-light);
  color: var(--wb125-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--wb125-shadow);
}

.wb125-btn-login {
  background-color: var(--wb125-bg-light);
  color: var(--wb125-bg);
}

.wb125-btn-login:hover {
  background-color: var(--wb125-primary-light);
  color: var(--wb125-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--wb125-shadow);
}

/* Menu Toggle */
.wb125-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--wb125-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.wb125-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--wb125-bg);
  z-index: 9999;
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px var(--wb125-shadow);
  overflow-y: auto;
  padding: 2rem 1rem;
}

.wb125-mobile-menu.wb125-menu-open {
  right: 0;
}

.wb125-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--wb125-text);
  font-size: 2rem;
  cursor: pointer;
}

.wb125-menu-nav {
  margin-top: 3rem;
}

.wb125-menu-nav a {
  display: block;
  padding: 1rem;
  color: var(--wb125-text);
  text-decoration: none;
  border-bottom: 1px solid var(--wb125-bg-light);
  transition: all 0.3s ease;
}

.wb125-menu-nav a:hover {
  background-color: var(--wb125-primary);
  color: var(--wb125-text);
  padding-left: 1.5rem;
}

/* Overlay */
.wb125-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
}

.wb125-overlay.wb125-active {
  display: block;
}

/* Main Content */
main {
  margin-top: 80px;
  padding-bottom: 80px;
  min-height: calc(100vh - 160px);
}

/* Carousel */
.wb125-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin: 1rem 0;
  border-radius: 8px;
}

.wb125-carousel-slide {
  width: 100%;
  height: 100%;
  display: none;
}

.wb125-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wb125-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.wb125-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--wb125-bg-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.wb125-carousel-dot.wb125-active {
  background-color: var(--wb125-primary);
  width: 25px;
  border-radius: 5px;
}

/* Section */
.wb125-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: rgba(0, 100, 0, 0.1);
  border-radius: 8px;
  border: 1px solid var(--wb125-primary);
}

.wb125-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wb125-primary-light);
  margin-bottom: 1rem;
  text-align: center;
}

.wb125-section-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--wb125-text);
}

/* Game Grid */
.wb125-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.wb125-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--wb125-text);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.wb125-game-item:hover {
  transform: scale(1.05);
}

.wb125-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--wb125-primary);
  margin-bottom: 0.3rem;
  background-color: var(--wb125-bg-light);
}

.wb125-game-name {
  font-size: 1rem;
  text-align: center;
  word-wrap: break-word;
  line-height: 1.2;
  color: var(--wb125-text-muted);
}

/* Category Section */
.wb125-category {
  margin: 2rem 0;
}

.wb125-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--wb125-primary-light);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--wb125-primary);
}

/* Card */
.wb125-card {
  background-color: rgba(30, 30, 30, 0.8);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--wb125-border);
  box-shadow: 0 2px 8px var(--wb125-shadow);
}

.wb125-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--wb125-primary-light);
  margin-bottom: 1rem;
}

.wb125-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--wb125-text);
}

/* Link */
.wb125-link {
  color: var(--wb125-primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.wb125-link:hover {
  color: var(--wb125-primary);
  text-decoration: underline;
}

/* List */
.wb125-list {
  list-style: none;
  padding: 0;
}

.wb125-list-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--wb125-bg-light);
  font-size: 1.5rem;
  line-height: 1.6;
}

.wb125-list-item:last-child {
  border-bottom: none;
}

/* Footer */
.wb125-footer {
  background-color: var(--wb125-bg);
  border-top: 2px solid var(--wb125-primary);
  padding: 2rem 0 6rem 0;
  margin-top: 2rem;
}

.wb125-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.wb125-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.wb125-footer-link {
  color: var(--wb125-primary-light);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.wb125-footer-link:hover {
  color: var(--wb125-text);
}

.wb125-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.wb125-partner img {
  height: 30px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.wb125-partner img:hover {
  opacity: 1;
}

.wb125-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--wb125-bg-light);
  margin-top: 1.5rem;
}

/* Bottom Navigation */
.wb125-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--wb125-primary) 0%, var(--wb125-bg) 100%);
  border-top: 3px solid var(--wb125-primary-light);
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--wb125-shadow);
}

.wb125-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--wb125-text);
  transition: all 0.3s ease;
  cursor: pointer;
}

.wb125-nav-item:hover {
  transform: scale(1.1);
}

.wb125-nav-item.wb125-active {
  color: var(--wb125-primary-light);
}

.wb125-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.wb125-nav-text {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

/* Utility Classes */
.wb125-text-center {
  text-align: center;
}

.wb125-mt-1 {
  margin-top: 1rem;
}

.wb125-mb-1 {
  margin-bottom: 1rem;
}

.wb125-mt-2 {
  margin-top: 2rem;
}

.wb125-mb-2 {
  margin-bottom: 2rem;
}

/* Mobile Responsive */
@media (min-width: 769px) {
  .wb125-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }

  .wb125-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .wb125-menu-toggle {
    display: block;
  }
}

/* Animations */
@keyframes wb125-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wb125-fade-in {
  animation: wb125-fadeIn 0.5s ease;
}

/* Loading State */
body:not(.wb125-loaded) {
  visibility: hidden;
}

body.wb125-loaded {
  visibility: visible;
}
