/**
 * JL1 Website Main Stylesheet
 * All classes use w4105- prefix for namespace isolation
 */

/* CSS Variables for Color Scheme */
:root {
    --w4105-primary: #00FF7F;
    --w4105-secondary: #32CD32;
    --w4105-accent: #3CB371;
    --w4105-dark: #0A0A0A;
    --w4105-darker: #050505;
    --w4105-light: #E8FFE8;
    --w4105-white: #FFFFFF;
    --w4105-gray: #888888;
    --w4105-overlay: rgba(10, 10, 10, 0.95);
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--w4105-dark);
    color: var(--w4105-light);
    min-width: 320px;
    max-width: 430px;
    margin: 0 auto;
    padding-bottom: 70px;
}

/* Links */
a {
    color: var(--w4105-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--w4105-secondary);
}

/* Container */
.w4105-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.w4105-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--w4105-darker);
    border-bottom: 2px solid var(--w4105-primary);
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.w4105-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--w4105-primary);
}

.w4105-logo img {
    width: 32px;
    height: 32px;
}

.w4105-header-buttons {
    display: flex;
    gap: 0.5rem;
}

.w4105-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
}

.w4105-btn-register {
    background-color: var(--w4105-primary);
    color: var(--w4105-dark);
}

.w4105-btn-register:hover {
    background-color: var(--w4105-secondary);
    transform: scale(1.05);
}

.w4105-btn-login {
    background-color: transparent;
    color: var(--w4105-primary);
    border: 2px solid var(--w4105-primary);
}

.w4105-btn-login:hover {
    background-color: var(--w4105-primary);
    color: var(--w4105-dark);
}

.w4105-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.w4105-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--w4105-primary);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.w4105-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--w4105-overlay);
    z-index: 9999;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.w4105-mobile-menu.active {
    display: block;
}

.w4105-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.w4105-menu-list a {
    display: block;
    padding: 1rem;
    background-color: rgba(50, 205, 50, 0.1);
    border: 1px solid var(--w4105-primary);
    border-radius: 8px;
    color: var(--w4105-primary);
    font-size: 1.4rem;
    text-align: center;
    transition: all 0.3s ease;
}

.w4105-menu-list a:hover {
    background-color: var(--w4105-primary);
    color: var(--w4105-dark);
    transform: translateX(5px);
}

/* Main Content */
.w4105-main {
    margin-top: 70px;
    padding: 1rem;
}

/* Carousel */
.w4105-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 255, 127, 0.2);
}

.w4105-carousel-slide {
    width: 100%;
    height: 100%;
    display: none;
}

.w4105-carousel-slide:first-child {
    display: block;
}

.w4105-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.w4105-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.w4105-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.w4105-carousel-dot.w4105-active,
.w4105-carousel-dot:hover {
    background-color: var(--w4105-primary);
    transform: scale(1.2);
}

/* Section Titles */
.w4105-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w4105-primary);
    margin: 2rem 0 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.w4105-section-title span {
    border-bottom: 3px solid var(--w4105-secondary);
    padding-bottom: 0.5rem;
}

/* Game Grid */
.w4105-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.w4105-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.w4105-game-item:hover {
    transform: scale(1.05);
}

.w4105-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 255, 127, 0.1);
}

.w4105-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w4105-game-name {
    font-size: 1rem;
    color: var(--w4105-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Card Styles */
.w4105-card {
    background-color: rgba(50, 205, 50, 0.05);
    border: 1px solid rgba(0, 255, 127, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.w4105-card-title {
    font-size: 1.6rem;
    color: var(--w4105-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.w4105-card-content {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--w4105-light);
}

/* Feature List */
.w4105-feature-list {
    list-style: none;
    padding: 0;
}

.w4105-feature-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 255, 127, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.w4105-feature-list li:last-child {
    border-bottom: none;
}

.w4105-feature-icon {
    color: var(--w4105-primary);
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Bottom Navigation */
.w4105-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--w4105-darker) 0%, var(--w4105-dark) 100%);
    border-top: 2px solid var(--w4105-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    max-width: 430px;
    margin: 0 auto;
    box-shadow: 0 -2px 10px rgba(0, 255, 127, 0.2);
}

.w4105-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--w4105-gray);
    transition: all 0.3s ease;
    cursor: pointer;
}

.w4105-nav-item:hover,
.w4105-nav-item.w4105-active {
    color: var(--w4105-primary);
    transform: scale(1.1);
}

.w4105-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.w4105-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.w4105-footer {
    background-color: var(--w4105-darker);
    border-top: 2px solid var(--w4105-primary);
    padding: 2rem 1rem 80px;
    margin-top: 3rem;
}

.w4105-footer-title {
    color: var(--w4105-primary);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.w4105-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.w4105-footer-links a {
    color: var(--w4105-light);
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 255, 127, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.w4105-footer-links a:hover {
    background-color: var(--w4105-primary);
    color: var(--w4105-dark);
}

.w4105-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.w4105-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.w4105-partner-logo:hover {
    opacity: 1;
}

.w4105-copyright {
    text-align: center;
    color: var(--w4105-gray);
    font-size: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 127, 0.1);
}

/* Utility Classes */
.w4105-text-center {
    text-align: center;
}

.w4105-mb-1 {
    margin-bottom: 1rem;
}

.w4105-mb-2 {
    margin-bottom: 2rem;
}

.w4105-mt-2 {
    margin-top: 2rem;
}

.w4105-highlight {
    color: var(--w4105-primary);
    font-weight: 600;
}

/* Responsive */
@media (min-width: 769px) {
    .w4105-bottom-nav {
        display: none;
    }

    body {
        padding-bottom: 2rem;
    }

    .w4105-footer {
        padding-bottom: 2rem;
    }
}

/* Animation */
@keyframes w4105-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.w4105-pulse {
    animation: w4105-pulse 2s infinite;
}
