/**
 * 366bet Core CSS Stylesheet
 * Class prefix: w2678-
 * Color palette: #2C2C2C (dark bg) | #9966CC (purple) | #6A5ACD (slate blue)
 */

/* CSS Variables */
:root {
    --w2678-primary: #9966CC;
    --w2678-secondary: #6A5ACD;
    --w2678-bg: #2C2C2C;
    --w2678-bg-light: #3A3A3A;
    --w2678-bg-card: #353535;
    --w2678-text: #F0E6FF;
    --w2678-text-muted: #B8A8D4;
    --w2678-accent: #C9A0FF;
    --w2678-border: #4A4A4A;
    --w2678-gold: #FFD700;
    --w2678-success: #4CAF50;
    --w2678-danger: #FF5252;
    font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--w2678-bg);
    color: var(--w2678-text);
    font-size: 1.5rem;
    line-height: 1.5;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--w2678-accent);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.w2678-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    z-index: 1000;
    background: linear-gradient(135deg, #1E1E1E 0%, #3A3A3A 100%);
    border-bottom: 2px solid var(--w2678-primary);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

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

.w2678-logo-area img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

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

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

.w2678-btn-register,
.w2678-btn-login {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.w2678-btn-register {
    background: linear-gradient(135deg, var(--w2678-primary), var(--w2678-secondary));
    color: #fff;
    box-shadow: 0 2px 8px rgba(153, 102, 204, 0.4);
}

.w2678-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(153, 102, 204, 0.6);
}

.w2678-btn-login {
    background: transparent;
    color: var(--w2678-accent);
    border: 1.5px solid var(--w2678-primary);
}

.w2678-btn-login:hover {
    background: var(--w2678-primary);
    color: #fff;
}

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

/* Mobile Menu */
.w2678-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    z-index: 9999;
    background: linear-gradient(180deg, #1A1A2E 0%, #2C2C2C 100%);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.w2678-menu-active {
    right: 0 !important;
}

.w2678-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.w2678-overlay-active {
    opacity: 1;
    pointer-events: auto;
}

.w2678-menu-close {
    background: none;
    border: none;
    color: var(--w2678-text);
    font-size: 2.5rem;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    cursor: pointer;
}

.w2678-menu-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w2678-accent);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--w2678-border);
}

.w2678-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.w2678-menu-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    color: var(--w2678-text);
    font-size: 1.4rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.w2678-menu-links a:hover {
    background: var(--w2678-bg-light);
    color: var(--w2678-accent);
}

.w2678-menu-links .material-icons,
.w2678-menu-links .fas,
.w2678-menu-links .far {
    font-size: 2rem;
    color: var(--w2678-primary);
}

/* Main Content */
.w2678-main {
    padding-top: 56px;
    padding-bottom: 2rem;
}

/* Carousel / Slider */
.w2678-slider {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.w2678-slide {
    display: none;
    cursor: pointer;
}

.w2678-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.w2678-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.w2678-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease;
}

.w2678-dot-active {
    background: var(--w2678-accent);
    width: 20px;
    border-radius: 4px;
}

/* Section Titles */
.w2678-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w2678-accent);
    margin: 2rem 1rem 1rem;
    padding-left: 0.8rem;
    border-left: 4px solid var(--w2678-primary);
}

.w2678-section-title .material-icons {
    font-size: 2rem;
    vertical-align: middle;
    margin-right: 0.4rem;
}

/* Game Grid */
.w2678-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.w2678-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.w2678-game-item:hover {
    transform: translateY(-3px);
}

.w2678-game-item img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--w2678-border);
    transition: border-color 0.2s ease;
}

.w2678-game-item:hover img {
    border-color: var(--w2678-primary);
}

.w2678-game-name {
    font-size: 1.1rem;
    color: var(--w2678-text-muted);
    margin-top: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.w2678-category-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 2rem 1rem 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--w2678-border);
}

.w2678-category-icon {
    font-size: 2rem;
    color: var(--w2678-primary);
}

.w2678-category-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w2678-accent);
}

/* Content Blocks */
.w2678-content-block {
    padding: 1.5rem;
    margin: 1rem;
    background: var(--w2678-bg-card);
    border-radius: 12px;
    border: 1px solid var(--w2678-border);
}

.w2678-content-block h2 {
    font-size: 1.6rem;
    color: var(--w2678-accent);
    margin-bottom: 1rem;
}

.w2678-content-block h3 {
    font-size: 1.4rem;
    color: var(--w2678-primary);
    margin: 1rem 0 0.5rem;
}

.w2678-content-block p {
    font-size: 1.3rem;
    color: var(--w2678-text-muted);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.w2678-content-block ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.w2678-content-block li {
    font-size: 1.3rem;
    color: var(--w2678-text-muted);
    line-height: 1.8;
}

/* Promo CTA */
.w2678-cta-box {
    background: linear-gradient(135deg, var(--w2678-primary), var(--w2678-secondary));
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(153, 102, 204, 0.3);
}

.w2678-cta-box h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.w2678-cta-box p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.2rem;
}

.w2678-cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--w2678-secondary);
    padding: 0.8rem 2.5rem;
    border-radius: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.w2678-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Promo text link */
.w2678-promo-link {
    color: var(--w2678-accent);
    font-weight: 700;
    cursor: pointer;
    border-bottom: 1px dashed var(--w2678-primary);
    transition: color 0.2s ease;
}

.w2678-promo-link:hover {
    color: #fff;
}

/* Testimonial Cards */
.w2678-testimonial {
    background: var(--w2678-bg-card);
    border-radius: 10px;
    padding: 1.2rem;
    margin: 0.8rem 1rem;
    border-left: 3px solid var(--w2678-primary);
}

.w2678-testimonial-name {
    font-weight: 700;
    color: var(--w2678-accent);
    font-size: 1.3rem;
}

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

/* Payment Methods */
.w2678-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1rem;
    justify-content: center;
}

.w2678-payment-item {
    background: var(--w2678-bg-card);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    font-size: 1.2rem;
    color: var(--w2678-text-muted);
    border: 1px solid var(--w2678-border);
}

/* Winners Showcase */
.w2678-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--w2678-border);
}

.w2678-winner-name {
    color: var(--w2678-text);
    font-weight: 600;
    font-size: 1.3rem;
}

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

.w2678-winner-game {
    color: var(--w2678-text-muted);
    font-size: 1.1rem;
}

/* Footer */
.w2678-footer {
    background: linear-gradient(180deg, var(--w2678-bg-light), #1A1A1A);
    padding: 2rem 1rem 1.5rem;
    margin-top: 2rem;
    border-top: 2px solid var(--w2678-primary);
}

.w2678-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.w2678-footer-brand p {
    font-size: 1.2rem;
    color: var(--w2678-text-muted);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.w2678-footer-promo {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.w2678-footer-promo-btn {
    background: linear-gradient(135deg, var(--w2678-primary), var(--w2678-secondary));
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.w2678-footer-promo-btn:hover {
    transform: scale(1.05);
}

.w2678-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 1.2rem 0;
}

.w2678-footer-links a {
    font-size: 1.2rem;
    color: var(--w2678-text-muted);
    transition: color 0.2s ease;
}

.w2678-footer-links a:hover {
    color: var(--w2678-accent);
}

.w2678-footer-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--w2678-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--w2678-border);
}

/* Bottom Mobile Navigation */
.w2678-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    z-index: 1000;
    background: linear-gradient(180deg, #2A2A3E, #1A1A2E);
    border-top: 1.5px solid var(--w2678-primary);
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.w2678-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--w2678-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.4rem;
    border-radius: 8px;
}

.w2678-bottom-nav-btn:hover,
.w2678-bottom-nav-btn:focus {
    color: var(--w2678-accent);
    background: rgba(153, 102, 204, 0.1);
}

.w2678-bottom-nav-btn.active {
    color: var(--w2678-accent);
}

.w2678-bottom-nav-btn .nav-icon {
    font-size: 24px;
    line-height: 1;
}

.w2678-bottom-nav-btn .nav-label {
    font-size: 1rem;
    margin-top: 0.2rem;
}

.w2678-bottom-nav-btn.active .nav-label {
    font-weight: 600;
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
    .w2678-bottom-nav {
        display: none;
    }
}

/* Mobile: bottom padding for nav */
@media (max-width: 768px) {
    .w2678-main {
        padding-bottom: 72px;
    }
    .w2678-footer {
        padding-bottom: 72px;
    }
}

/* Helper Classes */
.w2678-text-center {
    text-align: center;
}

.w2678-mt-1 { margin-top: 1rem; }
.w2678-mb-1 { margin-bottom: 1rem; }
.w2678-p-1 { padding: 1rem; }

/* Responsive adjustments */
@media (max-width: 320px) {
    .w2678-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .w2678-game-item img {
        width: 64px;
        height: 64px;
    }
}

@media (min-width: 431px) and (max-width: 768px) {
    body {
        max-width: 430px;
    }
}
