/* Jollibee 777 CSS Styles */
/* All classes use prefix "pg92-" for namespace isolation */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #ffffff;
    background-color: #212F3D;
    overflow-x: hidden;
}

/* CSS Variables for color scheme */
:root {
    --pg92-primary: #FFCC02;
    --pg92-secondary: #FF5722;
    --pg92-accent: #FFD700;
    --pg92-dark: #212F3D;
    --pg92-gray: #6C757D;
    --pg92-white: #ffffff;
    --pg92-black: #000000;
    --pg92-gradient: linear-gradient(135deg, #FFCC02 0%, #FF5722 100%);
    --pg92-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --pg92-radius: 8px;
    --pg92-transition: all 0.3s ease;
}

/* Utility classes */
.pg92-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pg92-wrapper {
    min-height: 100vh;
    padding-bottom: 8rem;
}

.pg92-text-center {
    text-align: center;
}

.pg92-text-primary {
    color: var(--pg92-primary);
}

.pg92-text-secondary {
    color: var(--pg92-secondary);
}

.pg92-bg-primary {
    background-color: var(--pg92-primary);
}

.pg92-bg-secondary {
    background-color: var(--pg92-secondary);
}

.pg92-bg-dark {
    background-color: var(--pg92-dark);
}

/* Header and Navigation */
.pg92-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--pg92-gradient);
    box-shadow: var(--pg92-shadow);
    padding: 1rem 0;
}

.pg92-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.pg92-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--pg92-white);
    text-decoration: none;
}

.pg92-logo img {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
}

.pg92-nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.pg92-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: var(--pg92-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pg92-transition);
    min-height: 4.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.pg92-btn-primary {
    background-color: var(--pg92-primary);
    color: var(--pg92-dark);
}

.pg92-btn-primary:hover {
    background-color: var(--pg92-accent);
    transform: translateY(-1px);
}

.pg92-btn-secondary {
    background-color: var(--pg92-secondary);
    color: var(--pg92-white);
}

.pg92-btn-secondary:hover {
    background-color: #e64a19;
    transform: translateY(-1px);
}

.pg92-menu-button {
    background: none;
    border: none;
    color: var(--pg92-white);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--pg92-radius);
    transition: var(--pg92-transition);
}

.pg92-menu-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.pg92-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--pg92-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem 0;
}

.pg92-mobile-menu.active {
    right: 0;
}

.pg92-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pg92-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pg92-menu-list {
    list-style: none;
    padding: 0;
}

.pg92-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pg92-menu-link {
    display: block;
    padding: 1.5rem 2rem;
    color: var(--pg92-white);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--pg92-transition);
}

.pg92-menu-link:hover {
    background-color: rgba(255, 204, 2, 0.1);
    color: var(--pg92-primary);
}

/* Main Content */
.pg92-main {
    margin-top: 7rem;
    min-height: calc(100vh - 7rem);
}

/* Carousel */
.pg92-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--pg92-radius);
    margin-bottom: 2rem;
}

.pg92-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.pg92-carousel-slide.active {
    opacity: 1;
}

.pg92-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg92-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.pg92-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--pg92-transition);
}

.pg92-carousel-dot.active {
    background-color: var(--pg92-primary);
    width: 24px;
    border-radius: 4px;
}

/* Game Grid */
.pg92-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pg92-game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--pg92-radius);
    overflow: hidden;
    transition: var(--pg92-transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pg92-game-card:hover {
    transform: translateY(-2px);
    border-color: var(--pg92-primary);
    box-shadow: var(--pg92-shadow);
}

.pg92-game-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    background: linear-gradient(45deg, var(--pg92-gray), var(--pg92-dark));
}

.pg92-game-title {
    padding: 0.5rem;
    font-size: 1rem;
    text-align: center;
    color: var(--pg92-white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Sections */
.pg92-section {
    margin-bottom: 3rem;
}

.pg92-section-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--pg92-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.pg92-content-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--pg92-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pg92-content-box h3 {
    color: var(--pg92-secondary);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.pg92-content-box p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Bottom Navigation */
.pg92-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: var(--pg92-gradient);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.pg92-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5rem;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--pg92-transition);
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1rem;
}

.pg92-bottom-nav-item:hover,
.pg92-bottom-nav-item.active {
    color: var(--pg92-white);
    transform: scale(1.05);
}

.pg92-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
}

.pg92-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.pg92-footer {
    background: var(--pg92-dark);
    padding: 2rem 0 8rem;
    margin-top: 3rem;
}

.pg92-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pg92-partner {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--pg92-transition);
}

.pg92-partner:hover {
    opacity: 1;
}

.pg92-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pg92-footer-link {
    color: var(--pg92-gray);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--pg92-transition);
}

.pg92-footer-link:hover {
    color: var(--pg92-primary);
}

.pg92-copyright {
    text-align: center;
    color: var(--pg92-gray);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pg92-container {
        padding: 0 1rem;
    }

    .pg92-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .pg92-section-title {
        font-size: 1.8rem;
    }

    .pg92-content-box {
        padding: 1.5rem;
    }

    .pg92-carousel {
        height: 180px;
    }

    .pg92-bottom-nav {
        height: 5.6rem;
    }

    .pg92-bottom-nav-item {
        min-width: 5rem;
        min-height: 4.5rem;
    }

    .pg92-bottom-nav-icon {
        font-size: 2rem;
    }

    .pg92-bottom-nav-text {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    .pg92-bottom-nav {
        display: none;
    }

    .pg92-wrapper {
        padding-bottom: 0;
    }
}

/* Loading animation */
.pg92-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.loaded .pg92-loading {
    opacity: 1;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
.pg92-btn:focus,
.pg92-menu-button:focus,
.pg92-bottom-nav-item:focus {
    outline: 2px solid var(--pg92-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .pg92-header,
    .pg92-bottom-nav,
    .pg92-carousel-dots {
        display: none !important;
    }
}