/**
 * cd3333.click - Main Stylesheet
 * All classes use we347- prefix for namespace isolation
 * Color palette: #95A5A6 | #00BFFF | #36454F | #212F3D | #F8F8FF
 * Mobile-first design, max-width 430px
 */

:root {
  --we347-primary: #00BFFF;
  --we347-bg-dark: #212F3D;
  --we347-bg-darker: #1a252f;
  --we347-bg-card: #2C3E50;
  --we347-text-light: #F8F8FF;
  --we347-text-muted: #95A5A6;
  --we347-accent: #00BFFF;
  --we347-accent-hover: #33ccff;
  --we347-border: #36454F;
  --we347-success: #2ecc71;
  --we347-warning: #f39c12;
  --we347-gold: #ffd700;
  --we347-radius: 8px;
  --we347-radius-lg: 12px;
  --we347-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --we347-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--we347-bg-dark);
  color: var(--we347-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}

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

/* ===== HEADER ===== */
.we347-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--we347-bg-darker);
  border-bottom: 1px solid var(--we347-border);
  z-index: 1000;
  padding: 0 1rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.we347-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.we347-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--we347-accent);
  letter-spacing: 0.5px;
}

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

.we347-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--we347-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--we347-transition);
  min-height: 34px;
}

.we347-btn-register {
  background: var(--we347-accent);
  color: var(--we347-bg-darker);
}
.we347-btn-register:hover { background: var(--we347-accent-hover); }

.we347-btn-login {
  background: transparent;
  color: var(--we347-accent);
  border: 1px solid var(--we347-accent);
}
.we347-btn-login:hover { background: rgba(0,191,255,0.1); }

.we347-menu-toggle {
  background: none;
  border: none;
  color: var(--we347-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ===== MOBILE MENU ===== */
.we347-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

.we347-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 75%;
  max-width: 300px;
  height: 100vh;
  background: var(--we347-bg-darker);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.we347-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--we347-border);
}

.we347-mobile-menu-header span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--we347-accent);
}

.we347-menu-close {
  background: none;
  border: none;
  color: var(--we347-text-muted);
  font-size: 2rem;
  cursor: pointer;
}

.we347-mobile-menu nav a {
  display: block;
  padding: 1rem 0;
  color: var(--we347-text-light);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--we347-border);
  transition: var(--we347-transition);
}
.we347-mobile-menu nav a:hover {
  color: var(--we347-accent);
  padding-left: 0.5rem;
}

/* ===== MAIN CONTENT ===== */
.we347-main {
  padding-top: 56px;
  padding-bottom: 1rem;
}

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

.we347-slides-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
}

.we347-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
.we347-slide.we347-active { opacity: 1; }
.we347-slide img { width: 100%; height: 100%; object-fit: cover; }

.we347-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.we347-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: var(--we347-transition);
}
.we347-dot.we347-active { background: var(--we347-accent); width: 20px; border-radius: 4px; }

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

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

.we347-section-title i { color: var(--we347-accent); }

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

.we347-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--we347-transition);
  text-align: center;
}

.we347-game-item:hover { transform: translateY(-2px); }

.we347-game-item img {
  width: 70px;
  height: 70px;
  border-radius: var(--we347-radius);
  margin-bottom: 0.3rem;
  border: 2px solid var(--we347-border);
  transition: var(--we347-transition);
}

.we347-game-item:hover img { border-color: var(--we347-accent); }

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

/* ===== CATEGORY LABEL ===== */
.we347-category-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--we347-accent);
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.8rem;
  background: rgba(0,191,255,0.1);
  border-radius: 20px;
  border: 1px solid rgba(0,191,255,0.2);
}

/* ===== CONTENT CARD ===== */
.we347-card {
  background: var(--we347-bg-card);
  border-radius: var(--we347-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--we347-border);
}

.we347-card h2, .we347-card h3 {
  color: var(--we347-accent);
  margin-bottom: 0.8rem;
}

.we347-card p {
  color: var(--we347-text-muted);
  line-height: 1.8rem;
  font-size: 1.3rem;
}

/* ===== PROMO CTA ===== */
.we347-cta-btn {
  display: block;
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--we347-accent), #0099cc);
  color: #fff;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--we347-radius-lg);
  border: none;
  cursor: pointer;
  transition: var(--we347-transition);
  margin: 1rem 0;
}
.we347-cta-btn:hover { transform: scale(1.02); box-shadow: 0 4px 15px rgba(0,191,255,0.4); }

.we347-text-link {
  color: var(--we347-accent);
  font-weight: 600;
  cursor: pointer;
  transition: var(--we347-transition);
}
.we347-text-link:hover { color: var(--we347-accent-hover); text-decoration: underline; }

/* ===== FOOTER ===== */
.we347-footer {
  background: var(--we347-bg-darker);
  padding: 2rem 1rem 1rem;
  border-top: 1px solid var(--we347-border);
  text-align: center;
}

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

.we347-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.we347-footer-links a {
  padding: 0.4rem 0.8rem;
  background: var(--we347-bg-card);
  border-radius: var(--we347-radius);
  font-size: 1.1rem;
  color: var(--we347-text-light);
  border: 1px solid var(--we347-border);
  transition: var(--we347-transition);
}
.we347-footer-links a:hover { border-color: var(--we347-accent); color: var(--we347-accent); }

.we347-footer-copy {
  color: var(--we347-text-muted);
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--we347-border);
}

/* ===== BOTTOM NAV ===== */
.we347-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--we347-bg-darker);
  border-top: 1px solid var(--we347-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding: 0 0.3rem;
}

.we347-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  cursor: pointer;
  color: var(--we347-text-muted);
  transition: var(--we347-transition);
  border: none;
  background: none;
  gap: 2px;
}

.we347-bottom-nav-item i, .we347-bottom-nav-item .material-icons {
  font-size: 22px;
}

.we347-bottom-nav-item span {
  font-size: 1rem;
  line-height: 1rem;
}

.we347-bottom-nav-item:hover,
.we347-bottom-nav-item.we347-nav-active {
  color: var(--we347-accent);
}

.we347-bottom-nav-item.we347-nav-active {
  transform: scale(1.05);
}

.we347-nav-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.9rem;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ===== WINNER SHOWCASE ===== */
.we347-winners {
  background: linear-gradient(135deg, #1a3a4a, #212F3D);
  border-radius: var(--we347-radius-lg);
  padding: 1rem;
}

.we347-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.we347-winner-item:last-child { border-bottom: none; }

.we347-winner-name {
  color: var(--we347-text-light);
  font-size: 1.2rem;
}

.we347-winner-amount {
  color: var(--we347-gold);
  font-weight: 700;
  font-size: 1.3rem;
}

/* ===== PAYMENT METHODS ===== */
.we347-payment-grid {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.we347-payment-item {
  background: var(--we347-bg-card);
  border: 1px solid var(--we347-border);
  border-radius: var(--we347-radius);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--we347-text-light);
}

/* ===== TESTIMONIALS ===== */
.we347-testimonial {
  background: var(--we347-bg-card);
  border-radius: var(--we347-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--we347-accent);
}

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

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

/* ===== FAQ ACCORDION ===== */
.we347-faq-item {
  background: var(--we347-bg-card);
  border-radius: var(--we347-radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--we347-border);
}

.we347-faq-question {
  padding: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--we347-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.we347-faq-answer {
  padding: 0 1rem 1rem;
  font-size: 1.2rem;
  color: var(--we347-text-muted);
  line-height: 1.6rem;
}

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

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

@media (max-width: 360px) {
  .we347-game-grid { grid-template-columns: repeat(3, 1fr); }
  .we347-game-item img { width: 60px; height: 60px; }
}
