/**
 * Jl96 Website Theme Stylesheet
 * Website: 96jl96.club
 * All classes use prefix 'pgbd-' for namespace isolation
 * Color scheme: Dark #141414 | Accent #FF1493
 */

/* CSS Reset and Variables */
:root {
    --pgbd-bg-primary: #141414;
    --pgbd-bg-secondary: #1a1a1a;
    --pgbd-bg-tertiary: #242424;
    --pgbd-accent: #FF1493;
    --pgbd-accent-light: #FF69B4;
    --pgbd-accent-dark: #C71585;
    --pgbd-text-primary: #ffffff;
    --pgbd-text-secondary: #b0b0b0;
    --pgbd-text-muted: #808080;
    --pgbd-border: #333333;
    --pgbd-success: #00c853;
    --pgbd-warning: #ffab00;
    --pgbd-gradient: linear-gradient(135deg, #FF1493 0%, #C71585 100%);
    --pgbd-shadow: 0 4px 20px rgba(255, 20, 147, 0.3);
    --pgbd-radius: 12px;
    --pgbd-radius-sm: 8px;
    --pgbd-transition: all 0.3s ease;
}

/* 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(--pgbd-bg-primary);
    color: var(--pgbd-text-primary);
    line-height: 1.5;
    font-size: 1.6rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Container */
.pgbd-container {
    width: 100%;
    padding: 0 1.6rem;
    margin: 0 auto;
}

.pgbd-wrapper {
    max-width: 430px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--pgbd-text-primary);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2.0rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }

p {
    margin-bottom: 1.2rem;
    color: var(--pgbd-text-secondary);
}

a {
    color: var(--pgbd-accent);
    text-decoration: none;
    transition: var(--pgbd-transition);
}

a:hover {
    color: var(--pgbd-accent-light);
}

/* Header */
.pgbd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: var(--pgbd-bg-secondary);
    padding: 1rem 1.6rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--pgbd-border);
    transition: var(--pgbd-transition);
}

.pgbd-header-scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

.pgbd-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pgbd-logo img {
    width: 32px;
    height: 32px;
    border-radius: var(--pgbd-radius-sm);
}

.pgbd-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pgbd-accent);
}

.pgbd-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pgbd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--pgbd-radius-sm);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--pgbd-transition);
    min-height: 44px;
}

.pgbd-btn-primary {
    background: var(--pgbd-gradient);
    color: var(--pgbd-text-primary);
    box-shadow: var(--pgbd-shadow);
}

.pgbd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 20, 147, 0.4);
}

.pgbd-btn-secondary {
    background: transparent;
    color: var(--pgbd-text-primary);
    border: 2px solid var(--pgbd-accent);
}

.pgbd-btn-secondary:hover {
    background: var(--pgbd-accent);
    color: var(--pgbd-text-primary);
}

.pgbd-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.8rem;
    cursor: pointer;
    background: transparent;
    border: none;
}

.pgbd-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--pgbd-text-primary);
    transition: var(--pgbd-transition);
}

/* Mobile Menu */
.pgbd-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pgbd-bg-secondary);
    z-index: 9999;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.pgbd-menu-active {
    right: 0;
}

.pgbd-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pgbd-border);
}

.pgbd-mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--pgbd-text-primary);
    font-size: 2.4rem;
    cursor: pointer;
}

.pgbd-mobile-nav {
    list-style: none;
}

.pgbd-mobile-nav li {
    margin-bottom: 0.5rem;
}

.pgbd-mobile-nav a {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--pgbd-text-primary);
    font-size: 1.5rem;
    border-radius: var(--pgbd-radius-sm);
    transition: var(--pgbd-transition);
}

.pgbd-mobile-nav a:hover {
    background: var(--pgbd-bg-tertiary);
    color: var(--pgbd-accent);
}

/* Overlay */
.pgbd-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(--pgbd-transition);
}

.pgbd-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel/Slider */
.pgbd-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--pgbd-radius);
    margin-bottom: 2rem;
}

.pgbd-slides {
    position: relative;
}

.pgbd-slide {
    display: none;
    cursor: pointer;
}

.pgbd-slide-active {
    display: block;
}

.pgbd-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--pgbd-radius);
}

.pgbd-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.pgbd-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--pgbd-transition);
}

.pgbd-dot-active {
    background: var(--pgbd-accent);
    transform: scale(1.2);
}

/* Game Grid */
.pgbd-section {
    padding: 2rem 0;
}

.pgbd-section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--pgbd-accent);
}

.pgbd-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pgbd-game-card {
    background: var(--pgbd-bg-secondary);
    border-radius: var(--pgbd-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--pgbd-transition);
}

.pgbd-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pgbd-shadow);
}

.pgbd-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.pgbd-game-card-name {
    padding: 0.6rem;
    font-size: 1.1rem;
    text-align: center;
    color: var(--pgbd-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Features Grid */
.pgbd-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.pgbd-feature-card {
    background: var(--pgbd-bg-secondary);
    padding: 1.5rem;
    border-radius: var(--pgbd-radius);
    text-align: center;
    transition: var(--pgbd-transition);
}

.pgbd-feature-card:hover {
    background: var(--pgbd-bg-tertiary);
    transform: translateY(-2px);
}

.pgbd-feature-icon {
    font-size: 2.8rem;
    color: var(--pgbd-accent);
    margin-bottom: 1rem;
}

.pgbd-feature-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.pgbd-feature-desc {
    font-size: 1.2rem;
    color: var(--pgbd-text-muted);
}

/* Promo Link Styles */
.pgbd-promo-text {
    color: var(--pgbd-accent);
    font-weight: 600;
    cursor: pointer;
}

.pgbd-promo-text:hover {
    color: var(--pgbd-accent-light);
    text-decoration: underline;
}

/* Footer */
.pgbd-footer {
    background: var(--pgbd-bg-secondary);
    padding: 2rem 1.6rem;
    margin-top: 2rem;
    border-top: 1px solid var(--pgbd-border);
}

.pgbd-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pgbd-footer-links a {
    color: var(--pgbd-text-secondary);
    font-size: 1.3rem;
}

.pgbd-footer-links a:hover {
    color: var(--pgbd-accent);
}

.pgbd-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.pgbd-partners img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    opacity: 0.7;
    transition: var(--pgbd-transition);
}

.pgbd-partners img:hover {
    opacity: 1;
}

.pgbd-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--pgbd-text-muted);
    margin-top: 1rem;
}

/* Mobile Bottom Navigation */
.pgbd-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 60px;
    background: var(--pgbd-bg-secondary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--pgbd-border);
}

.pgbd-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: var(--pgbd-transition);
    color: var(--pgbd-text-secondary);
}

.pgbd-bottom-nav-item:hover,
.pgbd-bottom-nav-item.active {
    color: var(--pgbd-accent);
}

.pgbd-bottom-nav-item:hover {
    transform: scale(1.1);
}

.pgbd-bottom-nav-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.pgbd-bottom-nav-text {
    font-size: 10px;
    text-align: center;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .pgbd-bottom-nav {
        display: none;
    }
}

/* Card Styles */
.pgbd-card {
    background: var(--pgbd-bg-secondary);
    border-radius: var(--pgbd-radius);
    padding: 1.6rem;
    margin-bottom: 1.2rem;
}

.pgbd-card-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--pgbd-accent);
}

/* RTP Table */
.pgbd-rtp-table {
    width: 100%;
    border-collapse: collapse;
}

.pgbd-rtp-table th,
.pgbd-rtp-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--pgbd-border);
}

.pgbd-rtp-table th {
    background: var(--pgbd-bg-tertiary);
    color: var(--pgbd-accent);
}

.pgbd-rtp-table tr:hover {
    background: var(--pgbd-bg-tertiary);
}

/* FAQ Accordion */
.pgbd-faq-item {
    background: var(--pgbd-bg-secondary);
    border-radius: var(--pgbd-radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.pgbd-faq-question {
    padding: 1.2rem 1.6rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.pgbd-faq-answer {
    padding: 0 1.6rem 1.2rem;
    color: var(--pgbd-text-secondary);
}

/* Utility Classes */
.pgbd-text-center { text-align: center; }
.pgbd-text-accent { color: var(--pgbd-accent); }
.pgbd-mb-1 { margin-bottom: 1rem; }
.pgbd-mb-2 { margin-bottom: 2rem; }
.pgbd-mt-1 { margin-top: 1rem; }
.pgbd-mt-2 { margin-top: 2rem; }
.pgbd-p-1 { padding: 1rem; }
.pgbd-p-2 { padding: 2rem; }

/* Animations */
@keyframes pgbd-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pgbd-animate-pulse {
    animation: pgbd-pulse 2s infinite;
}

@keyframes pgbd-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pgbd-animate-slideUp {
    animation: pgbd-slideUp 0.5s ease forwards;
}
