/**
 * jl39 Gaming Platform - Main Stylesheet
 * All classes use prefix: pgd0-
 * Color palette: #34495E (dark) | #BAFFC9 (light) | #FF5722 (accent)
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --pgd0-primary: #34495E;
    --pgd0-secondary: #BAFFC9;
    --pgd0-accent: #FF5722;
    --pgd0-bg: #1a252f;
    --pgd0-bg-light: #2c3e50;
    --pgd0-text: #ffffff;
    --pgd0-text-muted: #a0aec0;
    --pgd0-border: #4a5568;
    --pgd0-success: #48bb78;
    --pgd0-warning: #ed8936;
    --pgd0-gradient: linear-gradient(135deg, #34495E 0%, #1a252f 100%);
    --pgd0-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --pgd0-radius: 8px;
    --pgd0-radius-lg: 16px;
}

/* Reset & Base */
* {
    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: var(--pgd0-bg);
    color: var(--pgd0-text);
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: var(--pgd0-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--pgd0-accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.pgd0-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.pgd0-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--pgd0-gradient);
    padding: 0.8rem 1rem;
    z-index: 1000;
    box-shadow: var(--pgd0-shadow);
}

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

.pgd0-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pgd0-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.pgd0-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pgd0-secondary);
}

.pgd0-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pgd0-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: var(--pgd0-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 36px;
    min-width: 70px;
}

.pgd0-btn-primary {
    background: var(--pgd0-accent);
    color: var(--pgd0-text);
}

.pgd0-btn-primary:hover {
    background: #e64a19;
    transform: translateY(-1px);
}

.pgd0-btn-secondary {
    background: transparent;
    color: var(--pgd0-secondary);
    border: 1px solid var(--pgd0-secondary);
}

.pgd0-btn-secondary:hover {
    background: var(--pgd0-secondary);
    color: var(--pgd0-primary);
}

.pgd0-menu-toggle {
    background: transparent;
    border: none;
    color: var(--pgd0-text);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
}

/* Mobile Menu */
.pgd0-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pgd0-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

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

.pgd0-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: all 0.3s ease;
}

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

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

.pgd0-menu-close {
    background: transparent;
    border: none;
    color: var(--pgd0-text);
    font-size: 2rem;
    cursor: pointer;
}

.pgd0-menu-nav {
    list-style: none;
}

.pgd0-menu-nav li {
    margin-bottom: 0.5rem;
}

.pgd0-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--pgd0-text);
    font-size: 1.4rem;
    border-radius: var(--pgd0-radius);
    transition: all 0.3s ease;
}

.pgd0-menu-nav a:hover {
    background: var(--pgd0-primary);
    color: var(--pgd0-secondary);
}

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

/* Carousel */
.pgd0-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--pgd0-radius);
    margin-bottom: 1.5rem;
}

.pgd0-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.pgd0-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.pgd0-slide-active {
    opacity: 1;
    position: relative;
}

.pgd0-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
}

/* Section */
.pgd0-section {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
}

.pgd0-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pgd0-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pgd0-accent);
}

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

.pgd0-game-card {
    background: var(--pgd0-bg-light);
    border-radius: var(--pgd0-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgd0-game-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pgd0-shadow);
}

.pgd0-game-card img {
    width: 100%;
    height: 70px;
    object-fit: cover;
}

.pgd0-game-card-title {
    font-size: 1rem;
    color: var(--pgd0-text);
    padding: 0.5rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Section */
.pgd0-category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pgd0-category-icon {
    font-size: 1.6rem;
    color: var(--pgd0-accent);
}

.pgd0-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pgd0-secondary);
}

/* Features Grid */
.pgd0-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pgd0-feature-card {
    background: var(--pgd0-bg-light);
    padding: 1.2rem;
    border-radius: var(--pgd0-radius);
    text-align: center;
}

.pgd0-feature-icon {
    font-size: 2.4rem;
    color: var(--pgd0-accent);
    margin-bottom: 0.5rem;
}

.pgd0-feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pgd0-text);
    margin-bottom: 0.3rem;
}

.pgd0-feature-desc {
    font-size: 1rem;
    color: var(--pgd0-text-muted);
}

/* Promo Section */
.pgd0-promo-section {
    background: var(--pgd0-gradient);
    padding: 1.5rem;
    border-radius: var(--pgd0-radius-lg);
    text-align: center;
    margin: 1.5rem 0;
}

.pgd0-promo-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pgd0-secondary);
    margin-bottom: 0.5rem;
}

.pgd0-promo-text {
    font-size: 1.2rem;
    color: var(--pgd0-text);
    margin-bottom: 1rem;
}

.pgd0-promo-btn {
    display: inline-block;
    background: var(--pgd0-accent);
    color: var(--pgd0-text);
    padding: 0.8rem 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: var(--pgd0-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgd0-promo-btn:hover {
    background: #e64a19;
    transform: scale(1.05);
}

/* Footer */
.pgd0-footer {
    background: var(--pgd0-bg-light);
    padding: 2rem 1rem 1rem;
    margin-top: 2rem;
}

.pgd0-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pgd0-footer-brand p {
    font-size: 1.1rem;
    color: var(--pgd0-text-muted);
    margin-top: 0.5rem;
}

.pgd0-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.pgd0-footer-links a {
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
    background: var(--pgd0-primary);
    border-radius: var(--pgd0-radius);
}

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

/* Bottom Navigation */
.pgd0-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--pgd0-gradient);
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

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

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

.pgd0-nav-item.active {
    color: var(--pgd0-accent);
}

.pgd0-nav-item i,
.pgd0-nav-item .material-icons-outlined {
    font-size: 24px;
    margin-bottom: 2px;
}

.pgd0-nav-item span {
    font-size: 10px;
    color: var(--pgd0-text-muted);
}

.pgd0-nav-item.active span {
    color: var(--pgd0-accent);
}

/* Testimonials */
.pgd0-testimonial {
    background: var(--pgd0-bg-light);
    padding: 1.2rem;
    border-radius: var(--pgd0-radius);
    margin-bottom: 1rem;
}

.pgd0-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.pgd0-testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pgd0-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--pgd0-text);
}

.pgd0-testimonial-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pgd0-text);
}

.pgd0-testimonial-text {
    font-size: 1.1rem;
    color: var(--pgd0-text-muted);
    font-style: italic;
}

/* Payment Methods */
.pgd0-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.pgd0-payment-item {
    background: var(--pgd0-bg-light);
    padding: 0.8rem 1.2rem;
    border-radius: var(--pgd0-radius);
    font-size: 1.1rem;
    color: var(--pgd0-text);
}

/* Stats Grid */
.pgd0-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pgd0-stat-item {
    background: var(--pgd0-bg-light);
    padding: 1rem;
    border-radius: var(--pgd0-radius);
    text-align: center;
}

.pgd0-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pgd0-accent);
}

.pgd0-stat-label {
    font-size: 1rem;
    color: var(--pgd0-text-muted);
}

/* FAQ Section */
.pgd0-faq-item {
    background: var(--pgd0-bg-light);
    padding: 1rem;
    border-radius: var(--pgd0-radius);
    margin-bottom: 0.8rem;
}

.pgd0-faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pgd0-secondary);
    margin-bottom: 0.5rem;
}

.pgd0-faq-answer {
    font-size: 1.1rem;
    color: var(--pgd0-text-muted);
}

/* Winners Showcase */
.pgd0-winners-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pgd0-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--pgd0-bg-light);
    padding: 0.8rem 1rem;
    border-radius: var(--pgd0-radius);
}

.pgd0-winner-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pgd0-winner-game {
    font-size: 1.1rem;
    color: var(--pgd0-text);
}

.pgd0-winner-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pgd0-success);
}

/* Desktop Styles */
@media (min-width: 769px) {
    .pgd0-bottom-nav {
        display: none;
    }

    .pgd0-container {
        max-width: 768px;
    }

    .pgd0-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .pgd0-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .pgd0-main {
        padding-bottom: 80px;
    }

    .pgd0-slide img {
        height: 160px;
    }
}

/* Utility Classes */
.pgd0-text-center { text-align: center; }
.pgd0-mb-1 { margin-bottom: 1rem; }
.pgd0-mb-2 { margin-bottom: 2rem; }
.pgd0-mt-1 { margin-top: 1rem; }
.pgd0-mt-2 { margin-top: 2rem; }
.pgd0-hidden { display: none; }
