/* 8k8t ph - Design System CSS */
/* All classes use w1083- prefix for namespace isolation */

/* CSS Variables - Color Palette */
:root {
  --w1083-primary: #9AFF9A;
  --w1083-secondary: #1A1A2E;
  --w1083-accent: #7ED957;
  --w1083-dark: #0F0F1A;
  --w1083-light: #F0FFF0;
  --w1083-text-primary: #FFFFFF;
  --w1083-text-secondary: #E0FFE0;
  --w1083-gray: #4A4A5A;
  --w1083-border: #3A3A4A;
  --w1083-gradient: linear-gradient(135deg, #9AFF9A 0%, #7ED957 100%);
  --w1083-shadow: 0 4px 12px rgba(154, 255, 154, 0.15);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--w1083-secondary);
  color: var(--w1083-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.w1083-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 769px) {
  .w1083-container {
    max-width: 1200px;
  }
}

/* Header Navigation */
.w1083-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--w1083-secondary);
  border-bottom: 1px solid var(--w1083-border);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.w1083-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding: 0 16px;
}

.w1083-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--w1083-primary);
  font-weight: 700;
  font-size: 20px;
}

.w1083-logo-icon {
  width: 28px;
  height: 28px;
  margin-right: 8px;
}

.w1083-header-buttons {
  display: flex;
  gap: 12px;
}

.w1083-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.w1083-btn-register {
  background: var(--w1083-gradient);
  color: var(--w1083-secondary);
}

.w1083-btn-login {
  background-color: transparent;
  border: 2px solid var(--w1083-primary);
  color: var(--w1083-primary);
}

.w1083-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--w1083-shadow);
}

.w1083-menu-button {
  display: block;
  background: none;
  border: none;
  color: var(--w1083-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 769px) {
  .w1083-menu-button {
    display: none;
  }
}

/* Mobile Menu */
.w1083-mobile-menu {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background-color: var(--w1083-dark);
  border-bottom: 1px solid var(--w1083-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}

.w1083-mobile-menu.w1083-active {
  max-height: 500px;
}

.w1083-menu-nav {
  padding: 16px;
}

.w1083-menu-link {
  display: block;
  padding: 12px 0;
  color: var(--w1083-text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--w1083-border);
  font-size: 16px;
  transition: color 0.3s ease;
}

.w1083-menu-link:hover {
  color: var(--w1083-primary);
}

.w1083-menu-link:last-child {
  border-bottom: none;
}

/* Main Content */
.w1083-main {
  margin-top: 56px;
  min-height: calc(100vh - 56px - 64px);
}

@media (max-width: 768px) {
  .w1083-main {
    padding-bottom: 80px;
  }
}

/* Carousel */
.w1083-carousel {
  position: relative;
  overflow: hidden;
  margin: 20px 0;
  border-radius: 12px;
}

.w1083-carousel-container {
  display: flex;
  transition: transform 0.5s ease;
}

.w1083-carousel-slide {
  min-width: 100%;
  height: 180px;
  position: relative;
}

@media (min-width: 769px) {
  .w1083-carousel-slide {
    height: 300px;
  }
}

.w1083-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w1083-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26, 26, 46, 0.9));
  padding: 20px;
}

.w1083-carousel-title {
  color: var(--w1083-primary);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.w1083-carousel-description {
  color: var(--w1083-text-secondary);
  font-size: 14px;
}

.w1083-carousel-button {
  background: var(--w1083-gradient);
  color: var(--w1083-secondary);
  padding: 10px 24px;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  display: inline-block;
}

/* Game Grid */
.w1083-games-section {
  margin: 32px 0;
}

.w1083-section-title {
  color: var(--w1083-primary);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.w1083-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--w1083-gradient);
  margin-right: 12px;
  border-radius: 2px;
}

.w1083-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (min-width: 769px) {
  .w1083-games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
}

.w1083-game-card {
  background-color: var(--w1083-dark);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--w1083-border);
}

.w1083-game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--w1083-shadow);
  border-color: var(--w1083-primary);
}

.w1083-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.w1083-game-name {
  padding: 8px;
  text-align: center;
  color: var(--w1083-text-secondary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Modules */
.w1083-module {
  background-color: var(--w1083-dark);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  border: 1px solid var(--w1083-border);
}

.w1083-module-title {
  color: var(--w1083-primary);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.w1083-module-content {
  color: var(--w1083-text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.w1083-module-content p {
  margin-bottom: 16px;
}

.w1083-module-content ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.w1083-module-content li {
  margin-bottom: 8px;
}

.w1083-promo-link {
  color: var(--w1083-primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.w1083-promo-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.w1083-cta-button {
  display: inline-block;
  background: var(--w1083-gradient);
  color: var(--w1083-secondary);
  padding: 12px 28px;
  border-radius: 24px;
  font-weight: 700;
  text-decoration: none;
  margin: 16px 0;
  transition: all 0.3s ease;
}

.w1083-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--w1083-shadow);
}

/* Bottom Navigation (Mobile) */
.w1083-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--w1083-dark);
  border-top: 1px solid var(--w1083-border);
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

@media (min-width: 769px) {
  .w1083-bottom-nav {
    display: none;
  }
}

.w1083-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--w1083-text-secondary);
  min-width: 60px;
  min-height: 60px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.w1083-nav-item:hover {
  color: var(--w1083-primary);
}

.w1083-nav-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.w1083-nav-label {
  font-size: 10px;
  font-weight: 500;
}

/* Footer */
.w1083-footer {
  background-color: var(--w1083-dark);
  border-top: 1px solid var(--w1083-border);
  padding: 32px 0 80px 0;
  margin-top: 48px;
}

@media (min-width: 769px) {
  .w1083-footer {
    padding-bottom: 32px;
  }
}

.w1083-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.w1083-footer-link {
  color: var(--w1083-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.w1083-footer-link:hover {
  color: var(--w1083-primary);
}

.w1083-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
}

.w1083-partner-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.w1083-partner-logo:hover {
  opacity: 1;
}

.w1083-copyright {
  text-align: center;
  color: var(--w1083-gray);
  font-size: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--w1083-border);
}

/* FAQ Accordion */
.w1083-faq-item {
  background-color: var(--w1083-dark);
  border: 1px solid var(--w1083-border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.w1083-faq-question {
  padding: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--w1083-text-secondary);
  transition: background-color 0.3s ease;
}

.w1083-faq-question:hover {
  background-color: var(--w1083-secondary);
}

.w1083-faq-icon {
  font-size: 20px;
  color: var(--w1083-primary);
}

.w1083-faq-answer {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  color: var(--w1083-gray);
  font-size: 14px;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.w1083-faq-answer.w1083-active {
  padding: 0 16px 16px 16px;
  max-height: 500px;
}

/* Back to Top Button */
.w1083-back-to-top {
  position: fixed;
  bottom: 80px;
  right: 16px;
  background: var(--w1083-gradient);
  color: var(--w1083-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--w1083-shadow);
  z-index: 999;
  transition: all 0.3s ease;
}

.w1083-back-to-top:hover {
  transform: translateY(-2px);
}

/* Utility Classes */
.w1083-text-center {
  text-align: center;
}

.w1083-mb-16 {
  margin-bottom: 16px;
}

.w1083-mb-24 {
  margin-bottom: 24px;
}

.w1083-mt-24 {
  margin-top: 24px;
}

.w1083-highlight {
  color: var(--w1083-primary);
  font-weight: 700;
}
