/**
 * ek222.click - Core Layout Stylesheet
 * All classes use "vae6-" prefix for namespace isolation
 * Colors: #B03060 (primary/accent) | #1E1E1E (dark background)
 * Mobile-first responsive design
 */

/* ===== CSS Variables ===== */
:root {
  --vae6-primary: #B03060;
  --vae6-primary-light: #D4487A;
  --vae6-primary-dark: #8A264D;
  --vae6-bg: #1E1E1E;
  --vae6-bg-light: #2A2A2A;
  --vae6-bg-card: #2D2D2D;
  --vae6-text: #F0F0F0;
  --vae6-text-muted: #A0A0A0;
  --vae6-text-dark: #CCCCCC;
  --vae6-accent-gold: #FFD700;
  --vae6-accent-green: #4CAF50;
  --vae6-border: #3A3A3A;
  --vae6-shadow: rgba(0, 0, 0, 0.3);
  --vae6-radius: 8px;
  --vae6-radius-lg: 12px;
  --vae6-transition: all 0.3s ease;
  --vae6-font-base: 62.5%;
}

/* ===== Reset & Base ===== */
html {
  font-size: var(--vae6-font-base);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--vae6-bg);
  color: var(--vae6-text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--vae6-primary-light); text-decoration: none; }
a:hover { color: var(--vae6-accent-gold); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; padding: 0; margin: 0; }

/* ===== Container ===== */
.vae6-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  box-sizing: border-box;
}
.vae6-wrapper {
  width: 100%;
  box-sizing: border-box;
}

/* ===== Header ===== */
.vae6-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, var(--vae6-bg) 0%, var(--vae6-bg-light) 100%);
  border-bottom: 2px solid var(--vae6-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-sizing: border-box;
}
.vae6-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.vae6-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.vae6-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vae6-primary-light);
  letter-spacing: 1px;
}
.vae6-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.vae6-btn-register, .vae6-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: var(--vae6-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--vae6-transition);
  min-height: 34px;
}
.vae6-btn-register {
  background: linear-gradient(135deg, var(--vae6-primary), var(--vae6-primary-light));
  color: #fff;
}
.vae6-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px var(--vae6-shadow);
}
.vae6-btn-login {
  background: transparent;
  color: var(--vae6-primary-light);
  border: 1.5px solid var(--vae6-primary);
}
.vae6-btn-login:hover {
  background: var(--vae6-primary);
  color: #fff;
}
.vae6-menu-toggle {
  background: none;
  border: none;
  color: var(--vae6-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ===== Mobile Menu ===== */
.vae6-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--vae6-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
  overflow-y: auto;
}
.vae6-menu-active { right: 0; }
.vae6-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.vae6-overlay-active {
  opacity: 1;
  pointer-events: auto;
}
.vae6-menu-close {
  background: none;
  border: none;
  color: var(--vae6-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.vae6-menu-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.vae6-menu-list a {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--vae6-text);
  font-size: 1.4rem;
  border-radius: var(--vae6-radius);
  background: var(--vae6-bg-card);
  transition: var(--vae6-transition);
}
.vae6-menu-list a:hover {
  background: var(--vae6-primary);
  color: #fff;
}

/* ===== Main Content ===== */
.vae6-main {
  padding-top: 60px;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .vae6-main {
    padding-bottom: 80px;
  }
}

/* ===== Carousel ===== */
.vae6-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--vae6-radius-lg);
  margin-bottom: 1.5rem;
}
.vae6-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.vae6-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}
.vae6-carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--vae6-radius-lg);
}
.vae6-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.vae6-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: var(--vae6-transition);
}
.vae6-dot-active {
  background: var(--vae6-primary-light);
  width: 20px;
  border-radius: 4px;
}

/* ===== Section Titles ===== */
.vae6-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--vae6-primary-light);
  margin: 2rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--vae6-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.vae6-section-title i, .vae6-section-title .material-icons {
  font-size: 2.2rem;
  color: var(--vae6-accent-gold);
}

/* ===== Game Grid ===== */
.vae6-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.vae6-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--vae6-transition);
  border-radius: var(--vae6-radius);
  padding: 0.5rem;
}
.vae6-game-item:hover {
  transform: translateY(-3px);
  background: var(--vae6-bg-card);
}
.vae6-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--vae6-radius);
  border: 2px solid var(--vae6-border);
  margin-bottom: 0.4rem;
}
.vae6-game-item:hover img {
  border-color: var(--vae6-primary);
}
.vae6-game-name {
  font-size: 1.1rem;
  color: var(--vae6-text-dark);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Cards ===== */
.vae6-card {
  background: var(--vae6-bg-card);
  border-radius: var(--vae6-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--vae6-border);
}
.vae6-card h3 {
  color: var(--vae6-primary-light);
  font-size: 1.6rem;
  margin: 0 0 1rem;
}

/* ===== Promo Buttons ===== */
.vae6-promo-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--vae6-primary), var(--vae6-primary-light));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: var(--vae6-radius-lg);
  cursor: pointer;
  border: none;
  transition: var(--vae6-transition);
  text-align: center;
}
.vae6-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(176, 48, 96, 0.4);
}
.vae6-promo-text {
  color: var(--vae6-primary-light);
  font-weight: 700;
  cursor: pointer;
  transition: var(--vae6-transition);
}
.vae6-promo-text:hover {
  color: var(--vae6-accent-gold);
  text-decoration: underline;
}

/* ===== Footer ===== */
.vae6-footer {
  background: var(--vae6-bg-light);
  border-top: 2px solid var(--vae6-primary);
  padding: 2rem 1.2rem 3rem;
  text-align: center;
}
.vae6-footer-desc {
  font-size: 1.2rem;
  color: var(--vae6-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.vae6-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.vae6-footer-links a {
  padding: 0.5rem 1rem;
  background: var(--vae6-bg-card);
  color: var(--vae6-text-dark);
  border-radius: var(--vae6-radius);
  font-size: 1.2rem;
  border: 1px solid var(--vae6-border);
  transition: var(--vae6-transition);
}
.vae6-footer-links a:hover {
  background: var(--vae6-primary);
  color: #fff;
  border-color: var(--vae6-primary);
}
.vae6-footer-copy {
  font-size: 1.1rem;
  color: var(--vae6-text-muted);
  margin-top: 1rem;
}

/* ===== Bottom Navigation ===== */
.vae6-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(180deg, var(--vae6-bg-light) 0%, var(--vae6-bg) 100%);
  border-top: 2px solid var(--vae6-primary-dark);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
}
.vae6-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--vae6-text-muted);
  cursor: pointer;
  transition: var(--vae6-transition);
  padding: 0.4rem;
}
.vae6-bottom-nav-btn i,
.vae6-bottom-nav-btn .material-icons,
.vae6-bottom-nav-btn ion-icon,
.vae6-bottom-nav-btn bi {
  font-size: 22px;
}
.vae6-bottom-nav-btn span {
  font-size: 1rem;
  margin-top: 2px;
}
.vae6-bottom-nav-btn:hover,
.vae6-bottom-nav-active {
  color: var(--vae6-primary-light);
  transform: scale(1.1);
}
.vae6-bottom-nav-active {
  position: relative;
}
.vae6-bottom-nav-active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--vae6-primary-light);
  border-radius: 2px;
}
@media (min-width: 769px) {
  .vae6-bottom-nav { display: none; }
}

/* ===== Utility ===== */
.vae6-text-center { text-align: center; }
.vae6-mt-1 { margin-top: 1rem; }
.vae6-mt-2 { margin-top: 2rem; }
.vae6-mb-1 { margin-bottom: 1rem; }
.vae6-mb-2 { margin-bottom: 2rem; }
.vae6-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.vae6-hidden { display: none; }

/* ===== Responsive ===== */
@media (max-width: 430px) {
  .vae6-container { padding: 0 0.8rem; }
  .vae6-game-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .vae6-game-name { font-size: 1rem; }
  .vae6-section-title { font-size: 1.7rem; }
}
@media (min-width: 769px) {
  .vae6-container { max-width: 430px; }
}
