/**
 * Jolibet Website Design Stylesheet
 * All classes use prefix 'pgbf-' for namespace isolation
 * Color Palette: #B8860B | #00FF7F | #32CD32 | #262626 | #F8F9FA | #FFD700
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --pgbf-primary: #B8860B;
    --pgbf-secondary: #00FF7F;
    --pgbf-accent: #32CD32;
    --pgbf-bg-dark: #262626;
    --pgbf-bg-light: #F8F9FA;
    --pgbf-gold: #FFD700;
    --pgbf-text-light: #F8F9FA;
    --pgbf-text-dark: #262626;
    --pgbf-header-height: 60px;
    --pgbf-bottom-nav-height: 60px;
    --pgbf-border-radius: 8px;
    --pgbf-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 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: linear-gradient(135deg, var(--pgbf-bg-dark) 0%, #1a1a2e 100%);
    color: var(--pgbf-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.pgbf-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pgbf-wrapper {
    padding: 1rem;
}

/* Header Styles */
.pgbf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--pgbf-header-height);
    background: linear-gradient(90deg, var(--pgbf-bg-dark) 0%, #2a2a3e 100%);
    border-bottom: 2px solid var(--pgbf-primary);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.pgbf-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pgbf-logo img {
    width: 32px;
    height: 32px;
}

.pgbf-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--pgbf-gold), var(--pgbf-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pgbf-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pgbf-btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--pgbf-border-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pgbf-btn-primary {
    background: linear-gradient(135deg, var(--pgbf-primary), #8B6914);
    color: var(--pgbf-text-light);
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.4);
}

.pgbf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(184, 134, 11, 0.6);
}

.pgbf-btn-secondary {
    background: linear-gradient(135deg, var(--pgbf-accent), #228B22);
    color: var(--pgbf-text-light);
    box-shadow: 0 4px 10px rgba(50, 205, 50, 0.4);
}

.pgbf-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(50, 205, 50, 0.6);
}

.pgbf-btn-gold {
    background: linear-gradient(135deg, var(--pgbf-gold), #FFA500);
    color: var(--pgbf-text-dark);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.pgbf-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6);
}

/* Hamburger Menu */
.pgbf-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 10001;
}

.pgbf-hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--pgbf-gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.pgbf-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.pgbf-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.pgbf-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.pgbf-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, var(--pgbf-bg-dark) 100%);
    z-index: 9999;
    padding: 80px 2rem 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.pgbf-menu-active {
    right: 0;
}

.pgbf-mobile-menu ul {
    list-style: none;
}

.pgbf-mobile-menu li {
    margin-bottom: 1.5rem;
}

.pgbf-mobile-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    color: var(--pgbf-text-light);
    padding: 1rem;
    border-radius: var(--pgbf-border-radius);
    transition: all 0.3s ease;
}

.pgbf-mobile-menu a:hover {
    background: rgba(184, 134, 11, 0.2);
    color: var(--pgbf-gold);
}

.pgbf-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;
}

.pgbf-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.pgbf-main {
    padding-top: calc(var(--pgbf-header-height) + 1rem);
    min-height: 100vh;
}

@media (max-width: 768px) {
    .pgbf-main {
        padding-bottom: calc(var(--pgbf-bottom-nav-height) + 2rem);
    }
}

/* Hero Carousel */
.pgbf-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.pgbf-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.pgbf-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.pgbf-slide-active {
    opacity: 1;
}

.pgbf-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgbf-slide-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pgbf-slide-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgbf-indicator-active {
    background: var(--pgbf-gold);
    transform: scale(1.2);
}

/* Section Styles */
.pgbf-section {
    padding: 2rem 1.5rem;
}

.pgbf-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(90deg, var(--pgbf-gold), var(--pgbf-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pgbf-section-subtitle {
    font-size: 1.4rem;
    color: var(--pgbf-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.pgbf-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pgbf-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pgbf-game-item:hover {
    transform: scale(1.05);
}

.pgbf-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--pgbf-border-radius);
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 2px solid var(--pgbf-primary);
    box-shadow: var(--pgbf-shadow);
}

.pgbf-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgbf-game-name {
    font-size: 1.1rem;
    color: var(--pgbf-text-light);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Category Title */
.pgbf-category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pgbf-gold);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pgbf-primary);
}

.pgbf-category-title i {
    font-size: 2rem;
}

/* Content Cards */
.pgbf-card {
    background: linear-gradient(135deg, rgba(42, 42, 62, 0.9), rgba(26, 26, 46, 0.9));
    border-radius: var(--pgbf-border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(184, 134, 11, 0.3);
    box-shadow: var(--pgbf-shadow);
}

.pgbf-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pgbf-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pgbf-card-content {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--pgbf-text-light);
}

.pgbf-card-content p {
    margin-bottom: 1rem;
}

.pgbf-card-content ul {
    list-style: none;
    padding-left: 0;
}

.pgbf-card-content li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
}

.pgbf-card-content li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--pgbf-accent);
}

/* Promo Link Styles */
.pgbf-promo-link {
    color: var(--pgbf-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgbf-promo-link:hover {
    color: var(--pgbf-gold);
    text-decoration: underline;
}

.pgbf-promo-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--pgbf-gold), var(--pgbf-primary));
    color: var(--pgbf-text-dark);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.pgbf-promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* FAQ Section */
.pgbf-faq-item {
    background: rgba(42, 42, 62, 0.6);
    border-radius: var(--pgbf-border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.pgbf-faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pgbf-gold);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pgbf-faq-answer {
    padding: 0 1.5rem 1.2rem;
    font-size: 1.3rem;
    color: var(--pgbf-text-light);
    line-height: 1.6;
}

/* Footer */
.pgbf-footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    padding: 2rem 1.5rem;
    border-top: 2px solid var(--pgbf-primary);
}

.pgbf-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pgbf-footer-link {
    font-size: 1.2rem;
    color: var(--pgbf-text-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(184, 134, 11, 0.2);
    transition: all 0.3s ease;
}

.pgbf-footer-link:hover {
    background: var(--pgbf-primary);
    color: var(--pgbf-text-dark);
}

.pgbf-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pgbf-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.pgbf-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.pgbf-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(248, 249, 250, 0.6);
}

/* Bottom Navigation */
.pgbf-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--pgbf-bottom-nav-height);
    background: linear-gradient(180deg, #2a2a3e 0%, var(--pgbf-bg-dark) 100%);
    border-top: 2px solid var(--pgbf-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .pgbf-bottom-nav {
        display: none;
    }
}

.pgbf-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;
    border-radius: 12px;
}

.pgbf-nav-item:hover {
    background: rgba(184, 134, 11, 0.2);
}

.pgbf-nav-item.active {
    background: rgba(255, 215, 0, 0.15);
}

.pgbf-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.pgbf-nav-item:hover i {
    color: var(--pgbf-gold);
    transform: scale(1.1);
}

.pgbf-nav-item span {
    font-size: 10px;
    color: var(--pgbf-text-light);
    text-align: center;
}

.pgbf-nav-item.active i,
.pgbf-nav-item.active span {
    color: var(--pgbf-gold);
}

/* Features Grid */
.pgbf-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pgbf-feature-item {
    background: rgba(42, 42, 62, 0.6);
    border-radius: var(--pgbf-border-radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(184, 134, 11, 0.2);
    transition: all 0.3s ease;
}

.pgbf-feature-item:hover {
    border-color: var(--pgbf-primary);
    transform: translateY(-3px);
}

.pgbf-feature-icon {
    font-size: 2.5rem;
    color: var(--pgbf-gold);
    margin-bottom: 1rem;
}

.pgbf-feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--pgbf-text-light);
    margin-bottom: 0.5rem;
}

.pgbf-feature-desc {
    font-size: 1.1rem;
    color: rgba(248, 249, 250, 0.7);
}

/* RTP Stats */
.pgbf-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pgbf-rtp-item {
    background: rgba(42, 42, 62, 0.6);
    border-radius: var(--pgbf-border-radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pgbf-rtp-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
}

.pgbf-rtp-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgbf-rtp-info {
    flex: 1;
}

.pgbf-rtp-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pgbf-text-light);
    margin-bottom: 0.3rem;
}

.pgbf-rtp-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pgbf-accent);
}

/* Text Styles */
.pgbf-text-center {
    text-align: center;
}

.pgbf-text-gold {
    color: var(--pgbf-gold);
}

.pgbf-text-accent {
    color: var(--pgbf-accent);
}

.pgbf-text-bold {
    font-weight: 700;
}

/* Spacing Utilities */
.pgbf-mt-1 { margin-top: 0.5rem; }
.pgbf-mt-2 { margin-top: 1rem; }
.pgbf-mt-3 { margin-top: 1.5rem; }
.pgbf-mb-1 { margin-bottom: 0.5rem; }
.pgbf-mb-2 { margin-bottom: 1rem; }
.pgbf-mb-3 { margin-bottom: 1.5rem; }

/* Animation */
@keyframes pgbf-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pgbf-animate-pulse {
    animation: pgbf-pulse 2s infinite;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .pgbf-container {
        max-width: 1200px;
    }

    .pgbf-hamburger {
        display: none;
    }

    .pgbf-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .pgbf-carousel {
        height: 400px;
    }
}
