/* JILIMK CSS Layout with v902- prefix */
/* Root and base styles */
:root {
    font-size: 62.5%; /* 1rem = 10px */
    --v902-primary: #0E1621;
    --v902-secondary: #E0FFFF;
    --v902-accent: #E8F5E8;
    --v902-highlight: #26A69A;
    --v902-text-light: #ffffff;
    --v902-text-dark: #333333;
    --v902-border: #e0e0e0;
    --v902-shadow: rgba(0, 0, 0, 0.1);
    --v902-radius: 0.8rem;
    --v902-spacing: 1.6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    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(--v902-text-dark);
    background-color: var(--v902-secondary);
    overflow-x: hidden;
}

/* Container and layout */
.v902-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.v902-main {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

@media (min-width: 769px) {
    .v902-container {
        max-width: 1200px;
    }
    .v902-main {
        padding-top: 10rem;
        padding-bottom: 0;
    }
}

/* Header styles */
.v902-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--v902-primary) 0%, var(--v902-highlight) 100%);
    padding: 1.5rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--v902-shadow);
}

.v902-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.v902-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--v902-text-light);
}

.v902-logo img {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
}

.v902-logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v902-text-light);
}

.v902-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.v902-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--v902-radius);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.v902-btn-primary {
    background: var(--v902-highlight);
    color: var(--v902-text-light);
}

.v902-btn-primary:hover {
    background: #1e8579;
    transform: translateY(-2px);
}

.v902-btn-secondary {
    background: transparent;
    color: var(--v902-text-light);
    border: 2px solid var(--v902-text-light);
}

.v902-btn-secondary:hover {
    background: var(--v902-text-light);
    color: var(--v902-primary);
}

.v902-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.4rem;
    color: var(--v902-text-light);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .v902-menu-toggle {
        display: block;
    }
}

/* Mobile menu */
.v902-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--v902-primary);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.v902-mobile-menu.v902-active {
    right: 0;
}

.v902-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.v902-menu-overlay.v902-active {
    opacity: 1;
    visibility: visible;
}

.v902-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2.4rem;
    color: var(--v902-text-light);
    cursor: pointer;
}

.v902-menu-nav {
    margin-top: 4rem;
}

.v902-menu-nav ul {
    list-style: none;
}

.v902-menu-nav li {
    margin-bottom: 1.5rem;
}

.v902-menu-nav a {
    color: var(--v902-text-light);
    text-decoration: none;
    font-size: 1.6rem;
    display: block;
    padding: 1rem 0;
    transition: color 0.3s ease;
}

.v902-menu-nav a:hover {
    color: var(--v902-highlight);
}

/* Carousel styles */
.v902-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--v902-radius);
    margin-bottom: 3rem;
    cursor: pointer;
}

.v902-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.v902-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v902-carousel-slide.v902-active {
    opacity: 1;
}

.v902-carousel-content {
    text-align: center;
    color: var(--v902-text-light);
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: var(--v902-radius);
}

.v902-carousel-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.v902-carousel-text {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.v902-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.v902-carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.v902-carousel-indicator.v902-active {
    background: var(--v902-highlight);
}

/* Games section */
.v902-games-section {
    margin-bottom: 4rem;
}

.v902-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--v902-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.v902-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.v902-game-item {
    background: var(--v902-text-light);
    border-radius: var(--v902-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--v902-shadow);
}

.v902-game-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px var(--v902-shadow);
}

.v902-game-item img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    border-radius: 0.4rem;
}

.v902-game-item span {
    font-size: 1.2rem;
    color: var(--v902-text-dark);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content modules */
.v902-content-module {
    background: var(--v902-text-light);
    border-radius: var(--v902-radius);
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px var(--v902-shadow);
}

.v902-module-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v902-primary);
    margin-bottom: 1.5rem;
}

.v902-module-content {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--v902-text-dark);
}

.v902-module-content p {
    margin-bottom: 1.5rem;
}

.v902-module-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.v902-module-content li {
    margin-bottom: 0.5rem;
}

.v902-affiliate-link {
    color: var(--v902-highlight);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.v902-affiliate-link:hover {
    text-decoration: underline;
}

/* Partners section */
.v902-partners {
    text-align: center;
    padding: 3rem 0;
    background: var(--v902-accent);
    border-radius: var(--v902-radius);
    margin-bottom: 3rem;
}

.v902-partners-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--v902-primary);
    margin-bottom: 2rem;
}

.v902-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: center;
}

.v902-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.v902-partner-logo:hover {
    opacity: 1;
}

/* Footer */
.v902-footer {
    background: var(--v902-primary);
    color: var(--v902-text-light);
    padding: 3rem 0 2rem;
    text-align: center;
}

.v902-footer-content {
    margin-bottom: 2rem;
}

.v902-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.v902-footer-links a {
    color: var(--v902-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.v902-footer-links a:hover {
    color: var(--v902-highlight);
}

.v902-footer-text {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: 2rem;
}

/* Mobile bottom navigation */
.v902-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--v902-primary);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px var(--v902-shadow);
    display: none;
}

.v902-mobile-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.v902-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.8rem;
    text-decoration: none;
    color: var(--v902-text-light);
}

.v902-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.v902-nav-item i {
    font-size: 2rem;
    transition: color 0.3s ease;
}

.v902-nav-item span {
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.v902-nav-item:hover i,
.v902-nav-item:hover span {
    color: var(--v902-highlight);
}

@media (max-width: 768px) {
    .v902-mobile-nav {
        display: block;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .v902-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .v902-game-item span {
        font-size: 1rem;
    }

    .v902-partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .v902-carousel {
        height: 160px;
    }

    .v902-carousel-title {
        font-size: 2rem;
    }

    .v902-section-title {
        font-size: 2rem;
    }
}

/* Utility classes */
.v902-text-center {
    text-align: center;
}

.v902-text-left {
    text-align: left;
}

.v902-text-right {
    text-align: right;
}

.v902-mb-1 {
    margin-bottom: 1rem;
}

.v902-mb-2 {
    margin-bottom: 2rem;
}

.v902-mb-3 {
    margin-bottom: 3rem;
}

.v902-mt-1 {
    margin-top: 1rem;
}

.v902-mt-2 {
    margin-top: 2rem;
}

.v902-mt-3 {
    margin-top: 3rem;
}

/* Animation classes */
@keyframes v902-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.v902-fade-in {
    animation: v902-fadeIn 0.6s ease forwards;
}

/* Loading states */
.v902-loading {
    opacity: 0.6;
    pointer-events: none;
}

.v902-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--v902-border);
    border-top: 2px solid var(--v902-highlight);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}