/**
 * JL9 JL99 Main Stylesheet
 * All classes use s41e- prefix for namespace isolation
 * Mobile-first responsive design
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --s41e-primary: #FF8000;
    --s41e-secondary: #00CED1;
    --s41e-bg-dark: #2E4057;
    --s41e-bg-darker: #1a2838;
    --s41e-text-light: #FFFFFF;
    --s41e-text-muted: #C0C0C0;
    --s41e-accent: #FF9500;
    --s41e-teal: #5F9EA0;
    --s41e-gradient: linear-gradient(135deg, #FF8000 0%, #FF9500 100%);
    --s41e-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --s41e-radius: 12px;
    --s41e-transition: all 0.3s ease;
}

/* Reset & Base */
* {
    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: var(--s41e-bg-dark);
    color: var(--s41e-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.s41e-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.s41e-wrapper {
    width: 100%;
    padding: 1rem;
}

/* Header Styles */
.s41e-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--s41e-bg-darker);
    padding: 0.8rem 1rem;
    z-index: 1000;
    box-shadow: var(--s41e-shadow);
}

.s41e-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.s41e-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.s41e-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.s41e-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--s41e-primary);
    letter-spacing: 0.5px;
}

.s41e-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.s41e-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--s41e-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.s41e-btn-primary {
    background: var(--s41e-gradient);
    color: var(--s41e-text-light);
}

.s41e-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 128, 0, 0.4);
}

.s41e-btn-outline {
    background: transparent;
    border: 2px solid var(--s41e-secondary);
    color: var(--s41e-secondary);
}

.s41e-btn-outline:hover {
    background: var(--s41e-secondary);
    color: var(--s41e-bg-dark);
}

/* Mobile Menu Toggle */
.s41e-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.s41e-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--s41e-text-light);
    border-radius: 2px;
    transition: var(--s41e-transition);
}

/* Mobile Menu Overlay */
.s41e-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: var(--s41e-transition);
}

.s41e-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Panel */
.s41e-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s41e-bg-darker);
    z-index: 9999;
    padding: 2rem 1.5rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.s41e-menu-active {
    right: 0;
}

.s41e-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.s41e-menu-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s41e-primary);
}

.s41e-menu-close {
    background: transparent;
    border: none;
    color: var(--s41e-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

.s41e-nav-links {
    list-style: none;
}

.s41e-nav-links li {
    margin-bottom: 0.8rem;
}

.s41e-nav-links a {
    display: block;
    padding: 1rem;
    color: var(--s41e-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 8px;
    transition: var(--s41e-transition);
}

.s41e-nav-links a:hover {
    background: rgba(255, 128, 0, 0.2);
    color: var(--s41e-primary);
}

/* Main Content */
.s41e-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Carousel */
.s41e-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--s41e-radius);
    margin-bottom: 2rem;
}

.s41e-carousel-slide {
    display: none;
    cursor: pointer;
}

.s41e-carousel-slide:first-child {
    display: block;
}

.s41e-carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--s41e-radius);
}

.s41e-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.s41e-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--s41e-transition);
}

.s41e-dot-active {
    background: var(--s41e-primary);
    transform: scale(1.2);
}

/* Section Titles */
.s41e-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s41e-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.s41e-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--s41e-gradient);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Game Grid */
.s41e-game-section {
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.s41e-game-category {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s41e-secondary);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid var(--s41e-secondary);
}

.s41e-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.s41e-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--s41e-transition);
    padding: 0.5rem;
    border-radius: 8px;
}

.s41e-game-item:hover {
    background: rgba(255, 128, 0, 0.1);
    transform: translateY(-3px);
}

.s41e-game-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin-bottom: 0.4rem;
    object-fit: cover;
    border: 2px solid var(--s41e-teal);
}

.s41e-game-name {
    font-size: 1rem;
    color: var(--s41e-text-light);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70px;
}

/* Content Sections */
.s41e-content-section {
    background: var(--s41e-bg-darker);
    border-radius: var(--s41e-radius);
    padding: 1.5rem;
    margin: 1.5rem 1rem;
}

.s41e-content-section h2 {
    font-size: 1.8rem;
    color: var(--s41e-primary);
    margin-bottom: 1rem;
}

.s41e-content-section p {
    font-size: 1.3rem;
    color: var(--s41e-text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.s41e-content-section a {
    color: var(--s41e-secondary);
    text-decoration: none;
    font-weight: 600;
}

.s41e-content-section a:hover {
    color: var(--s41e-primary);
}

/* Promo Link */
.s41e-promo-link {
    color: var(--s41e-primary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.s41e-promo-link:hover {
    color: var(--s41e-accent);
}

/* Footer */
.s41e-footer {
    background: var(--s41e-bg-darker);
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.s41e-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.s41e-footer-link {
    color: var(--s41e-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: var(--s41e-transition);
}

.s41e-footer-link:hover {
    color: var(--s41e-primary);
    background: rgba(255, 128, 0, 0.1);
}

.s41e-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.s41e-partners img {
    width: 40px;
    height: 25px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--s41e-transition);
}

.s41e-partners img:hover {
    opacity: 1;
}

.s41e-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--s41e-text-muted);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation */
.s41e-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--s41e-bg-darker);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.s41e-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: var(--s41e-transition);
    border-radius: 8px;
    padding: 0.5rem;
}

.s41e-nav-item:hover {
    background: rgba(255, 128, 0, 0.15);
}

.s41e-nav-item.active {
    color: var(--s41e-primary);
}

.s41e-nav-item i,
.s41e-nav-item .material-icons-outlined,
.s41e-nav-item ion-icon {
    font-size: 24px;
    margin-bottom: 0.3rem;
}

.s41e-nav-item span {
    font-size: 10px;
    color: var(--s41e-text-muted);
}

.s41e-nav-item.active span {
    color: var(--s41e-primary);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .s41e-bottom-nav {
        display: none;
    }

    .s41e-main {
        padding-bottom: 2rem;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .s41e-main {
        padding-bottom: 80px;
    }
}

/* Promo Button Large */
.s41e-promo-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 1.5rem auto;
    padding: 1.2rem 2rem;
    background: var(--s41e-gradient);
    color: var(--s41e-text-light);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--s41e-transition);
    text-decoration: none;
    box-shadow: var(--s41e-shadow);
}

.s41e-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 128, 0, 0.5);
}

/* Lists */
.s41e-list {
    list-style: none;
    padding-left: 0;
}

.s41e-list li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.3rem;
    color: var(--s41e-text-muted);
}

.s41e-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.2rem;
    width: 8px;
    height: 8px;
    background: var(--s41e-primary);
    border-radius: 50%;
}

/* FAQ Accordion */
.s41e-faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.s41e-faq-question {
    padding: 1.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--s41e-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s41e-faq-question::after {
    content: '+';
    font-size: 1.8rem;
    color: var(--s41e-primary);
}

.s41e-faq-answer {
    padding: 0 1.2rem 1.2rem;
    font-size: 1.2rem;
    color: var(--s41e-text-muted);
    line-height: 1.6;
}

/* Feature Cards */
.s41e-feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--s41e-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--s41e-primary);
}

.s41e-feature-card h3 {
    font-size: 1.5rem;
    color: var(--s41e-primary);
    margin-bottom: 0.8rem;
}

.s41e-feature-card p {
    font-size: 1.2rem;
    color: var(--s41e-text-muted);
    line-height: 1.6;
}

/* Utility Classes */
.s41e-text-center { text-align: center; }
.s41e-mt-2 { margin-top: 2rem; }
.s41e-mb-2 { margin-bottom: 2rem; }
.s41e-py-2 { padding-top: 2rem; padding-bottom: 2rem; }
