/* Jili365 Core CSS Styles */
/* All classes use s873- prefix for namespace isolation */

/* CSS Variables */
:root {
    --s873-primary: #708090;
    --s873-secondary: #2C3E50;
    --s873-dark: #2C2C2C;
    --s873-light: #F5F5F5;
    --s873-white: #FFFFFF;
    --s873-text: #333333;
    --s873-text-light: #888888;
    --s873-accent: #FF6B6B;
    --s873-success: #4CAF50;
    --s873-warning: #FF9800;
    --s873-border: #E0E0E0;
    --s873-shadow: rgba(0, 0, 0, 0.1);
    --s873-gradient: linear-gradient(135deg, #708090 0%, #2C3E50 100%);
}

/* Reset & 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(--s873-text);
    background-color: var(--s873-light);
    overflow-x: hidden;
}

/* Container & Layout */
.s873-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.s873-wrapper {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.s873-section {
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.s873-grid {
    display: grid;
    gap: 1.5rem;
}

.s873-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.s873-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.s873-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Header Styles */
.s873-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--s873-white);
    box-shadow: 0 2px 10px var(--s873-shadow);
    z-index: 1000;
    height: 60px;
}

.s873-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.s873-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--s873-secondary);
    font-weight: 700;
    font-size: 1.8rem;
}

.s873-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.s873-header-buttons {
    display: flex;
    gap: 1rem;
}

.s873-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.s873-btn-primary {
    background: var(--s873-gradient);
    color: var(--s873-white);
}

.s873-btn-secondary {
    background: var(--s873-white);
    color: var(--s873-secondary);
    border: 2px solid var(--s873-primary);
}

.s873-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--s873-shadow);
}

.s873-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.s873-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--s873-secondary);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.s873-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--s873-white);
    box-shadow: 2px 0 10px var(--s873-shadow);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 2rem 0;
}

.s873-mobile-menu.s873-menu-open {
    left: 0;
}

.s873-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2.4rem;
    cursor: pointer;
    color: var(--s873-secondary);
}

.s873-menu-nav {
    padding: 1rem 0;
}

.s873-menu-nav a {
    display: block;
    padding: 1rem 2rem;
    color: var(--s873-text);
    text-decoration: none;
    font-size: 1.6rem;
    transition: background 0.3s ease;
}

.s873-menu-nav a:hover {
    background: var(--s873-light);
    color: var(--s873-primary);
}

.s873-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Main Content */
.s873-main {
    padding-top: 70px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.s873-hero {
    margin-bottom: 2rem;
}

.s873-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.s873-carousel img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* Card Styles */
.s873-card {
    background: var(--s873-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--s873-shadow);
    margin-bottom: 1.5rem;
}

.s873-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s873-secondary);
    margin-bottom: 1rem;
}

.s873-card-content {
    color: var(--s873-text);
    line-height: 1.6;
}

/* Game Grid */
.s873-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.s873-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.s873-game-item:hover {
    transform: scale(1.05);
}

.s873-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: var(--s873-light);
}

.s873-game-name {
    font-size: 1rem;
    color: var(--s873-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

/* Section Title */
.s873-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s873-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.s873-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s873-primary);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--s873-accent);
}

/* Text Styles */
.s873-text-center {
    text-align: center;
}

.s873-text-primary {
    color: var(--s873-primary);
}

.s873-text-secondary {
    color: var(--s873-secondary);
}

.s873-text-accent {
    color: var(--s873-accent);
}

.s873-link {
    color: var(--s873-primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.s873-link:hover {
    text-decoration: underline;
    color: var(--s873-accent);
}

/* List Styles */
.s873-list {
    list-style: none;
    padding: 0;
}

.s873-list-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--s873-border);
}

.s873-list-item:last-child {
    border-bottom: none;
}

/* Footer */
.s873-footer {
    background: var(--s873-secondary);
    color: var(--s873-white);
    padding: 3rem 0 8rem;
    margin-top: 3rem;
}

.s873-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.s873-footer-link {
    color: var(--s873-white);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 0.5rem 1rem;
    transition: opacity 0.3s ease;
}

.s873-footer-link:hover {
    opacity: 0.8;
}

.s873-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.s873-partner-logo {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.s873-partner-logo:hover {
    opacity: 1;
}

.s873-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--s873-text-light);
    margin-top: 2rem;
}

/* Mobile Bottom Navigation */
.s873-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--s873-white);
    box-shadow: 0 -2px 10px var(--s873-shadow);
    z-index: 1000;
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.s873-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--s873-text-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.s873-nav-item:hover,
.s873-nav-item.s873-active {
    color: var(--s873-primary);
    transform: scale(1.1);
}

.s873-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.s873-nav-text {
    font-size: 10px;
    font-weight: 500;
}

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

    .s873-main {
        padding-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .s873-desktop-nav {
        display: none;
    }
}

/* Utility Classes */
.s873-mt-1 { margin-top: 1rem; }
.s873-mt-2 { margin-top: 2rem; }
.s873-mb-1 { margin-bottom: 1rem; }
.s873-mb-2 { margin-bottom: 2rem; }
.s873-p-1 { padding: 1rem; }
.s873-p-2 { padding: 2rem; }

.s873-hidden {
    display: none;
}

.s873-visible {
    display: block;
}
