/**
 * 89Jl Website Stylesheet
 * All classes use pgb5- prefix for namespace isolation
 * Color scheme: Teal/Cyan theme with dark background
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --pgb5-primary: #20B2AA;
    --pgb5-secondary: #0097A7;
    --pgb5-accent: #00FF00;
    --pgb5-bg-dark: #0F0F23;
    --pgb5-bg-light: #1a1a3e;
    --pgb5-text-light: #E8F5E8;
    --pgb5-text-muted: #999999;
    --pgb5-gradient: linear-gradient(135deg, #20B2AA 0%, #0097A7 100%);
    --pgb5-shadow: 0 4px 15px rgba(32, 178, 170, 0.3);
    --pgb5-radius: 12px;
    --pgb5-transition: all 0.3s ease;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--pgb5-bg-dark);
    color: var(--pgb5-text-light);
    line-height: 1.5;
    font-size: 1.4rem;
    overflow-x: hidden;
}

/* Container */
.pgb5-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
.pgb5-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--pgb5-bg-dark) 0%, rgba(15, 15, 35, 0.95) 100%);
    padding: 1rem 0;
    transition: var(--pgb5-transition);
    border-bottom: 1px solid rgba(32, 178, 170, 0.2);
}

.pgb5-header.pgb5-scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: var(--pgb5-shadow);
}

.pgb5-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.pgb5-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.pgb5-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.pgb5-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pgb5-primary);
    text-shadow: 0 0 10px rgba(32, 178, 170, 0.5);
}

.pgb5-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.pgb5-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: var(--pgb5-transition);
    border: none;
    min-height: 44px;
}

.pgb5-btn-primary {
    background: var(--pgb5-gradient);
    color: var(--pgb5-bg-dark);
    box-shadow: var(--pgb5-shadow);
}

.pgb5-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.4);
}

.pgb5-btn-outline {
    background: transparent;
    color: var(--pgb5-primary);
    border: 2px solid var(--pgb5-primary);
}

.pgb5-btn-outline:hover {
    background: var(--pgb5-primary);
    color: var(--pgb5-bg-dark);
}

.pgb5-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.pgb5-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--pgb5-primary);
    border-radius: 2px;
    transition: var(--pgb5-transition);
}

/* Mobile Menu */
#web5c8-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pgb5-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

#web5c8-mobile-menu.web5c8-active {
    right: 0;
}

#web5c8-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: var(--pgb5-transition);
}

#web5c8-menu-overlay.web5c8-active {
    opacity: 1;
    visibility: visible;
}

.pgb5-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(32, 178, 170, 0.3);
}

.pgb5-mobile-menu-close {
    background: none;
    border: none;
    color: var(--pgb5-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

.pgb5-mobile-nav-list {
    list-style: none;
}

.pgb5-mobile-nav-list li {
    margin-bottom: 0.5rem;
}

.pgb5-mobile-nav-list a {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--pgb5-text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--pgb5-transition);
    font-size: 1.4rem;
}

.pgb5-mobile-nav-list a:hover {
    background: rgba(32, 178, 170, 0.2);
    color: var(--pgb5-primary);
}

/* Carousel Styles */
.pgb5-carousel {
    position: relative;
    margin-top: 70px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.web5c8-slide {
    display: none;
    cursor: pointer;
}

.web5c8-slide:first-child {
    display: block;
}

.web5c8-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.pgb5-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.web5c8-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--pgb5-transition);
    border: none;
}

.web5c8-dot.web5c8-active {
    background: var(--pgb5-primary);
    transform: scale(1.2);
}

/* Main Content */
.pgb5-main {
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .pgb5-main {
        padding-bottom: 80px;
    }
}

/* Section Styles */
.pgb5-section {
    margin-bottom: 3rem;
}

.pgb5-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pgb5-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pgb5-section-title i {
    font-size: 2rem;
}

/* Game Grid */
.pgb5-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pgb5-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--pgb5-transition);
}

.pgb5-game-item:hover {
    transform: translateY(-3px);
}

.pgb5-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.pgb5-game-name {
    font-size: 1.1rem;
    color: var(--pgb5-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Tabs */
.pgb5-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pgb5-secondary);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--pgb5-primary);
}

/* Features Section */
.pgb5-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.pgb5-feature-card {
    background: var(--pgb5-bg-light);
    border-radius: var(--pgb5-radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(32, 178, 170, 0.2);
    transition: var(--pgb5-transition);
}

.pgb5-feature-card:hover {
    border-color: var(--pgb5-primary);
    transform: translateY(-2px);
}

.pgb5-feature-icon {
    font-size: 3rem;
    color: var(--pgb5-primary);
    margin-bottom: 1rem;
}

.pgb5-feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--pgb5-text-light);
}

.pgb5-feature-desc {
    font-size: 1.1rem;
    color: var(--pgb5-text-muted);
}

/* Promo Links */
.pgb5-promo-link {
    color: var(--pgb5-accent);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--pgb5-transition);
}

.pgb5-promo-link:hover {
    color: var(--pgb5-primary);
    text-decoration: underline;
}

.pgb5-promo-btn {
    display: inline-block;
    background: var(--pgb5-gradient);
    color: var(--pgb5-bg-dark);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--pgb5-transition);
    text-align: center;
}

.pgb5-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(32, 178, 170, 0.5);
}

/* Content Box */
.pgb5-content-box {
    background: var(--pgb5-bg-light);
    border-radius: var(--pgb5-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(32, 178, 170, 0.1);
}

.pgb5-content-box h2 {
    color: var(--pgb5-primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.pgb5-content-box p {
    color: var(--pgb5-text-light);
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.pgb5-content-box ul {
    list-style: none;
    padding-left: 0;
}

.pgb5-content-box li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--pgb5-text-light);
    font-size: 1.3rem;
}

.pgb5-content-box li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--pgb5-primary);
    font-weight: bold;
}

/* Footer */
.pgb5-footer {
    background: var(--pgb5-bg-light);
    padding: 3rem 1.5rem 2rem;
    border-top: 1px solid rgba(32, 178, 170, 0.2);
}

@media (max-width: 768px) {
    .pgb5-footer {
        padding-bottom: 80px;
    }
}

.pgb5-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.pgb5-footer-links a {
    color: var(--pgb5-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--pgb5-transition);
}

.pgb5-footer-links a:hover {
    color: var(--pgb5-primary);
}

.pgb5-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.pgb5-partners img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    opacity: 0.7;
    transition: var(--pgb5-transition);
}

.pgb5-partners img:hover {
    opacity: 1;
}

.pgb5-copyright {
    text-align: center;
    color: var(--pgb5-text-muted);
    font-size: 1.2rem;
}

/* Bottom Navigation */
.pgb5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--pgb5-bg-light) 0%, var(--pgb5-bg-dark) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 2px solid var(--pgb5-primary);
    box-shadow: 0 -4px 20px rgba(32, 178, 170, 0.3);
}

@media (min-width: 769px) {
    .pgb5-bottom-nav {
        display: none;
    }
}

.pgb5-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: var(--pgb5-transition);
    text-decoration: none;
    color: var(--pgb5-text-muted);
}

.pgb5-nav-item:hover,
.pgb5-nav-item.pgb5-active {
    color: var(--pgb5-primary);
    transform: scale(1.1);
}

.pgb5-nav-item i,
.pgb5-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.pgb5-nav-item span {
    font-size: 10px;
    font-weight: 600;
}

.pgb5-nav-item.pgb5-highlight {
    background: var(--pgb5-gradient);
    color: var(--pgb5-bg-dark);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-top: -20px;
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.5);
}

.pgb5-nav-item.pgb5-highlight i {
    font-size: 26px;
}

/* RTP Section */
.pgb5-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pgb5-rtp-item {
    background: var(--pgb5-bg-light);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(32, 178, 170, 0.2);
}

.pgb5-rtp-game {
    font-size: 1.2rem;
    color: var(--pgb5-text-light);
    margin-bottom: 0.5rem;
}

.pgb5-rtp-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pgb5-accent);
}

/* FAQ Section */
.pgb5-faq-item {
    background: var(--pgb5-bg-light);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(32, 178, 170, 0.2);
}

.pgb5-faq-question {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    color: var(--pgb5-primary);
    font-size: 1.3rem;
    cursor: pointer;
}

.pgb5-faq-answer {
    padding: 0 1.5rem 1.2rem;
    color: var(--pgb5-text-light);
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Internal Links */
.pgb5-internal-link {
    color: var(--pgb5-secondary);
    text-decoration: underline;
    transition: var(--pgb5-transition);
}

.pgb5-internal-link:hover {
    color: var(--pgb5-primary);
}

/* Responsive Adjustments */
@media (max-width: 380px) {
    .pgb5-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pgb5-features {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.pgb5-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .pgb5-desktop-nav {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .pgb5-desktop-nav a {
        color: var(--pgb5-text-light);
        text-decoration: none;
        font-size: 1.4rem;
        transition: var(--pgb5-transition);
    }

    .pgb5-desktop-nav a:hover {
        color: var(--pgb5-primary);
    }

    .pgb5-menu-toggle {
        display: none;
    }

    .pgb5-container {
        max-width: 1200px;
    }
}

@media (max-width: 768px) {
    .pgb5-desktop-nav {
        display: none;
    }
}
