/* jili kk - CSS with wa758- prefix */
:root {
    --wa758-primary: #708090;
    --wa758-secondary: #696969;
    --wa758-dark: #1A1A2E;
    --wa758-light: #BDC3C7;
    --wa758-white: #ffffff;
    --wa758-black: #000000;
    --wa758-gray: #f5f5f5;
    --wa758-text: #333333;
    --wa758-border: #e0e0e0;
    --wa758-shadow: rgba(0, 0, 0, 0.1);
    --wa758-radius: 8px;
    --wa758-transition: all 0.3s ease;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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(--wa758-text);
    background-color: var(--wa758-dark);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* Utility classes */
.wa758-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.wa758-wrapper {
    width: 100%;
    position: relative;
}

.wa758-grid {
    display: grid;
    gap: 1rem;
}

.wa758-flex {
    display: flex;
}

.wa758-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa758-text-center {
    text-align: center;
}

.wa758-text-primary {
    color: var(--wa758-primary);
}

.wa758-text-light {
    color: var(--wa758-light);
}

.wa758-bg-dark {
    background-color: var(--wa758-dark);
}

.wa758-bg-primary {
    background-color: var(--wa758-primary);
}

/* Header and Navigation */
.wa758-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--wa758-dark) 0%, var(--wa758-secondary) 100%);
    box-shadow: 0 2px 10px var(--wa758-shadow);
    z-index: 1000;
    padding: 1rem 0;
}

.wa758-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.wa758-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--wa758-white);
    font-size: 2rem;
    font-weight: bold;
}

.wa758-logo img {
    width: 28px;
    height: 28px;
}

.wa758-nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.wa758-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: var(--wa758-radius);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wa758-transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa758-btn-primary {
    background: linear-gradient(135deg, var(--wa758-primary) 0%, var(--wa758-secondary) 100%);
    color: var(--wa758-white);
}

.wa758-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 128, 144, 0.4);
}

.wa758-btn-outline {
    background: transparent;
    color: var(--wa758-light);
    border: 2px solid var(--wa758-light);
}

.wa758-btn-outline:hover {
    background: var(--wa758-light);
    color: var(--wa758-dark);
}

.wa758-menu-toggle {
    background: none;
    border: none;
    color: var(--wa758-white);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.wa758-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--wa758-dark);
    box-shadow: -5px 0 15px var(--wa758-shadow);
    transition: right 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.wa758-mobile-menu.active {
    right: 0;
}

.wa758-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--wa758-transition);
    z-index: 9998;
}

.wa758-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wa758-mobile-nav {
    padding: 2rem;
}

.wa758-mobile-nav ul {
    list-style: none;
}

.wa758-mobile-nav li {
    margin-bottom: 1rem;
}

.wa758-mobile-nav a {
    color: var(--wa758-light);
    text-decoration: none;
    font-size: 1.6rem;
    padding: 1rem;
    display: block;
    border-radius: var(--wa758-radius);
    transition: var(--wa758-transition);
}

.wa758-mobile-nav a:hover,
.wa758-mobile-nav a.active {
    background: var(--wa758-primary);
    color: var(--wa758-white);
}

/* Main Content */
.wa758-main {
    padding-top: 80px;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .wa758-main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.wa758-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--wa758-radius);
    margin-bottom: 2rem;
}

.wa758-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.wa758-slide {
    min-width: 100%;
    position: relative;
}

.wa758-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.wa758-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    color: var(--wa758-white);
}

.wa758-slide-title {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.wa758-slide-text {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.wa758-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.wa758-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--wa758-transition);
}

.wa758-dot.active {
    background: var(--wa758-white);
    width: 30px;
    border-radius: 5px;
}

/* Sections */
.wa758-section {
    margin-bottom: 3rem;
}

.wa758-section-header {
    margin-bottom: 2rem;
}

.wa758-section-title {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--wa758-white);
    margin-bottom: 1rem;
}

.wa758-section-subtitle {
    font-size: 1.6rem;
    color: var(--wa758-light);
    line-height: 1.6;
}

/* Game Grid */
.wa758-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
}

.wa758-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--wa758-transition);
}

.wa758-game-item:hover {
    transform: translateY(-4px);
}

.wa758-game-icon {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--wa758-radius);
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px var(--wa758-shadow);
}

.wa758-game-name {
    font-size: 1.2rem;
    color: var(--wa758-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cards */
.wa758-card {
    background: var(--wa758-secondary);
    border-radius: var(--wa758-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px var(--wa758-shadow);
    transition: var(--wa758-transition);
}

.wa758-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--wa758-shadow);
}

.wa758-card-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--wa758-white);
    margin-bottom: 1rem;
}

.wa758-card-text {
    color: var(--wa758-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Bottom Navigation */
.wa758-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--wa758-dark) 0%, var(--wa758-secondary) 100%);
    box-shadow: 0 -2px 10px var(--wa758-shadow);
    z-index: 1000;
    display: none;
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .wa758-bottom-nav {
        display: block;
    }
}

.wa758-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.wa758-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--wa758-light);
    font-size: 1rem;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    border-radius: var(--wa758-radius);
    transition: var(--wa758-transition);
}

.wa758-bottom-nav-item:hover,
.wa758-bottom-nav-item.active {
    color: var(--wa758-white);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.wa758-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
}

/* Footer */
.wa758-footer {
    background: var(--wa758-dark);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.wa758-footer-content {
    margin-bottom: 2rem;
}

.wa758-footer-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--wa758-white);
    margin-bottom: 1rem;
}

.wa758-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.wa758-footer-links a {
    color: var(--wa758-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--wa758-transition);
}

.wa758-footer-links a:hover {
    color: var(--wa758-white);
}

.wa758-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.wa758-partner-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--wa758-transition);
}

.wa758-partner-icon:hover {
    filter: grayscale(0%);
}

.wa758-copyright {
    text-align: center;
    color: var(--wa758-light);
    font-size: 1.2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--wa758-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 60%;
    }

    .wa758-section-title {
        font-size: 2rem;
    }

    .wa758-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .wa758-game-icon {
        height: 70px;
    }
}

@media (max-width: 430px) {
    .wa758-container {
        padding: 0 1rem;
    }

    .wa758-card {
        padding: 1.5rem;
    }

    .wa758-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1.3rem;
    }
}

/* Animations */
@keyframes wa758fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wa758-fade-in {
    animation: wa758fadeIn 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
.wa758-btn:focus,
.wa758-nav a:focus,
.wa758-bottom-nav-item:focus {
    outline: 2px solid var(--wa758-primary);
    outline-offset: 2px;
}

/* Utility classes for spacing */
.wa758-mb-1 { margin-bottom: 1rem; }
.wa758-mb-2 { margin-bottom: 2rem; }
.wa758-mb-3 { margin-bottom: 3rem; }
.wa758-mt-1 { margin-top: 1rem; }
.wa758-mt-2 { margin-top: 2rem; }
.wa758-mt-3 { margin-top: 3rem; }

/* Text utilities */
.wa758-text-sm { font-size: 1.2rem; }
.wa758-text-lg { font-size: 1.8rem; }
.wa758-text-xl { font-size: 2.4rem; }
.wa758-font-bold { font-weight: bold; }

/* Link styles */
.wa758-link {
    color: var(--wa758-primary);
    text-decoration: none;
    transition: var(--wa758-transition);
}

.wa758-link:hover {
    color: var(--wa758-light);
    text-decoration: underline;
}