/* m71bat.css - Core Stylesheet for m71bat gaming platform */
/* All classes use we078- prefix for namespace isolation */
/* Color Palette: #1A1A2E | #9966CC | #4B0082 | #E0F2F1 | #8470FF */

:root {
  --we078-primary: #9966CC;
  --we078-bg: #1A1A2E;
  --we078-text: #E0F2F1;
  --we078-accent: #8470FF;
  --we078-dark: #4B0082;
  --we078-radius: 8px;
  --we078-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--we078-bg);
  color: var(--we078-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

/* === HEADER === */
.we078-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: linear-gradient(135deg, var(--we078-dark), var(--we078-bg));
  border-bottom: 1px solid var(--we078-primary);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.we078-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.we078-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.we078-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--we078-primary);
  letter-spacing: 0.5px;
}

.we078-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.we078-btn-register {
  background: linear-gradient(135deg, var(--we078-primary), var(--we078-accent));
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.we078-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px var(--we078-primary);
}

.we078-btn-login {
  background: transparent;
  color: var(--we078-primary);
  border: 1.5px solid var(--we078-primary);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.we078-btn-login:hover {
  background: var(--we078-primary);
  color: #fff;
}

.we078-menu-btn {
  background: none;
  border: none;
  color: var(--we078-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem;
}

/* === MOBILE MENU === */
.we078-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, var(--we078-dark), var(--we078-bg));
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.we078-menu-active {
  right: 0 !important;
}

.we078-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  display: none;
}

.we078-overlay-active {
  display: block !important;
}

.we078-menu-close {
  background: none;
  border: none;
  color: var(--we078-text);
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.we078-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--we078-primary);
  margin-bottom: 2rem;
  padding-top: 1rem;
}

.we078-menu-link {
  display: block;
  padding: 1rem 0;
  color: var(--we078-text);
  text-decoration: none;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(153, 102, 204, 0.2);
  transition: color 0.2s, padding-left 0.2s;
}

.we078-menu-link:hover {
  color: var(--we078-primary);
  padding-left: 0.5rem;
}

/* === MAIN CONTENT === */
.we078-main {
  padding-top: 52px;
  min-height: 100vh;
}

/* === CAROUSEL === */
.we078-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.we078-slides {
  display: flex;
  width: 300%;
  height: 100%;
}

.we078-slide {
  width: 100%;
  flex-shrink: 0;
  position: relative;
}

.we078-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.we078-slide-active {
  /* active state */
}

.we078-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.we078-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.we078-dot-active {
  background: var(--we078-primary);
  width: 20px;
  border-radius: 4px;
}

/* === SECTION TITLES === */
.we078-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--we078-primary);
  padding: 1.5rem 1rem 0.8rem;
  border-left: 3px solid var(--we078-accent);
  margin: 0.5rem 1rem 0;
}

/* === GAME GRID === */
.we078-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0.8rem 1rem;
}

.we078-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.we078-game-item:hover {
  transform: scale(1.05);
}

.we078-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--we078-radius);
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.we078-game-item:hover .we078-game-img {
  border-color: var(--we078-primary);
}

.we078-game-name {
  font-size: 1.1rem;
  margin-top: 0.3rem;
  color: var(--we078-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === CATEGORY LABEL === */
.we078-cat-label {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--we078-accent);
  padding: 1.2rem 1rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.we078-cat-label i,
.we078-cat-label span.material-symbols-outlined {
  font-size: 2rem;
}

/* === CONTENT SECTIONS === */
.we078-content-section {
  padding: 1rem;
  margin: 0.5rem 0;
}

.we078-content-section h2 {
  font-size: 1.6rem;
  color: var(--we078-primary);
  margin-bottom: 0.8rem;
}

.we078-content-section h3 {
  font-size: 1.4rem;
  color: var(--we078-accent);
  margin-bottom: 0.6rem;
}

.we078-content-section p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--we078-text);
  margin-bottom: 0.8rem;
}

.we078-content-section ul {
  list-style: none;
  padding: 0;
}

.we078-content-section li {
  font-size: 1.3rem;
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--we078-text);
}

.we078-content-section li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--we078-accent);
  font-size: 1rem;
}

/* === PROMO BUTTON === */
.we078-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--we078-primary), var(--we078-accent));
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.we078-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(132, 112, 255, 0.5);
}

.we078-promo-text {
  color: var(--we078-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.2s;
}

.we078-promo-text:hover {
  color: var(--we078-accent);
  text-decoration: underline;
}

/* === CARDS === */
.we078-card {
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.3), rgba(26, 26, 46, 0.8));
  border: 1px solid rgba(153, 102, 204, 0.2);
  border-radius: var(--we078-radius);
  padding: 1rem;
  margin: 0.5rem 0;
  transition: border-color 0.2s;
}

.we078-card:hover {
  border-color: var(--we078-primary);
}

/* === FOOTER === */
.we078-footer {
  background: linear-gradient(180deg, var(--we078-dark), #0d0d1a);
  padding: 1.5rem 1rem 2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--we078-primary);
}

.we078-footer-brand {
  font-size: 1.3rem;
  color: var(--we078-text);
  margin-bottom: 1rem;
  line-height: 1.7rem;
  opacity: 0.85;
}

.we078-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.we078-footer-link {
  background: rgba(153, 102, 204, 0.15);
  color: var(--we078-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.we078-footer-link:hover {
  background: rgba(153, 102, 204, 0.3);
}

.we078-footer-site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.we078-footer-site-links a {
  color: var(--we078-text);
  font-size: 1.1rem;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.we078-footer-site-links a:hover {
  opacity: 1;
  color: var(--we078-primary);
}

.we078-copyright {
  font-size: 1.1rem;
  color: var(--we078-text);
  opacity: 0.5;
  text-align: center;
  margin-top: 1rem;
}

/* === BOTTOM NAV === */
.we078-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: linear-gradient(180deg, var(--we078-dark), #0d0d1a);
  border-top: 1px solid rgba(153, 102, 204, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.3rem;
}

.we078-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--we078-text);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  opacity: 0.7;
  padding: 0.4rem;
}

.we078-bottom-nav-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.we078-nav-active {
  color: var(--we078-primary) !important;
  opacity: 1 !important;
}

.we078-nav-label {
  font-size: 1rem;
  margin-top: 0.2rem;
}

/* === INTERNAL LINK === */
.we078-internal-link {
  color: var(--we078-accent);
  text-decoration: underline;
  font-size: 1.3rem;
}

.we078-internal-link:hover {
  color: var(--we078-primary);
}

/* === WINNER LIST === */
.we078-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(153, 102, 204, 0.1);
}

.we078-winner-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--we078-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.we078-winner-name {
  flex: 1;
  font-size: 1.2rem;
  color: var(--we078-text);
}

.we078-winner-amount {
  font-size: 1.2rem;
  color: #FFD700;
  font-weight: 700;
}

/* === PAYMENT ICONS === */
.we078-payment-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.we078-payment-icon {
  background: rgba(153, 102, 204, 0.1);
  padding: 0.6rem 1rem;
  border-radius: var(--we078-radius);
  font-size: 1.2rem;
  color: var(--we078-text);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .we078-main {
    padding-bottom: 75px;
  }
}

@media (min-width: 769px) {
  .we078-bottom-nav {
    display: none;
  }
}

/* === FAQ SECTION === */
.we078-faq-item {
  background: rgba(75, 0, 130, 0.15);
  border-radius: var(--we078-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.we078-faq-q {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--we078-primary);
  margin-bottom: 0.5rem;
}

.we078-faq-a {
  font-size: 1.3rem;
  color: var(--we078-text);
  line-height: 1.7rem;
}

/* === TESTIMONIAL === */
.we078-testimonial {
  background: rgba(75, 0, 130, 0.15);
  border-left: 3px solid var(--we078-primary);
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
  border-radius: 0 var(--we078-radius) var(--we078-radius) 0;
}

.we078-testimonial-text {
  font-size: 1.3rem;
  color: var(--we078-text);
  font-style: italic;
  margin-bottom: 0.4rem;
}

.we078-testimonial-author {
  font-size: 1.1rem;
  color: var(--we078-accent);
  font-weight: 600;
}
