/**
 * jl58.club - Main Stylesheet
 * Prefix: pgdd-
 * Color Palette: Deep Navy, Light Gray, Sky Blue, Cyan, Teal, Orange
 */

/* CSS Variables */
:root {
    --pgdd-primary: #1B263B;
    --pgdd-secondary: #D3D3D3;
    --pgdd-accent1: #ADD8E6;
    --pgdd-accent2: #00CED1;
    --pgdd-accent3: #5F9EA0;
    --pgdd-accent4: #FFB347;
    --pgdd-bg-dark: #0D1321;
    --pgdd-bg-card: #1B263B;
    --pgdd-text-light: #FFFFFF;
    --pgdd-text-muted: #A0A0A0;
    --pgdd-border: #2A3F5F;
    --pgdd-shadow: rgba(0, 0, 0, 0.3);
    --pgdd-gradient: linear-gradient(135deg, #1B263B 0%, #0D1321 100%);
    --pgdd-vh: 1vh;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--pgdd-gradient);
    background-color: var(--pgdd-bg-dark);
    color: var(--pgdd-text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.pgdd-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 12px;
}

/* Header */
.pgdd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--pgdd-primary) 0%, rgba(27, 38, 59, 0.95) 100%);
    padding: 10px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--pgdd-border);
}

.pgdd-header-scrolled {
    background: rgba(27, 38, 59, 0.98);
    box-shadow: 0 4px 20px var(--pgdd-shadow);
}

.pgdd-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    max-width: 430px;
    margin: 0 auto;
}

.pgdd-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.pgdd-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--pgdd-accent2), var(--pgdd-accent3));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--pgdd-text-light);
    font-size: 18px;
}

.pgdd-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--pgdd-accent2);
    text-shadow: 0 0 10px rgba(0, 206, 209, 0.5);
}

.pgdd-header-actions {
    display: flex;
    gap: 10px;
}

.pgdd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pgdd-btn-login {
    background: transparent;
    border: 2px solid var(--pgdd-accent2);
    color: var(--pgdd-accent2);
}

.pgdd-btn-login:hover {
    background: rgba(0, 206, 209, 0.1);
}

.pgdd-btn-register {
    background: linear-gradient(135deg, var(--pgdd-accent4), #FF8C00);
    color: var(--pgdd-primary);
    box-shadow: 0 4px 15px rgba(255, 179, 71, 0.4);
}

.pgdd-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 71, 0.6);
}

.pgdd-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--pgdd-text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Main Content */
.pgdd-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .pgdd-main {
        padding-bottom: 90px;
    }
}

/* Carousel/Slider */
.pgdd-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.pgdd-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.pgdd-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pgdd-slide-active {
    opacity: 1;
}

.pgdd-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgdd-slide-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pgdd-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgdd-dot-active {
    background: var(--pgdd-accent2);
    width: 24px;
    border-radius: 4px;
}

/* Sections */
.pgdd-section {
    margin-bottom: 24px;
}

.pgdd-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pgdd-text-light);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pgdd-section-title i {
    color: var(--pgdd-accent2);
}

.pgdd-title-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--pgdd-accent2), transparent);
}

/* H1 Title */
.pgdd-main-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin: 20px 0;
    background: linear-gradient(135deg, var(--pgdd-accent2), var(--pgdd-accent4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Game Grid */
.pgdd-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.pgdd-game-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--pgdd-bg-card);
    border: 1px solid var(--pgdd-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pgdd-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--pgdd-accent2);
    box-shadow: 0 8px 25px rgba(0, 206, 209, 0.3);
}

.pgdd-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.pgdd-game-name {
    padding: 8px 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--pgdd-text-light);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(27, 38, 59, 0.9);
}

.pgdd-game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 206, 209, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pgdd-game-card:hover .pgdd-game-overlay {
    opacity: 1;
}

.pgdd-play-btn {
    background: var(--pgdd-primary);
    color: var(--pgdd-text-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Category Tabs */
.pgdd-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.pgdd-category-tabs::-webkit-scrollbar {
    display: none;
}

.pgdd-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--pgdd-bg-card);
    color: var(--pgdd-text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--pgdd-border);
    text-decoration: none;
}

.pgdd-tab:hover, .pgdd-tab-active {
    background: var(--pgdd-accent2);
    color: var(--pgdd-primary);
    border-color: var(--pgdd-accent2);
}

/* Info Sections */
.pgdd-info-box {
    background: var(--pgdd-bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--pgdd-border);
}

.pgdd-info-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pgdd-accent2);
    margin-bottom: 12px;
}

.pgdd-info-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--pgdd-secondary);
}

.pgdd-info-text p {
    margin-bottom: 12px;
}

.pgdd-info-text a {
    color: var(--pgdd-accent4);
    text-decoration: none;
}

.pgdd-info-text a:hover {
    text-decoration: underline;
}

/* Feature List */
.pgdd-feature-list {
    list-style: none;
    padding: 0;
}

.pgdd-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(0, 206, 209, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--pgdd-accent2);
}

.pgdd-feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--pgdd-accent2), var(--pgdd-accent3));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pgdd-feature-icon i {
    font-size: 20px;
    color: var(--pgdd-text-light);
}

.pgdd-feature-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--pgdd-text-light);
    margin-bottom: 4px;
}

.pgdd-feature-content p {
    font-size: 13px;
    color: var(--pgdd-text-muted);
    line-height: 1.5;
}

/* FAQ Section */
.pgdd-faq-item {
    background: var(--pgdd-bg-card);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--pgdd-border);
    overflow: hidden;
}

.pgdd-faq-question {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pgdd-text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pgdd-faq-question i {
    color: var(--pgdd-accent4);
}

.pgdd-faq-answer {
    padding: 0 16px 14px;
    font-size: 13px;
    color: var(--pgdd-secondary);
    line-height: 1.6;
}

/* Footer */
.pgdd-footer {
    background: var(--pgdd-primary);
    padding: 30px 12px 20px;
    border-top: 1px solid var(--pgdd-border);
}

.pgdd-footer-inner {
    max-width: 430px;
    margin: 0 auto;
}

.pgdd-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pgdd-footer-desc {
    font-size: 13px;
    color: var(--pgdd-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.pgdd-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.pgdd-footer-link {
    font-size: 13px;
    color: var(--pgdd-accent1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pgdd-footer-link:hover {
    color: var(--pgdd-accent2);
}

.pgdd-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.pgdd-partner-logo {
    width: 60px;
    height: 30px;
    background: var(--pgdd-bg-card);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--pgdd-text-muted);
    border: 1px solid var(--pgdd-border);
}

.pgdd-copyright {
    font-size: 12px;
    color: var(--pgdd-text-muted);
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--pgdd-border);
}

/* Mobile Bottom Navigation */
.pgdd-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(27, 38, 59, 0.98) 0%, var(--pgdd-primary) 100%);
    border-top: 1px solid var(--pgdd-border);
    padding: 8px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

@media (min-width: 769px) {
    .pgdd-bottom-nav {
        display: none;
    }
}

.pgdd-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 48px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    padding: 6px 10px;
}

.pgdd-nav-item:hover {
    background: rgba(0, 206, 209, 0.1);
}

.pgdd-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.pgdd-nav-item span {
    font-size: 10px;
    font-weight: 500;
    color: var(--pgdd-text-muted);
    transition: color 0.3s ease;
}

.pgdd-nav-item:hover i,
.pgdd-nav-item:hover span {
    color: var(--pgdd-accent2);
}

.pgdd-nav-item-active i,
.pgdd-nav-item-active span {
    color: var(--pgdd-accent4);
}

/* Mobile Menu */
.pgdd-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pgdd-primary);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
    border-left: 1px solid var(--pgdd-border);
}

.pgdd-menu-active {
    right: 0;
}

.pgdd-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;
}

.pgdd-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pgdd-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pgdd-border);
}

.pgdd-menu-close {
    background: none;
    border: none;
    color: var(--pgdd-text-light);
    font-size: 24px;
    cursor: pointer;
}

.pgdd-menu-links {
    list-style: none;
}

.pgdd-menu-link {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    color: var(--pgdd-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--pgdd-border);
    transition: all 0.3s ease;
}

.pgdd-menu-link:hover {
    color: var(--pgdd-accent2);
    padding-left: 10px;
}

/* Promo Banner */
.pgdd-promo-banner {
    background: linear-gradient(135deg, var(--pgdd-accent4), #FF6B35);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pgdd-promo-banner:hover {
    transform: scale(1.02);
}

.pgdd-promo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--pgdd-primary);
    margin-bottom: 8px;
}

.pgdd-promo-sub {
    font-size: 13px;
    color: var(--pgdd-primary);
    opacity: 0.9;
}

/* Stats Grid */
.pgdd-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.pgdd-stat-card {
    background: var(--pgdd-bg-card);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--pgdd-border);
}

.pgdd-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--pgdd-accent2);
    margin-bottom: 4px;
}

.pgdd-stat-label {
    font-size: 12px;
    color: var(--pgdd-text-muted);
}

/* Responsive Utilities */
@media (max-width: 430px) {
    .pgdd-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .pgdd-game-name {
        font-size: 10px;
        padding: 6px 4px;
    }
}

/* Animation Classes */
.pgdd-fade-in {
    animation: pgddFadeIn 0.5s ease forwards;
}

@keyframes pgddFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Touch Device Optimization */
.pgdd-touch-device .pgdd-game-card:hover {
    transform: none;
}

.pgdd-touch-device .pgdd-game-overlay {
    display: none;
}
