/**
 * EEJL Login - Layout Stylesheet
 * All classes use w1ab2- prefix for namespace isolation
 * Colors: #ADD8E6 (light blue) | #0000FF (blue) | #141414 (dark) | #5F9EA0 (cadet blue)
 */

:root {
  --w1ab2-primary: #0000FF;
  --w1ab2-secondary: #ADD8E6;
  --w1ab2-accent: #5F9EA0;
  --w1ab2-bg: #141414;
  --w1ab2-bg-light: #1e1e2e;
  --w1ab2-bg-card: #1a1a2e;
  --w1ab2-text: #ADD8E6;
  --w1ab2-text-light: #e0e0e0;
  --w1ab2-text-muted: #8a8aa0;
  --w1ab2-border: #2a2a3e;
  --w1ab2-success: #00d4aa;
  --w1ab2-warning: #ffd700;
  --w1ab2-radius: 0.8rem;
  --w1ab2-radius-sm: 0.4rem;
  --w1ab2-shadow: 0 0.2rem 1rem rgba(0, 0, 255, 0.15);
}

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

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

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--w1ab2-bg);
  color: var(--w1ab2-text-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--w1ab2-secondary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========== HEADER ========== */
.w1ab2-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, #141414 0%, #1a1a3e 100%);
  border-bottom: 0.1rem solid var(--w1ab2-primary);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.w1ab2-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w1ab2-logo-area img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.4rem;
}

.w1ab2-logo-area span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w1ab2-secondary);
  letter-spacing: 0.05rem;
}

.w1ab2-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w1ab2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  min-width: 4.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--w1ab2-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.w1ab2-btn-register {
  background: var(--w1ab2-primary);
  color: #fff;
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 255, 0.35);
}

.w1ab2-btn-register:hover { background: #1a1aff; transform: translateY(-0.1rem); }

.w1ab2-btn-login {
  background: transparent;
  color: var(--w1ab2-secondary);
  border: 0.1rem solid var(--w1ab2-primary);
}

.w1ab2-btn-login:hover { background: rgba(0, 0, 255, 0.15); }

.w1ab2-menu-toggle {
  background: none;
  border: none;
  color: var(--w1ab2-secondary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 3.6rem;
  min-height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== MOBILE MENU ========== */
.w1ab2-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
}

.w1ab2-overlay-active { display: block; }

.w1ab2-mobile-menu {
  position: fixed;
  top: 0;
  right: -75%;
  width: 75%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, #141428 0%, #141414 100%);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  border-left: 0.1rem solid var(--w1ab2-primary);
}

.w1ab2-menu-active { right: 0; }

.w1ab2-mobile-menu .w1ab2-menu-close {
  background: none;
  border: none;
  color: var(--w1ab2-secondary);
  font-size: 2.2rem;
  cursor: pointer;
  float: right;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w1ab2-menu-links {
  clear: both;
  padding-top: 1.5rem;
  list-style: none;
}

.w1ab2-menu-links li {
  border-bottom: 0.1rem solid var(--w1ab2-border);
}

.w1ab2-menu-links a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 0.5rem;
  font-size: 1.4rem;
  color: var(--w1ab2-text-light);
  transition: color 0.2s;
}

.w1ab2-menu-links a:hover { color: var(--w1ab2-secondary); }

/* ========== MAIN CONTENT ========== */
.w1ab2-main {
  padding-top: 5.4rem;
  padding-bottom: 2rem;
  min-height: 100vh;
}

/* ========== CAROUSEL ========== */
.w1ab2-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 430/200;
  overflow: hidden;
  background: var(--w1ab2-bg-light);
}

.w1ab2-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.w1ab2-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w1ab2-slide-active { opacity: 1; }

.w1ab2-carousel-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.w1ab2-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(173, 216, 230, 0.4);
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.w1ab2-dot-active {
  background: var(--w1ab2-primary);
  box-shadow: 0 0 0.5rem rgba(0, 0, 255, 0.5);
}

/* ========== SECTIONS ========== */
.w1ab2-section {
  padding: 1.5rem 1rem;
}

.w1ab2-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w1ab2-secondary);
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 0.3rem solid var(--w1ab2-primary);
  line-height: 2rem;
}

.w1ab2-section-title i {
  margin-right: 0.5rem;
  font-size: 1.6rem;
}

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

.w1ab2-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  background: var(--w1ab2-bg-card);
  border-radius: var(--w1ab2-radius-sm);
  padding: 0.4rem;
  border: 0.1rem solid transparent;
}

.w1ab2-game-item:hover {
  transform: translateY(-0.2rem);
  border-color: var(--w1ab2-primary);
}

.w1ab2-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--w1ab2-radius-sm);
  object-fit: cover;
}

.w1ab2-game-item span {
  font-size: 1rem;
  color: var(--w1ab2-text-light);
  text-align: center;
  padding: 0.3rem 0.1rem;
  line-height: 1.2rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ========== CONTENT CARDS ========== */
.w1ab2-card {
  background: var(--w1ab2-bg-card);
  border-radius: var(--w1ab2-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 0.1rem solid var(--w1ab2-border);
}

.w1ab2-card h2 {
  font-size: 1.6rem;
  color: var(--w1ab2-secondary);
  margin-bottom: 0.8rem;
}

.w1ab2-card h3 {
  font-size: 1.4rem;
  color: var(--w1ab2-secondary);
  margin-bottom: 0.6rem;
}

.w1ab2-card p {
  font-size: 1.3rem;
  color: var(--w1ab2-text-light);
  line-height: 1.7rem;
  margin-bottom: 0.6rem;
}

.w1ab2-card ul {
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.w1ab2-card li {
  font-size: 1.3rem;
  color: var(--w1ab2-text-light);
  line-height: 1.7rem;
  margin-bottom: 0.3rem;
}

/* ========== PROMO LINK ========== */
.w1ab2-promo-link {
  color: var(--w1ab2-warning);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.w1ab2-promo-link:hover { color: var(--w1ab2-secondary); }

.w1ab2-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--w1ab2-primary), #4400cc);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: var(--w1ab2-radius);
  cursor: pointer;
  border: none;
  min-height: 4.4rem;
  min-width: 8rem;
  text-align: center;
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 255, 0.3);
  transition: all 0.3s ease;
}

.w1ab2-promo-btn:hover {
  transform: translateY(-0.15rem);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 255, 0.45);
}

/* ========== FOOTER ========== */
.w1ab2-footer {
  background: linear-gradient(180deg, var(--w1ab2-bg-card) 0%, #0a0a14 100%);
  padding: 2rem 1rem 1rem;
  border-top: 0.1rem solid var(--w1ab2-primary);
}

.w1ab2-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.w1ab2-footer-brand p {
  font-size: 1.2rem;
  color: var(--w1ab2-text-muted);
  line-height: 1.6rem;
}

.w1ab2-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.w1ab2-footer-links a {
  font-size: 1.2rem;
  color: var(--w1ab2-text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: var(--w1ab2-radius-sm);
  border: 0.1rem solid var(--w1ab2-border);
  transition: all 0.2s;
}

.w1ab2-footer-links a:hover {
  color: var(--w1ab2-secondary);
  border-color: var(--w1ab2-primary);
}

.w1ab2-footer-promos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.w1ab2-footer-promos button {
  background: var(--w1ab2-primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--w1ab2-radius-sm);
  border: none;
  cursor: pointer;
  min-height: 3.6rem;
  transition: all 0.2s;
}

.w1ab2-footer-promos button:hover { background: #1a1aff; }

.w1ab2-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--w1ab2-text-muted);
  padding-top: 1rem;
  border-top: 0.1rem solid var(--w1ab2-border);
}

/* ========== BOTTOM NAVIGATION ========== */
.w1ab2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(135deg, #141428 0%, #0d0d1e 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 0.15rem solid var(--w1ab2-primary);
  box-shadow: 0 -0.3rem 1rem rgba(0, 0, 255, 0.15);
}

.w1ab2-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--w1ab2-text-muted);
  transition: all 0.25s ease;
  gap: 0.15rem;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.w1ab2-bottom-nav-item i,
.w1ab2-bottom-nav-item .material-icons {
  font-size: 2.2rem;
  transition: all 0.25s ease;
}

.w1ab2-bottom-nav-item span {
  font-size: 1rem;
  transition: color 0.25s ease;
}

.w1ab2-bottom-nav-item:hover,
.w1ab2-bottom-nav-item:focus {
  color: var(--w1ab2-secondary);
}

.w1ab2-bottom-nav-item:hover i,
.w1ab2-bottom-nav-item:hover .material-icons {
  transform: scale(1.1);
}

.w1ab2-bottom-nav-active {
  color: var(--w1ab2-primary) !important;
}

.w1ab2-bottom-nav-active i {
  color: var(--w1ab2-primary);
  filter: drop-shadow(0 0 0.5rem rgba(0, 0, 255, 0.5));
}

/* ========== HELP PAGE STYLES ========== */
.w1ab2-help-content {
  padding: 1.5rem 1rem;
}

.w1ab2-help-content h1 {
  font-size: 2rem;
  color: var(--w1ab2-secondary);
  margin-bottom: 1rem;
  line-height: 2.4rem;
}

.w1ab2-help-content h2 {
  font-size: 1.6rem;
  color: var(--w1ab2-secondary);
  margin: 1.2rem 0 0.6rem;
}

.w1ab2-faq-item {
  background: var(--w1ab2-bg-card);
  border-radius: var(--w1ab2-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border: 0.1rem solid var(--w1ab2-border);
  border-left: 0.3rem solid var(--w1ab2-primary);
}

.w1ab2-faq-item h3 {
  font-size: 1.3rem;
  color: var(--w1ab2-secondary);
  margin-bottom: 0.4rem;
}

.w1ab2-faq-item p {
  font-size: 1.2rem;
  color: var(--w1ab2-text-light);
  line-height: 1.6rem;
}

/* ========== UTILITY ========== */
.w1ab2-text-center { text-align: center; }
.w1ab2-mt-1 { margin-top: 0.5rem; }
.w1ab2-mt-2 { margin-top: 1rem; }
.w1ab2-mb-1 { margin-bottom: 0.5rem; }
.w1ab2-mb-2 { margin-bottom: 1rem; }
.w1ab2-hidden { display: none; }

.w1ab2-chip {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 0, 255, 0.15);
  color: var(--w1ab2-secondary);
  border-radius: 2rem;
  font-size: 1.1rem;
  margin: 0.2rem;
}

/* ========== TESTIMONIALS ========== */
.w1ab2-testimonial {
  background: var(--w1ab2-bg-card);
  border-radius: var(--w1ab2-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 0.3rem solid var(--w1ab2-accent);
}

.w1ab2-testimonial p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--w1ab2-text-light);
  line-height: 1.6rem;
}

.w1ab2-testimonial cite {
  font-size: 1.1rem;
  color: var(--w1ab2-text-muted);
  margin-top: 0.4rem;
  display: block;
}

/* ========== WINNERS LIST ========== */
.w1ab2-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0.6rem;
  border-bottom: 0.1rem solid var(--w1ab2-border);
  font-size: 1.2rem;
}

.w1ab2-winner-row:last-child { border-bottom: none; }

.w1ab2-winner-name { color: var(--w1ab2-secondary); font-weight: 600; }
.w1ab2-winner-game { color: var(--w1ab2-text-muted); }
.w1ab2-winner-amount { color: var(--w1ab2-warning); font-weight: 700; }

/* ========== DESKTOP HIDE BOTTOM NAV ========== */
@media (min-width: 769px) {
  .w1ab2-bottom-nav { display: none; }
}

/* ========== MOBILE BOTTOM PADDING ========== */
@media (max-width: 768px) {
  .w1ab2-main { padding-bottom: 7.5rem; }
  .w1ab2-footer { padding-bottom: 7rem; }
}

/* ========== INTERNAL LINK STYLE ========== */
.w1ab2-internal-link {
  color: var(--w1ab2-accent);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

.w1ab2-internal-link:hover {
  color: var(--w1ab2-secondary);
}

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

.w1ab2-payment-row span {
  background: var(--w1ab2-bg-light);
  padding: 0.5rem 1rem;
  border-radius: var(--w1ab2-radius-sm);
  font-size: 1.2rem;
  color: var(--w1ab2-text);
  border: 0.1rem solid var(--w1ab2-border);
}

/* ========== HIGHLIGHT BOX ========== */
.w1ab2-highlight-box {
  background: linear-gradient(135deg, rgba(0, 0, 255, 0.1), rgba(95, 158, 160, 0.1));
  border: 0.1rem solid var(--w1ab2-primary);
  border-radius: var(--w1ab2-radius);
  padding: 1.2rem;
  text-align: center;
  margin: 1rem 0;
}

.w1ab2-highlight-box p {
  font-size: 1.3rem;
  color: var(--w1ab2-text-light);
  line-height: 1.7rem;
}
