/**
 * 99jili - Main Stylesheet
 * Class Prefix: pgb9-
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --pgb9-primary: #FFCC02;
    --pgb9-secondary: #FFCCCB;
    --pgb9-accent: #FFEB3B;
    --pgb9-bg-dark: #262626;
    --pgb9-bg-light: #333333;
    --pgb9-text-light: #CCCCCC;
    --pgb9-text-white: #FFFFFF;
    --pgb9-border: #444444;
    --pgb9-success: #4CAF50;
    --pgb9-gradient: linear-gradient(135deg, #FFCC02 0%, #FFEB3B 100%);
}

/* Reset & Base */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--pgb9-bg-dark);
    color: var(--pgb9-text-light);
    line-height: 1.5;
    min-height: 100vh;
}

/* Container */
.pgb9-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.pgb9-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--pgb9-bg-dark) 0%, rgba(38, 38, 38, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--pgb9-border);
}

.pgb9-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.pgb9-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.pgb9-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.pgb9-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pgb9-primary);
}

.pgb9-header-actions {
    display: flex;
    gap: 0.8rem;
}

.pgb9-btn {
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.pgb9-btn-primary {
    background: var(--pgb9-gradient);
    color: var(--pgb9-bg-dark);
}

.pgb9-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 204, 2, 0.4);
}

.pgb9-btn-outline {
    background: transparent;
    border: 2px solid var(--pgb9-primary);
    color: var(--pgb9-primary);
}

.pgb9-btn-outline:hover {
    background: var(--pgb9-primary);
    color: var(--pgb9-bg-dark);
}

.pgb9-menu-toggle {
    background: none;
    border: none;
    color: var(--pgb9-text-white);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.pgb9-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pgb9-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    border-left: 1px solid var(--pgb9-border);
}

.pgb9-menu-active {
    right: 0;
}

.pgb9-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;
}

.pgb9-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pgb9-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pgb9-border);
}

.pgb9-menu-title {
    font-size: 1.8rem;
    color: var(--pgb9-primary);
    font-weight: 700;
}

.pgb9-menu-close {
    background: none;
    border: none;
    color: var(--pgb9-text-white);
    font-size: 2.4rem;
    cursor: pointer;
}

.pgb9-menu-links {
    list-style: none;
}

.pgb9-menu-links li {
    margin-bottom: 1rem;
}

.pgb9-menu-links a {
    display: block;
    padding: 1rem;
    color: var(--pgb9-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pgb9-menu-links a:hover {
    background: var(--pgb9-bg-light);
    color: var(--pgb9-primary);
}

/* Main Content */
.pgb9-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .pgb9-main {
        padding-bottom: 2rem;
    }
}

/* Carousel */
.pgb9-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.pgb9-carousel-slide {
    display: none;
    cursor: pointer;
}

.pgb9-carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.pgb9-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.pgb9-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgb9-dot-active {
    background: var(--pgb9-primary);
    width: 20px;
    border-radius: 4px;
}

/* Section Title */
.pgb9-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pgb9-text-white);
    margin: 2rem 0 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--pgb9-primary);
}

/* Game Grid */
.pgb9-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0.5rem;
}

.pgb9-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pgb9-game-item:hover {
    transform: scale(1.05);
}

.pgb9-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.pgb9-game-name {
    font-size: 1.1rem;
    color: var(--pgb9-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cards */
.pgb9-card {
    background: var(--pgb9-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--pgb9-border);
}

.pgb9-card-title {
    font-size: 1.6rem;
    color: var(--pgb9-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.pgb9-card-text {
    font-size: 1.4rem;
    color: var(--pgb9-text-light);
    line-height: 1.6;
}

/* Promo Button */
.pgb9-promo-btn {
    display: inline-block;
    background: var(--pgb9-gradient);
    color: var(--pgb9-bg-dark);
    padding: 1.2rem 2.4rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.pgb9-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 204, 2, 0.5);
}

/* Footer */
.pgb9-footer {
    background: var(--pgb9-bg-light);
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--pgb9-border);
}

.pgb9-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.pgb9-footer-brand p {
    font-size: 1.3rem;
    color: var(--pgb9-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pgb9-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.pgb9-footer-links a {
    padding: 0.8rem 1.5rem;
    background: var(--pgb9-bg-dark);
    color: var(--pgb9-text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.pgb9-footer-links a:hover {
    background: var(--pgb9-primary);
    color: var(--pgb9-bg-dark);
}

.pgb9-footer-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--pgb9-text-light);
    padding-top: 1rem;
    border-top: 1px solid var(--pgb9-border);
}

/* Bottom Navigation */
.pgb9-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(38, 38, 38, 0.98) 0%, var(--pgb9-bg-dark) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--pgb9-border);
}

@media (min-width: 769px) {
    .pgb9-bottom-nav {
        display: none;
    }
}

.pgb9-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pgb9-nav-item:hover {
    transform: scale(1.1);
}

.pgb9-nav-item i,
.pgb9-nav-item .material-icons-outlined {
    font-size: 24px;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.pgb9-nav-item span {
    font-size: 10px;
    color: var(--pgb9-text-light);
    transition: color 0.3s ease;
}

.pgb9-nav-item:hover i,
.pgb9-nav-item:hover span,
.pgb9-nav-item:hover .material-icons-outlined {
    color: var(--pgb9-primary);
}

.pgb9-nav-item.active i,
.pgb9-nav-item.active span,
.pgb9-nav-item.active .material-icons-outlined {
    color: var(--pgb9-primary);
}

/* Utility Classes */
.pgb9-text-center {
    text-align: center;
}

.pgb9-mb-1 {
    margin-bottom: 1rem;
}

.pgb9-mb-2 {
    margin-bottom: 2rem;
}

.pgb9-mt-2 {
    margin-top: 2rem;
}

.pgb9-hidden {
    display: none;
}

/* Responsive */
@media (max-width: 430px) {
    .pgb9-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animation */
@keyframes pgb9-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pgb9-animate-pulse {
    animation: pgb9-pulse 2s infinite;
}
