/* CSS Styles for jili333 Gaming Platform */
/* All classes use wc646 prefix for namespace isolation */

/* CSS Variables */
:root {
    --wc646-primary: #2D2D2D;
    --wc646-secondary: #FF7F50;
    --wc646-accent: #FF6347;
    --wc646-text: #FFFFFF;
    --wc646-text-muted: #CCCCCC;
    --wc646-bg-dark: #1A1A1A;
    --wc646-bg-card: #333333;
    --wc646-bg-hover: #404040;
    --wc646-border: #444444;
    --wc646-success: #28a745;
    --wc646-warning: #ffc107;
    --wc646-danger: #dc3545;
    --wc646-radius: 8px;
    --wc646-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 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, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--wc646-text);
    background-color: var(--wc646-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.loading {
    opacity: 0;
}

body.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Container */
.wc646-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

/* Header Styles */
.wc646-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: linear-gradient(135deg, var(--wc646-primary) 0%, var(--wc646-bg-dark) 100%);
    border-bottom: 2px solid var(--wc646-secondary);
    z-index: 1000;
    box-shadow: var(--wc646-shadow);
}

.wc646-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.wc646-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--wc646-text);
}

.wc646-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.wc646-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wc646-secondary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.wc646-header-actions {
    display: flex;
    gap: 0.8rem;
}

.wc646-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--wc646-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

.wc646-btn-primary {
    background: var(--wc646-secondary);
    color: var(--wc646-text);
    box-shadow: 0 2px 4px rgba(255, 127, 80, 0.3);
}

.wc646-btn-primary:hover,
.wc646-btn-primary:active {
    background: var(--wc646-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 127, 80, 0.4);
}

.wc646-btn-secondary {
    background: transparent;
    color: var(--wc646-text);
    border: 2px solid var(--wc646-secondary);
}

.wc646-btn-secondary:hover,
.wc646-btn-secondary:active {
    background: var(--wc646-secondary);
    color: var(--wc646-primary);
}

.wc646-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--wc646-text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--wc646-radius);
    transition: all 0.3s ease;
}

.wc646-menu-toggle:hover {
    background: var(--wc646-bg-hover);
}

/* Mobile Menu */
.wc646-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--wc646-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
}

.wc646-mobile-menu.active {
    right: 0;
}

.wc646-mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--wc646-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wc646-mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--wc646-text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--wc646-radius);
}

.wc646-mobile-nav {
    padding: 1rem 0;
}

.wc646-mobile-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--wc646-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.wc646-mobile-nav a:hover {
    background: var(--wc646-bg-hover);
    padding-left: 2rem;
}

.wc646-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wc646-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.wc646-main {
    margin-top: 70px;
    padding-bottom: 80px;
    min-height: calc(100vh - 150px);
}

/* Carousel */
.wc646-carousel {
    position: relative;
    margin-bottom: 2rem;
    border-radius: var(--wc646-radius);
    overflow: hidden;
    box-shadow: var(--wc646-shadow);
}

.wc646-carousel-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.wc646-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.wc646-carousel-slide.active {
    opacity: 1;
}

.wc646-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wc646-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    color: var(--wc646-text);
}

.wc646-carousel-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.wc646-carousel-description {
    font-size: 1.3rem;
    color: var(--wc646-text-muted);
}

.wc646-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.wc646-carousel-prev,
.wc646-carousel-next {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: var(--wc646-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: all 0.3s ease;
}

.wc646-carousel-prev:hover,
.wc646-carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.wc646-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.wc646-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wc646-carousel-dot.active {
    background: var(--wc646-secondary);
    transform: scale(1.2);
}

/* Sections */
.wc646-section {
    margin-bottom: 2.5rem;
    padding: 2rem 0;
}

.wc646-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wc646-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.wc646-section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--wc646-secondary);
    border-radius: 2px;
}

/* Game Categories */
.wc646-game-category {
    margin-bottom: 2rem;
}

.wc646-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--wc646-secondary);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--wc646-secondary);
}

.wc646-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 0.5rem;
}

.wc646-game-card {
    background: var(--wc646-bg-card);
    border-radius: var(--wc646-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wc646-game-card:hover,
.wc646-game-card.touch {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 127, 80, 0.3);
}

.wc646-game-card a {
    display: block;
    text-decoration: none;
    color: var(--wc646-text);
}

.wc646-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wc646-game-card:hover .wc646-game-image,
.wc646-game-card.touch .wc646-game-image {
    transform: scale(1.05);
}

.wc646-game-name {
    padding: 0.8rem 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Feature Cards */
.wc646-feature-card {
    background: var(--wc646-bg-card);
    border-radius: var(--wc646-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--wc646-shadow);
    transition: all 0.3s ease;
}

.wc646-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 127, 80, 0.2);
}

.wc646-feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wc646-secondary);
    margin-bottom: 0.8rem;
}

.wc646-feature-description {
    font-size: 1.4rem;
    color: var(--wc646-text-muted);
    line-height: 1.5;
}

/* Bottom Navigation */
.wc646-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: linear-gradient(to bottom, var(--wc646-bg-dark), var(--wc646-primary));
    border-top: 2px solid var(--wc646-secondary);
    display: flex;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

.wc646-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 0.5rem;
    text-decoration: none;
    color: var(--wc646-text-muted);
    transition: all 0.3s ease;
    min-width: 60px;
    min-height: 60px;
    gap: 0.3rem;
    border-radius: var(--wc646-radius);
    margin: 0.3rem;
}

.wc646-bottom-nav a:hover,
.wc646-bottom-nav a.active {
    background: var(--wc646-bg-hover);
    color: var(--wc646-secondary);
    transform: scale(1.05);
}

.wc646-nav-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.wc646-nav-text {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Footer */
.wc646-footer {
    background: var(--wc646-bg-dark);
    padding: 2rem 0;
    border-top: 1px solid var(--wc646-border);
}

.wc646-footer-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.wc646-footer-description {
    font-size: 1.3rem;
    color: var(--wc646-text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.wc646-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wc646-footer-links a {
    color: var(--wc646-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wc646-footer-links a:hover {
    color: var(--wc646-text);
    text-decoration: underline;
}

.wc646-partners {
    margin-bottom: 1.5rem;
}

.wc646-partners-title {
    font-size: 1.3rem;
    color: var(--wc646-text-muted);
    margin-bottom: 1rem;
    text-align: center;
}

.wc646-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.wc646-partner-logo {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.wc646-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.wc646-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--wc646-text-muted);
    border-top: 1px solid var(--wc646-border);
    padding-top: 1rem;
}

/* Back to Top Button */
.wc646-back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--wc646-secondary);
    color: var(--wc646-text);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--wc646-shadow);
}

.wc646-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.wc646-back-to-top:hover {
    background: var(--wc646-accent);
    transform: scale(1.1);
}

/* Utility Classes */
.wc646-text-center {
    text-align: center;
}

.wc646-text-left {
    text-align: left;
}

.wc646-text-right {
    text-align: right;
}

.wc646-mb-1 {
    margin-bottom: 1rem;
}

.wc646-mb-2 {
    margin-bottom: 2rem;
}

.wc646-mt-1 {
    margin-top: 1rem;
}

.wc646-mt-2 {
    margin-top: 2rem;
}

.wc646-p-1 {
    padding: 1rem;
}

.wc646-p-2 {
    padding: 2rem;
}

.wc646-highlight {
    color: var(--wc646-secondary);
    font-weight: 600;
}

.wc646-border-radius {
    border-radius: var(--wc646-radius);
}

.wc646-shadow {
    box-shadow: var(--wc646-shadow);
}

/* Responsive Design */
@media (min-width: 769px) {
    .wc646-bottom-nav {
        display: none;
    }

    .wc646-main {
        padding-bottom: 0;
    }

    .wc646-menu-toggle {
        display: block;
    }

    .wc646-desktop-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .wc646-header {
        padding: 0;
    }

    .wc646-header-content {
        padding: 1rem;
    }

    .wc646-logo-text {
        font-size: 1.6rem;
    }

    .wc646-btn {
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
        min-height: 32px;
    }

    .wc646-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .wc646-game-name {
        font-size: 1.1rem;
        padding: 0.6rem 0.3rem;
    }

    .wc646-section-title {
        font-size: 1.8rem;
    }

    .wc646-category-title {
        font-size: 1.5rem;
    }

    .wc646-mobile-menu {
        width: 100%;
        right: -100%;
    }
}

/* Loading Animation */
.wc646-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--wc646-secondary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Icon Styling Mixins */
.wc646-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.wc646-icon-sm {
    font-size: 1.6rem;
}

.wc646-icon-md {
    font-size: 2rem;
}

.wc646-icon-lg {
    font-size: 2.4rem;
}