/**
 * 7games asia - Main Stylesheet
 * All classes use w42a0- prefix to avoid naming conflicts
 * Mobile-first responsive design
 */

/* ========== CSS Variables ========== */
:root {
  --w42a0-primary: #880E4F;
  --w42a0-secondary: #FFB6C1;
  --w42a0-accent: #FF8000;
  --w42a0-dark: #3A3A3A;
  --w42a0-bg-dark: #1a1a1a;
  --w42a0-bg-darker: #0d0d0d;
  --w42a0-text-light: #ffffff;
  --w42a0-text-secondary: #e0e0e0;
  --w42a0-border: rgba(255, 182, 193, 0.2);
  --w42a0-shadow: rgba(136, 14, 79, 0.3);
  --w42a0-overlay: rgba(0, 0, 0, 0.8);
}

/* ========== 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.5;
  color: var(--w42a0-text-light);
  background-color: var(--w42a0-bg-darker);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--w42a0-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--w42a0-accent);
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* ========== Container & Layout ========== */
.w42a0-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.w42a0-wrapper {
  width: 100%;
  overflow: hidden;
}

.w42a0-main {
  min-height: 100vh;
  padding-top: 6rem;
  padding-bottom: 8rem;
}

/* ========== Header ========== */
.w42a0-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--w42a0-primary), var(--w42a0-dark));
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.w42a0-header.scrolled {
  box-shadow: 0 0.4rem 1.2rem var(--w42a0-shadow);
}

.w42a0-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  max-width: 430px;
  margin: 0 auto;
}

.w42a0-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.w42a0-logo-img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
}

.w42a0-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w42a0-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.w42a0-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.w42a0-btn-register,
.w42a0-btn-login {
  padding: 0.8rem 1.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 2rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.w42a0-btn-register {
  background: linear-gradient(135deg, var(--w42a0-accent), #ff6b00);
  color: var(--w42a0-text-light);
}

.w42a0-btn-register:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.4rem 1.2rem rgba(255, 128, 0, 0.4);
}

.w42a0-btn-login {
  background: transparent;
  color: var(--w42a0-secondary);
  border: 0.2rem solid var(--w42a0-secondary);
}

.w42a0-btn-login:hover {
  background: var(--w42a0-secondary);
  color: var(--w42a0-dark);
}

.w42a0-menu-toggle {
  background: transparent;
  color: var(--w42a0-text-light);
  font-size: 2.4rem;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== Mobile Menu ========== */
.w42a0-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--w42a0-overlay);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.w42a0-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.w42a0-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 32rem;
  height: 100vh;
  background: linear-gradient(180deg, var(--w42a0-dark), var(--w42a0-bg-dark));
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -0.4rem 0 2rem rgba(0, 0, 0, 0.5);
}

.w42a0-mobile-menu.active {
  right: 0;
}

.w42a0-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  border-bottom: 0.1rem solid var(--w42a0-border);
}

.w42a0-mobile-menu-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w42a0-secondary);
}

.w42a0-menu-close {
  background: transparent;
  color: var(--w42a0-text-light);
  font-size: 2.4rem;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w42a0-mobile-menu-nav {
  padding: 2rem 0;
}

.w42a0-mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  color: var(--w42a0-text-secondary);
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.w42a0-mobile-nav-link:hover,
.w42a0-mobile-nav-link.active {
  background: rgba(255, 182, 193, 0.1);
  color: var(--w42a0-secondary);
  padding-left: 2.5rem;
}

.w42a0-mobile-nav-link i {
  margin-right: 1.2rem;
  font-size: 2rem;
}

/* ========== Bottom Navigation ========== */
.w42a0-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--w42a0-primary), var(--w42a0-dark));
  z-index: 1000;
  box-shadow: 0 -0.4rem 1.2rem var(--w42a0-shadow);
}

.w42a0-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  padding: 0.8rem 0;
}

.w42a0-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  color: var(--w42a0-text-secondary);
  transition: all 0.3s ease;
  border-radius: 1rem;
}

.w42a0-bottom-nav-btn:hover,
.w42a0-bottom-nav-btn.active {
  color: var(--w42a0-accent);
  transform: translateY(-0.2rem);
}

.w42a0-bottom-nav-btn i {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.w42a0-bottom-nav-text {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ========== Carousel ========== */
.w42a0-carousel {
  position: relative;
  width: 100%;
  height: 24rem;
  overflow: hidden;
  border-radius: 1.2rem;
  margin: 2rem 0;
}

.w42a0-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.w42a0-carousel-slide.active {
  opacity: 1;
}

.w42a0-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w42a0-carousel-dots {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.w42a0-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.w42a0-carousel-dot.active {
  width: 2.4rem;
  border-radius: 0.4rem;
  background: var(--w42a0-accent);
}

/* ========== Section ========== */
.w42a0-section {
  padding: 3rem 0;
}

.w42a0-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--w42a0-secondary);
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.w42a0-section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--w42a0-accent);
  margin: 2rem 0 1.5rem;
  text-transform: uppercase;
}

.w42a0-section-content {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--w42a0-text-secondary);
  margin-bottom: 1.5rem;
}

/* ========== Game Grid ========== */
.w42a0-game-category {
  margin-bottom: 3rem;
}

.w42a0-game-category-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--w42a0-accent);
  margin-bottom: 1.5rem;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.w42a0-game-category-title i {
  font-size: 2.4rem;
}

.w42a0-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.w42a0-game-item {
  background: var(--w42a0-dark);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 0.2rem solid transparent;
}

.w42a0-game-item:hover {
  transform: translateY(-0.4rem);
  border-color: var(--w42a0-accent);
  box-shadow: 0 0.8rem 1.6rem var(--w42a0-shadow);
}

.w42a0-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.w42a0-game-name {
  padding: 0.8rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--w42a0-text-light);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== Promo Link ========== */
.w42a0-promo-link {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background: linear-gradient(135deg, var(--w42a0-accent), #ff6b00);
  color: var(--w42a0-text-light);
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 0 0.4rem 1.2rem rgba(255, 128, 0, 0.3);
  cursor: pointer;
}

.w42a0-promo-link:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 0.8rem 2rem rgba(255, 128, 0, 0.5);
  color: var(--w42a0-text-light);
}

.w42a0-promo-text {
  color: var(--w42a0-accent);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.w42a0-promo-text:hover {
  color: var(--w42a0-secondary);
  text-decoration: underline;
}

/* ========== Card ========== */
.w42a0-card {
  background: var(--w42a0-dark);
  border-radius: 1.2rem;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 0.1rem solid var(--w42a0-border);
}

.w42a0-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--w42a0-secondary);
  margin-bottom: 1.5rem;
}

.w42a0-card-content {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--w42a0-text-secondary);
}

/* ========== List ========== */
.w42a0-list {
  list-style: none;
  padding: 0;
}

.w42a0-list-item {
  padding: 1.2rem 0;
  border-bottom: 0.1rem solid var(--w42a0-border);
  font-size: 1.5rem;
  color: var(--w42a0-text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.w42a0-list-item:last-child {
  border-bottom: none;
}

.w42a0-list-item i {
  color: var(--w42a0-accent);
  font-size: 1.8rem;
  margin-top: 0.2rem;
}

/* ========== FAQ ========== */
.w42a0-faq-item {
  background: var(--w42a0-dark);
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  border: 0.1rem solid var(--w42a0-border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.w42a0-faq-question {
  padding: 1.5rem 2rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--w42a0-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.w42a0-faq-question:hover {
  background: rgba(255, 182, 193, 0.05);
}

.w42a0-faq-question i {
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.w42a0-faq-item.active .w42a0-faq-question i {
  transform: rotate(180deg);
}

.w42a0-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.w42a0-faq-item.active .w42a0-faq-answer {
  max-height: 100rem;
}

.w42a0-faq-answer-content {
  padding: 0 2rem 1.5rem;
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--w42a0-text-secondary);
}

/* ========== Footer ========== */
.w42a0-footer {
  background: var(--w42a0-bg-dark);
  padding: 3rem 0 10rem;
  border-top: 0.1rem solid var(--w42a0-border);
}

.w42a0-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.w42a0-footer-link {
  font-size: 1.4rem;
  color: var(--w42a0-text-secondary);
}

.w42a0-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--w42a0-dark);
  border-radius: 1rem;
}

.w42a0-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.w42a0-partner-logo:hover {
  opacity: 1;
}

.w42a0-copyright {
  text-align: center;
  font-size: 1.3rem;
  color: var(--w42a0-text-secondary);
  padding: 2rem 0;
}

/* ========== Responsive Design ========== */
@media (min-width: 769px) {
  .w42a0-bottom-nav {
    display: none;
  }

  .w42a0-main {
    padding-bottom: 3rem;
  }

  .w42a0-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .w42a0-main {
    padding-bottom: 8rem;
  }
}
