/* 588jl Website Theme CSS */
/* All classes use we5b6- prefix for namespace isolation */

/* CSS Variables - Color Scheme */
:root {
    --we5b6-primary: #DB7093;
    --we5b6-secondary: #FF9500;
    --we5b6-dark: #333333;
    --we5b6-accent: #FFD700;
    --we5b6-danger: #B22222;
    --we5b6-bg-dark: #1a1a1a;
    --we5b6-bg-darker: #0d0d0d;
    --we5b6-text-light: #ffffff;
    --we5b6-text-muted: #cccccc;
    --we5b6-border: #444444;
    --we5b6-shadow: rgba(0, 0, 0, 0.3);
    --we5b6-gradient-primary: linear-gradient(135deg, var(--we5b6-primary) 0%, var(--we5b6-secondary) 100%);
    --we5b6-gradient-dark: linear-gradient(135deg, var(--we5b6-bg-dark) 0%, var(--we5b6-bg-darker) 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, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--we5b6-text-light);
    background: var(--we5b6-bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container and Layout */
.we5b6-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

.we5b6-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.we5b6-main {
    flex: 1;
    padding-top: 7rem;
    padding-bottom: 8rem;
}

/* Header Styles */
.we5b6-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--we5b6-border);
    transition: transform 0.3s ease;
}

.we5b6-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    height: 6rem;
}

.we5b6-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--we5b6-text-light);
    font-weight: bold;
    font-size: 1.8rem;
}

.we5b6-logo img {
    width: 3.2rem;
    height: 3.2rem;
    margin-right: 1rem;
    border-radius: 0.8rem;
}

.we5b6-nav-buttons {
    display: flex;
    gap: 1rem;
}

.we5b6-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 2.4rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 8rem;
    height: 3.6rem;
}

.we5b6-btn-primary {
    background: var(--we5b6-gradient-primary);
    color: var(--we5b6-text-light);
    box-shadow: 0 4px 15px rgba(219, 112, 147, 0.3);
}

.we5b6-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 112, 147, 0.4);
}

.we5b6-btn-secondary {
    background: transparent;
    color: var(--we5b6-text-light);
    border: 2px solid var(--we5b6-primary);
}

.we5b6-btn-secondary:hover {
    background: var(--we5b6-primary);
    transform: translateY(-2px);
}

.we5b6-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--we5b6-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.we5b6-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 35rem;
    height: 100vh;
    background: var(--we5b6-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.we5b6-menu-open {
    right: 0;
}

.we5b6-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--we5b6-border);
}

.we5b6-menu-close {
    background: none;
    border: none;
    color: var(--we5b6-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.we5b6-menu-nav {
    padding: 2rem;
}

.we5b6-menu-item {
    display: block;
    padding: 1.2rem 0;
    color: var(--we5b6-text-light);
    text-decoration: none;
    font-size: 1.6rem;
    border-bottom: 1px solid var(--we5b6-border);
    transition: color 0.3s ease;
}

.we5b6-menu-item:hover {
    color: var(--we5b6-primary);
}

.we5b6-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;
}

.we5b6-overlay-show {
    opacity: 1;
    visibility: visible;
}

/* Carousel */
.we5b6-carousel {
    position: relative;
    width: 100%;
    height: 20rem;
    margin: 2rem 0;
    border-radius: 1.6rem;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--we5b6-shadow);
}

.we5b6-carousel-slide {
    width: 100%;
    height: 100%;
    display: none;
}

.we5b6-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.we5b6-carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.we5b6-carousel-indicator {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.we5b6-carousel-indicator.we5b6-active {
    background: var(--we5b6-accent);
    width: 2.4rem;
    border-radius: 0.4rem;
}

/* Typography */
.we5b6-h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem;
    color: var(--we5b6-text-light);
    text-align: center;
}

.we5b6-h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 2.5rem 0 1.5rem;
    color: var(--we5b6-primary);
}

.we5b6-h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--we5b6-secondary);
}

.we5b6-text {
    margin: 1.5rem 0;
    color: var(--we5b6-text-muted);
    text-align: justify;
}

.we5b6-text-center {
    text-align: center;
}

/* Game Grid */
.we5b6-section {
    margin: 3rem 0;
}

.we5b6-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.we5b6-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--we5b6-primary);
}

.we5b6-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 0;
}

.we5b6-game-card {
    position: relative;
    background: var(--we5b6-bg-darker);
    border-radius: 1.2rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    aspect-ratio: 1;
}

.we5b6-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--we5b6-primary);
    box-shadow: 0 8px 25px rgba(219, 112, 147, 0.3);
}

.we5b6-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.we5b6-game-card:hover img {
    transform: scale(1.05);
}

.we5b6-game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--we5b6-text-light);
    padding: 0.8rem 0.5rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* Feature Cards */
.we5b6-feature-card {
    background: var(--we5b6-bg-darker);
    border-radius: 1.6rem;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--we5b6-border);
    transition: all 0.3s ease;
}

.we5b6-feature-card:hover {
    border-color: var(--we5b6-primary);
    box-shadow: 0 8px 25px rgba(219, 112, 147, 0.2);
}

.we5b6-feature-icon {
    width: 4.8rem;
    height: 4.8rem;
    margin: 0 auto 1.5rem;
    background: var(--we5b6-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--we5b6-text-light);
}

.we5b6-feature-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--we5b6-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.we5b6-feature-description {
    color: var(--we5b6-text-muted);
    text-align: center;
    line-height: 1.6;
}

/* Bottom Navigation */
.we5b6-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--we5b6-border);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    height: 7rem;
}

.we5b6-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--we5b6-text-muted);
    transition: all 0.3s ease;
    min-height: 6rem;
    min-width: 6rem;
    border-radius: 1.2rem;
    margin: 0.2rem;
}

.we5b6-nav-item:hover {
    background: rgba(219, 112, 147, 0.1);
    color: var(--we5b6-primary);
}

.we5b6-nav-item.we5b6-active {
    color: var(--we5b6-primary);
    background: rgba(219, 112, 147, 0.15);
}

.we5b6-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
    transition: transform 0.3s ease;
}

.we5b6-nav-item:hover .we5b6-nav-icon {
    transform: translateY(-2px);
}

.we5b6-nav-label {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Footer */
.we5b6-footer {
    background: var(--we5b6-bg-darker);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--we5b6-border);
}

.we5b6-footer-content {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.we5b6-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.we5b6-footer-link {
    color: var(--we5b6-text-muted);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.we5b6-footer-link:hover {
    color: var(--we5b6-primary);
}

.we5b6-partners {
    margin: 3rem 0;
}

.we5b6-partners-title {
    text-align: center;
    color: var(--we5b6-text-muted);
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.we5b6-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.we5b6-partner-logo {
    width: 100%;
    height: 4rem;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.we5b6-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.we5b6-copyright {
    text-align: center;
    color: var(--we5b6-text-muted);
    font-size: 1.2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--we5b6-border);
}

/* Utility Classes */
.we5b6-text-primary {
    color: var(--we5b6-primary);
}

.we5b6-text-secondary {
    color: var(--we5b6-secondary);
}

.we5b6-text-accent {
    color: var(--we5b6-accent);
}

.we5b6-bg-primary {
    background: var(--we5b6-primary);
}

.we5b6-bg-secondary {
    background: var(--we5b6-secondary);
}

.we5b6-bg-gradient {
    background: var(--we5b6-gradient-primary);
}

.we5b6-rounded {
    border-radius: 1.6rem;
}

.we5b6-shadow {
    box-shadow: 0 8px 25px var(--we5b6-shadow);
}

.we5b6-mt-1 { margin-top: 1rem; }
.we5b6-mt-2 { margin-top: 2rem; }
.we5b6-mt-3 { margin-top: 3rem; }
.we5b6-mb-1 { margin-bottom: 1rem; }
.we5b6-mb-2 { margin-bottom: 2rem; }
.we5b6-mb-3 { margin-bottom: 3rem; }

/* Loading Spinner */
.we5b6-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.we5b6-spinner {
    width: 5rem;
    height: 5rem;
    border: 4px solid var(--we5b6-border);
    border-top: 4px solid var(--we5b6-primary);
    border-radius: 50%;
    animation: we5b6-spin 1s linear infinite;
}

@keyframes we5b6-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (min-width: 769px) {
    .we5b6-bottom-nav {
        display: none;
    }

    .we5b6-main {
        padding-bottom: 2rem;
    }

    .we5b6-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .we5b6-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .we5b6-partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .we5b6-container {
        padding: 0 1rem;
    }

    .we5b6-h1 {
        font-size: 2.4rem;
    }

    .we5b6-h2 {
        font-size: 2rem;
    }

    .we5b6-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .we5b6-nav-buttons {
        gap: 0.5rem;
    }

    .we5b6-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1.2rem;
        min-width: 7rem;
        height: 3.2rem;
    }
}

/* Image Lazy Loading */
.we5b6-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0.7;
    filter: blur(5px);
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 0.6rem;
}

::-webkit-scrollbar-track {
    background: var(--we5b6-bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--we5b6-primary);
    border-radius: 0.3rem;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--we5b6-secondary);
}