/**
 * JL11 Gaming Platform - Design Stylesheet
 * All classes use 'wcd9a-' prefix for namespace isolation
 * Color Palette: #4169E1 | #F5DEB3 | #D2691E | #273746
 */

:root {
    --wcd9a-primary: #4169E1;
    --wcd9a-secondary: #D2691E;
    --wcd9a-accent: #F5DEB3;
    --wcd9a-bg-dark: #273746;
    --wcd9a-bg-light: #1a2633;
    --wcd9a-text-light: #F5DEB3;
    --wcd9a-text-white: #ffffff;
    --wcd9a-border: #3a4a5c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--wcd9a-bg-dark);
    color: var(--wcd9a-text-white);
    line-height: 1.6;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* Header */
.wcd9a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--wcd9a-bg-dark);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--wcd9a-border);
    max-width: 430px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.wcd9a-header-scrolled {
    background: rgba(39, 55, 70, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.wcd9a-logo { display: flex; align-items: center; gap: 10px; }
.wcd9a-logo img { width: 32px; height: 32px; }
.wcd9a-logo-text { font-size: 20px; font-weight: 700; color: var(--wcd9a-primary); }
.wcd9a-header-actions { display: flex; gap: 10px; }

.wcd9a-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.wcd9a-btn-register { background: var(--wcd9a-primary); color: var(--wcd9a-text-white); }
.wcd9a-btn-register:hover { background: #3457c9; transform: scale(1.05); }
.wcd9a-btn-login { background: transparent; border: 2px solid var(--wcd9a-primary); color: var(--wcd9a-primary); }
.wcd9a-btn-login:hover { background: var(--wcd9a-primary); color: var(--wcd9a-text-white); }

.wcd9a-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--wcd9a-text-white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.wcd9a-desktop-nav { display: none; }

@media (min-width: 769px) {
    .wcd9a-menu-toggle { display: none; }
    .wcd9a-desktop-nav { display: flex; gap: 20px; }
    .wcd9a-desktop-nav a { color: var(--wcd9a-text-light); font-size: 14px; transition: color 0.3s; }
    .wcd9a-desktop-nav a:hover { color: var(--wcd9a-primary); }
}

/* Mobile Menu */
.wcd9a-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--wcd9a-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.proaee-menu-active { right: 0; }

.wcd9a-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    display: none;
}

.proaee-overlay-active { display: block; }

.wcd9a-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--wcd9a-border);
}

.wcd9a-menu-close {
    background: none;
    border: none;
    color: var(--wcd9a-text-white);
    font-size: 24px;
    cursor: pointer;
}

.wcd9a-menu-links { list-style: none; }
.wcd9a-menu-links li { margin-bottom: 15px; }
.wcd9a-menu-links a {
    display: block;
    padding: 12px 15px;
    color: var(--wcd9a-text-light);
    background: var(--wcd9a-bg-dark);
    border-radius: 8px;
    transition: all 0.3s ease;
}
.wcd9a-menu-links a:hover { background: var(--wcd9a-primary); color: var(--wcd9a-text-white); }

/* Main Content */
main { padding-top: 70px; padding-bottom: 20px; }
@media (max-width: 768px) { main { padding-bottom: 80px; } }

/* Hero Slider */
.wcd9a-hero { position: relative; width: 100%; height: 200px; overflow: hidden; }
.wcd9a-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.proaee-slide-active { opacity: 1; }
.wcd9a-slide img { width: 100%; height: 100%; object-fit: cover; }

/* Container */
.wcd9a-container { padding: 0 16px; max-width: 430px; margin: 0 auto; }

/* Section Title */
.wcd9a-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--wcd9a-text-white);
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--wcd9a-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.wcd9a-section-title i { color: var(--wcd9a-primary); }

/* H1 Title */
.wcd9a-main-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin: 20px 0;
    color: var(--wcd9a-primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Game Grid */
.wcd9a-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.wcd9a-game-card {
    background: var(--wcd9a-bg-light);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--wcd9a-border);
}

.wcd9a-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(65, 105, 225, 0.3);
}

.wcd9a-game-card img { width: 100%; height: 90px; object-fit: cover; }
.wcd9a-game-name {
    padding: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--wcd9a-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Section */
.wcd9a-category-section { margin-bottom: 30px; }
.wcd9a-category-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.wcd9a-category-icon {
    width: 36px; height: 36px;
    background: var(--wcd9a-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wcd9a-text-white);
    font-size: 18px;
}

/* Features Section */
.wcd9a-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.wcd9a-feature-item {
    background: var(--wcd9a-bg-light);
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--wcd9a-border);
    transition: all 0.3s ease;
}
.wcd9a-feature-item:hover { border-color: var(--wcd9a-primary); }
.wcd9a-feature-icon { font-size: 32px; color: var(--wcd9a-primary); margin-bottom: 10px; }
.wcd9a-feature-title { font-size: 14px; font-weight: 600; color: var(--wcd9a-text-white); margin-bottom: 5px; }
.wcd9a-feature-desc { font-size: 12px; color: var(--wcd9a-text-light); opacity: 0.8; }

/* Promo Banner */
.wcd9a-promo-banner {
    background: linear-gradient(135deg, #4169E1, #273746);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}
.wcd9a-promo-title { font-size: 20px; font-weight: 700; color: var(--wcd9a-text-white); margin-bottom: 10px; }
.wcd9a-promo-text { font-size: 14px; color: var(--wcd9a-accent); margin-bottom: 15px; }

/* CTA Button */
.wcd9a-cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--wcd9a-secondary);
    color: var(--wcd9a-text-white);
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.wcd9a-cta-btn:hover { background: #b85a1a; transform: scale(1.05); }

/* Info Section */
.wcd9a-info-section {
    background: var(--wcd9a-bg-light);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--wcd9a-border);
}
.wcd9a-info-title { font-size: 18px; font-weight: 600; color: var(--wcd9a-primary); margin-bottom: 15px; }
.wcd9a-info-text { font-size: 14px; color: var(--wcd9a-text-light); line-height: 1.8; margin-bottom: 10px; }
.wcd9a-info-text strong { color: var(--wcd9a-primary); }

/* Partners Section */
.wcd9a-partners {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--wcd9a-border);
    border-bottom: 1px solid var(--wcd9a-border);
}
.wcd9a-partners-title { text-align: center; font-size: 16px; color: var(--wcd9a-text-light); margin-bottom: 15px; }
.wcd9a-partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.wcd9a-partner-logo { width: 60px; height: 40px; object-fit: contain; filter: grayscale(30%); opacity: 0.8; transition: all 0.3s ease; }
.wcd9a-partner-logo:hover { filter: grayscale(0%); opacity: 1; }

/* Footer */
.wcd9a-footer {
    background: var(--wcd9a-bg-light);
    padding: 30px 16px;
    margin-top: 30px;
    border-top: 1px solid var(--wcd9a-border);
}
.wcd9a-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 20px; }
.wcd9a-footer-links a { color: var(--wcd9a-text-light); font-size: 13px; transition: color 0.3s; }
.wcd9a-footer-links a:hover { color: var(--wcd9a-primary); }
.wcd9a-footer-copyright { text-align: center; font-size: 12px; color: var(--wcd9a-text-light); opacity: 0.7; }

/* Mobile Bottom Navigation */
.wcd9a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--wcd9a-bg-light);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--wcd9a-border);
    max-width: 430px;
    margin: 0 auto;
}
@media (min-width: 769px) { .wcd9a-bottom-nav { display: none; } }

.wcd9a-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(--wcd9a-text-light);
}
.wcd9a-nav-item:hover { color: var(--wcd9a-primary); }
.wcd9a-nav-item.active { color: var(--wcd9a-primary); }
.wcd9a-nav-icon { font-size: 22px; margin-bottom: 3px; }
.wcd9a-nav-text { font-size: 10px; font-weight: 500; }

/* Promotional Link Style */
.wcd9a-promo-link { color: var(--wcd9a-primary); font-weight: 700; cursor: pointer; transition: color 0.3s ease; }
.wcd9a-promo-link:hover { color: var(--wcd9a-secondary); text-decoration: underline; }

/* Internal Links */
.wcd9a-internal-link { color: var(--wcd9a-secondary); text-decoration: underline; transition: color 0.3s; }
.wcd9a-internal-link:hover { color: var(--wcd9a-primary); }

/* Responsive */
@media (max-width: 360px) {
    .wcd9a-game-grid { grid-template-columns: repeat(2, 1fr); }
    .wcd9a-main-title { font-size: 24px; }
}

@media (min-width: 769px) {
    body { max-width: 100%; }
    .wcd9a-header, .wcd9a-bottom-nav { max-width: 100%; }
    .wcd9a-container { max-width: 1200px; }
    .wcd9a-game-grid { grid-template-columns: repeat(6, 1fr); }
    .wcd9a-features { grid-template-columns: repeat(4, 1fr); }
}
