/**
 * jljl444 Theme Stylesheet
 * @description Core styles for jljl444.click gaming platform
 * @version 1.0.0
 * @prefix w24be-
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --w24be-primary: #00CED1;
    --w24be-secondary: #4DB6AC;
    --w24be-bg-dark: #0E1621;
    --w24be-bg-light: #1a2332;
    --w24be-text-light: #ffffff;
    --w24be-text-muted: #a0aec0;
    --w24be-accent: #00CED1;
    --w24be-gradient: linear-gradient(135deg, #00CED1, #4DB6AC);
    --w24be-shadow: 0 4px 20px rgba(0, 206, 209, 0.3);
    --w24be-radius: 12px;
    --w24be-radius-sm: 8px;
}

/* ============================================
   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(--w24be-bg-dark);
    color: var(--w24be-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

a {
    color: var(--w24be-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--w24be-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Layout Container
   ============================================ */
.w24be-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.w24be-wrapper {
    padding: 1rem 0;
}

.w24be-grid {
    display: grid;
    gap: 1rem;
}

.w24be-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.w24be-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.w24be-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   Header Navigation
   ============================================ */
.w24be-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--w24be-bg-dark) 0%, rgba(14, 22, 33, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 206, 209, 0.2);
    padding: 0.8rem 0;
}

.w24be-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.w24be-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w24be-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.w24be-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w24be-primary);
    letter-spacing: 0.5px;
}

.w24be-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.w24be-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--w24be-radius-sm);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
}

.w24be-btn-primary {
    background: var(--w24be-gradient);
    color: var(--w24be-bg-dark);
}

.w24be-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--w24be-shadow);
}

.w24be-btn-outline {
    background: transparent;
    border: 2px solid var(--w24be-primary);
    color: var(--w24be-primary);
}

.w24be-btn-outline:hover {
    background: var(--w24be-primary);
    color: var(--w24be-bg-dark);
}

.w24be-menu-toggle {
    background: transparent;
    border: none;
    color: var(--w24be-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Mobile Menu
   ============================================ */
.w24be-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w24be-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
}

.w24be-menu-active {
    right: 0;
}

.w24be-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;
}

.w24be-overlay-active {
    opacity: 1;
    visibility: visible;
}

.w24be-mobile-menu ul {
    list-style: none;
}

.w24be-mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.w24be-mobile-menu a {
    display: block;
    padding: 1.2rem 0;
    color: var(--w24be-text-light);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.w24be-mobile-menu a:hover {
    color: var(--w24be-primary);
    padding-left: 0.5rem;
}

.w24be-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--w24be-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

/* ============================================
   Main Content
   ============================================ */
.w24be-main {
    padding-top: 60px;
}

@media (max-width: 768px) {
    .w24be-main {
        padding-bottom: 80px;
    }
}

/* ============================================
   Carousel/Slider
   ============================================ */
.w24be-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--w24be-radius);
    margin-bottom: 1.5rem;
}

.w24be-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.w24be-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.w24be-slide-active {
    opacity: 1;
}

.w24be-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    cursor: pointer;
}

.w24be-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.w24be-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.w24be-dot-active {
    background: var(--w24be-primary);
    width: 20px;
    border-radius: 4px;
}

/* ============================================
   Section Styles
   ============================================ */
.w24be-section {
    padding: 2rem 0;
}

.w24be-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w24be-primary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w24be-section-title i {
    font-size: 2rem;
}

/* ============================================
   Game Cards
   ============================================ */
.w24be-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.w24be-game-card {
    background: var(--w24be-bg-light);
    border-radius: var(--w24be-radius-sm);
    padding: 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 206, 209, 0.1);
}

.w24be-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--w24be-primary);
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.2);
}

.w24be-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    object-fit: cover;
    margin-bottom: 0.4rem;
}

.w24be-game-name {
    font-size: 1rem;
    color: var(--w24be-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* ============================================
   Category Tabs
   ============================================ */
.w24be-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--w24be-secondary);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--w24be-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ============================================
   Info Cards
   ============================================ */
.w24be-info-card {
    background: var(--w24be-bg-light);
    border-radius: var(--w24be-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--w24be-primary);
}

.w24be-info-card h3 {
    font-size: 1.4rem;
    color: var(--w24be-primary);
    margin-bottom: 0.8rem;
}

.w24be-info-card p {
    color: var(--w24be-text-muted);
    font-size: 1.3rem;
    line-height: 1.6;
}

.w24be-info-card ul {
    list-style: none;
    margin-top: 0.8rem;
}

.w24be-info-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--w24be-text-muted);
    font-size: 1.3rem;
}

.w24be-info-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--w24be-primary);
}

/* ============================================
   Promo Link Styles
   ============================================ */
.w24be-promo-link {
    color: var(--w24be-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w24be-promo-link:hover {
    color: var(--w24be-secondary);
    text-decoration: underline;
}

.w24be-promo-btn {
    display: inline-block;
    background: var(--w24be-gradient);
    color: var(--w24be-bg-dark);
    padding: 1rem 2rem;
    border-radius: var(--w24be-radius);
    font-weight: 700;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.w24be-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--w24be-shadow);
}

/* ============================================
   Footer
   ============================================ */
.w24be-footer {
    background: var(--w24be-bg-light);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 206, 209, 0.2);
}

.w24be-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w24be-footer-links a {
    color: var(--w24be-text-muted);
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 206, 209, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.w24be-footer-links a:hover {
    color: var(--w24be-primary);
    background: rgba(0, 206, 209, 0.2);
}

.w24be-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.w24be-partners img {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.w24be-partners img:hover {
    opacity: 1;
}

.w24be-copyright {
    text-align: center;
    color: var(--w24be-text-muted);
    font-size: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Bottom Navigation (Mobile)
   ============================================ */
.w24be-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, var(--w24be-bg-light) 0%, var(--w24be-bg-dark) 100%);
    border-top: 1px solid rgba(0, 206, 209, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .w24be-bottom-nav {
        display: none;
    }
}

.w24be-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--w24be-text-muted);
    text-decoration: none;
}

.w24be-nav-item:hover,
.w24be-nav-item.active {
    color: var(--w24be-primary);
}

.w24be-nav-item i,
.w24be-nav-item .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
}

.w24be-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.w24be-nav-item:active {
    transform: scale(0.95);
}

/* ============================================
   Utility Classes
   ============================================ */
.w24be-text-center { text-align: center; }
.w24be-text-primary { color: var(--w24be-primary); }
.w24be-text-muted { color: var(--w24be-text-muted); }
.w24be-mb-1 { margin-bottom: 1rem; }
.w24be-mb-2 { margin-bottom: 2rem; }
.w24be-mt-1 { margin-top: 1rem; }
.w24be-mt-2 { margin-top: 2rem; }
.w24be-p-1 { padding: 1rem; }
.w24be-p-2 { padding: 2rem; }

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 380px) {
    .w24be-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .w24be-game-name {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    .w24be-container {
        max-width: 600px;
    }

    .w24be-games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
