/**
 * kn77 Website Stylesheet
 * Mobile-first design with color palette: #FF8C00 | #FFE135 | #FF0000 | #FA8072 | #2C2C2C
 * All classes use w2e88- prefix for namespace isolation
 */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color palette */
  --w2e88-primary: #FF8C00;
  --w2e88-secondary: #FFE135;
  --w2e88-accent: #FF0000;
  --w2e88-light: #FA8072;
  --w2e88-dark: #2C2C2C;

  /* Typography */
  --w2e88-font-base: 62.5%;
  --w2e88-text-primary: #FFFFFF;
  --w2e88-text-secondary: #FA8072;
  --w2e88-text-muted: #CCCCCC;

  /* Spacing */
  --w2e88-spacing-xs: 0.4rem;
  --w2e88-spacing-sm: 0.8rem;
  --w2e88-spacing-md: 1.2rem;
  --w2e88-spacing-lg: 1.6rem;
  --w2e88-spacing-xl: 2.4rem;

  /* Layout */
  --w2e88-max-width: 430px;
  --w2e88-header-height: 60px;
  --w2e88-bottom-nav-height: 60px;
}

html {
  font-size: var(--w2e88-font-base);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--w2e88-text-primary);
  background-color: var(--w2e88-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.w2e88-container {
  max-width: var(--w2e88-max-width);
  margin: 0 auto;
  padding: 0 var(--w2e88-spacing-md);
}

.w2e88-wrapper {
  padding-bottom: 80px;
}

/* Header */
.w2e88-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--w2e88-header-height);
  background: linear-gradient(135deg, var(--w2e88-dark) 0%, #1a1a1a 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--w2e88-spacing-md);
}

.w2e88-logo {
  display: flex;
  align-items: center;
  gap: var(--w2e88-spacing-sm);
  text-decoration: none;
  color: var(--w2e88-text-primary);
}

.w2e88-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.w2e88-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w2e88-primary);
  letter-spacing: 0.5px;
}

.w2e88-header-buttons {
  display: flex;
  gap: var(--w2e88-spacing-sm);
}

.w2e88-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.w2e88-btn-register {
  background: linear-gradient(135deg, var(--w2e88-primary) 0%, #ff6b00 100%);
  color: #FFFFFF;
}

.w2e88-btn-register:hover,
.w2e88-btn-register:active {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.w2e88-btn-login {
  background: linear-gradient(135deg, var(--w2e88-secondary) 0%, #ffd000 100%);
  color: var(--w2e88-dark);
}

.w2e88-btn-login:hover,
.w2e88-btn-login:active {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 225, 53, 0.4);
}

.w2e88-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--w2e88-dark);
  border: 2px solid var(--w2e88-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.w2e88-menu-btn:hover {
  background: var(--w2e88-primary);
}

.w2e88-menu-btn i {
  font-size: 1.8rem;
  color: var(--w2e88-primary);
}

.w2e88-menu-btn:hover i {
  color: #FFFFFF;
}

/* Mobile Menu */
.w2e88-mobile-menu {
  position: fixed;
  top: var(--w2e88-header-height);
  left: -100%;
  width: 100%;
  height: calc(100vh - var(--w2e88-header-height));
  background: rgba(44, 44, 44, 0.98);
  backdrop-filter: blur(10px);
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: var(--w2e88-spacing-lg);
}

.w2e88-mobile-menu.w2e88-menu-open {
  left: 0;
}

.w2e88-menu-item {
  display: block;
  padding: var(--w2e88-spacing-md);
  margin-bottom: var(--w2e88-spacing-sm);
  color: var(--w2e88-text-primary);
  text-decoration: none;
  font-size: 1.6rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid var(--w2e88-primary);
}

.w2e88-menu-item:hover {
  background: rgba(255, 140, 0, 0.1);
  padding-left: var(--w2e88-spacing-lg);
  border-left-width: 5px;
}

.w2e88-menu-item i {
  margin-right: var(--w2e88-spacing-sm);
  color: var(--w2e88-primary);
}

/* Main Content */
.w2e88-main {
  margin-top: var(--w2e88-header-height);
  min-height: calc(100vh - var(--w2e88-header-height) - var(--w2e88-bottom-nav-height));
}

.w2e88-section {
  padding: var(--w2e88-spacing-lg) 0;
}

.w2e88-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--w2e88-primary);
  margin-bottom: var(--w2e88-spacing-lg);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.w2e88-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--w2e88-secondary);
  margin-bottom: var(--w2e88-spacing-md);
}

.w2e88-text {
  color: var(--w2e88-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--w2e88-spacing-md);
}

/* Carousel */
.w2e88-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: var(--w2e88-spacing-lg);
}

.w2e88-carousel-slide {
  width: 100%;
  height: 100%;
  display: none;
}

.w2e88-carousel-slide:first-child {
  display: block;
}

.w2e88-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.w2e88-carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.w2e88-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.w2e88-carousel-indicator.w2e88-active {
  background: var(--w2e88-primary);
  width: 24px;
  border-radius: 4px;
}

/* Game Grid */
.w2e88-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--w2e88-spacing-sm);
  margin-bottom: var(--w2e88-spacing-lg);
}

.w2e88-game-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--w2e88-dark);
  border: 2px solid transparent;
}

.w2e88-game-item:hover {
  transform: translateY(-4px);
  border-color: var(--w2e88-primary);
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.w2e88-game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w2e88-game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: var(--w2e88-spacing-xs) var(--w2e88-spacing-xs);
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFFFFF;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Game Category */
.w2e88-category {
  margin-bottom: var(--w2e88-spacing-xl);
}

.w2e88-category-title {
  display: flex;
  align-items: center;
  gap: var(--w2e88-spacing-sm);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--w2e88-primary);
  margin-bottom: var(--w2e88-spacing-md);
  padding-bottom: var(--w2e88-spacing-sm);
  border-bottom: 2px solid var(--w2e88-primary);
}

.w2e88-category-title i {
  font-size: 2rem;
  color: var(--w2e88-secondary);
}

/* Content Card */
.w2e88-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: var(--w2e88-spacing-lg);
  margin-bottom: var(--w2e88-spacing-md);
  border: 1px solid rgba(255, 140, 0, 0.2);
}

.w2e88-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--w2e88-secondary);
  margin-bottom: var(--w2e88-spacing-sm);
}

.w2e88-card-content {
  color: var(--w2e88-text-secondary);
  line-height: 1.6;
}

/* Promotional Link */
.w2e88-promo-link {
  display: inline-block;
  color: var(--w2e88-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.w2e88-promo-link:hover {
  color: var(--w2e88-secondary);
  text-decoration: underline;
}

/* Bottom Navigation */
.w2e88-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--w2e88-bottom-nav-height);
  background: linear-gradient(to right, #1a1a1a, var(--w2e88-dark), #1a1a1a);
  border-top: 2px solid var(--w2e88-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 5px;
}

.w2e88-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--w2e88-text-secondary);
  min-width: 60px;
  min-height: 60px;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 4px;
}

.w2e88-bottom-nav a:hover {
  background: rgba(255, 140, 0, 0.1);
  transform: scale(1.05);
}

.w2e88-bottom-nav a.w2e88-nav-active {
  color: var(--w2e88-primary);
}

.w2e88-bottom-nav i {
  font-size: 2.2rem;
  margin-bottom: 2px;
  transition: all 0.3s ease;
}

.w2e88-bottom-nav a.w2e88-nav-active i {
  color: var(--w2e88-primary);
  transform: scale(1.1);
}

.w2e88-bottom-nav span {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

.w2e88-bottom-nav a.w2e88-nav-active span {
  color: var(--w2e88-primary);
  font-weight: 600;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .w2e88-bottom-nav {
    display: none;
  }

  .w2e88-wrapper {
    padding-bottom: 0;
  }
}

/* Footer */
.w2e88-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, var(--w2e88-dark) 100%);
  padding: var(--w2e88-spacing-xl) 0;
  margin-top: var(--w2e88-spacing-xl);
  border-top: 2px solid var(--w2e88-primary);
}

.w2e88-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--w2e88-spacing-sm);
  margin-bottom: var(--w2e88-spacing-lg);
}

.w2e88-footer-link {
  color: var(--w2e88-text-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.w2e88-footer-link:hover {
  color: var(--w2e88-primary);
}

.w2e88-partners {
  display: flex;
  flex-wrap: wrap;
  gap: var(--w2e88-spacing-sm);
  margin-bottom: var(--w2e88-spacing-lg);
}

.w2e88-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
}

.w2e88-copyright {
  text-align: center;
  color: var(--w2e88-text-muted);
  font-size: 1.2rem;
  padding: var(--w2e88-spacing-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Utility Classes */
.w2e88-text-center {
  text-align: center;
}

.w2e88-mt-md {
  margin-top: var(--w2e88-spacing-md);
}

.w2e88-mb-md {
  margin-bottom: var(--w2e88-spacing-md);
}

.w2e88-py-lg {
  padding-top: var(--w2e88-spacing-lg);
  padding-bottom: var(--w2e88-spacing-lg);
}

/* Animation */
@keyframes w2e88-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.w2e88-pulse {
  animation: w2e88-pulse 2s infinite;
}
