/**
 * GBET Theme Styles
 * All classes use w464b- prefix for namespace isolation
 * Color palette: #34495E, #2F2F2F, #00CED1, #D3D3D3, #FFB6C1
 */

/* ===== CSS Variables ===== */
:root {
  --w464b-primary: #00CED1;
  --w464b-primary-dark: #00B5B7;
  --w464b-secondary: #FFB6C1;
  --w464b-dark: #34495E;
  --w464b-darker: #2F2F2F;
  --w464b-light: #D3D3D3;
  --w464b-white: #ffffff;
  --w464b-text: #ecf0f1;
  --w464b-text-muted: #bdc3c7;
  --w464b-bg-dark: #2F2F2F;
  --w464b-bg-card: #34495E;
  --w464b-border: #4a5f7f;
  --w464b-shadow: rgba(0, 0, 0, 0.3);
  --w464b-gradient: linear-gradient(135deg, #00CED1 0%, #FFB6C1 100%);
}

/* ===== Reset & Base ===== */
* {
  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.5;
  color: var(--w464b-text);
  background-color: var(--w464b-darker);
  min-height: 100vh;
}

a {
  color: var(--w464b-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--w464b-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Container ===== */
.w464b-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.w464b-wrapper {
  padding-top: 60px;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .w464b-wrapper {
    padding-bottom: 2rem;
  }
}

/* ===== Header ===== */
.w464b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--w464b-dark);
  border-bottom: 2px solid var(--w464b-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--w464b-shadow);
}

.w464b-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.w464b-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--w464b-primary);
}

.w464b-logo img {
  width: 28px;
  height: 28px;
}

.w464b-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.w464b-btn-header {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.w464b-btn-register {
  background: var(--w464b-gradient);
  color: var(--w464b-white);
}

.w464b-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 206, 209, 0.4);
}

.w464b-btn-login {
  background-color: transparent;
  color: var(--w464b-primary);
  border: 2px solid var(--w464b-primary);
}

.w464b-btn-login:hover {
  background-color: var(--w464b-primary);
  color: var(--w464b-white);
}

.w464b-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--w464b-primary);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 769px) {
  .w464b-menu-toggle {
    display: none;
  }
}

/* ===== Mobile Menu ===== */
.w464b-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--w464b-darker);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.w464b-mobile-menu.w464b-menu-open {
  transform: translateX(0);
}

.w464b-menu-list {
  list-style: none;
}

.w464b-menu-list li {
  border-bottom: 1px solid var(--w464b-border);
}

.w464b-menu-list a {
  display: block;
  padding: 1rem 0;
  color: var(--w464b-text);
  font-size: 1.6rem;
  transition: padding-left 0.3s ease;
}

.w464b-menu-list a:hover {
  padding-left: 1rem;
  color: var(--w464b-primary);
}

@media (min-width: 769px) {
  .w464b-mobile-menu {
    display: none;
  }
}

/* ===== Carousel ===== */
.w464b-carousel {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 8px;
}

.w464b-carousel-slide {
  display: none;
}

.w464b-carousel-slide:first-child {
  display: block;
}

.w464b-carousel-slide img {
  width: 100%;
  height: auto;
  cursor: pointer;
}

.w464b-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(47, 47, 47, 0.9), transparent);
}

.w464b-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--w464b-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.w464b-carousel-indicator.w464b-active,
.w464b-carousel-indicator:hover {
  background-color: var(--w464b-primary);
  transform: scale(1.2);
}

/* ===== Hero Section ===== */
.w464b-hero {
  text-align: center;
  padding: 2rem 0;
}

.w464b-hero h1 {
  font-size: 2.2rem;
  color: var(--w464b-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.w464b-hero p {
  font-size: 1.4rem;
  color: var(--w464b-text-muted);
  max-width: 380px;
  margin: 0 auto;
}

/* ===== Game Section ===== */
.w464b-section {
  margin-bottom: 2.5rem;
}

.w464b-section-title {
  font-size: 1.8rem;
  color: var(--w464b-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--w464b-border);
}

.w464b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.w464b-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.w464b-game-item:hover {
  transform: scale(1.05);
}

.w464b-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.3rem;
  border: 2px solid var(--w464b-border);
}

.w464b-game-item span {
  display: block;
  font-size: 1rem;
  color: var(--w464b-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Card ===== */
.w464b-card {
  background-color: var(--w464b-bg-card);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--w464b-border);
}

.w464b-card h3 {
  color: var(--w464b-primary);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.w464b-card p {
  color: var(--w464b-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ===== Button ===== */
.w464b-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.w464b-btn-primary {
  background: var(--w464b-gradient);
  color: var(--w464b-white);
}

.w464b-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 206, 209, 0.4);
}

.w464b-btn-secondary {
  background-color: transparent;
  color: var(--w464b-primary);
  border: 2px solid var(--w464b-primary);
}

.w464b-btn-secondary:hover {
  background-color: var(--w464b-primary);
  color: var(--w464b-white);
}

/* ===== Bottom Navigation ===== */
.w464b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--w464b-dark);
  border-top: 2px solid var(--w464b-primary);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  box-shadow: 0 -2px 10px var(--w464b-shadow);
}

.w464b-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: var(--w464b-text-muted);
  transition: all 0.3s ease;
}

.w464b-bottom-nav a:hover,
.w464b-bottom-nav a.w464b-nav-active {
  color: var(--w464b-primary);
}

.w464b-bottom-nav i {
  font-size: 24px;
  margin-bottom: 0.3rem;
}

.w464b-bottom-nav span {
  font-size: 1rem;
  font-weight: 500;
}

@media (min-width: 769px) {
  .w464b-bottom-nav {
    display: none;
  }
}

/* ===== Footer ===== */
.w464b-footer {
  background-color: var(--w464b-darker);
  border-top: 2px solid var(--w464b-border);
  padding: 2rem 0 6rem 0;
  margin-top: 3rem;
}

.w464b-footer-section {
  margin-bottom: 2rem;
}

.w464b-footer-title {
  color: var(--w464b-primary);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.w464b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.w464b-footer-links a {
  color: var(--w464b-text-muted);
  font-size: 1.3rem;
  padding: 0.3rem 0.8rem;
  background-color: var(--w464b-bg-card);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.w464b-footer-links a:hover {
  background-color: var(--w464b-primary);
  color: var(--w464b-white);
}

.w464b-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.w464b-partners img {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.w464b-partners img:hover {
  opacity: 1;
}

.w464b-copyright {
  text-align: center;
  color: var(--w464b-text-muted);
  font-size: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--w464b-border);
}

/* ===== Animations ===== */
.w464b-animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.w464b-animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Utility Classes ===== */
.w464b-text-center {
  text-align: center;
}

.w464b-mt-1 {
  margin-top: 1rem;
}

.w464b-mt-2 {
  margin-top: 2rem;
}

.w464b-mb-1 {
  margin-bottom: 1rem;
}

.w464b-mb-2 {
  margin-bottom: 2rem;
}
