/**
 * JL96 Stylesheet
 * All classes use s074 prefix for namespace isolation
 */

/* CSS Variables */
:root {
    --s074-primary: #87CEEB;
    --s074-primary-dark: #5FA8C9;
    --s074-bg: #2C2C2C;
    --s074-bg-light: #3A3A3A;
    --s074-bg-lighter: #484848;
    --s074-text: #FFFFFF;
    --s074-text-muted: #B0B0B0;
    --s074-text-dark: #1A1A1A;
    --s074-border: #444444;
    --s074-success: #4CAF50;
    --s074-warning: #FF9800;
    --s074-error: #F44336;
    --s074-shadow: rgba(0, 0, 0, 0.3);
    --s074-gradient: linear-gradient(135deg, #87CEEB 0%, #5FA8C9 100%);
}

/* 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(--s074-text);
    background-color: var(--s074-bg);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.s074-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

/* Header */
.s074-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--s074-bg);
    border-bottom: 1px solid var(--s074-border);
    z-index: 1000;
    box-shadow: 0 2px 10px var(--s074-shadow);
}

.s074-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.s074-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s074-primary);
}

.s074-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.s074-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.s074-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    touch-action: manipulation;
}

.s074-btn-primary {
    background: var(--s074-gradient);
    color: var(--s074-text-dark);
}

.s074-btn-primary:hover,
.s074-btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.4);
}

.s074-btn-secondary {
    background-color: var(--s074-bg-lighter);
    color: var(--s074-primary);
    border: 2px solid var(--s074-primary);
}

.s074-btn-secondary:hover,
.s074-btn-secondary:active {
    background-color: var(--s074-primary);
    color: var(--s074-text-dark);
}

.s074-menu-toggle {
    background: none;
    border: none;
    color: var(--s074-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.s074-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.s074-menu-overlay.s074-active {
    opacity: 1;
    visibility: visible;
}

.s074-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--s074-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px var(--s074-shadow);
}

.s074-mobile-menu.s074-active {
    right: 0;
}

.s074-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--s074-border);
}

.s074-menu-close {
    background: none;
    border: none;
    color: var(--s074-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.s074-menu-nav {
    padding: 1rem 0;
}

.s074-menu-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--s074-text);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.s074-menu-nav a:hover {
    background-color: var(--s074-bg-lighter);
    border-left-color: var(--s074-primary);
    color: var(--s074-primary);
}

/* Main Content */
.s074-main {
    margin-top: 70px;
    margin-bottom: 80px;
    padding: 1rem 0;
}

/* Carousel */
.s074-carousel {
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--s074-shadow);
}

.s074-carousel-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.s074-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.s074-carousel-slide.s074-active {
    opacity: 1;
}

.s074-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s074-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.s074-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.s074-carousel-dot.s074-active {
    background-color: var(--s074-primary);
    transform: scale(1.2);
}

/* Page Title */
.s074-page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--s074-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.3;
}

/* Section */
.s074-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--s074-bg-light);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--s074-shadow);
}

.s074-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--s074-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.s074-section-title i {
    font-size: 1.6rem;
}

/* Game Grid */
.s074-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.s074-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.s074-game-item:hover {
    transform: scale(1.05);
}

.s074-game-item:active {
    transform: scale(0.95);
}

.s074-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--s074-bg-lighter);
    box-shadow: 0 2px 8px var(--s074-shadow);
    transition: all 0.3s ease;
}

.s074-game-item:hover .s074-game-icon {
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
}

.s074-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s074-game-name {
    font-size: 1rem;
    color: var(--s074-text);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Game Category */
.s074-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s074-primary);
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--s074-border);
}

.s074-category-title i {
    font-size: 1.4rem;
}

/* Feature Card */
.s074-feature-card {
    background-color: var(--s074-bg-lighter);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--s074-primary);
}

.s074-feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--s074-primary);
    margin-bottom: 0.8rem;
}

.s074-feature-content {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--s074-text-muted);
}

.s074-feature-content p {
    margin-bottom: 0.8rem;
}

.s074-feature-content p:last-child {
    margin-bottom: 0;
}

/* Text Link */
.s074-text-link {
    color: var(--s074-primary);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.s074-text-link:hover {
    color: var(--s074-primary-dark);
}

/* List Styles */
.s074-list {
    list-style: none;
    padding: 0;
}

.s074-list-item {
    padding: 1rem;
    margin-bottom: 0.8rem;
    background-color: var(--s074-bg-lighter);
    border-radius: 8px;
    border-left: 3px solid var(--s074-primary);
    transition: all 0.3s ease;
}

.s074-list-item:hover {
    background-color: var(--s074-border);
}

.s074-list-title {
    font-weight: 600;
    color: var(--s074-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.s074-list-content {
    color: var(--s074-text-muted);
    font-size: 1.3rem;
    line-height: 1.5;
}

/* Footer */
.s074-footer {
    background-color: var(--s074-bg-light);
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--s074-border);
}

.s074-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.s074-footer-link {
    padding: 0.5rem 1rem;
    background-color: var(--s074-bg-lighter);
    border-radius: 6px;
    font-size: 1.2rem;
    color: var(--s074-text-muted);
    transition: all 0.3s ease;
}

.s074-footer-link:hover {
    background-color: var(--s074-primary);
    color: var(--s074-text-dark);
}

.s074-partners {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.s074-partner-item {
    aspect-ratio: 1;
    background-color: var(--s074-bg-lighter);
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s074-partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.s074-copyright {
    text-align: center;
    color: var(--s074-text-muted);
    font-size: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--s074-border);
}

/* Bottom Navigation */
.s074-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--s074-bg-light) 0%, var(--s074-bg) 100%);
    border-top: 2px solid var(--s074-primary);
    box-shadow: 0 -2px 10px var(--s074-shadow);
    z-index: 1000;
    padding: 0.5rem 0;
}

.s074-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.s074-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 60px;
    min-height: 60px;
    justify-content: center;
    color: var(--s074-text-muted);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.4rem;
}

.s074-bottom-nav-item:hover {
    background-color: rgba(135, 206, 235, 0.1);
    color: var(--s074-primary);
}

.s074-bottom-nav-item.s074-active {
    color: var(--s074-primary);
}

.s074-bottom-nav-icon {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s074-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Touch feedback */
.s074-touch-active {
    opacity: 0.7 !important;
    transform: scale(0.95) !important;
}

/* Responsive */
@media (min-width: 769px) {
    .s074-bottom-nav {
        display: none;
    }

    .s074-main {
        margin-bottom: 2rem;
    }

    .s074-menu-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .s074-main {
        padding-bottom: 80px;
    }
}

/* Utility Classes */
.s074-text-center {
    text-align: center;
}

.s074-mb-1 {
    margin-bottom: 1rem;
}

.s074-mb-2 {
    margin-bottom: 2rem;
}

.s074-mt-1 {
    margin-top: 1rem;
}

.s074-mt-2 {
    margin-top: 2rem;
}

/* Promo Box */
.s074-promo-box {
    background: var(--s074-gradient);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--s074-shadow);
}

.s074-promo-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s074-text-dark);
    margin-bottom: 1rem;
}

.s074-promo-text {
    font-size: 1.4rem;
    color: var(--s074-text-dark);
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Highlight Box */
.s074-highlight-box {
    background-color: var(--s074-bg-lighter);
    border: 2px solid var(--s074-primary);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.s074-highlight-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s074-primary);
    margin-bottom: 1rem;
}

.s074-highlight-content {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--s074-text-muted);
}
