/* winbid.homes - Core stylesheet (Basefile) - English comments */
/* All custom classes use prefix "w77ea-" for namespace isolation */

:root {
  --w77ea-bg: #1A1A2E;
  --w77ea-bg-alt: #16162a;
  --w77ea-card: #22233f;
  --w77ea-primary: #00B8D4;
  --w77ea-accent: #E91E63;
  --w77ea-cream: #FFDFBA;
  --w77ea-light: #F0FDFF;
  --w77ea-text: #F0FDFF;
  --w77ea-muted: #b9c4d6;
  --w77ea-border: #2c2e4a;
  --w77ea-radius: 12px;
  --w77ea-shadow: 0 4px 16px rgba(0,0,0,.35);
}

/* Reset & base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--w77ea-bg);
  color: var(--w77ea-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: var(--w77ea-primary); text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { line-height: 1.25; font-weight: 700; }

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

/* Header */
.w77ea-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(90deg, #16162a, #1A1A2E);
  border-bottom: 1px solid var(--w77ea-border);
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1rem; height: 56px;
}
.w77ea-logo { display: flex; align-items: center; gap: .6rem; color: var(--w77ea-light); font-weight: 800; font-size: 1.7rem; }
.w77ea-logo img { width: 28px; height: 28px; border-radius: 6px; }
.w77ea-logo span { background: linear-gradient(90deg, var(--w77ea-primary), var(--w77ea-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w77ea-header-actions { display: flex; align-items: center; gap: .5rem; }
.w77ea-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: none; border-radius: 8px; padding: .65rem 1rem; font-size: 1.3rem; font-weight: 700;
  cursor: pointer; transition: transform .15s, box-shadow .15s; min-height: 40px;
}
.w77ea-btn-login { background: transparent; color: var(--w77ea-primary); border: 1px solid var(--w77ea-primary); }
.w77ea-btn-register { background: linear-gradient(90deg, var(--w77ea-primary), var(--w77ea-accent)); color: #fff; box-shadow: var(--w77ea-shadow); }
.w77ea-btn:hover { transform: translateY(-1px); }
.w77ea-menu-btn {
  background: transparent; border: 1px solid var(--w77ea-border); color: var(--w77ea-light);
  width: 40px; height: 40px; border-radius: 8px; font-size: 1.8rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Mobile menu (slide-down) */
.w77ea-mobile-menu {
  position: fixed; top: 56px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: var(--w77ea-bg-alt); border-bottom: 1px solid var(--w77ea-border);
  max-height: 0; overflow: hidden; transition: max-height .3s ease; z-index: 9999;
}
.w77ea-mobile-menu.w77ea-open { max-height: 520px; }
.w77ea-mobile-menu ul { padding: .5rem 1rem; }
.w77ea-mobile-menu li { border-bottom: 1px solid var(--w77ea-border); }
.w77ea-mobile-menu li:last-child { border-bottom: none; }
.w77ea-mobile-menu a { display: flex; align-items: center; gap: .8rem; padding: .9rem .4rem; color: var(--w77ea-light); font-size: 1.4rem; }
.w77ea-mobile-menu a:hover { color: var(--w77ea-primary); }
.w77ea-mobile-menu .material-icons, .w77ea-mobile-menu .bi { font-size: 20px; color: var(--w77ea-primary); }

/* Main content spacing for fixed header */
main { padding-top: 56px; }
@media (max-width: 768px) { main { padding-bottom: 80px; } }

/* Carousel */
.w77ea-carousel { position: relative; width: 100%; overflow: hidden; border-radius: 0; }
.w77ea-carousel-track { position: relative; }
.w77ea-slide { display: none; position: relative; }
.w77ea-slide.w77ea-active { display: block; }
.w77ea-slide img { width: 100%; height: 200px; object-fit: cover; }
.w77ea-slide-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.65)); display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem; }
.w77ea-slide-overlay h2 { color: var(--w77ea-cream); font-size: 1.8rem; margin-bottom: .3rem; }
.w77ea-slide-overlay p { color: var(--w77ea-light); font-size: 1.25rem; }
.w77ea-dots { position: absolute; bottom: .6rem; left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; }
.w77ea-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(240,253,255,.5); cursor: pointer; }
.w77ea-dot.w77ea-active { background: var(--w77ea-primary); width: 20px; border-radius: 4px; }

/* Hero / H1 */
.w77ea-hero { padding: 1.4rem 1.2rem .6rem; }
.w77ea-hero h1 { color: var(--w77ea-light); font-size: 2rem; margin-bottom: .6rem; }
.w77ea-hero h1 b { color: var(--w77ea-primary); }
.w77ea-hero p { color: var(--w77ea-muted); font-size: 1.35rem; }
.w77ea-hero-cta { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.w77ea-hero-cta .w77ea-btn { flex: 1; min-width: 130px; }

/* Section titles */
.w77ea-section { padding: 1.2rem; }
.w77ea-section-title { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; font-size: 1.7rem; color: var(--w77ea-light); }
.w77ea-section-title .material-icons, .w77ea-section-title .bi, .w77ea-section-title .fas { color: var(--w77ea-accent); font-size: 22px; }
.w77ea-section-title small { margin-left: auto; font-size: 1.1rem; color: var(--w77ea-primary); cursor: pointer; }

/* Game grid */
.w77ea-game-section { margin-bottom: 1.2rem; }
.w77ea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.w77ea-card {
  background: var(--w77ea-card); border: 1px solid var(--w77ea-border); border-radius: var(--w77ea-radius);
  overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; text-align: center;
}
.w77ea-card:hover { transform: translateY(-2px); box-shadow: var(--w77ea-shadow); border-color: var(--w77ea-primary); }
.w77ea-card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #0e0e1d; }
.w77ea-card-name { padding: .5rem .3rem; font-size: 1.15rem; color: var(--w77ea-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w77ea-card-tag { position: absolute; }

/* Info / feature modules */
.w77ea-info-box { background: var(--w77ea-card); border: 1px solid var(--w77ea-border); border-radius: var(--w77ea-radius); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.w77ea-info-box h2 { font-size: 1.7rem; color: var(--w77ea-light); margin-bottom: .5rem; }
.w77ea-info-box h3 { font-size: 1.45rem; color: var(--w77ea-primary); margin: .8rem 0 .35rem; }
.w77ea-info-box p { color: var(--w77ea-muted); font-size: 1.3rem; margin-bottom: .6rem; }
.w77ea-info-box a { color: var(--w77ea-accent); font-weight: 700; }

/* Steps list */
.w77ea-steps { counter-reset: step; padding-left: 0; }
.w77ea-steps li { position: relative; padding: .6rem .8rem .6rem 3rem; margin-bottom: .6rem; background: var(--w77ea-bg-alt); border-radius: 8px; border-left: 3px solid var(--w77ea-primary); color: var(--w77ea-muted); font-size: 1.3rem; }
.w77ea-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: .6rem; top: .6rem; width: 2rem; height: 2rem; background: var(--w77ea-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }

/* RTP table */
.w77ea-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.w77ea-rtp-table th, .w77ea-rtp-table td { padding: .6rem .5rem; border-bottom: 1px solid var(--w77ea-border); text-align: left; }
.w77ea-rtp-table th { color: var(--w77ea-primary); }
.w77ea-rtp-table td { color: var(--w77ea-muted); }
.w77ea-rtp-table td b { color: var(--w77ea-cream); }

/* Testimonials */
.w77ea-testimonial { background: var(--w77ea-card); border-radius: var(--w77ea-radius); padding: 1rem; margin-bottom: .8rem; border-left: 3px solid var(--w77ea-accent); }
.w77ea-testimonial .w77ea-stars { color: #ffc107; margin-bottom: .3rem; }
.w77ea-testimonial p { color: var(--w77ea-muted); font-size: 1.25rem; }
.w77ea-testimonial cite { display: block; margin-top: .4rem; color: var(--w77ea-primary); font-style: normal; font-weight: 700; }

/* Winners */
.w77ea-winner { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem; background: var(--w77ea-bg-alt); border-radius: 8px; margin-bottom: .5rem; }
.w77ea-winner .material-icons, .w77ea-winner .fas { color: #ffc107; font-size: 20px; }
.w77ea-winner .w77ea-wname { flex: 1; color: var(--w77ea-light); font-size: 1.25rem; }
.w77ea-winner .w77ea-wamt { color: var(--w77ea-accent); font-weight: 700; font-size: 1.3rem; }

/* Payment */
.w77ea-pay-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.w77ea-pay-chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--w77ea-card); border: 1px solid var(--w77ea-border); border-radius: 30px; padding: .5rem .9rem; font-size: 1.2rem; color: var(--w77ea-light); }
.w77ea-pay-chip .bi, .w77ea-pay-chip .fas { color: var(--w77ea-primary); }

/* Promo CTA banner */
.w77ea-cta-banner { background: linear-gradient(120deg, #00B8D4, #E91E63); border-radius: var(--w77ea-radius); padding: 1.2rem; text-align: center; margin: 1rem 0; }
.w77ea-cta-banner h3 { color: #fff; font-size: 1.7rem; margin-bottom: .4rem; }
.w77ea-cta-banner p { color: #fff; font-size: 1.25rem; margin-bottom: .8rem; }
.w77ea-cta-banner .w77ea-btn { background: #fff; color: var(--w77ea-bg); }

/* Footer */
.w77ea-footer { background: var(--w77ea-bg-alt); border-top: 1px solid var(--w77ea-border); padding: 1.4rem 1.2rem 2rem; margin-top: 1rem; }
.w77ea-footer p { color: var(--w77ea-muted); font-size: 1.2rem; margin-bottom: .8rem; }
.w77ea-footer-links { display: flex; flex-wrap: wrap; gap: .5rem .8rem; margin-bottom: 1rem; }
.w77ea-footer-links a { color: var(--w77ea-light); font-size: 1.2rem; padding: .3rem .6rem; border: 1px solid var(--w77ea-border); border-radius: 6px; }
.w77ea-footer-links a:hover { color: var(--w77ea-primary); border-color: var(--w77ea-primary); }
.w77ea-footer-promo { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.w77ea-footer-promo .w77ea-btn { flex: 1; min-width: 120px; font-size: 1.2rem; padding: .55rem .6rem; }
.w77ea-copyright { text-align: center; color: var(--w77ea-muted); font-size: 1.1rem; border-top: 1px solid var(--w77ea-border); padding-top: .8rem; }

/* Bottom nav */
.w77ea-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 62px;
  background: linear-gradient(180deg, #1f2040, #16162a);
  border-top: 1px solid var(--w77ea-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
}
.w77ea-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; background: transparent; border: none; color: var(--w77ea-muted);
  font-size: 1.1rem; cursor: pointer; transition: transform .15s, color .15s; gap: .15rem;
}
.w77ea-nav-item .material-icons, .w77ea-nav-item .bi, .w77ea-nav-item .fas, .w77ea-nav-item .far, .w77ea-nav-item .ion { font-size: 24px; }
.w77ea-nav-item:hover, .w77ea-nav-item.w77ea-active { color: var(--w77ea-primary); transform: translateY(-2px); }
.w77ea-nav-item.w77ea-active::after { content: ""; width: 26px; height: 3px; background: var(--w77ea-accent); border-radius: 2px; margin-top: 1px; }

/* Back to top */
.w77ea-back-top {
  position: fixed; right: 1rem; bottom: 76px; width: 42px; height: 42px;
  border-radius: 50%; background: var(--w77ea-primary); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 999; font-size: 20px;
}
.w77ea-back-top.w77ea-visible { opacity: 1; visibility: visible; }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .w77ea-bottom-nav { display: none; }
  body, .w77ea-wrapper, .w77ea-header, .w77ea-mobile-menu, .w77ea-bottom-nav { max-width: 430px; }
}

/* Utility */
.w77ea-pb { padding-bottom: 2rem; }
.w77ea-text-accent { color: var(--w77ea-accent); }
.w77ea-text-primary { color: var(--w77ea-primary); }
.w77ea-pull-right { float: right; }
