/**
 * xbjili Website CSS Styles
 * All classes use 'pge8-' prefix for namespace isolation
 * Color Palette: #FF5722 | #D8BFD8 | #20B2AA | #212F3D | #FF9500
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --pge8-primary: #FF5722;
    --pge8-secondary: #20B2AA;
    --pge8-accent: #FF9500;
    --pge8-bg-dark: #212F3D;
    --pge8-bg-light: #1a2633;
    --pge8-text-light: #D8BFD8;
    --pge8-text-white: #ffffff;
    --pge8-text-muted: #a8b5c4;
    --pge8-border: #2d3d4e;
    --pge8-success: #27ae60;
    --pge8-warning: #f39c12;
    --pge8-gradient: linear-gradient(135deg, #FF5722 0%, #FF9500 100%);
}

/* Reset and Base Styles */
* {
    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-color: var(--pge8-bg-dark);
    color: var(--pge8-text-white);
    line-height: 1.5;
    min-height: 100vh;
}

/* Container */
.pge8-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
.pge8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--pge8-bg-dark) 0%, rgba(33, 47, 61, 0.95) 100%);
    border-bottom: 1px solid var(--pge8-border);
    z-index: 1000;
    padding: 1rem 0;
}

.pge8-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pge8-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.pge8-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.pge8-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pge8-primary);
    letter-spacing: 0.5px;
}

.pge8-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.pge8-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
}

.pge8-btn-login {
    background: transparent;
    color: var(--pge8-text-white);
    border: 1px solid var(--pge8-secondary);
}

.pge8-btn-login:hover {
    background: var(--pge8-secondary);
}

.pge8-btn-register {
    background: var(--pge8-gradient);
    color: var(--pge8-text-white);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.pge8-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

/* Menu Toggle */
.pge8-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--pge8-text-white);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Navigation Menu */
.pge8-nav {
    display: none;
}

.pge8-nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.pge8-nav-link {
    color: var(--pge8-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.pge8-nav-link:hover {
    color: var(--pge8-primary);
}

/* Mobile Menu */
.pge8-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pge8-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
}

.site98e-menu-open {
    right: 0;
}

.pge8-mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--pge8-text-white);
    font-size: 2.4rem;
    cursor: pointer;
}

.pge8-mobile-nav-list {
    list-style: none;
    padding: 0;
}

.pge8-mobile-nav-list li {
    border-bottom: 1px solid var(--pge8-border);
}

.pge8-mobile-nav-list a {
    display: block;
    padding: 1.5rem 0;
    color: var(--pge8-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.pge8-mobile-nav-list a:hover {
    color: var(--pge8-primary);
    padding-left: 1rem;
}

/* Menu Overlay */
.pge8-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;
}

.site98e-overlay-visible {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.pge8-main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .pge8-main {
        padding-bottom: 80px;
    }
}

/* Carousel/Slider */
.pge8-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.pge8-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.pge8-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.pge8-slide-active {
    opacity: 1;
}

.pge8-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.pge8-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.pge8-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.site98e-dot-active,
.pge8-dot:hover {
    background: var(--pge8-primary);
    transform: scale(1.2);
}

/* Section Styles */
.pge8-section {
    padding: 2rem 0;
}

.pge8-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pge8-text-white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.pge8-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--pge8-gradient);
    border-radius: 2px;
}

/* Game Grid */
.pge8-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pge8-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pge8-game-item:hover {
    transform: scale(1.05);
}

.pge8-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--pge8-border);
    transition: border-color 0.3s ease;
}

.pge8-game-item:hover .pge8-game-img {
    border-color: var(--pge8-primary);
}

.pge8-game-name {
    font-size: 1.1rem;
    color: var(--pge8-text-light);
    margin-top: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Badge */
.pge8-category-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--pge8-bg-light);
    border-radius: 20px;
    font-size: 1.3rem;
    color: var(--pge8-secondary);
    margin-bottom: 1.5rem;
    border: 1px solid var(--pge8-secondary);
}

/* Card Styles */
.pge8-card {
    background: var(--pge8-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--pge8-border);
    margin-bottom: 1.5rem;
}

.pge8-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pge8-primary);
    margin-bottom: 1rem;
}

.pge8-card-text {
    font-size: 1.4rem;
    color: var(--pge8-text-muted);
    line-height: 1.6;
}

/* List Styles */
.pge8-list {
    list-style: none;
    padding: 0;
}

.pge8-list-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--pge8-border);
    font-size: 1.4rem;
    color: var(--pge8-text-light);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pge8-list-item:last-child {
    border-bottom: none;
}

.pge8-list-icon {
    color: var(--pge8-secondary);
    font-size: 1.6rem;
    margin-top: 2px;
}

/* Footer */
.pge8-footer {
    background: var(--pge8-bg-light);
    border-top: 1px solid var(--pge8-border);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.pge8-footer-section {
    margin-bottom: 2rem;
}

.pge8-footer-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pge8-primary);
    margin-bottom: 1rem;
}

.pge8-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.pge8-footer-link {
    color: var(--pge8-text-light);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.pge8-footer-link:hover {
    color: var(--pge8-primary);
}

/* Partners Grid */
.pge8-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.pge8-partner {
    width: 50px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.pge8-partner:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Copyright */
.pge8-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pge8-border);
    font-size: 1.2rem;
    color: var(--pge8-text-muted);
}

/* Mobile Bottom Navigation */
.pge8-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(26, 38, 51, 0.98) 0%, var(--pge8-bg-dark) 100%);
    border-top: 1px solid var(--pge8-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    padding: 0 0.5rem;
}

.pge8-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--pge8-text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pge8-bottom-nav-item:hover,
.pge8-bottom-nav-item.active {
    color: var(--pge8-primary);
}

.pge8-bottom-nav-icon {
    font-size: 2.2rem;
    margin-bottom: 2px;
}

.pge8-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .pge8-bottom-nav {
        display: none;
    }

    .pge8-nav {
        display: block;
    }

    .pge8-menu-toggle {
        display: none;
    }
}

/* Mobile Specific */
@media (max-width: 768px) {
    .pge8-menu-toggle {
        display: block;
    }

    .pge8-header-actions {
        gap: 0.5rem;
    }

    .pge8-btn {
        padding: 0.6rem 1rem;
        font-size: 1.2rem;
    }
}

/* Promo Link Styles */
.pge8-promo-link {
    color: var(--pge8-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pge8-promo-link:hover {
    color: var(--pge8-accent);
    text-decoration: underline;
}

.pge8-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--pge8-gradient);
    color: var(--pge8-text-white);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.pge8-promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 87, 34, 0.5);
}

/* Feature Box */
.pge8-feature-box {
    background: var(--pge8-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--pge8-border);
    transition: all 0.3s ease;
}

.pge8-feature-box:hover {
    border-color: var(--pge8-primary);
    transform: translateY(-3px);
}

.pge8-feature-icon {
    font-size: 3rem;
    color: var(--pge8-secondary);
    margin-bottom: 1rem;
}

.pge8-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pge8-text-white);
    margin-bottom: 0.5rem;
}

.pge8-feature-desc {
    font-size: 1.2rem;
    color: var(--pge8-text-muted);
}

/* FAQ Styles */
.pge8-faq-item {
    background: var(--pge8-bg-light);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--pge8-border);
}

.pge8-faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pge8-text-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pge8-faq-answer {
    padding: 0 1.5rem 1.2rem;
    font-size: 1.3rem;
    color: var(--pge8-text-muted);
    line-height: 1.6;
}

/* Stats Grid */
.pge8-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pge8-stat-box {
    background: var(--pge8-bg-light);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--pge8-border);
}

.pge8-stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--pge8-primary);
}

.pge8-stat-label {
    font-size: 1.2rem;
    color: var(--pge8-text-muted);
    margin-top: 0.5rem;
}

/* Responsive Text */
.pge8-text-center {
    text-align: center;
}

.pge8-mb-1 {
    margin-bottom: 1rem;
}

.pge8-mb-2 {
    margin-bottom: 2rem;
}

.pge8-mt-2 {
    margin-top: 2rem;
}

/* H1 Title */
.pge8-h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--pge8-text-white);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* Paragraph */
.pge8-p {
    font-size: 1.4rem;
    color: var(--pge8-text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Internal Link */
.pge8-internal-link {
    color: var(--pge8-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.pge8-internal-link:hover {
    color: var(--pge8-accent);
    text-decoration: underline;
}
