/* JLJL88 PH Theme CSS - All classes prefixed with w8989- */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: #FFE135;
    background-color: #0C0C0C;
    overflow-x: hidden;
}

/* CSS Variables for consistent theming */
:root {
    --w8989-primary: #FF7F50;
    --w8989-secondary: #FFB347;
    --w8989-accent: #FF8C00;
    --w8989-highlight: #FFE135;
    --w8989-dark: #0C0C0C;
    --w8989-gray: #2A2A2A;
    --w8989-light-gray: #4A4A4A;
    --w8989-white: #FFFFFF;
    --w8989-gradient: linear-gradient(135deg, #FF7F50 0%, #FF8C00 100%);
    --w8989-shadow: 0 4px 12px rgba(255, 127, 80, 0.3);
    --w8989-radius: 8px;
    --w8989-transition: all 0.3s ease;
}

/* Container and Layout */
.w8989-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.w8989-wrapper {
    min-height: 100vh;
    position: relative;
    padding-bottom: 8rem; /* Space for mobile nav */
}

.w8989-grid {
    display: grid;
    gap: 1.5rem;
}

.w8989-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w8989-flex-col {
    display: flex;
    flex-direction: column;
}

.w8989-text-center {
    text-align: center;
}

/* Header and Navigation */
.w8989-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1A1A1A 0%, #0C0C0C 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--w8989-accent);
    z-index: 1000;
    padding: 1rem 0;
}

.w8989-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.w8989-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--w8989-highlight);
    text-decoration: none;
}

.w8989-logo-icon {
    width: 2.8rem;
    height: 2.8rem;
    background: var(--w8989-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--w8989-white);
}

.w8989-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.w8989-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: var(--w8989-radius);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--w8989-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.4rem; /* Touch-friendly size */
    min-width: 8rem;
    position: relative;
    overflow: hidden;
}

.w8989-btn-primary {
    background: var(--w8989-gradient);
    color: var(--w8989-white);
    box-shadow: var(--w8989-shadow);
}

.w8989-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 127, 80, 0.4);
}

.w8989-btn-secondary {
    background: transparent;
    color: var(--w8989-secondary);
    border: 2px solid var(--w8989-secondary);
}

.w8989-btn-secondary:hover {
    background: var(--w8989-secondary);
    color: var(--w8989-dark);
    transform: translateY(-2px);
}

.w8989-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.w8989-btn.loading::after {
    content: '';
    position: absolute;
    width: 2rem;
    height: 2rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: w8989-spin 1s linear infinite;
}

@keyframes w8989-spin {
    to { transform: rotate(360deg); }
}

/* Mobile Menu Toggle */
.w8989-menu-toggle {
    background: none;
    border: none;
    color: var(--w8989-highlight);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--w8989-radius);
    transition: var(--w8989-transition);
    min-width: 4.4rem;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w8989-menu-toggle:hover {
    background: rgba(255, 225, 53, 0.1);
    transform: scale(1.1);
}

/* Desktop Navigation */
.w8989-desktop-nav {
    display: none;
}

@media (min-width: 769px) {
    .w8989-desktop-nav {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .w8989-desktop-nav a {
        color: var(--w8989-highlight);
        text-decoration: none;
        font-weight: 500;
        padding: 0.5rem 1rem;
        border-radius: var(--w8989-radius);
        transition: var(--w8989-transition);
    }

    .w8989-desktop-nav a:hover {
        background: rgba(255, 225, 53, 0.1);
        color: var(--w8989-secondary);
    }
}

/* Mobile Menu */
.w8989-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #1A1A1A 0%, #0C0C0C 100%);
    backdrop-filter: blur(10px);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.w8989-mobile-menu.active {
    right: 0;
}

.w8989-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.w8989-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.w8989-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--w8989-accent);
}

.w8989-mobile-menu-close {
    background: none;
    border: none;
    color: var(--w8989-highlight);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--w8989-radius);
    transition: var(--w8989-transition);
}

.w8989-mobile-menu-close:hover {
    background: rgba(255, 225, 53, 0.1);
}

.w8989-mobile-menu-list {
    list-style: none;
}

.w8989-mobile-menu-list li {
    margin-bottom: 0.5rem;
}

.w8989-mobile-menu-list a {
    display: block;
    padding: 1rem;
    color: var(--w8989-highlight);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--w8989-radius);
    transition: var(--w8989-transition);
}

.w8989-mobile-menu-list a:hover {
    background: rgba(255, 225, 53, 0.1);
    color: var(--w8989-secondary);
}

/* Main Content */
.w8989-main {
    padding-top: 8rem; /* Account for fixed header */
    min-height: calc(100vh - 8rem);
}

.w8989-section {
    padding: 3rem 0;
}

.w8989-section-title {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--w8989-highlight);
    text-align: center;
    margin-bottom: 2rem;
}

/* Carousel */
.w8989-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--w8989-radius);
    margin-bottom: 3rem;
}

.w8989-carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.w8989-carousel-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.w8989-carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.w8989-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--w8989-white);
    padding: 2rem 1.5rem 1.5rem;
}

.w8989-carousel-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.w8989-carousel-text {
    font-size: 1.4rem;
    opacity: 0.9;
}

.w8989-carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.w8989-carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--w8989-white);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--w8989-transition);
}

.w8989-carousel-btn:hover {
    background: var(--w8989-primary);
}

.w8989-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.w8989-carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--w8989-transition);
}

.w8989-carousel-indicator.active {
    background: var(--w8989-primary);
    transform: scale(1.2);
}

/* Game Cards */
.w8989-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.w8989-game-card {
    background: var(--w8989-gray);
    border-radius: var(--w8989-radius);
    padding: 1rem;
    text-align: center;
    transition: var(--w8989-transition);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
}

.w8989-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--w8989-primary);
    box-shadow: var(--w8989-shadow);
}

.w8989-game-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 0.5rem;
    border-radius: var(--w8989-radius);
    overflow: hidden;
}

.w8989-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w8989-game-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--w8989-highlight);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cards */
.w8989-card {
    background: var(--w8989-gray);
    border-radius: var(--w8989-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--w8989-light-gray);
    transition: var(--w8989-transition);
}

.w8989-card:hover {
    border-color: var(--w8989-primary);
    box-shadow: var(--w8989-shadow);
}

.w8989-card-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--w8989-highlight);
    margin-bottom: 1rem;
}

.w8989-card-text {
    color: var(--w8989-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Promotional Links */
.w8989-promo-link {
    color: var(--w8989-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--w8989-transition);
}

.w8989-promo-link:hover {
    color: var(--w8989-secondary);
    text-decoration: underline;
}

.w8989-promo-btn {
    background: var(--w8989-gradient);
    color: var(--w8989-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--w8989-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--w8989-transition);
    display: inline-block;
    text-decoration: none;
    text-align: center;
    min-height: 4.4rem;
    min-width: 12rem;
}

.w8989-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 127, 80, 0.4);
}

/* Footer */
.w8989-footer {
    background: linear-gradient(135deg, #1A1A1A 0%, #0C0C0C 100%);
    border-top: 1px solid var(--w8989-accent);
    padding: 3rem 0 8rem; /* Extra padding for mobile nav */
    margin-top: 3rem;
}

.w8989-footer-content {
    margin-bottom: 2rem;
}

.w8989-footer-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--w8989-highlight);
    margin-bottom: 1rem;
}

.w8989-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.w8989-footer-links a {
    color: var(--w8989-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--w8989-radius);
    transition: var(--w8989-transition);
}

.w8989-footer-links a:hover {
    background: rgba(255, 179, 71, 0.1);
    color: var(--w8989-primary);
}

.w8989-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.w8989-partner-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--w8989-radius);
    overflow: hidden;
    opacity: 0.8;
    transition: var(--w8989-transition);
}

.w8989-partner-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.w8989-partner-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w8989-copyright {
    text-align: center;
    color: var(--w8989-light-gray);
    font-size: 1.2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--w8989-light-gray);
}

/* Mobile Bottom Navigation */
.w8989-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1A1A1A 0%, #0C0C0C 100%);
    border-top: 1px solid var(--w8989-accent);
    z-index: 1000;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6rem;
}

@media (min-width: 769px) {
    .w8989-mobile-nav {
        display: none;
    }
}

.w8989-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5rem;
    padding: 0.5rem;
    border: none;
    background: none;
    color: var(--w8989-light-gray);
    text-decoration: none;
    cursor: pointer;
    transition: var(--w8989-transition);
    border-radius: var(--w8989-radius);
    position: relative;
}

.w8989-nav-item:hover,
.w8989-nav-item.active {
    color: var(--w8989-primary);
    background: rgba(255, 127, 80, 0.1);
    transform: translateY(-2px);
}

.w8989-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
    transition: var(--w8989-transition);
}

.w8989-nav-text {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.w8989-nav-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--w8989-primary);
    color: var(--w8989-white);
    font-size: 1rem;
    font-weight: bold;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: w8989-pulse 2s infinite;
}

@keyframes w8989-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .w8989-main {
        padding-bottom: 8rem; /* Space for mobile nav */
    }

    .w8989-game-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 0.8rem;
    }

    .w8989-game-icon {
        width: 3.5rem;
        height: 3.5rem;
    }

    .w8989-game-name {
        font-size: 1.1rem;
    }

    .w8989-carousel-slide img {
        height: 180px;
    }

    .w8989-section-title {
        font-size: 2rem;
    }

    .w8989-card {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.w8989-mb-1 { margin-bottom: 1rem; }
.w8989-mb-2 { margin-bottom: 2rem; }
.w8989-mb-3 { margin-bottom: 3rem; }
.w8989-mt-1 { margin-top: 1rem; }
.w8989-mt-2 { margin-top: 2rem; }
.w8989-mt-3 { margin-top: 3rem; }

.w8989-text-primary { color: var(--w8989-primary); }
.w8989-text-secondary { color: var(--w8989-secondary); }
.w8989-text-accent { color: var(--w8989-accent); }
.w8989-text-highlight { color: var(--w8989-highlight); }

.w8989-bg-primary { background-color: var(--w8989-primary); }
.w8989-bg-secondary { background-color: var(--w8989-secondary); }

.w8989-hidden { display: none; }
.w8989-block { display: block; }
.w8989-inline-block { display: inline-block; }

/* Print Styles */
@media print {
    .w8989-header,
    .w8989-mobile-nav,
    .w8989-carousel-controls,
    .w8989-carousel-indicators {
        display: none !important;
    }

    .w8989-main {
        padding-top: 0 !important;
    }

    .w8989-wrapper {
        padding-bottom: 0 !important;
    }
}