/**
 * wj2 Stylesheet
 * All classes use prefix: w23e2-
 * Mobile-first responsive design
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --w23e2-primary: #E0FFFF;
    --w23e2-bg: #141414;
    --w23e2-bg-light: #1e1e1e;
    --w23e2-bg-dark: #0a0a0a;
    --w23e2-accent: #00d4aa;
    --w23e2-accent-hover: #00b894;
    --w23e2-text-secondary: #b8b8b8;
    --w23e2-border: #2a2a2a;
    --w23e2-shadow: rgba(0, 212, 170, 0.1);
}

/* Reset and Base Styles */
*, *::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, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--w23e2-primary);
    background-color: var(--w23e2-bg);
    min-height: 100vh;
}

/* Container */
.w23e2-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.w23e2-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--w23e2-bg-dark);
    border-bottom: 1px solid var(--w23e2-border);
    box-shadow: 0 2px 10px var(--w23e2-shadow);
}

.w23e2-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.w23e2-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--w23e2-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.w23e2-logo img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.w23e2-header-buttons {
    display: flex;
    gap: 1rem;
}

.w23e2-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--w23e2-bg-dark);
    background-color: var(--w23e2-accent);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.w23e2-btn:hover {
    background-color: var(--w23e2-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--w23e2-shadow);
}

.w23e2-btn-outline {
    color: var(--w23e2-accent);
    background-color: transparent;
    border: 2px solid var(--w23e2-accent);
}

.w23e2-btn-outline:hover {
    background-color: var(--w23e2-accent);
    color: var(--w23e2-bg-dark);
}

.w23e2-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--w23e2-primary);
    font-size: 2.4rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.w23e2-menu-toggle:hover {
    background-color: var(--w23e2-bg-light);
}

/* Mobile Menu */
.w23e2-mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--w23e2-bg-dark);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 2rem 0;
}

.w23e2-mobile-menu.w23e2-menu-open {
    transform: translateX(0);
}

.w23e2-menu-list {
    list-style: none;
    padding: 0 1.5rem;
}

.w23e2-menu-item {
    margin-bottom: 0.5rem;
}

.w23e2-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    color: var(--w23e2-primary);
    text-decoration: none;
    font-size: 1.6rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.w23e2-menu-link:hover {
    background-color: var(--w23e2-bg-light);
}

.w23e2-menu-link.w23e2-nav-active {
    background-color: var(--w23e2-accent);
    color: var(--w23e2-bg-dark);
}

.w23e2-menu-icon {
    font-size: 2rem;
    width: 24px;
    text-align: center;
}

/* Main Content */
.w23e2-main {
    padding-top: 80px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .w23e2-main {
        padding-bottom: 2rem;
    }
}

/* Hero Carousel */
.w23e2-carousel {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--w23e2-shadow);
}

.w23e2-carousel-item {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    cursor: pointer;
}

.w23e2-carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.w23e2-carousel-item:hover img {
    transform: scale(1.05);
}

/* Section */
.w23e2-section {
    margin-bottom: 3rem;
}

.w23e2-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--w23e2-primary);
    text-align: center;
}

/* Game Grid */
.w23e2-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.w23e2-game-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.w23e2-game-item:hover {
    transform: scale(1.05);
}

.w23e2-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    background-color: var(--w23e2-bg-light);
}

.w23e2-game-name {
    font-size: 1rem;
    text-align: center;
    margin-top: 0.4rem;
    color: var(--w23e2-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.w23e2-game-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Cards */
.w23e2-card {
    background-color: var(--w23e2-bg-light);
    border: 1px solid var(--w23e2-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.w23e2-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--w23e2-shadow);
}

.w23e2-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--w23e2-accent);
}

.w23e2-card-content {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--w23e2-text-secondary);
}

/* FAQ */
.w23e2-faq-item {
    background-color: var(--w23e2-bg-light);
    border: 1px solid var(--w23e2-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.w23e2-faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w23e2-primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w23e2-faq-answer {
    padding: 0 1.5rem 1.2rem;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--w23e2-text-secondary);
}

/* List */
.w23e2-list {
    list-style: none;
}

.w23e2-list-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--w23e2-border);
    font-size: 1.5rem;
    color: var(--w23e2-text-secondary);
}

.w23e2-list-item:last-child {
    border-bottom: none;
}

/* Link */
.w23e2-link {
    color: var(--w23e2-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.w23e2-link:hover {
    color: var(--w23e2-accent-hover);
    text-decoration: underline;
}

/* Footer */
.w23e2-footer {
    background-color: var(--w23e2-bg-dark);
    border-top: 1px solid var(--w23e2-border);
    padding: 2rem 0;
    margin-top: 3rem;
}

.w23e2-footer-content {
    margin-bottom: 2rem;
}

.w23e2-footer-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--w23e2-text-secondary);
    margin-bottom: 1rem;
}

.w23e2-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.w23e2-footer-link {
    font-size: 1.4rem;
    color: var(--w23e2-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.w23e2-footer-link:hover {
    color: var(--w23e2-accent-hover);
}

.w23e2-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.w23e2-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.w23e2-partner-logo:hover {
    opacity: 1;
}

.w23e2-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--w23e2-text-secondary);
}

/* Bottom Navigation */
.w23e2-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--w23e2-bg-light) 0%, var(--w23e2-bg-dark) 100%);
    border-top: 2px solid var(--w23e2-accent);
    box-shadow: 0 -4px 20px var(--w23e2-shadow);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    max-width: 430px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .w23e2-bottom-nav {
        display: none;
    }
}

.w23e2-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--w23e2-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.w23e2-bottom-nav-item:hover {
    color: var(--w23e2-accent);
    transform: scale(1.1);
}

.w23e2-bottom-nav-item.w23e2-bottom-nav-active {
    color: var(--w23e2-accent);
}

.w23e2-bottom-nav-item.w23e2-bottom-nav-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--w23e2-accent);
    border-radius: 0 0 3px 3px;
}

.w23e2-bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 0.2rem;
}

.w23e2-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Utility Classes */
.w23e2-text-center {
    text-align: center;
}

.w23e2-mt-1 { margin-top: 1rem; }
.w23e2-mt-2 { margin-top: 2rem; }
.w23e2-mb-1 { margin-bottom: 1rem; }
.w23e2-mb-2 { margin-bottom: 2rem; }

.w23e2-hidden {
    display: none;
}
