/**
 * 399 BDT - Theme Stylesheet
 * All classes use w4e80- prefix for namespace isolation
 * Color palette: #20B2AA (teal) | #CCCCCC (light gray) | #34495E (dark slate)
 * Mobile-first design for Bangladesh gaming market
 */

/* CSS Variables */
:root {
    --w4e80-primary: #20B2AA;
    --w4e80-primary-dark: #1a9490;
    --w4e80-primary-light: #3cc4bd;
    --w4e80-secondary: #CCCCCC;
    --w4e80-bg-dark: #34495E;
    --w4e80-bg-darker: #2c3e50;
    --w4e80-bg-card: #3d566e;
    --w4e80-text-light: #CCCCCC;
    --w4e80-text-white: #F5F5F5;
    --w4e80-text-muted: #95a5a6;
    --w4e80-accent-gold: #F1C40F;
    --w4e80-accent-red: #E74C3C;
    --w4e80-accent-green: #27AE60;
    --w4e80-border-color: rgba(32,178,170,0.2);
    --w4e80-shadow: 0 2px 8px rgba(0,0,0,0.3);
    --w4e80-radius: 8px;
    --w4e80-radius-lg: 12px;
    --w4e80-header-height: 56px;
    --w4e80-bottom-height: 60px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--w4e80-bg-dark);
    color: var(--w4e80-text-light);
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 430px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--w4e80-primary); text-decoration: none; }
a:hover { color: var(--w4e80-primary-light); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.w4e80-header {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 430px; height: var(--w4e80-header-height);
    background: var(--w4e80-bg-darker); border-bottom: 1px solid var(--w4e80-border-color);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px; z-index: 1000; transition: box-shadow 0.3s;
}
.w4e80-header-scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.w4e80-header-left { display: flex; align-items: center; gap: 8px; }
.w4e80-logo { width: 28px; height: 28px; border-radius: 4px; }
.w4e80-site-name { color: var(--w4e80-primary); font-size: 1.6rem; font-weight: 700; white-space: nowrap; }
.w4e80-header-right { display: flex; align-items: center; gap: 8px; }
.w4e80-btn-register, .w4e80-btn-login {
    padding: 6px 14px; border-radius: 20px; font-size: 1.2rem; font-weight: 600;
    border: none; cursor: pointer; transition: all 0.2s;
}
.w4e80-btn-register {
    background: linear-gradient(135deg, var(--w4e80-primary), var(--w4e80-primary-dark));
    color: #fff;
}
.w4e80-btn-login {
    background: transparent; color: var(--w4e80-primary);
    border: 1px solid var(--w4e80-primary);
}
.w4e80-btn-register:hover, .w4e80-btn-login:hover { transform: scale(1.05); }
.w4e80-menu-toggle {
    background: none; border: none; color: var(--w4e80-text-light);
    font-size: 2.2rem; cursor: pointer; padding: 4px;
    display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu */
.w4e80-menu-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); z-index: 9998;
}
.w4e80-overlay-active { display: block; }
.w4e80-mobile-menu {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
    background: var(--w4e80-bg-darker); z-index: 9999;
    transition: right 0.3s ease; padding: 60px 0 20px;
    overflow-y: auto;
}
.w4e80-menu-active { right: 0; }
.w4e80-menu-close {
    position: absolute; top: 12px; right: 12px;
    background: none; border: none; color: var(--w4e80-text-light);
    font-size: 2.4rem; cursor: pointer;
}
.w4e80-menu-list { list-style: none; }
.w4e80-menu-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.w4e80-menu-link {
    display: block; padding: 14px 20px; color: var(--w4e80-text-light);
    font-size: 1.5rem; transition: all 0.2s;
}
.w4e80-menu-link:hover {
    background: rgba(32,178,170,0.1); color: var(--w4e80-primary);
    padding-left: 26px;
}

/* Main Content */
.w4e80-main {
    margin-top: var(--w4e80-header-height);
    padding-bottom: 20px;
}
@media (max-width: 768px) {
    .w4e80-main { padding-bottom: 80px; }
}

/* Carousel */
.w4e80-carousel {
    position: relative; width: 100%; overflow: hidden;
    background: var(--w4e80-bg-darker);
}
.w4e80-slide {
    display: none; width: 100%; cursor: pointer;
}
.w4e80-slide img { width: 100%; height: auto; min-height: 180px; object-fit: cover; }
.w4e80-dots {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px;
}
.w4e80-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s;
}
.w4e80-dot-active { background: var(--w4e80-primary); width: 24px; border-radius: 4px; }

/* Section */
.w4e80-section {
    padding: 16px 12px;
}
.w4e80-section-title {
    font-size: 1.8rem; font-weight: 700; color: var(--w4e80-text-white);
    margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 2px solid var(--w4e80-primary);
    display: flex; align-items: center; gap: 8px;
}
.w4e80-section-title i { color: var(--w4e80-primary); font-size: 2rem; }
.w4e80-cat-label {
    font-size: 1.6rem; font-weight: 600; color: var(--w4e80-primary);
    margin: 14px 0 8px; padding-left: 8px;
    border-left: 3px solid var(--w4e80-primary);
}

/* Game Grid */
.w4e80-game-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.w4e80-game-card {
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; transition: transform 0.2s;
    background: var(--w4e80-bg-card); border-radius: var(--w4e80-radius);
    padding: 6px; overflow: hidden;
}
.w4e80-game-card:hover { transform: translateY(-2px); }
.w4e80-game-icon {
    width: 56px; height: 56px; border-radius: 8px; margin-bottom: 4px;
    object-fit: cover;
}
.w4e80-game-name {
    font-size: 1.1rem; color: var(--w4e80-text-light); text-align: center;
    line-height: 1.2; overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    max-height: 2.6rem;
}

/* Content Cards */
.w4e80-card {
    background: var(--w4e80-bg-card); border-radius: var(--w4e80-radius-lg);
    padding: 16px; margin-bottom: 12px;
    border: 1px solid var(--w4e80-border-color);
}
.w4e80-card-title {
    font-size: 1.6rem; font-weight: 700; color: var(--w4e80-primary);
    margin-bottom: 10px;
}
.w4e80-card-text {
    font-size: 1.4rem; color: var(--w4e80-text-light);
    line-height: 1.7;
}
.w4e80-card-text p { margin-bottom: 10px; }
.w4e80-card-text strong { color: var(--w4e80-primary); }

/* Promo Buttons */
.w4e80-btn {
    display: inline-block; padding: 10px 24px; border-radius: 24px;
    font-size: 1.4rem; font-weight: 600; border: none; cursor: pointer;
    transition: all 0.2s; text-align: center;
}
.w4e80-btn-primary {
    background: linear-gradient(135deg, var(--w4e80-primary), var(--w4e80-primary-dark));
    color: #fff;
}
.w4e80-btn-gold {
    background: linear-gradient(135deg, var(--w4e80-accent-gold), #e6b800);
    color: var(--w4e80-bg-dark);
}
.w4e80-btn-block { display: block; width: 100%; }
.w4e80-btn:hover { transform: scale(1.03); box-shadow: 0 2px 12px rgba(32,178,170,0.4); }

/* Promo text link */
.w4e80-promo-link {
    color: var(--w4e80-accent-gold); font-weight: 700;
    text-decoration: underline; cursor: pointer;
}
.w4e80-promo-link:hover { color: #ffd700; }

/* FAQ */
.w4e80-faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 12px 0;
}
.w4e80-faq-q {
    font-size: 1.4rem; font-weight: 600; color: var(--w4e80-primary);
    margin-bottom: 6px;
}
.w4e80-faq-a {
    font-size: 1.3rem; color: var(--w4e80-text-muted); line-height: 1.6;
}

/* Footer */
.w4e80-footer {
    background: var(--w4e80-bg-darker); padding: 20px 12px;
    border-top: 1px solid var(--w4e80-border-color);
    text-align: center;
}
.w4e80-footer-desc {
    font-size: 1.3rem; color: var(--w4e80-text-muted);
    line-height: 1.6; margin-bottom: 14px;
}
.w4e80-footer-links {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    margin-bottom: 14px;
}
.w4e80-footer-link {
    padding: 6px 12px; border-radius: 16px; font-size: 1.2rem;
    background: rgba(32,178,170,0.1); color: var(--w4e80-primary);
    border: 1px solid var(--w4e80-border-color); transition: all 0.2s;
}
.w4e80-footer-link:hover { background: var(--w4e80-primary); color: #fff; }
.w4e80-site-links {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
    margin-bottom: 14px;
}
.w4e80-site-link { font-size: 1.2rem; color: var(--w4e80-text-muted); }
.w4e80-site-link:hover { color: var(--w4e80-primary); }
.w4e80-copyright {
    font-size: 1.1rem; color: var(--w4e80-text-muted);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 12px;
}

/* Bottom Navigation */
.w4e80-bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 430px; height: var(--w4e80-bottom-height);
    background: linear-gradient(180deg, var(--w4e80-bg-darker), #1a252f);
    display: flex; justify-content: space-around; align-items: center;
    z-index: 1000; border-top: 1px solid var(--w4e80-border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
.w4e80-nav-scrolled { box-shadow: 0 -2px 10px rgba(0,0,0,0.4); }
.w4e80-bottom-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 60px; min-height: 48px; background: none; border: none;
    color: var(--w4e80-text-muted); cursor: pointer; transition: all 0.2s;
    padding: 4px 0; position: relative;
}
.w4e80-bottom-btn:hover, .w4e80-bottom-btn:focus { color: var(--w4e80-primary); }
.w4e80-bottom-btn i, .w4e80-bottom-btn .material-icons {
    font-size: 22px; margin-bottom: 2px;
}
.w4e80-bottom-btn ion-icon { font-size: 22px; margin-bottom: 2px; }
.w4e80-bottom-label { font-size: 1rem; line-height: 1.2; }
.w4e80-bottom-btn-active { color: var(--w4e80-primary); }
.w4e80-bottom-btn-active::after {
    content: ''; position: absolute; top: -1px; left: 25%; right: 25%;
    height: 2px; background: var(--w4e80-primary); border-radius: 0 0 2px 2px;
}

/* Utility */
.w4e80-text-center { text-align: center; }
.w4e80-mt-8 { margin-top: 8px; }
.w4e80-mt-16 { margin-top: 16px; }
.w4e80-mb-8 { margin-bottom: 8px; }
.w4e80-mb-16 { margin-bottom: 16px; }
.w4e80-hidden { display: none; }

/* List style */
.w4e80-list { list-style: none; padding: 0; }
.w4e80-list li {
    padding: 8px 0; font-size: 1.4rem; color: var(--w4e80-text-light);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex; align-items: flex-start; gap: 8px;
}
.w4e80-list li i { color: var(--w4e80-primary); margin-top: 2px; flex-shrink: 0; }

/* Winner showcase */
.w4e80-winner-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.w4e80-winner-name { font-size: 1.3rem; color: var(--w4e80-text-light); }
.w4e80-winner-amount { font-size: 1.3rem; color: var(--w4e80-accent-gold); font-weight: 700; }
.w4e80-winner-game { font-size: 1.1rem; color: var(--w4e80-text-muted); }

/* Payment icons row */
.w4e80-payment-row {
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
    padding: 10px 0;
}
.w4e80-payment-item {
    background: var(--w4e80-bg-card); border-radius: 8px; padding: 8px 14px;
    font-size: 1.2rem; color: var(--w4e80-text-light);
    border: 1px solid var(--w4e80-border-color);
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
    .w4e80-bottom-nav { display: none; }
}
@media (max-width: 768px) {
    .w4e80-main { padding-bottom: 76px; }
}

/* Testimonial */
.w4e80-testimonial {
    background: var(--w4e80-bg-card); border-radius: var(--w4e80-radius);
    padding: 12px; margin-bottom: 10px;
    border-left: 3px solid var(--w4e80-primary);
}
.w4e80-testimonial-text { font-size: 1.3rem; color: var(--w4e80-text-light); font-style: italic; }
.w4e80-testimonial-author { font-size: 1.1rem; color: var(--w4e80-text-muted); margin-top: 6px; }

/* Achievement badge */
.w4e80-achievement {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(241,196,15,0.1); border: 1px solid rgba(241,196,15,0.3);
    border-radius: 20px; padding: 6px 12px; margin: 4px;
    font-size: 1.2rem; color: var(--w4e80-accent-gold);
}

/* App download section */
.w4e80-app-section {
    background: linear-gradient(135deg, var(--w4e80-bg-card), var(--w4e80-bg-darker));
    border-radius: var(--w4e80-radius-lg); padding: 20px 16px;
    text-align: center; margin: 12px 0;
    border: 1px solid var(--w4e80-border-color);
}
.w4e80-app-title { font-size: 1.8rem; color: var(--w4e80-text-white); font-weight: 700; margin-bottom: 8px; }
.w4e80-app-desc { font-size: 1.3rem; color: var(--w4e80-text-muted); margin-bottom: 14px; }

/* RTP compact table */
.w4e80-rtp-table { width: 100%; border-collapse: collapse; }
.w4e80-rtp-table td {
    padding: 6px 8px; font-size: 1.3rem; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.w4e80-rtp-table td:first-child { color: var(--w4e80-text-light); }
.w4e80-rtp-table td:last-child { color: var(--w4e80-accent-green); text-align: right; font-weight: 600; }

/* Category highlight */
.w4e80-cat-highlight {
    display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.w4e80-cat-chip {
    flex-shrink: 0; padding: 8px 16px; border-radius: 20px;
    font-size: 1.2rem; background: var(--w4e80-bg-card);
    color: var(--w4e80-text-light); border: 1px solid var(--w4e80-border-color);
    cursor: pointer; transition: all 0.2s;
}
.w4e80-cat-chip:hover, .w4e80-cat-chip-active {
    background: var(--w4e80-primary); color: #fff; border-color: var(--w4e80-primary);
}
