/**
 * OKFan Core Stylesheet - style-18ee.css
 * Class prefix: w18ee-
 * CSS variable prefix: --w18ee-
 * Mobile-first design (max 430px), dark theme
 */

/* ===== CSS Variables ===== */
:root {
    --w18ee-primary: #228B22;
    --w18ee-secondary: #696969;
    --w18ee-accent: #98FB98;
    --w18ee-bg: #191970;
    --w18ee-text: #98FB98;
    --w18ee-card: #2E4057;
    --w18ee-bg-light: #1a1a5e;
    --w18ee-border: rgba(152, 251, 152, 0.15);
    --w18ee-shadow: rgba(0, 0, 0, 0.4);
    --w18ee-radius: 8px;
    --w18ee-transition: all 0.3s ease;
    font-size: 62.5%;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--w18ee-text);
    background-color: var(--w18ee-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a:hover {
    color: #fff;
}

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

ul, ol {
    list-style: none;
}

/* ===== Fixed Header ===== */
.w18ee-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #0f0f4a 0%, var(--w18ee-bg) 100%);
    border-bottom: 1px solid var(--w18ee-border);
    padding: 0 1.2rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

.w18ee-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.w18ee-header-logo img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

.w18ee-header-logo span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w18ee-accent);
    letter-spacing: 0.5px;
}

.w18ee-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.w18ee-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--w18ee-transition);
    min-height: 36px;
    text-decoration: none;
}

.w18ee-btn-register {
    background: var(--w18ee-primary);
    color: #fff;
}

.w18ee-btn-register:hover {
    background: #1a7a1a;
    transform: translateY(-1px);
}

.w18ee-btn-login {
    background: transparent;
    color: var(--w18ee-accent);
    border: 1px solid var(--w18ee-accent);
}

.w18ee-btn-login:hover {
    background: rgba(152, 251, 152, 0.1);
}

.w18ee-hamburger {
    background: none;
    border: none;
    color: var(--w18ee-accent);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

/* ===== Side Menu ===== */
.w18ee-side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    z-index: 9999;
    background: linear-gradient(180deg, #0d0d3d 0%, var(--w18ee-bg) 100%);
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.w18ee-menu-active {
    left: 0;
}

.w18ee-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--w18ee-transition);
}

.w18ee-overlay-active {
    opacity: 1;
    visibility: visible;
}

.w18ee-menu-close {
    background: none;
    border: none;
    color: var(--w18ee-accent);
    font-size: 2.8rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    line-height: 1;
}

.w18ee-menu-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--w18ee-accent);
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.w18ee-menu-links a {
    display: block;
    padding: 1rem 0;
    color: var(--w18ee-text);
    font-size: 1.5rem;
    border-bottom: 1px solid var(--w18ee-border);
    transition: var(--w18ee-transition);
}

.w18ee-menu-links a:hover {
    color: #fff;
    padding-left: 8px;
}

/* ===== Main Content ===== */
.w18ee-main {
    margin-top: 56px;
    padding-bottom: 80px;
    min-height: calc(100vh - 56px);
}

/* ===== Carousel ===== */
.w18ee-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 var(--w18ee-radius) var(--w18ee-radius);
}

.w18ee-carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16/7;
}

.w18ee-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    cursor: pointer;
}

.w18ee-slide-active {
    opacity: 1;
}

.w18ee-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w18ee-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.w18ee-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(152, 251, 152, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--w18ee-transition);
    padding: 0;
}

.w18ee-dot-active {
    background: var(--w18ee-accent);
    transform: scale(1.2);
}

/* ===== Section Headings ===== */
.w18ee-section {
    padding: 2rem 1.2rem;
}

.w18ee-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--w18ee-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.w18ee-section-title i,
.w18ee-section-title .material-icons {
    color: var(--w18ee-accent);
}

/* ===== Game Grid ===== */
.w18ee-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.w18ee-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--w18ee-transition);
    border-radius: var(--w18ee-radius);
    overflow: hidden;
    background: var(--w18ee-card);
    padding: 6px;
}

.w18ee-game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--w18ee-shadow);
}

.w18ee-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}

.w18ee-game-item p {
    font-size: 1.1rem;
    color: var(--w18ee-text);
    margin-top: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Tab Navigation ===== */
.w18ee-tabs {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 0 1.2rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.w18ee-tabs::-webkit-scrollbar {
    display: none;
}

.w18ee-tab-btn {
    padding: 8px 14px;
    border: 1px solid var(--w18ee-border);
    background: var(--w18ee-card);
    color: var(--w18ee-text);
    font-size: 1.3rem;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--w18ee-transition);
}

.w18ee-tab-active {
    background: var(--w18ee-primary);
    color: #fff;
    border-color: var(--w18ee-primary);
}

.w18ee-tab-panel {
    display: none;
}

.w18ee-panel-active {
    display: block;
}

/* ===== Content Cards ===== */
.w18ee-card {
    background: var(--w18ee-card);
    border-radius: var(--w18ee-radius);
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--w18ee-border);
}

.w18ee-card h3 {
    font-size: 1.7rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.w18ee-card p {
    font-size: 1.4rem;
    line-height: 1.7;
    color: rgba(152, 251, 152, 0.85);
}

/* ===== Promo CTA ===== */
.w18ee-cta {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, var(--w18ee-primary) 0%, #1a6b1a 100%);
    border-radius: var(--w18ee-radius);
    margin: 1.5rem 0;
    cursor: pointer;
    transition: var(--w18ee-transition);
}

.w18ee-cta:hover {
    transform: scale(1.02);
}

.w18ee-cta h3 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.w18ee-cta p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
}

.w18ee-cta .w18ee-btn {
    margin-top: 1.2rem;
    background: #fff;
    color: var(--w18ee-primary);
    font-size: 1.5rem;
    padding: 10px 28px;
}

/* ===== Footer ===== */
.w18ee-footer {
    background: linear-gradient(180deg, var(--w18ee-bg) 0%, #0d0d3d 100%);
    padding: 2.5rem 1.2rem 3rem;
    border-top: 1px solid var(--w18ee-border);
}

.w18ee-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.w18ee-footer-brand p {
    font-size: 1.3rem;
    color: rgba(152, 251, 152, 0.7);
    max-width: 320px;
    margin: 0.5rem auto;
}

.w18ee-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin: 1.5rem 0;
}

.w18ee-footer-links a {
    font-size: 1.3rem;
    color: rgba(152, 251, 152, 0.6);
}

.w18ee-footer-links a:hover {
    color: #fff;
}

.w18ee-footer-copy {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(152, 251, 152, 0.4);
    margin-top: 1.5rem;
}

.w18ee-footer-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 1.5rem 0;
}

.w18ee-footer-partners img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    opacity: 0.7;
    transition: var(--w18ee-transition);
}

.w18ee-footer-partners img:hover {
    opacity: 1;
}

/* ===== Bottom Navigation ===== */
.w18ee-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    background: linear-gradient(135deg, #0d0d3d 0%, #141452 100%);
    border-top: 1px solid var(--w18ee-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
}

.w18ee-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: rgba(152, 251, 152, 0.6);
    cursor: pointer;
    transition: var(--w18ee-transition);
    padding: 4px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.w18ee-bottom-nav-btn i,
.w18ee-bottom-nav-btn .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
}

.w18ee-bottom-nav-btn span {
    font-size: 1rem;
    line-height: 1.2;
}

.w18ee-bottom-nav-btn:hover,
.w18ee-bottom-nav-btn.w18ee-nav-active {
    color: var(--w18ee-accent);
}

.w18ee-bottom-nav-btn.w18ee-nav-active {
    background: rgba(34, 139, 34, 0.15);
    border-radius: 8px;
}

.w18ee-bottom-nav-btn:active {
    transform: scale(0.92);
}

/* ===== Utility ===== */
.w18ee-text-center {
    text-align: center;
}

.w18ee-mt-1 {
    margin-top: 0.8rem;
}

.w18ee-mb-1 {
    margin-bottom: 0.8rem;
}

.w18ee-hidden {
    display: none;
}

/* ===== Info List ===== */
.w18ee-info-list {
    padding: 0;
}

.w18ee-info-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--w18ee-border);
    font-size: 1.4rem;
    color: rgba(152, 251, 152, 0.85);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.w18ee-info-list li:last-child {
    border-bottom: none;
}

/* ===== H1 ===== */
.w18ee-page-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    padding: 1.5rem 1.2rem;
    line-height: 1.3;
}

.w18ee-page-subtitle {
    font-size: 1.5rem;
    color: rgba(152, 251, 152, 0.75);
    text-align: center;
    padding: 0 1.2rem 1.5rem;
}

/* ===== Article Content ===== */
.w18ee-article {
    padding: 0 1.2rem 2rem;
}

.w18ee-article h2 {
    font-size: 1.9rem;
    color: #fff;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--w18ee-border);
}

.w18ee-article h3 {
    font-size: 1.6rem;
    color: var(--w18ee-accent);
    margin: 1.5rem 0 0.8rem;
}

.w18ee-article p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: rgba(152, 251, 152, 0.85);
    margin-bottom: 1rem;
}

.w18ee-article ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.w18ee-article ul li {
    font-size: 1.4rem;
    line-height: 1.7;
    color: rgba(152, 251, 152, 0.85);
    margin-bottom: 0.5rem;
    list-style: disc;
}

/* ===== Breadcrumb ===== */
.w18ee-breadcrumb {
    font-size: 1.2rem;
    color: rgba(152, 251, 152, 0.5);
    padding: 0.8rem 1.2rem;
}

.w18ee-breadcrumb a {
    color: rgba(152, 251, 152, 0.7);
}

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

    .w18ee-main {
        padding-bottom: 0;
    }

    .w18ee-header {
        padding: 0 2rem;
        height: 64px;
    }

    .w18ee-main {
        margin-top: 64px;
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
    }

    .w18ee-game-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
}

/* ===== Mobile Adjustments ===== */
@media (max-width: 768px) {
    .w18ee-main {
        padding-bottom: 76px;
    }
}

/* ===== Touch Targets ===== */
@media (pointer: coarse) {
    .w18ee-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .w18ee-game-item {
        min-height: 44px;
    }
}
