/**
 * Jiligames777.click - Theme Stylesheet
 * All classes use prefix: pg22-
 * Color palette: #ADFF2F | #808080 | #228B22 | #7CFC00 | #1A1A2E
 */

/* CSS Variables */
:root {
    --pg22-primary: #228B22;
    --pg22-secondary: #7CFC00;
    --pg22-accent: #ADFF2F;
    --pg22-bg: #1A1A2E;
    --pg22-bg-light: #252542;
    --pg22-text: #ADFF2F;
    --pg22-text-light: #7CFC00;
    --pg22-gray: #808080;
    --pg22-white: #ffffff;
    --pg22-dark: #0d0d1a;
    --pg22-gradient: linear-gradient(135deg, #228B22, #7CFC00);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--pg22-bg);
    color: var(--pg22-white);
    line-height: 1.6;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.pg22-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--pg22-bg);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--pg22-primary);
    max-width: 430px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.pg22-header-scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: 0 4px 20px rgba(34, 139, 34, 0.3);
}

.pg22-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg22-logo img {
    width: 32px;
    height: 32px;
}

.pg22-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--pg22-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pg22-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pg22-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.pg22-btn-login {
    background: transparent;
    border: 2px solid var(--pg22-primary);
    color: var(--pg22-text);
}

.pg22-btn-login:hover {
    background: var(--pg22-primary);
    color: var(--pg22-white);
}

.pg22-btn-register {
    background: var(--pg22-gradient);
    color: var(--pg22-dark);
}

.pg22-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(124, 252, 0, 0.4);
}

.pg22-menu-toggle {
    background: transparent;
    border: none;
    color: var(--pg22-accent);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
}

/* Mobile Menu */
.pg22-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--pg22-bg);
    z-index: 9999;
    padding: 80px 20px 30px;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.x22e2-menu-active {
    right: 0;
}

.pg22-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.x22e2-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pg22-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--pg22-accent);
    font-size: 28px;
    cursor: pointer;
}

.pg22-menu-links {
    list-style: none;
}

.pg22-menu-links li {
    margin-bottom: 15px;
}

.pg22-menu-links a {
    display: block;
    padding: 12px 16px;
    color: var(--pg22-white);
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pg22-menu-links a:hover {
    background: var(--pg22-primary);
    color: var(--pg22-accent);
}

/* Main Content */
.pg22-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .pg22-main {
        padding-bottom: 80px;
    }
}

/* Hero Slider */
.pg22-slider {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.pg22-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.pg22-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.x22e2-slide-active {
    opacity: 1;
}

.pg22-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg22-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pg22-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pg22-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg22-dot-active {
    background: var(--pg22-accent);
    transform: scale(1.2);
}

/* Section Titles */
.pg22-section {
    padding: 25px 16px;
}

.pg22-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--pg22-accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg22-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--pg22-gradient);
    border-radius: 2px;
}

/* Game Grid */
.pg22-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pg22-game-card {
    background: var(--pg22-bg-light);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pg22-game-card:hover {
    transform: translateY(-5px);
    border-color: var(--pg22-primary);
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.3);
}

.pg22-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.pg22-game-name {
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pg22-white);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Features Section */
.pg22-features {
    background: var(--pg22-bg-light);
    padding: 30px 16px;
    border-radius: 15px;
    margin: 0 16px 25px;
}

.pg22-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pg22-feature-item:last-child {
    border-bottom: none;
}

.pg22-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--pg22-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--pg22-dark);
}

.pg22-feature-text h3 {
    font-size: 16px;
    color: var(--pg22-accent);
    margin-bottom: 5px;
}

.pg22-feature-text p {
    font-size: 13px;
    color: var(--pg22-gray);
}

/* CTA Section */
.pg22-cta {
    background: var(--pg22-gradient);
    padding: 30px 20px;
    border-radius: 15px;
    margin: 0 16px 25px;
    text-align: center;
}

.pg22-cta h2 {
    font-size: 24px;
    color: var(--pg22-dark);
    margin-bottom: 10px;
}

.pg22-cta p {
    font-size: 14px;
    color: var(--pg22-bg);
    margin-bottom: 20px;
}

.pg22-cta-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--pg22-dark);
    color: var(--pg22-accent);
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pg22-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.pg22-footer {
    background: var(--pg22-dark);
    padding: 30px 16px;
    border-top: 2px solid var(--pg22-primary);
}

.pg22-partners {
    margin-bottom: 25px;
}

.pg22-partners-title {
    font-size: 14px;
    color: var(--pg22-gray);
    margin-bottom: 15px;
    text-align: center;
}

.pg22-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.pg22-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.pg22-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.pg22-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pg22-footer-links a {
    color: var(--pg22-gray);
    font-size: 13px;
    transition: color 0.3s ease;
}

.pg22-footer-links a:hover {
    color: var(--pg22-accent);
}

.pg22-copyright {
    text-align: center;
    font-size: 12px;
    color: var(--pg22-gray);
}

/* Bottom Navigation */
.pg22-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--pg22-bg);
    border-top: 2px solid var(--pg22-primary);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    max-width: 430px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .pg22-bottom-nav {
        display: none;
    }
}

.pg22-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    min-height: 60px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.pg22-nav-item:hover {
    transform: scale(1.1);
}

.pg22-nav-item.active {
    background: rgba(34, 139, 34, 0.2);
    border-radius: 12px;
}

.pg22-nav-item i,
.pg22-nav-item .material-icons {
    font-size: 24px;
    color: var(--pg22-gray);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.pg22-nav-item.active i,
.pg22-nav-item.active .material-icons,
.pg22-nav-item:hover i,
.pg22-nav-item:hover .material-icons {
    color: var(--pg22-accent);
}

.pg22-nav-text {
    font-size: 10px;
    color: var(--pg22-gray);
    transition: color 0.3s ease;
}

.pg22-nav-item.active .pg22-nav-text,
.pg22-nav-item:hover .pg22-nav-text {
    color: var(--pg22-accent);
}

/* Content Text Styles */
.pg22-content {
    padding: 0 16px;
}

.pg22-content h1 {
    font-size: 26px;
    color: var(--pg22-accent);
    margin-bottom: 15px;
    line-height: 1.3;
}

.pg22-content h2 {
    font-size: 22px;
    color: var(--pg22-accent);
    margin-bottom: 12px;
    margin-top: 25px;
}

.pg22-content h3 {
    font-size: 18px;
    color: var(--pg22-text-light);
    margin-bottom: 10px;
    margin-top: 20px;
}

.pg22-content p {
    font-size: 14px;
    color: var(--pg22-white);
    margin-bottom: 12px;
    line-height: 1.7;
}

.pg22-content ul,
.pg22-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.pg22-content li {
    font-size: 14px;
    color: var(--pg22-white);
    margin-bottom: 8px;
    line-height: 1.6;
}

.pg22-content strong {
    color: var(--pg22-accent);
    font-weight: 600;
}

.pg22-content a {
    color: var(--pg22-text-light);
    text-decoration: underline;
}

.pg22-content a:hover {
    color: var(--pg22-accent);
}

/* Promo Link Style */
.pg22-promo-link {
    color: var(--pg22-accent);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg22-promo-link:hover {
    color: var(--pg22-text-light);
    text-shadow: 0 0 10px rgba(124, 252, 0, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 380px) {
    .pg22-game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pg22-section-title {
        font-size: 18px;
    }

    .pg22-logo-text {
        font-size: 16px;
    }
}
