/**
 * Hao88 Design System - CSS Styles
 * All classes use v6be- prefix for namespace isolation
 */

/* CSS Variables - Color Palette */
:root {
  --v6be-primary: #FFC0CB;
  --v6be-secondary: #FFF8DC;
  --v6be-dark: #333333;
  --v6be-light: #FFF8DC;
  --v6be-text: #333333;
  --v6be-text-light: #666666;
  --v6be-border: #E0E0E0;
  --v6be-overlay: rgba(0, 0, 0, 0.7);
  --v6be-shadow: rgba(0, 0, 0, 0.1);
  --v6be-gradient: linear-gradient(135deg, #FFC0CB 0%, #FFB6C1 100%);
  --v6be-header-height: 60px;
  --v6be-bottom-nav-height: 60px;
}

/* 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--v6be-text);
  background-color: var(--v6be-light);
  min-height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--v6be-dark);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  color: var(--v6be-text-light);
}

a {
  color: var(--v6be-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--v6be-primary);
}

/* Container */
.v6be-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v6be-wrapper {
  padding: 2rem 0;
}

/* Header Styles */
.v6be-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--v6be-header-height);
  background-color: var(--v6be-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: 0 2px 8px var(--v6be-shadow);
}

.v6be-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--v6be-light);
  font-size: 1.6rem;
  font-weight: 700;
}

.v6be-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.v6be-header-actions {
  display: flex;
  gap: 0.5rem;
}

.v6be-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.v6be-btn-primary {
  background-color: var(--v6be-primary);
  color: var(--v6be-dark);
}

.v6be-btn-secondary {
  background-color: transparent;
  color: var(--v6be-light);
  border: 1px solid var(--v6be-light);
}

.v6be-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--v6be-shadow);
}

.v6be-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--v6be-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.v6be-mobile-menu {
  display: none;
  position: fixed;
  top: var(--v6be-header-height);
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background-color: var(--v6be-dark);
  padding: 1rem;
  z-index: 9999;
  max-height: calc(100vh - var(--v6be-header-height));
  overflow-y: auto;
}

.v6be-mobile-menu.v6be-menu-open {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v6be-menu-link {
  display: block;
  padding: 1rem;
  color: var(--v6be-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.4rem;
}

.v6be-menu-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--v6be-primary);
}

/* Main Content */
.v6be-main {
  margin-top: var(--v6be-header-height);
  padding-bottom: var(--v6be-bottom-nav-height);
  min-height: 100vh;
}

/* Carousel */
.v6be-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.v6be-carousel-slide {
  width: 100%;
  height: 100%;
  display: none;
}

.v6be-carousel-slide:first-child {
  display: block;
}

.v6be-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.v6be-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.v6be-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v6be-carousel-dot.v6be-active {
  background-color: var(--v6be-primary);
  transform: scale(1.2);
}

/* Section Styles */
.v6be-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--v6be-shadow);
}

.v6be-section-title {
  font-size: 1.8rem;
  color: var(--v6be-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v6be-primary);
}

/* Game Grid */
.v6be-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.v6be-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.v6be-game-item:hover {
  transform: scale(1.05);
}

.v6be-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 6px var(--v6be-shadow);
}

.v6be-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v6be-game-name {
  font-size: 1rem;
  text-align: center;
  color: var(--v6be-text);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.v6be-game-category {
  margin-bottom: 2rem;
}

.v6be-category-title {
  font-size: 1.6rem;
  color: var(--v6be-dark);
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 4px solid var(--v6be-primary);
}

/* Card Component */
.v6be-card {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px var(--v6be-shadow);
}

.v6be-card-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--v6be-dark);
}

/* Feature List */
.v6be-feature-list {
  list-style: none;
}

.v6be-feature-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--v6be-border);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.v6be-feature-item:last-child {
  border-bottom: none;
}

.v6be-feature-icon {
  color: var(--v6be-primary);
  font-size: 1.6rem;
  flex-shrink: 0;
}

/* Bottom Navigation */
.v6be-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--v6be-bottom-nav-height);
  background-color: var(--v6be-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 8px var(--v6be-shadow);
}

.v6be-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: var(--v6be-light);
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.5rem;
}

.v6be-bottom-nav-btn:hover,
.v6be-bottom-nav-btn.v6be-active {
  color: var(--v6be-primary);
  transform: scale(1.1);
}

.v6be-bottom-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.v6be-bottom-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Footer */
.v6be-footer {
  background-color: var(--v6be-dark);
  color: var(--v6be-light);
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.v6be-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.v6be-footer-link {
  color: var(--v6be-light);
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--v6be-light);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.v6be-footer-link:hover {
  background-color: var(--v6be-primary);
  border-color: var(--v6be-primary);
  color: var(--v6be-dark);
}

.v6be-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.v6be-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.v6be-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.v6be-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--v6be-text-light);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (min-width: 769px) {
  .v6be-bottom-nav {
    display: none;
  }

  .v6be-main {
    padding-bottom: 0;
  }

  .v6be-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .v6be-menu-toggle {
    display: block;
  }
}

/* Utility Classes */
.v6be-text-center {
  text-align: center;
}

.v6be-mt-1 {
  margin-top: 1rem;
}

.v6be-mb-1 {
  margin-bottom: 1rem;
}

.v6be-mt-2 {
  margin-top: 2rem;
}

.v6be-mb-2 {
  margin-bottom: 2rem;
}

.v6be-p-1 {
  padding: 1rem;
}

.v6be-p-2 {
  padding: 2rem;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v6be-fade-in {
  animation: fadeIn 0.5s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--v6be-light);
}

::-webkit-scrollbar-thumb {
  background: var(--v6be-primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--v6be-dark);
}
