/**
 * JL88 Gaming Platform - Theme Stylesheet
 * @description Main styles for jl88.sbs gaming platform
 * @version 1.0.0
 * @prefix s888
 */

/* CSS Variables */
:root {
    --s888-primary: #8A2BE2;
    --s888-secondary: #DDA0DD;
    --s888-accent: #C9C9FF;
    --s888-bg-dark: #333333;
    --s888-bg-light: #BAE1FF;
    --s888-text-light: #FFFFFF;
    --s888-text-dark: #333333;
    --s888-gradient: linear-gradient(135deg, #8A2BE2 0%, #DDA0DD 100%);
    --s888-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    --s888-radius: 12px;
    --s888-transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--s888-bg-dark);
    color: var(--s888-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    overflow-x: hidden;
}

/* Container */
.s888-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.s888-wrapper {
    width: 100%;
    padding-top: 7rem;
    padding-bottom: 2rem;
}

/* Header Styles */
.s888-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--s888-bg-dark) 0%, rgba(51, 51, 51, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

.s888-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.s888-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.s888-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.s888-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--s888-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.s888-header-btns {
    display: flex;
    gap: 0.8rem;
}

.s888-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--s888-transition);
    text-decoration: none;
}

.s888-btn-primary {
    background: var(--s888-gradient);
    color: var(--s888-text-light);
    box-shadow: var(--s888-shadow);
}

.s888-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.s888-btn-secondary {
    background: transparent;
    color: var(--s888-secondary);
    border: 2px solid var(--s888-secondary);
}

.s888-btn-secondary:hover {
    background: var(--s888-secondary);
    color: var(--s888-bg-dark);
}

.s888-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--s888-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Desktop Navigation */
.s888-nav-desktop {
    display: none;
}

/* Mobile Menu */
.s888-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s888-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    border-left: 1px solid rgba(138, 43, 226, 0.3);
}

.s888-menu-active {
    right: 0;
}

.s888-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(221, 160, 221, 0.2);
}

.s888-mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--s888-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.s888-nav-list {
    list-style: none;
}

.s888-nav-item {
    margin-bottom: 1rem;
}

.s888-nav-link {
    display: block;
    padding: 1rem;
    color: var(--s888-text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--s888-transition);
    font-size: 1.4rem;
}

.s888-nav-link:hover {
    background: rgba(138, 43, 226, 0.2);
    color: var(--s888-secondary);
}

.s888-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;
}

.s888-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Carousel Styles */
.s888-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--s888-radius);
    margin-bottom: 2rem;
}

.s888-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.s888-slide:first-child {
    display: block;
}

.s888-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--s888-radius);
}

.s888-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.s888-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--s888-transition);
}

.s888-dot-active {
    background: var(--s888-secondary);
    transform: scale(1.2);
}

/* Section Styles */
.s888-section {
    padding: 2rem 0;
}

.s888-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--s888-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.s888-section-subtitle {
    font-size: 1.4rem;
    color: var(--s888-accent);
    margin-bottom: 1rem;
}

/* Game Grid */
.s888-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.s888-game-card {
    background: rgba(138, 43, 226, 0.1);
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: var(--s888-transition);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.s888-game-card:hover {
    transform: translateY(-3px);
    background: rgba(138, 43, 226, 0.2);
    box-shadow: var(--s888-shadow);
}

.s888-game-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.s888-game-name {
    font-size: 1rem;
    color: var(--s888-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Title */
.s888-category-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--s888-primary);
}

.s888-category-title i {
    color: var(--s888-secondary);
    font-size: 1.8rem;
}

.s888-category-title span {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s888-secondary);
}

/* Content Cards */
.s888-card {
    background: rgba(138, 43, 226, 0.1);
    border-radius: var(--s888-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.s888-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--s888-secondary);
}

.s888-card-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--s888-text-light);
}

.s888-card-text a {
    color: var(--s888-accent);
    text-decoration: underline;
}

/* Feature List */
.s888-feature-list {
    list-style: none;
}

.s888-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(201, 201, 255, 0.05);
    border-radius: 8px;
}

.s888-feature-icon {
    font-size: 2rem;
    color: var(--s888-secondary);
    flex-shrink: 0;
}

.s888-feature-content h4 {
    font-size: 1.4rem;
    color: var(--s888-secondary);
    margin-bottom: 0.3rem;
}

.s888-feature-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Styles */
.s888-footer {
    background: rgba(51, 51, 51, 0.95);
    padding: 2rem 0 8rem;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
}

.s888-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.s888-footer-link {
    color: var(--s888-accent);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--s888-transition);
}

.s888-footer-link:hover {
    background: rgba(138, 43, 226, 0.2);
}

.s888-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.s888-partner-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    opacity: 0.7;
    transition: var(--s888-transition);
}

.s888-partner-img:hover {
    opacity: 1;
}

.s888-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Bottom Navigation */
.s888-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(51, 51, 51, 0.98) 0%, var(--s888-bg-dark) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    padding: 0 0.5rem;
}

.s888-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--s888-transition);
    border-radius: 12px;
    padding: 0.5rem;
}

.s888-nav-btn:hover,
.s888-nav-btn.active {
    color: var(--s888-secondary);
    background: rgba(138, 43, 226, 0.15);
    transform: scale(1.05);
}

.s888-nav-btn i {
    font-size: 24px;
    margin-bottom: 2px;
}

.s888-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Promo Banner */
.s888-promo-banner {
    background: var(--s888-gradient);
    border-radius: var(--s888-radius);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.s888-promo-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.s888-promo-banner p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 430px) {
    .s888-container {
        padding: 0 1rem;
    }

    .s888-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .s888-game-card {
        padding: 0.5rem;
    }

    .s888-game-name {
        font-size: 0.9rem;
    }
}

@media (min-width: 431px) and (max-width: 768px) {
    .s888-container {
        max-width: 500px;
    }
}

@media (min-width: 769px) {
    .s888-container {
        max-width: 600px;
    }

    .s888-header-inner {
        max-width: 600px;
    }

    .s888-menu-toggle {
        display: none;
    }

    .s888-nav-desktop {
        display: flex;
        gap: 1.5rem;
    }

    .s888-nav-desktop a {
        color: var(--s888-text-light);
        text-decoration: none;
        font-size: 1.3rem;
        transition: var(--s888-transition);
    }

    .s888-nav-desktop a:hover {
        color: var(--s888-secondary);
    }

    .s888-bottom-nav {
        display: none;
    }

    .s888-wrapper {
        padding-bottom: 2rem;
    }

    .s888-footer {
        padding-bottom: 2rem;
    }
}

/* Utility Classes */
.s888-text-center {
    text-align: center;
}

.s888-mb-1 {
    margin-bottom: 1rem;
}

.s888-mb-2 {
    margin-bottom: 2rem;
}

.s888-mt-2 {
    margin-top: 2rem;
}

.s888-hidden {
    display: none;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.s888-fade-in {
    animation: fadeIn 0.5s ease forwards;
}
