/**
 * jl555 Club - Main Stylesheet
 * Version: 1.0.0
 * Prefix: w3544-
 */

/* CSS Variables */
:root {
    --w3544-primary: #1B263B;
    --w3544-secondary: #FFE135;
    --w3544-accent: #191970;
    --w3544-highlight: #00BFFF;
    --w3544-bg: #0D1321;
    --w3544-bg-light: #1B263B;
    --w3544-text: #FFFFFF;
    --w3544-text-muted: #A0AEC0;
    --w3544-border: #2D3748;
    --w3544-success: #48BB78;
    --w3544-gradient: linear-gradient(135deg, #1B263B 0%, #191970 100%);
    --w3544-gold-gradient: linear-gradient(135deg, #FFE135 0%, #FFD700 100%);
    --w3544-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --w3544-radius: 12px;
    --w3544-radius-sm: 8px;
    --w3544-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--w3544-bg);
    color: var(--w3544-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body.w3544-menu-open {
    overflow: hidden;
}

a {
    color: var(--w3544-highlight);
    text-decoration: none;
    transition: var(--w3544-transition);
}

a:hover {
    color: var(--w3544-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.w3544-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.w3544-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--w3544-gradient);
    padding: 12px 16px;
    z-index: 1000;
    box-shadow: var(--w3544-shadow);
    transition: var(--w3544-transition);
}

.w3544-header.w3544-scrolled {
    background: rgba(27, 38, 59, 0.98);
    padding: 8px 16px;
}

.w3544-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.w3544-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.w3544-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--w3544-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.w3544-header-actions {
    display: flex;
    gap: 10px;
}

.w3544-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--w3544-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--w3544-transition);
    border: none;
    outline: none;
}

.w3544-btn-primary {
    background: var(--w3544-gold-gradient);
    color: var(--w3544-primary);
}

.w3544-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 225, 53, 0.3);
}

.w3544-btn-secondary {
    background: transparent;
    color: var(--w3544-text);
    border: 2px solid var(--w3544-highlight);
}

.w3544-btn-secondary:hover {
    background: var(--w3544-highlight);
    color: var(--w3544-primary);
}

.w3544-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--w3544-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

/* Main Content */
main {
    padding-top: 70px;
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Hero Carousel */
.w3544-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.w3544-slides {
    position: relative;
    height: 200px;
}

.w3544-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.w3544-slide.app354-active {
    opacity: 1;
}

.w3544-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w3544-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.w3544-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--w3544-transition);
}

.w3544-dot.app354-active {
    background: var(--w3544-secondary);
    transform: scale(1.2);
}

/* Section Styles */
.w3544-section {
    padding: 24px 16px;
}

.w3544-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--w3544-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.w3544-section-title i {
    font-size: 1.1rem;
}

/* Game Grid */
.w3544-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.w3544-game-card {
    background: var(--w3544-bg-light);
    border-radius: var(--w3544-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--w3544-transition);
    border: 1px solid var(--w3544-border);
}

.w3544-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 191, 255, 0.2);
    border-color: var(--w3544-highlight);
}

.w3544-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.w3544-game-name {
    padding: 8px 6px;
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    color: var(--w3544-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Tabs */
.w3544-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.w3544-tabs::-webkit-scrollbar {
    display: none;
}

.w3544-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    background: var(--w3544-bg-light);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--w3544-text-muted);
    cursor: pointer;
    transition: var(--w3544-transition);
    border: 1px solid var(--w3544-border);
}

.w3544-tab:hover,
.w3544-tab.active {
    background: var(--w3544-highlight);
    color: var(--w3544-primary);
    border-color: var(--w3544-highlight);
}

/* Info Cards */
.w3544-info-card {
    background: var(--w3544-gradient);
    border-radius: var(--w3544-radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--w3544-border);
}

.w3544-info-card h3 {
    color: var(--w3544-secondary);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.w3544-info-card p {
    color: var(--w3544-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.w3544-info-card ul {
    list-style: none;
    padding-left: 0;
}

.w3544-info-card li {
    padding: 8px 0;
    color: var(--w3544-text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.w3544-info-card li i {
    color: var(--w3544-secondary);
    margin-top: 4px;
}

/* Features Grid */
.w3544-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.w3544-feature {
    background: var(--w3544-bg-light);
    padding: 16px;
    border-radius: var(--w3544-radius-sm);
    text-align: center;
    border: 1px solid var(--w3544-border);
    transition: var(--w3544-transition);
}

.w3544-feature:hover {
    border-color: var(--w3544-highlight);
}

.w3544-feature i {
    font-size: 2rem;
    color: var(--w3544-highlight);
    margin-bottom: 8px;
}

.w3544-feature h4 {
    font-size: 0.9rem;
    color: var(--w3544-text);
    margin-bottom: 4px;
}

.w3544-feature p {
    font-size: 0.75rem;
    color: var(--w3544-text-muted);
}

/* FAQ Section */
.w3544-faq-item {
    background: var(--w3544-bg-light);
    border-radius: var(--w3544-radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid var(--w3544-border);
}

.w3544-faq-question {
    padding: 14px 16px;
    font-weight: 600;
    color: var(--w3544-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w3544-faq-question i {
    color: var(--w3544-secondary);
}

.w3544-faq-answer {
    padding: 0 16px 14px;
    color: var(--w3544-text-muted);
    font-size: 0.875rem;
}

/* Promo Banner */
.w3544-promo-banner {
    background: var(--w3544-gold-gradient);
    padding: 16px;
    border-radius: var(--w3544-radius);
    text-align: center;
    margin: 16px 0;
}

.w3544-promo-banner h3 {
    color: var(--w3544-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.w3544-promo-banner p {
    color: var(--w3544-accent);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.w3544-promo-banner .w3544-btn {
    background: var(--w3544-primary);
    color: var(--w3544-secondary);
}

/* Footer */
.w3544-footer {
    background: var(--w3544-gradient);
    padding: 24px 16px;
    margin-top: 32px;
}

.w3544-footer-content {
    text-align: center;
}

.w3544-footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--w3544-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.w3544-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.w3544-footer-links a {
    color: var(--w3544-text-muted);
    font-size: 0.875rem;
}

.w3544-footer-links a:hover {
    color: var(--w3544-secondary);
}

.w3544-partners {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.w3544-partner-logo {
    height: 24px;
    opacity: 0.7;
    transition: var(--w3544-transition);
}

.w3544-partner-logo:hover {
    opacity: 1;
}

.w3544-copyright {
    color: var(--w3544-text-muted);
    font-size: 0.75rem;
    margin-top: 16px;
}

/* Mobile Bottom Navigation */
.w3544-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #191970 0%, #1B263B 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--w3544-border);
}

.w3544-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    padding: 4px 8px;
    color: var(--w3544-text-muted);
    cursor: pointer;
    transition: var(--w3544-transition);
    text-decoration: none;
    border-radius: 12px;
}

.w3544-nav-item:hover,
.w3544-nav-item.active {
    color: var(--w3544-secondary);
    background: rgba(255, 225, 53, 0.1);
}

.w3544-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.w3544-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .w3544-bottom-nav {
        display: none;
    }
}

/* Mobile Menu */
.w3544-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w3544-bg);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.w3544-mobile-menu.app354-active {
    right: 0;
}

.w3544-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--w3544-border);
}

.w3544-menu-close {
    background: transparent;
    border: none;
    color: var(--w3544-text);
    font-size: 1.5rem;
    cursor: pointer;
}

.w3544-menu-links {
    padding: 16px 0;
}

.w3544-menu-link {
    display: block;
    padding: 14px 20px;
    color: var(--w3544-text);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--w3544-border);
    transition: var(--w3544-transition);
}

.w3544-menu-link:hover {
    background: var(--w3544-bg-light);
    color: var(--w3544-secondary);
}

.w3544-menu-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.w3544-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(--w3544-transition);
}

.w3544-menu-overlay.app354-active {
    opacity: 1;
    visibility: visible;
}

/* Internal Links */
.w3544-internal-link {
    color: var(--w3544-highlight);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.w3544-internal-link:hover {
    color: var(--w3544-secondary);
}

/* Responsive Adjustments */
@media (max-width: 430px) {
    .w3544-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .w3544-game-name {
        font-size: 0.65rem;
        padding: 6px 4px;
    }

    .w3544-section-title {
        font-size: 1.1rem;
    }
}

@media (min-width: 431px) and (max-width: 768px) {
    .w3544-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .w3544-container {
        max-width: 1200px;
    }

    .w3544-header-inner {
        max-width: 1200px;
    }

    .w3544-game-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .w3544-features {
        grid-template-columns: repeat(4, 1fr);
    }

    .w3544-menu-btn {
        display: block;
    }

    .w3544-header-actions {
        gap: 16px;
    }

    .w3544-btn {
        padding: 12px 28px;
        font-size: 1rem;
    }
}

/* Utilities */
.w3544-text-center {
    text-align: center;
}

.w3544-mt-16 {
    margin-top: 16px;
}

.w3544-mb-16 {
    margin-bottom: 16px;
}

.w3544-hidden {
    display: none !important;
}

/* Animation */
@keyframes w3544fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.w3544-animate-in {
    animation: w3544fadeIn 0.4s ease forwards;
}
