/**
 * X7Game Layout Stylesheet
 * Version: 1.0.0
 * All classes use prefix: wb239-
 * Color palette: #2C3E50 | #FAFAFA | #95A5A6 | #FF69B4 | #C71585
 */

/* CSS Variables */
:root {
    --wb239-primary: #FF69B4;
    --wb239-secondary: #C71585;
    --wb239-bg-dark: #2C3E50;
    --wb239-bg-light: #FAFAFA;
    --wb239-text-muted: #95A5A6;
    --wb239-text-light: #FAFAFA;
    --wb239-text-dark: #2C3E50;
    --wb239-accent: #FF69B4;
    --wb239-gradient: linear-gradient(135deg, #FF69B4 0%, #C71585 100%);
    --wb239-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --wb239-radius: 12px;
    --wb239-transition: all 0.3s ease;
}

/* Base Styles */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--wb239-bg-dark);
    color: var(--wb239-text-light);
    line-height: 1.5rem;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Container */
.wb239-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.wb239-wrapper {
    padding: 2rem 1.5rem;
}

/* Header */
.wb239-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(44, 62, 80, 0.98) 0%, rgba(44, 62, 80, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1rem;
    transition: var(--wb239-transition);
}

.wb239-header-scrolled {
    box-shadow: var(--wb239-shadow);
}

.wb239-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.wb239-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.wb239-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.wb239-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wb239-primary);
    letter-spacing: 0.5px;
}

.wb239-header-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.wb239-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--wb239-transition);
    text-decoration: none;
}

.wb239-btn-primary {
    background: var(--wb239-gradient);
    color: var(--wb239-text-light);
}

.wb239-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 105, 180, 0.4);
}

.wb239-btn-outline {
    background: transparent;
    border: 2px solid var(--wb239-primary);
    color: var(--wb239-primary);
}

.wb239-btn-outline:hover {
    background: var(--wb239-primary);
    color: var(--wb239-bg-dark);
}

.wb239-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--wb239-text-light);
    cursor: pointer;
    font-size: 2rem;
}

/* Mobile Menu */
.wb239-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--wb239-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.wb239-menu-active {
    right: 0;
}

.wb239-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--wb239-transition);
}

.wb239-overlay-active {
    opacity: 1;
    visibility: visible;
}

.wb239-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 105, 180, 0.3);
}

.wb239-menu-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wb239-primary);
}

.wb239-menu-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--wb239-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.wb239-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wb239-nav-item {
    margin-bottom: 0.5rem;
}

.wb239-nav-link {
    display: block;
    padding: 1rem 1.2rem;
    color: var(--wb239-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 8px;
    transition: var(--wb239-transition);
}

.wb239-nav-link:hover {
    background: rgba(255, 105, 180, 0.15);
    color: var(--wb239-primary);
}

/* Main Content */
.wb239-main {
    padding-top: 60px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .wb239-main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.wb239-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--wb239-radius);
    margin: 1rem 0;
}

.wb239-slides {
    position: relative;
    height: 180px;
}

.wb239-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.wb239-slide-active {
    opacity: 1;
}

.wb239-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--wb239-radius);
}

/* Sections */
.wb239-section {
    padding: 2rem 1.5rem;
}

.wb239-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wb239-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Game Grid */
.wb239-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.wb239-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--wb239-transition);
    text-decoration: none;
}

.wb239-game-card:hover {
    background: rgba(255, 105, 180, 0.2);
    transform: translateY(-3px);
}

.wb239-game-card img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 0.4rem;
}

.wb239-game-name {
    font-size: 1rem;
    color: var(--wb239-text-light);
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Label */
.wb239-category-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--wb239-gradient);
    color: var(--wb239-text-light);
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1rem;
}

/* Info Cards */
.wb239-info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--wb239-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--wb239-primary);
}

.wb239-info-card h3 {
    font-size: 1.4rem;
    color: var(--wb239-primary);
    margin-bottom: 1rem;
}

.wb239-info-card p {
    font-size: 1.2rem;
    color: var(--wb239-text-muted);
    line-height: 1.6;
}

/* Promo Link */
.wb239-promo-link {
    color: var(--wb239-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--wb239-transition);
}

.wb239-promo-link:hover {
    color: var(--wb239-secondary);
    text-decoration: underline;
}

/* Footer */
.wb239-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.wb239-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.wb239-footer-link {
    color: var(--wb239-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--wb239-transition);
}

.wb239-footer-link:hover {
    color: var(--wb239-primary);
}

.wb239-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.wb239-partner-logo {
    width: 40px;
    height: 25px;
    object-fit: contain;
    filter: grayscale(50%);
    opacity: 0.7;
    transition: var(--wb239-transition);
}

.wb239-partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.wb239-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--wb239-text-muted);
}

/* Bottom Navigation */
.wb239-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(44, 62, 80, 0.98) 0%, rgba(44, 62, 80, 1) 100%);
    backdrop-filter: blur(10px);
    padding: 0.6rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 105, 180, 0.2);
}

@media (min-width: 769px) {
    .wb239-bottom-nav {
        display: none;
    }
}

.wb239-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    background: transparent;
    border: none;
    color: var(--wb239-text-muted);
    cursor: pointer;
    transition: var(--wb239-transition);
    text-decoration: none;
    padding: 0.4rem;
}

.wb239-nav-btn:hover,
.wb239-nav-btn-active {
    color: var(--wb239-primary);
    transform: scale(1.1);
}

.wb239-nav-btn i,
.wb239-nav-btn .material-icons {
    font-size: 22px;
    margin-bottom: 0.2rem;
}

.wb239-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Touch States */
.wb239-touch-active {
    opacity: 0.8;
    transform: scale(0.98);
}

/* List Styles */
.wb239-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wb239-list-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.3rem;
}

.wb239-list-item:last-child {
    border-bottom: none;
}

/* FAQ Accordion */
.wb239-faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.wb239-faq-question {
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--wb239-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wb239-faq-answer {
    padding: 0 1.2rem 1.2rem;
    font-size: 1.2rem;
    color: var(--wb239-text-muted);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 430px) {
    .wb239-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .wb239-game-card img {
        width: 45px;
        height: 45px;
    }

    .wb239-game-name {
        font-size: 0.9rem;
    }
}

/* Utilities */
.wb239-text-center { text-align: center; }
.wb239-text-primary { color: var(--wb239-primary); }
.wb239-mb-1 { margin-bottom: 1rem; }
.wb239-mb-2 { margin-bottom: 2rem; }
.wb239-mt-2 { margin-top: 2rem; }
.wb239-hidden { display: none; }
