/**
 * Plus777Login - Core Stylesheet
 * All classes use "wc31b-" prefix for namespace isolation
 * Color palette: #9370DB | #212F3D | #B2DFDB | #AFEEEE | #48D1CC
 * Mobile-first responsive design, max-width 430px viewport
 */

/* === CSS Variables === */
:root {
  --wc31b-primary: #9370DB;
  --wc31b-primary-dark: #7B52C0;
  --wc31b-bg: #212F3D;
  --wc31b-bg-light: #2C3E50;
  --wc31b-bg-card: #1A2733;
  --wc31b-text-light: #B2DFDB;
  --wc31b-text-muted: #AFEEEE;
  --wc31b-accent: #48D1CC;
  --wc31b-accent-glow: #3DBEB9;
  --wc31b-border: #3B5068;
  --wc31b-danger: #E74C3C;
  --wc31b-gold: #F1C40F;
  --wc31b-white: #FFFFFF;
  --wc31b-font-size-base: 62.5%;
  --wc31b-header-h: 5.6rem;
  --wc31b-bnav-h: 6.0rem;
  --wc31b-radius: 0.8rem;
  --wc31b-radius-sm: 0.4rem;
  --wc31b-shadow: 0 2px 12px rgba(0,0,0,0.35);
  --wc31b-transition: all 0.3s ease;
}

html { font-size: var(--wc31b-font-size-base); }

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

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

a { color: var(--wc31b-accent); text-decoration: none; transition: var(--wc31b-transition); }
a:hover { color: var(--wc31b-primary); }
img { max-width: 100%; height: auto; display: block; }

/* === Header === */
.wc31b-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--wc31b-header-h);
  background: linear-gradient(135deg, var(--wc31b-bg) 0%, var(--wc31b-bg-light) 100%);
  border-bottom: 1px solid var(--wc31b-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  box-shadow: var(--wc31b-shadow);
}

.wc31b-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wc31b-primary);
  cursor: pointer;
}

.wc31b-logo img { width: 2.8rem; height: 2.8rem; border-radius: 50%; }

.wc31b-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wc31b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--wc31b-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--wc31b-transition);
  white-space: nowrap;
}

.wc31b-btn-register {
  background: linear-gradient(135deg, var(--wc31b-primary), var(--wc31b-primary-dark));
  color: var(--wc31b-white);
}
.wc31b-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 8px rgba(147,112,219,0.6); }

.wc31b-btn-login {
  background: transparent;
  color: var(--wc31b-accent);
  border: 1px solid var(--wc31b-accent);
}
.wc31b-btn-login:hover { background: rgba(72,209,204,0.1); }

.wc31b-menu-toggle {
  background: none;
  border: none;
  color: var(--wc31b-text-muted);
  font-size: 2.0rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* === Mobile Menu === */
.wc31b-mobile-menu {
  display: none;
  position: fixed;
  top: var(--wc31b-header-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--wc31b-bg-card);
  border-bottom: 2px solid var(--wc31b-primary);
  z-index: 9999;
  padding: 1rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.wc31b-mobile-menu a {
  display: block;
  padding: 1.0rem 1.6rem;
  color: var(--wc31b-text-light);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(59,80,104,0.4);
  transition: var(--wc31b-transition);
}
.wc31b-mobile-menu a:hover {
  background: rgba(147,112,219,0.15);
  color: var(--wc31b-primary);
  padding-left: 2.2rem;
}

/* === Main Content === */
.wc31b-main {
  padding-top: calc(var(--wc31b-header-h) + 0.5rem);
  min-height: 100vh;
}

/* === Carousel === */
.wc31b-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--wc31b-radius) var(--wc31b-radius);
}

.wc31b-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.wc31b-slide-active { display: block; }

.wc31b-slide img {
  width: 100%;
  height: auto;
  min-height: 16rem;
  object-fit: cover;
}

.wc31b-slide-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.wc31b-slide-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--wc31b-transition);
}
.wc31b-dot-active {
  background: var(--wc31b-primary);
  transform: scale(1.3);
}

/* === Sections === */
.wc31b-section {
  padding: 1.5rem 1.2rem;
}

.wc31b-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wc31b-primary);
  margin-bottom: 1.0rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--wc31b-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wc31b-section-title .wc31b-icon {
  font-size: 2.0rem;
}

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

.wc31b-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--wc31b-transition);
  border-radius: var(--wc31b-radius-sm);
  padding: 0.4rem;
  background: var(--wc31b-bg-card);
}
.wc31b-game-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(147,112,219,0.3);
}

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

.wc31b-game-name {
  font-size: 1.0rem;
  color: var(--wc31b-text-muted);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* === Cards === */
.wc31b-card {
  background: var(--wc31b-bg-card);
  border-radius: var(--wc31b-radius);
  padding: 1.2rem;
  margin-bottom: 1.0rem;
  border: 1px solid var(--wc31b-border);
  box-shadow: var(--wc31b-shadow);
}

.wc31b-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wc31b-accent);
  margin-bottom: 0.8rem;
}

.wc31b-card p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--wc31b-text-muted);
  margin-bottom: 0.6rem;
}

/* === Promo Button === */
.wc31b-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--wc31b-primary), var(--wc31b-accent));
  color: var(--wc31b-white);
  padding: 1.0rem 2.0rem;
  border-radius: var(--wc31b-radius);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--wc31b-transition);
  text-align: center;
  width: 100%;
  margin: 0.8rem 0;
}
.wc31b-promo-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 16px rgba(147,112,219,0.5);
}

/* === Promo Text Link === */
.wc31b-promo-link {
  color: var(--wc31b-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--wc31b-transition);
}
.wc31b-promo-link:hover {
  color: var(--wc31b-accent);
}

/* === Category Label === */
.wc31b-cat-label {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--wc31b-gold);
  margin: 1.2rem 0 0.6rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === Footer === */
.wc31b-footer {
  background: var(--wc31b-bg-card);
  border-top: 2px solid var(--wc31b-primary);
  padding: 2.0rem 1.2rem;
  margin-top: 2rem;
}

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

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

.wc31b-footer-links a {
  background: var(--wc31b-bg);
  color: var(--wc31b-text-light);
  padding: 0.5rem 0.8rem;
  border-radius: var(--wc31b-radius-sm);
  font-size: 1.1rem;
  border: 1px solid var(--wc31b-border);
  transition: var(--wc31b-transition);
}
.wc31b-footer-links a:hover {
  background: var(--wc31b-primary);
  color: var(--wc31b-white);
}

.wc31b-copyright {
  text-align: center;
  font-size: 1.0rem;
  color: rgba(178,223,219,0.5);
  padding-top: 1.0rem;
  border-top: 1px solid var(--wc31b-border);
}

/* === Bottom Navigation === */
.wc31b-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--wc31b-bnav-h);
  background: linear-gradient(180deg, var(--wc31b-bg-card) 0%, #111B25 100%);
  border-top: 2px solid var(--wc31b-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}

.wc31b-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--wc31b-text-muted);
  cursor: pointer;
  transition: var(--wc31b-transition);
  padding: 0.3rem;
  border-radius: var(--wc31b-radius-sm);
  position: relative;
}

.wc31b-bnav-btn .wc31b-bnav-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.2rem;
  transition: var(--wc31b-transition);
}

.wc31b-bnav-btn .wc31b-bnav-label {
  font-size: 1.0rem;
  line-height: 1.2;
  transition: var(--wc31b-transition);
}

.wc31b-bnav-btn:hover,
.wc31b-bnav-active {
  color: var(--wc31b-primary);
}
.wc31b-bnav-btn:hover .wc31b-bnav-icon,
.wc31b-bnav-active .wc31b-bnav-icon {
  transform: scale(1.15);
  text-shadow: 0 0 8px rgba(147,112,219,0.6);
}

.wc31b-bnav-btn:active {
  transform: scale(0.92);
}

/* === Badge === */
.wc31b-badge {
  position: absolute;
  top: 0;
  right: 4px;
  background: var(--wc31b-danger);
  color: var(--wc31b-white);
  font-size: 0.8rem;
  font-weight: 700;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Testimonials === */
.wc31b-testimonial {
  background: var(--wc31b-bg-card);
  border-left: 3px solid var(--wc31b-primary);
  padding: 1.0rem;
  margin-bottom: 0.8rem;
  border-radius: 0 var(--wc31b-radius) var(--wc31b-radius) 0;
}

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

.wc31b-testimonial-author {
  font-size: 1.0rem;
  color: var(--wc31b-primary);
  font-weight: 600;
}

/* === Winners Table === */
.wc31b-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(59,80,104,0.3);
  font-size: 1.1rem;
}

.wc31b-winner-name { color: var(--wc31b-accent); font-weight: 600; }
.wc31b-winner-game { color: var(--wc31b-text-muted); flex: 1; text-align: center; }
.wc31b-winner-amount { color: var(--wc31b-gold); font-weight: 700; }

/* === Payment Icons === */
.wc31b-payment-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.8rem 0;
}

.wc31b-payment-item {
  background: var(--wc31b-bg);
  border: 1px solid var(--wc31b-border);
  border-radius: var(--wc31b-radius-sm);
  padding: 0.6rem 1.0rem;
  font-size: 1.1rem;
  color: var(--wc31b-text-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* === Responsive === */
@media (min-width: 769px) {
  .wc31b-bnav { display: none; }
}

@media (max-width: 768px) {
  .wc31b-main { padding-bottom: calc(var(--wc31b-bnav-h) + 1rem); }
}

/* === Utility === */
.wc31b-text-center { text-align: center; }
.wc31b-mt-1 { margin-top: 1rem; }
.wc31b-mb-1 { margin-bottom: 1rem; }
.wc31b-hidden { display: none; }
