/**
 * lucky game apk - Core CSS Stylesheet
 * Version: 1.0.0
 * Prefix: wd122-
 * Colors: #CD853F (accent) | #0D1117 (background)
 */

/* CSS Variables */
:root {
    --wd122-primary: #CD853F;
    --wd122-primary-dark: #A0522D;
    --wd122-primary-light: #DEB887;
    --wd122-bg: #0D1117;
    --wd122-bg-light: #161B22;
    --wd122-bg-card: #21262D;
    --wd122-text: #CD853F;
    --wd122-text-light: #F0E68C;
    --wd122-text-muted: #8B8B8B;
    --wd122-border: #30363D;
    --wd122-success: #2EA043;
    --wd122-danger: #F85149;
    --wd122-gradient: linear-gradient(135deg, #CD853F 0%, #A0522D 100%);
    --wd122-shadow: 0 4px 20px rgba(205, 133, 63, 0.15);
    --wd122-radius: 8px;
    --wd122-radius-lg: 16px;
    --wd122-vh: 1vh;
}

/* Reset and 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, Oxygen, Ubuntu, sans-serif;
    background-color: var(--wd122-bg);
    color: var(--wd122-text);
    line-height: 1.5;
    font-size: 1.4rem;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
.wd122-h1, .wd122-h2, .wd122-h3, .wd122-h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--wd122-text-light);
}

.wd122-h1 { font-size: 2.4rem; }
.wd122-h2 { font-size: 2rem; }
.wd122-h3 { font-size: 1.8rem; }
.wd122-h4 { font-size: 1.6rem; }

/* Container */
.wd122-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.wd122-wrapper {
    width: 100%;
    padding: 2rem 0;
}

/* Header */
.wd122-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--wd122-bg) 0%, rgba(13, 17, 23, 0.95) 100%);
    border-bottom: 1px solid var(--wd122-border);
    backdrop-filter: blur(10px);
}

.wd122-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.6rem;
    max-width: 430px;
    margin: 0 auto;
}

.wd122-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.wd122-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.wd122-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wd122-primary);
}

.wd122-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Buttons */
.wd122-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: var(--wd122-radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 44px;
}

.wd122-btn-primary {
    background: var(--wd122-gradient);
    color: #fff;
}

.wd122-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--wd122-shadow);
}

.wd122-btn-outline {
    background: transparent;
    color: var(--wd122-primary);
    border: 2px solid var(--wd122-primary);
}

.wd122-btn-outline:hover {
    background: var(--wd122-primary);
    color: var(--wd122-bg);
}

/* Menu Toggle */
.wd122-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.wd122-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--wd122-primary);
    transition: all 0.3s ease;
}

.wd122-toggle-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.wd122-toggle-active span:nth-child(2) {
    opacity: 0;
}

.wd122-toggle-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.wd122-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--wd122-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 8rem 2rem 2rem;
}

.wd122-menu-active {
    right: 0;
}

.wd122-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wd122-overlay-active {
    opacity: 1;
    visibility: visible;
}

.wd122-nav-list {
    list-style: none;
}

.wd122-nav-item {
    display: block;
    padding: 1.4rem 1rem;
    color: var(--wd122-text);
    text-decoration: none;
    border-bottom: 1px solid var(--wd122-border);
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.wd122-nav-item:hover {
    color: var(--wd122-primary-light);
    background: var(--wd122-bg-card);
    padding-left: 1.5rem;
}

/* Carousel */
.wd122-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--wd122-radius-lg);
    margin-bottom: 2rem;
}

.wd122-slides {
    position: relative;
    width: 100%;
    height: 200px;
}

.wd122-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.wd122-slide-active {
    opacity: 1;
}

.wd122-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--wd122-radius-lg);
}

.wd122-slide-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.wd122-slide-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wd122-indicator-active {
    background: var(--wd122-primary);
    width: 24px;
    border-radius: 4px;
}

/* Game Section */
.wd122-section {
    padding: 2rem 0;
}

.wd122-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.wd122-section-title {
    font-size: 1.8rem;
    color: var(--wd122-text-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.wd122-section-title i {
    color: var(--wd122-primary);
}

/* Game Grid */
.wd122-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.wd122-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 0.8rem;
    background: var(--wd122-bg-card);
    border-radius: var(--wd122-radius);
    border: 1px solid var(--wd122-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.wd122-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--wd122-primary);
    box-shadow: var(--wd122-shadow);
}

.wd122-game-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 0.6rem;
}

.wd122-game-name {
    font-size: 1.1rem;
    color: var(--wd122-text);
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Content Sections */
.wd122-content-block {
    background: var(--wd122-bg-card);
    border-radius: var(--wd122-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--wd122-border);
}

.wd122-content-block h2 {
    color: var(--wd122-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.wd122-content-block p {
    color: var(--wd122-text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.wd122-content-block ul {
    list-style: none;
    padding-left: 0;
}

.wd122-content-block li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--wd122-text-muted);
}

.wd122-content-block li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--wd122-success);
}

/* Promo Link */
.wd122-promo-link {
    color: var(--wd122-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.wd122-promo-link:hover {
    color: var(--wd122-primary-light);
    text-decoration: underline;
}

/* Footer */
.wd122-footer {
    background: var(--wd122-bg-light);
    border-top: 1px solid var(--wd122-border);
    padding: 2rem 0;
    margin-top: 2rem;
}

.wd122-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.wd122-footer-link {
    color: var(--wd122-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.wd122-footer-link:hover {
    color: var(--wd122-primary);
}

.wd122-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.wd122-partner-logo {
    width: 48px;
    height: 24px;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.wd122-partner-logo:hover {
    opacity: 1;
}

.wd122-copyright {
    text-align: center;
    color: var(--wd122-text-muted);
    font-size: 1.2rem;
}

/* Bottom Navigation */
.wd122-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--wd122-bg-light);
    border-top: 1px solid var(--wd122-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 0 0.5rem;
}

.wd122-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    min-width: 60px;
    min-height: 56px;
    background: none;
    border: none;
    color: var(--wd122-text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.wd122-nav-btn:hover {
    color: var(--wd122-primary);
    background: rgba(205, 133, 63, 0.1);
}

.wd122-nav-btn.active {
    color: var(--wd122-primary);
}

.wd122-nav-btn i {
    font-size: 22px;
}

.wd122-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Touch Active State */
.wd122-touch-active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* Main Content Padding for Bottom Nav */
@media (max-width: 768px) {
    .wd122-main {
        padding-bottom: 80px;
    }
}

/* Desktop: Hide Bottom Nav, Show Desktop Menu */
@media (min-width: 769px) {
    .wd122-bottom-nav {
        display: none;
    }

    .wd122-menu-toggle {
        display: none;
    }

    .wd122-header-nav {
        display: flex;
        gap: 2rem;
    }

    .wd122-header-nav a {
        color: var(--wd122-text);
        text-decoration: none;
        font-size: 1.4rem;
        transition: color 0.2s ease;
    }

    .wd122-header-nav a:hover {
        color: var(--wd122-primary);
    }
}

/* Hide desktop nav on mobile */
@media (max-width: 768px) {
    .wd122-header-nav {
        display: none;
    }
}

/* Utility Classes */
.wd122-text-center { text-align: center; }
.wd122-text-left { text-align: left; }
.wd122-mb-1 { margin-bottom: 1rem; }
.wd122-mb-2 { margin-bottom: 2rem; }
.wd122-mt-2 { margin-top: 2rem; }
.wd122-py-2 { padding: 2rem 0; }

/* Responsive Grid */
@media (max-width: 360px) {
    .wd122-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .wd122-game-icon {
        width: 48px;
        height: 48px;
    }

    .wd122-game-name {
        font-size: 1rem;
    }
}
