/*
 * winbid.cyou core stylesheet
 * All classes use w3e70- prefix for namespace isolation
 * Mobile-first design, max-width 430px
 */

:root {
  --w3e70-bg: #2C3E50;
  --w3e70-bg-dark: #1a2632;
  --w3e70-bg-light: #34495e;
  --w3e70-primary: #FF9500;
  --w3e70-secondary: #FF9800;
  --w3e70-accent: #ADFF2F;
  --w3e70-highlight: #AD1457;
  --w3e70-text: #ffffff;
  --w3e70-text-muted: #bdc3c7;
  --w3e70-border: #4a5e6f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; }

body {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
  background: var(--w3e70-bg);
  color: var(--w3e70-text);
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

.w3e70-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.w3e70-wrapper { width: 100%; margin: 0 auto; }

/* Header */
.w3e70-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--w3e70-bg-dark), var(--w3e70-bg));
  border-bottom: 2px solid var(--w3e70-primary);
  padding: 0.7rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 430px; margin: 0 auto;
}
.w3e70-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.w3e70-logo img { width: 28px; height: 28px; border-radius: 6px; }
.w3e70-logo-text { font-size: 1.6rem; font-weight: 700; color: var(--w3e70-primary); letter-spacing: 0.5px; }
.w3e70-header-actions { display: flex; align-items: center; gap: 0.4rem; }
.w3e70-menu-toggle {
  background: transparent; border: 1px solid var(--w3e70-border); color: var(--w3e70-text);
  width: 34px; height: 34px; border-radius: 8px; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; margin-left: 0.3rem;
}

/* Buttons */
.w3e70-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1rem; border-radius: 8px; font-size: 1.2rem; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none; transition: all 0.2s;
  min-height: 34px; line-height: 1.2;
}
.w3e70-btn-register { background: linear-gradient(135deg, var(--w3e70-primary), var(--w3e70-secondary)); color: var(--w3e70-bg-dark); }
.w3e70-btn-login { background: transparent; color: var(--w3e70-text); border: 1.5px solid var(--w3e70-accent); }
.w3e70-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,149,0,0.3); }
.w3e70-btn-promo { background: linear-gradient(135deg, var(--w3e70-highlight), #c2185b); color: var(--w3e70-text); }
.w3e70-btn-cta { background: linear-gradient(135deg, var(--w3e70-accent), #8acc2e); color: var(--w3e70-bg-dark); font-weight: 700; }

/* Mobile menu */
.w3e70-mobile-menu {
  position: fixed; top: 56px; left: 0; right: 0; z-index: 9999;
  background: var(--w3e70-bg-dark); border-bottom: 2px solid var(--w3e70-primary);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  max-width: 430px; margin: 0 auto;
}
.w3e70-mobile-menu.w3e70-menu-open { max-height: 560px; overflow-y: auto; }
.w3e70-mobile-menu ul { list-style: none; padding: 1rem 1.2rem; }
.w3e70-mobile-menu li { margin: 0.3rem 0; }
.w3e70-mobile-menu a {
  display: flex; align-items: center; gap: 0.8rem; padding: 1rem; color: var(--w3e70-text);
  text-decoration: none; border-radius: 8px; font-size: 1.3rem; background: var(--w3e70-bg-light);
}
.w3e70-mobile-menu a:active { background: var(--w3e70-primary); color: var(--w3e70-bg-dark); }
.w3e70-mobile-menu a i, .w3e70-mobile-menu a .material-icons { color: var(--w3e70-accent); width: 22px; text-align: center; }

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

/* Carousel */
.w3e70-carousel { position: relative; width: 100%; height: 170px; overflow: hidden; border-radius: 12px; margin: 1rem 0; }
.w3e70-slides { position: relative; width: 100%; height: 100%; }
.w3e70-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; cursor: pointer; }
.w3e70-slide img { width: 100%; height: 100%; object-fit: cover; }
.w3e70-slide.w3e70-slide-active { opacity: 1; }
.w3e70-slide-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.8rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,0.75)); }
.w3e70-slide-overlay h3 { font-size: 1.5rem; color: var(--w3e70-primary); margin-bottom: 0.2rem; }
.w3e70-slide-overlay p { font-size: 1.1rem; color: var(--w3e70-text); }
.w3e70-carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
.w3e70-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; border: none; }
.w3e70-dot.w3e70-dot-active { background: var(--w3e70-primary); }
.w3e70-carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: #fff; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; z-index: 5; }
.w3e70-carousel-arrow.w3e70-prev { left: 8px; }
.w3e70-carousel-arrow.w3e70-next { right: 8px; }

/* Sections */
.w3e70-section { padding: 1.3rem 1.2rem; scroll-margin-top: 64px; }
.w3e70-section-title { font-size: 1.7rem; font-weight: 700; color: var(--w3e70-primary); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.6rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--w3e70-border); }
.w3e70-section-title i, .w3e70-section-title .material-icons { color: var(--w3e70-accent); }
.w3e70-h1 { font-size: 1.9rem; font-weight: 700; color: var(--w3e70-primary); margin: 0.8rem 0; line-height: 1.35; }
.w3e70-intro { font-size: 1.25rem; color: var(--w3e70-text); line-height: 1.6; margin-bottom: 0.8rem; }

/* Filter tabs */
.w3e70-filter-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 0; margin-bottom: 0.8rem; -webkit-overflow-scrolling: touch; }
.w3e70-filter-tab { padding: 0.5rem 1rem; border-radius: 20px; background: var(--w3e70-bg-light); color: var(--w3e70-text); font-size: 1.15rem; white-space: nowrap; cursor: pointer; border: 1px solid var(--w3e70-border); }
.w3e70-filter-tab.w3e70-filter-active { background: var(--w3e70-primary); color: var(--w3e70-bg-dark); border-color: var(--w3e70-primary); }

/* Game grid */
.w3e70-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.w3e70-game-card-wrap { position: relative; }
.w3e70-game-card { background: var(--w3e70-bg-light); border-radius: 10px; padding: 0.5rem; text-align: center; cursor: pointer; transition: all 0.2s; border: 1px solid var(--w3e70-border); }
.w3e70-game-card:hover { transform: translateY(-2px); border-color: var(--w3e70-primary); box-shadow: 0 4px 12px rgba(255,149,0,0.2); }
.w3e70-game-card img { width: 100%; height: 68px; object-fit: cover; border-radius: 8px; margin-bottom: 0.35rem; display: block; }
.w3e70-game-name { font-size: 1.05rem; color: var(--w3e70-text); line-height: 1.25; min-height: 2.6rem; display: flex; align-items: center; justify-content: center; padding: 0 0.2rem; }
.w3e70-game-badge { position: absolute; top: 4px; left: 4px; background: var(--w3e70-highlight); color: #fff; font-size: 0.85rem; padding: 1px 5px; border-radius: 4px; font-weight: 600; }

/* Cards */
.w3e70-card { background: var(--w3e70-bg-light); border-radius: 12px; padding: 1.1rem; margin-bottom: 1rem; border: 1px solid var(--w3e70-border); }
.w3e70-card h2 { font-size: 1.55rem; color: var(--w3e70-primary); margin-bottom: 0.7rem; }
.w3e70-card h3 { font-size: 1.35rem; color: var(--w3e70-secondary); margin: 0.7rem 0 0.4rem; }
.w3e70-card p { font-size: 1.2rem; color: var(--w3e70-text); margin-bottom: 0.7rem; line-height: 1.6; }
.w3e70-card ul { padding-left: 1.4rem; margin-bottom: 0.7rem; }
.w3e70-card li { font-size: 1.2rem; color: var(--w3e70-text); margin-bottom: 0.35rem; line-height: 1.5; }

/* Promo link text */
.w3e70-link { color: var(--w3e70-accent); font-weight: 700; cursor: pointer; text-decoration: underline; }
.w3e70-link-bold { color: var(--w3e70-primary); font-weight: 700; cursor: pointer; }

/* FAQ */
.w3e70-faq-item { background: var(--w3e70-bg-light); border-radius: 8px; margin-bottom: 0.5rem; overflow: hidden; border: 1px solid var(--w3e70-border); }
.w3e70-faq-q { padding: 0.9rem 1rem; cursor: pointer; font-size: 1.25rem; font-weight: 600; color: var(--w3e70-primary); display: flex; justify-content: space-between; align-items: center; }
.w3e70-faq-q .w3e70-faq-icon { color: var(--w3e70-accent); transition: transform 0.3s; }
.w3e70-faq-item.w3e70-faq-open .w3e70-faq-icon { transform: rotate(45deg); }
.w3e70-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; padding: 0 1rem; color: var(--w3e70-text); font-size: 1.18rem; line-height: 1.6; }
.w3e70-faq-item.w3e70-faq-open .w3e70-faq-a { max-height: 320px; padding: 0 1rem 1rem; }

/* Testimonials */
.w3e70-testimonial { background: var(--w3e70-bg-light); border-radius: 10px; padding: 0.9rem; margin-bottom: 0.7rem; border-left: 3px solid var(--w3e70-accent); }
.w3e70-testimonial-name { color: var(--w3e70-primary); font-weight: 600; font-size: 1.25rem; }
.w3e70-testimonial-stars { color: var(--w3e70-secondary); font-size: 1.1rem; margin: 0.2rem 0; }
.w3e70-testimonial-text { color: var(--w3e70-text); font-size: 1.15rem; line-height: 1.5; }

/* Winners */
.w3e70-winner { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.9rem; background: var(--w3e70-bg-light); border-radius: 6px; margin-bottom: 0.4rem; font-size: 1.15rem; border-left: 3px solid var(--w3e70-primary); }
.w3e70-winner-name { color: var(--w3e70-accent); font-weight: 600; }
.w3e70-winner-game { color: var(--w3e70-text-muted); font-size: 1.05rem; }
.w3e70-winner-amount { color: var(--w3e70-primary); font-weight: 700; }

/* Payment */
.w3e70-payment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.w3e70-payment-item { background: var(--w3e70-bg-light); border-radius: 8px; padding: 0.7rem 0.4rem; text-align: center; font-size: 1rem; color: var(--w3e70-text); border: 1px solid var(--w3e70-border); }
.w3e70-payment-item i, .w3e70-payment-item .material-icons { display: block; font-size: 1.6rem; color: var(--w3e70-accent); margin-bottom: 0.2rem; }

/* CTA */
.w3e70-cta { background: linear-gradient(135deg, var(--w3e70-highlight), var(--w3e70-primary)); border-radius: 12px; padding: 1.3rem; text-align: center; margin: 1rem 0; }
.w3e70-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.4rem; }
.w3e70-cta p { color: #fff; font-size: 1.15rem; margin-bottom: 0.9rem; }

/* Feature list */
.w3e70-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.w3e70-feature-item { background: var(--w3e70-bg-light); border-radius: 8px; padding: 0.8rem; border-left: 3px solid var(--w3e70-primary); }
.w3e70-feature-item h4 { font-size: 1.2rem; color: var(--w3e70-primary); margin-bottom: 0.3rem; display: flex; align-items: center; gap: 0.4rem; }
.w3e70-feature-item p { font-size: 1.1rem; color: var(--w3e70-text); line-height: 1.4; margin: 0; }

/* RTP table */
.w3e70-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.15rem; }
.w3e70-rpt-row { border-bottom: 1px solid var(--w3e70-border); }
.w3e70-rtp-row td { padding: 0.6rem 0.4rem; }
.w3e70-rtp-row td:first-child { color: var(--w3e70-text); }
.w3e70-rtp-row td:last-child { color: var(--w3e70-accent); font-weight: 700; text-align: right; }
.w3e70-rtp-row th { padding: 0.6rem 0.4rem; color: var(--w3e70-primary); text-align: left; font-size: 1.1rem; border-bottom: 2px solid var(--w3e70-primary); }
.w3e70-rtp-row th:last-child { text-align: right; }

/* App download */
.w3e70-app-box { background: var(--w3e70-bg-light); border-radius: 12px; padding: 1.2rem; text-align: center; border: 1px solid var(--w3e70-border); }
.w3e70-app-box img { width: 100%; max-height: 130px; object-fit: cover; border-radius: 10px; margin-bottom: 0.8rem; }
.w3e70-app-box h3 { color: var(--w3e70-primary); font-size: 1.5rem; margin-bottom: 0.4rem; }
.w3e70-app-box p { color: var(--w3e70-text); font-size: 1.15rem; margin-bottom: 0.8rem; }

/* Footer */
.w3e70-footer { background: var(--w3e70-bg-dark); padding: 1.8rem 1.2rem 1rem; margin-top: 1.5rem; border-top: 2px solid var(--w3e70-primary); }
.w3e70-footer-brand { color: var(--w3e70-text-muted); font-size: 1.15rem; margin-bottom: 1rem; line-height: 1.6; }
.w3e70-footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.w3e70-footer-links a { color: var(--w3e70-accent); text-decoration: none; font-size: 1.1rem; padding: 0.3rem 0.6rem; background: var(--w3e70-bg-light); border-radius: 6px; }
.w3e70-footer-links a:active { background: var(--w3e70-primary); color: var(--w3e70-bg-dark); }
.w3e70-footer-copy { color: var(--w3e70-text-muted); font-size: 1.05rem; text-align: center; border-top: 1px solid var(--w3e70-border); padding-top: 0.9rem; }

/* Bottom nav */
.w3e70-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: var(--w3e70-bg-dark); border-top: 2px solid var(--w3e70-primary); display: flex; justify-content: space-around; align-items: center; height: 60px; max-width: 430px; margin: 0 auto; }
.w3e70-bottom-nav-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; background: transparent; border: none; color: var(--w3e70-text-muted); cursor: pointer; min-width: 60px; min-height: 60px; padding: 0.3rem; transition: all 0.2s; flex: 1; text-decoration: none; position: relative; }
.w3e70-bottom-nav-btn .material-icons, .w3e70-bottom-nav-btn .fas, .w3e70-bottom-nav-btn .far, .w3e70-bottom-nav-btn ion-icon { font-size: 22px; margin-bottom: 2px; }
.w3e70-bottom-nav-btn span { font-size: 1rem; line-height: 1; }
.w3e70-bottom-nav-btn:active { color: var(--w3e70-primary); transform: scale(1.05); }
.w3e70-bottom-nav-btn.w3e70-nav-active { color: var(--w3e70-primary); }
.w3e70-nav-badge { position: absolute; top: 4px; right: 14px; background: var(--w3e70-highlight); color: #fff; font-size: 0.8rem; padding: 1px 5px; border-radius: 8px; font-weight: 600; }

/* Hide bottom nav on desktop */
@media (min-width: 769px) { .w3e70-bottom-nav { display: none; } main { padding-bottom: 1.5rem; } }

/* Desktop adjustments */
@media (min-width: 769px) {
  body { max-width: 768px; }
  .w3e70-header { max-width: 768px; }
  .w3e70-mobile-menu { max-width: 768px; }
  .w3e70-game-grid { grid-template-columns: repeat(5, 1fr); }
  .w3e70-payment-grid { grid-template-columns: repeat(6, 1fr); }
  .w3e70-carousel { height: 240px; }
}

/* Utility */
.w3e70-text-center { text-align: center; }
.w3e70-mt-1 { margin-top: 1rem; }
.w3e70-mb-1 { margin-bottom: 1rem; }
