/* Arenaplus Apps - Main Stylesheet */
/* Class prefix: wbe41- */
/* Colors: #40E0D0 | #1B263B | #4169E1 | #D2691E | #0000FF | #ADB5BD */

/* === CSS Variables === */
:root {
  --wbe41-primary: #40E0D0;
  --wbe41-bg: #1B263B;
  --wbe41-accent: #4169E1;
  --wbe41-highlight: #D2691E;
  --wbe41-link: #0000FF;
  --wbe41-muted: #ADB5BD;
  --wbe41-dark: #111827;
  --wbe41-card: #1f2d45;
  --wbe41-text: #e8eaed;
  --wbe41-white: #ffffff;
  --wbe41-radius: 8px;
  --wbe41-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--wbe41-bg);
  color: var(--wbe41-text);
  line-height: 1.6;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--wbe41-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--wbe41-white); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Header === */
.wbe41-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 56px;
  background: linear-gradient(135deg, var(--wbe41-bg) 0%, #0f1a2e 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; z-index: 1000;
  border-bottom: 2px solid var(--wbe41-primary);
  transition: all 0.3s ease;
}
.wbe41-header-scrolled { box-shadow: 0 4px 20px rgba(64,224,208,0.15); }
.wbe41-header-logo {
  font-size: 18px; font-weight: 800; color: var(--wbe41-primary);
  letter-spacing: 0.5px; white-space: nowrap;
}
.wbe41-header-logo span { color: var(--wbe41-white); }
.wbe41-header-actions { display: flex; gap: 8px; align-items: center; }
.wbe41-btn-register {
  background: linear-gradient(135deg, var(--wbe41-primary), #2db8a8);
  color: var(--wbe41-dark); font-weight: 700; font-size: 13px;
  padding: 7px 16px; border-radius: 20px; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wbe41-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(64,224,208,0.4); }
.wbe41-btn-login {
  background: transparent; color: var(--wbe41-primary);
  border: 1.5px solid var(--wbe41-primary); font-weight: 600; font-size: 13px;
  padding: 6px 14px; border-radius: 20px; cursor: pointer;
  transition: background 0.2s;
}
.wbe41-btn-login:hover { background: rgba(64,224,208,0.1); }
.wbe41-menu-toggle {
  background: none; border: none; color: var(--wbe41-primary);
  font-size: 22px; cursor: pointer; padding: 4px;
}

/* === Mobile Menu === */
#pro196MobileMenu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--wbe41-dark); z-index: 9999; transition: right 0.3s ease;
  padding: 20px; overflow-y: auto;
}
.pro196-menu-active { right: 0 !important; }
#pro196MenuOverlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998; display: none;
}
.pro196-overlay-active { display: block !important; }
.pro196-menu-close {
  background: none; border: none; color: var(--wbe41-primary);
  font-size: 24px; cursor: pointer; float: right; margin-bottom: 20px;
}
.pro196-menu-links { clear: both; padding-top: 10px; }
.pro196-menu-links a {
  display: block; padding: 12px 0; color: var(--wbe41-text);
  border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 15px;
  transition: color 0.2s;
}
.pro196-menu-links a:hover { color: var(--wbe41-primary); }

/* === Main Content === */
main { padding-top: 56px; }
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* === Carousel === */
.wbe41-carousel { position: relative; overflow: hidden; margin-top: 4px; }
.wbe41-carousel-slide {
  display: none; width: 100%; cursor: pointer;
  border-radius: 0;
}
.wbe41-carousel-slide img { width: 100%; height: auto; min-height: 160px; object-fit: cover; }
.pro196-slide-active { display: block !important; }
.wbe41-carousel-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 8px;
}
.pro196-carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: background 0.3s;
}
.pro196-dot-active { background: var(--wbe41-primary) !important; }

/* === Section Titles === */
.wbe41-section-title {
  font-size: 20px; font-weight: 800; color: var(--wbe41-white);
  padding: 16px 12px 8px; display: flex; align-items: center; gap: 8px;
}
.wbe41-section-title::before {
  content: ''; width: 4px; height: 22px; background: var(--wbe41-primary);
  border-radius: 2px;
}
.wbe41-section-title .wbe41-view-all {
  margin-left: auto; font-size: 13px; font-weight: 500;
  color: var(--wbe41-primary); cursor: pointer;
}

/* === Game Grid === */
.wbe41-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 8px 12px;
}
.wbe41-game-item {
  text-align: center; cursor: pointer; border-radius: var(--wbe41-radius);
  background: var(--wbe41-card); padding: 8px 4px 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wbe41-game-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(64,224,208,0.15);
}
.wbe41-game-item img {
  width: 56px; height: 56px; border-radius: 12px;
  margin: 0 auto 4px; object-fit: cover;
  background: linear-gradient(135deg, #2a3a5c, #1f2d45);
}
.wbe41-game-name {
  font-size: 11px; color: var(--wbe41-muted); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}

/* === Content Blocks === */
.wbe41-content-block {
  padding: 16px 12px; line-height: 1.7;
}
.wbe41-content-block h2 {
  font-size: 18px; color: var(--wbe41-primary); margin-bottom: 10px;
  padding-left: 10px; border-left: 3px solid var(--wbe41-highlight);
}
.wbe41-content-block h3 {
  font-size: 16px; color: var(--wbe41-white); margin: 14px 0 8px;
}
.wbe41-content-block p {
  font-size: 14px; color: var(--wbe41-muted); margin-bottom: 10px;
}
.wbe41-content-block ul {
  padding-left: 18px; margin-bottom: 10px;
}
.wbe41-content-block ul li {
  font-size: 14px; color: var(--wbe41-muted); margin-bottom: 4px;
  list-style: disc;
}

/* === CTA Banner === */
.wbe41-cta-banner {
  background: linear-gradient(135deg, var(--wbe41-accent), #2a4cc9);
  padding: 20px 16px; text-align: center; margin: 12px;
  border-radius: var(--wbe41-radius);
}
.wbe41-cta-banner h3 {
  color: var(--wbe41-white); font-size: 18px; margin-bottom: 6px;
}
.wbe41-cta-banner p { color: rgba(255,255,255,0.85); font-size: 13px; margin-bottom: 12px; }
.wbe41-cta-btn {
  background: var(--wbe41-primary); color: var(--wbe41-dark);
  font-weight: 700; font-size: 15px; padding: 10px 32px;
  border-radius: 24px; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wbe41-cta-btn:hover { transform: scale(1.05); box-shadow: 0 0 16px rgba(64,224,208,0.5); }

/* === Bottom Navigation === */
.wbe41-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 60px;
  background: linear-gradient(180deg, #0f1a2e 0%, #0a1221 100%);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; border-top: 1.5px solid rgba(64,224,208,0.3);
  padding: 0 4px;
}
.wbe41-bottom-nav-item {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 56px;
  background: none; border: none; cursor: pointer;
  color: var(--wbe41-muted); transition: color 0.2s, transform 0.15s;
  text-decoration: none; gap: 2px;
}
.wbe41-bottom-nav-item:hover, .wbe41-bottom-nav-item:focus {
  color: var(--wbe41-primary); transform: scale(1.08);
}
.wbe41-bottom-nav-item .wbe41-nav-icon { font-size: 24px; line-height: 1; }
.wbe41-bottom-nav-item .wbe41-nav-label { font-size: 10px; font-weight: 500; }
.wbe41-bottom-nav-item.wbe41-nav-active { color: var(--wbe41-primary); }
.wbe41-bottom-nav-item.wbe41-nav-active .wbe41-nav-icon {
  filter: drop-shadow(0 0 4px rgba(64,224,208,0.5));
}
@media (min-width: 769px) {
  .wbe41-bottom-nav { display: none; }
}

/* === Footer === */
.wbe41-footer {
  background: var(--wbe41-dark); padding: 24px 12px;
  text-align: center;
}
.wbe41-footer-partners {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-bottom: 16px;
}
.wbe41-footer-partners img {
  height: 28px; opacity: 0.6; transition: opacity 0.2s;
}
.wbe41-footer-partners img:hover { opacity: 1; }
.wbe41-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 14px; margin-bottom: 16px;
}
.wbe41-footer-links a { font-size: 12px; color: var(--wbe41-muted); }
.wbe41-footer-links a:hover { color: var(--wbe41-primary); }
.wbe41-footer-copy {
  font-size: 12px; color: rgba(173,181,189,0.5); margin-top: 8px;
}

/* === Back to Top === */
#pro196BackToTop {
  position: fixed; bottom: 72px; right: 16px; width: 40px; height: 40px;
  background: var(--wbe41-accent); color: var(--wbe41-white);
  border: none; border-radius: 50%; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  font-size: 20px; z-index: 999; box-shadow: var(--wbe41-shadow);
  transition: transform 0.2s;
}
#pro196BackToTop:hover { transform: scale(1.1); }

/* === Desktop Responsive === */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .wbe41-header { max-width: 100%; }
  .wbe41-bottom-nav { display: none; }
  main { padding-bottom: 0; }
  .wbe41-game-grid { grid-template-columns: repeat(6, 1fr); max-width: 900px; margin: 0 auto; }
  .wbe41-content-block { max-width: 900px; margin: 0 auto; }
  .wbe41-carousel { max-width: 900px; margin: 4px auto 0; }
  .wbe41-footer { max-width: 100%; }
}

/* === Utility Classes === */
.wbe41-text-primary { color: var(--wbe41-primary); }
.wbe41-text-accent { color: var(--wbe41-accent); }
.wbe41-text-muted { color: var(--wbe41-muted); }
.wbe41-mt-1 { margin-top: 8px; }
.wbe41-mb-1 { margin-bottom: 8px; }
.wbe41-text-center { text-align: center; }
.wbe41-fw-bold { font-weight: 700; }
