/**
 * JL76 Gaming Platform - Theme Stylesheet
 * Version: 1.0.0
 * All classes use s3ae- prefix for namespace isolation
 * Color Palette: #2C3E50 | #FFE135 | #ECF0F1 | #696969
 */

:root {
    --s3ae-primary: #2C3E50;
    --s3ae-secondary: #34495E;
    --s3ae-accent: #FFE135;
    --s3ae-light: #ECF0F1;
    --s3ae-gray: #696969;
    --s3ae-dark: #1A252F;
    --s3ae-white: #FFFFFF;
    --s3ae-gradient: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    --s3ae-gradient-accent: linear-gradient(135deg, #FFE135 0%, #FFC107 100%);
    --s3ae-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --s3ae-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--s3ae-primary);
    color: var(--s3ae-light);
    line-height: 1.5;
    font-size: 1.6rem;
    min-height: 100vh;
}

/* Header Styles */
.s3ae-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--s3ae-gradient);
    padding: 12px 16px;
    z-index: 1000;
    box-shadow: var(--s3ae-shadow);
}

.s3ae-header-inner {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s3ae-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.s3ae-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.s3ae-logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s3ae-accent);
}

.s3ae-logo-text span {
    color: var(--s3ae-light);
}

.s3ae-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.s3ae-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.s3ae-btn-login {
    background: transparent;
    color: var(--s3ae-light);
    border: 2px solid var(--s3ae-accent);
}

.s3ae-btn-login:hover {
    background: var(--s3ae-accent);
    color: var(--s3ae-primary);
}

.s3ae-btn-register {
    background: var(--s3ae-accent);
    color: var(--s3ae-primary);
}

.s3ae-btn-register:hover {
    background: var(--s3ae-light);
    transform: scale(1.05);
}

.s3ae-menu-toggle {
    background: transparent;
    border: none;
    color: var(--s3ae-light);
    font-size: 2.4rem;
    cursor: pointer;
    display: none;
}

/* Mobile Menu */
.s3ae-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s3ae-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 60px 20px 20px;
}

.s3ae-menu-active {
    right: 0;
}

.s3ae-mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--s3ae-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.s3ae-mobile-nav-list {
    list-style: none;
}

.s3ae-mobile-nav-item {
    margin-bottom: 8px;
}

.s3ae-mobile-nav-link {
    display: block;
    padding: 14px 16px;
    color: var(--s3ae-light);
    text-decoration: none;
    font-size: 1.6rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.s3ae-mobile-nav-link:hover {
    background: var(--s3ae-secondary);
    color: var(--s3ae-accent);
}

.s3ae-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;
}

.s3ae-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.s3ae-main {
    max-width: 430px;
    margin: 0 auto;
    padding: 80px 16px 100px;
}

/* Hero Section */
.s3ae-hero {
    background: var(--s3ae-gradient);
    padding: 100px 16px 40px;
    text-align: center;
    margin-top: 56px;
}

.s3ae-hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--s3ae-accent);
    margin-bottom: 12px;
}

.s3ae-hero-title span {
    color: var(--s3ae-light);
}

.s3ae-hero-desc {
    font-size: 1.6rem;
    color: var(--s3ae-light);
    margin-bottom: 24px;
    opacity: 0.9;
}

.s3ae-btn-hero {
    padding: 14px 32px;
    font-size: 1.6rem;
}

/* Carousel */
.s3ae-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--s3ae-radius);
    margin-bottom: 24px;
}

.s3ae-carousel img {
    width: 100%;
    display: block;
    border-radius: var(--s3ae-radius);
    cursor: pointer;
}

/* Section Styles */
.s3ae-section {
    margin-bottom: 32px;
}

.s3ae-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--s3ae-accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.s3ae-section-title i {
    font-size: 2.4rem;
}

/* Game Grid */
.s3ae-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.s3ae-game-card {
    background: var(--s3ae-secondary);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.s3ae-game-card:hover {
    transform: scale(1.05);
}

.s3ae-game-img-wrapper {
    padding: 8px;
}

.s3ae-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.s3ae-game-info {
    padding: 8px;
    text-align: center;
}

.s3ae-game-name {
    font-size: 1.1rem;
    color: var(--s3ae-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Features */
.s3ae-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.s3ae-feature-card {
    background: var(--s3ae-secondary);
    padding: 20px;
    border-radius: var(--s3ae-radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 225, 53, 0.1);
}

.s3ae-feature-card:hover {
    border-color: var(--s3ae-accent);
    transform: translateY(-4px);
}

.s3ae-feature-icon {
    font-size: 2.8rem;
    color: var(--s3ae-accent);
    margin-bottom: 12px;
}

.s3ae-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--s3ae-light);
    margin-bottom: 6px;
}

.s3ae-feature-desc {
    font-size: 1.2rem;
    color: var(--s3ae-gray);
}

/* Help Section */
.s3ae-help-section {
    background: var(--s3ae-secondary);
    padding: 24px;
    border-radius: var(--s3ae-radius);
    margin-bottom: 24px;
}

.s3ae-help-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--s3ae-accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.s3ae-help-content {
    color: var(--s3ae-light);
    font-size: 1.4rem;
    line-height: 1.8;
}

.s3ae-help-content p {
    margin-bottom: 12px;
}

.s3ae-help-link {
    color: var(--s3ae-accent);
    text-decoration: none;
    font-weight: 600;
}

.s3ae-help-link:hover {
    text-decoration: underline;
}

/* Promo Banner */
.s3ae-promo-banner {
    background: var(--s3ae-gradient-accent);
    padding: 24px;
    border-radius: var(--s3ae-radius);
    text-align: center;
    cursor: pointer;
    margin-top: 24px;
}

.s3ae-promo-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s3ae-primary);
    margin-bottom: 8px;
}

.s3ae-promo-desc {
    font-size: 1.4rem;
    color: var(--s3ae-secondary);
    margin-bottom: 16px;
}

/* Footer */
.s3ae-footer {
    background: var(--s3ae-dark);
    padding: 24px 16px;
    text-align: center;
}

.s3ae-footer-inner {
    max-width: 430px;
    margin: 0 auto;
}

.s3ae-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.s3ae-footer-link {
    color: var(--s3ae-gray);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.s3ae-footer-link:hover {
    color: var(--s3ae-accent);
}

.s3ae-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.s3ae-partner-img {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.s3ae-partner-img:hover {
    opacity: 1;
}

.s3ae-copyright {
    font-size: 1.2rem;
    color: var(--s3ae-gray);
}

/* Bottom Navigation */
.s3ae-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--s3ae-dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.s3ae-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--s3ae-gray);
    font-size: 1rem;
    min-width: 60px;
    min-height: 60px;
    transition: color 0.3s ease;
}

.s3ae-nav-item i,
.s3ae-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.s3ae-nav-item:hover,
.s3ae-nav-item-active {
    color: var(--s3ae-accent);
}

.s3ae-nav-item-active {
    background: rgba(255, 225, 53, 0.1);
}

/* Page Header */
.s3ae-page-header {
    background: var(--s3ae-gradient);
    padding: 80px 16px 30px;
    text-align: center;
}

.s3ae-page-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--s3ae-accent);
    margin-bottom: 8px;
}

.s3ae-page-breadcrumb {
    font-size: 1.3rem;
    color: var(--s3ae-light);
    opacity: 0.8;
}

.s3ae-breadcrumb-link {
    color: var(--s3ae-accent);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .s3ae-menu-toggle {
        display: block;
    }

    .s3ae-btn-login,
    .s3ae-btn-register {
        padding: 8px 14px;
        font-size: 1.2rem;
    }

    .s3ae-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .s3ae-main {
        padding-bottom: 80px;
    }
}

@media (min-width: 769px) {
    .s3ae-bottom-nav {
        display: none;
    }
}
