/**
 * JL90 Gaming Platform - Core Stylesheet
 * All classes use pgd1- prefix for namespace isolation
 * Mobile-first responsive design
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --pgd1-primary: #FF8C00;
    --pgd1-secondary: #FFB74D;
    --pgd1-accent: #FFCC33;
    --pgd1-bg: #333333;
    --pgd1-bg-light: #FAFAFA;
    --pgd1-text-light: #FFFACD;
    --pgd1-text-dark: #333333;
    --pgd1-gradient: linear-gradient(135deg, #FF8C00 0%, #FFB74D 100%);
    --pgd1-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --pgd1-radius: 12px;
    --pgd1-radius-sm: 8px;
}

/* Reset and 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;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--pgd1-bg);
    color: var(--pgd1-text-light);
    min-height: 100vh;
}

/* Container */
.pgd1-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.pgd1-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--pgd1-bg) 0%, rgba(51, 51, 51, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.pgd1-header.pgd1-scrolled {
    box-shadow: var(--pgd1-shadow);
}

.pgd1-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.pgd1-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.pgd1-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.pgd1-logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pgd1-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pgd1-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pgd1-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--pgd1-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.pgd1-btn-primary {
    background: var(--pgd1-gradient);
    color: var(--pgd1-text-dark);
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3);
}

.pgd1-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 140, 0, 0.4);
}

.pgd1-btn-outline {
    background: transparent;
    color: var(--pgd1-primary);
    border: 2px solid var(--pgd1-primary);
}

.pgd1-btn-outline:hover {
    background: var(--pgd1-primary);
    color: var(--pgd1-text-dark);
}

.pgd1-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.pgd1-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--pgd1-primary);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.pgd1-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pgd1-bg);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 8rem 2rem 2rem;
    overflow-y: auto;
}

.pgd1-mobile-menu.pgd1-active {
    right: 0;
}

.pgd1-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;
}

.pgd1-menu-overlay.pgd1-active {
    opacity: 1;
    visibility: visible;
}

.pgd1-nav-list {
    list-style: none;
}

.pgd1-nav-item {
    margin-bottom: 0.5rem;
}

.pgd1-nav-link {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--pgd1-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: var(--pgd1-radius-sm);
    transition: all 0.3s ease;
}

.pgd1-nav-link:hover,
.pgd1-nav-link.pgd1-active {
    background: rgba(255, 140, 0, 0.2);
    color: var(--pgd1-primary);
}

/* Carousel */
.pgd1-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--pgd1-radius);
    margin-bottom: 2rem;
}

.pgd1-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.pgd1-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.pgd1-slide.pgd1-active {
    opacity: 1;
}

.pgd1-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgd1-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.pgd1-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgd1-slide-dot.pgd1-active {
    background: var(--pgd1-primary);
    transform: scale(1.2);
}

/* Main Content */
.pgd1-main {
    padding-top: 7rem;
    padding-bottom: 8rem;
}

@media (min-width: 769px) {
    .pgd1-main {
        padding-bottom: 3rem;
    }
}

/* Section Titles */
.pgd1-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--pgd1-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.pgd1-section-subtitle {
    font-size: 1.4rem;
    color: var(--pgd1-text-light);
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Game Grid */
.pgd1-game-section {
    margin-bottom: 3rem;
}

.pgd1-game-category {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--pgd1-secondary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pgd1-primary);
}

.pgd1-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pgd1-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pgd1-game-item:hover {
    transform: scale(1.05);
}

.pgd1-game-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--pgd1-radius-sm);
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: var(--pgd1-shadow);
}

.pgd1-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgd1-game-name {
    font-size: 1.1rem;
    color: var(--pgd1-text-light);
    text-align: center;
    line-height: 1.3;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Cards */
.pgd1-card {
    background: linear-gradient(145deg, rgba(51, 51, 51, 0.9) 0%, rgba(40, 40, 40, 0.95) 100%);
    border-radius: var(--pgd1-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--pgd1-shadow);
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.pgd1-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--pgd1-primary);
    margin-bottom: 1rem;
}

.pgd1-card-text {
    font-size: 1.4rem;
    color: var(--pgd1-text-light);
    line-height: 1.6;
}

/* Features List */
.pgd1-features-list {
    list-style: none;
}

.pgd1-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
}

.pgd1-feature-item:last-child {
    border-bottom: none;
}

.pgd1-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pgd1-gradient);
    border-radius: 50%;
    flex-shrink: 0;
}

.pgd1-feature-icon i {
    font-size: 2rem;
    color: var(--pgd1-text-dark);
}

.pgd1-feature-content h4 {
    font-size: 1.5rem;
    color: var(--pgd1-secondary);
    margin-bottom: 0.3rem;
}

.pgd1-feature-content p {
    font-size: 1.3rem;
    color: var(--pgd1-text-light);
    opacity: 0.9;
}

/* FAQ Accordion */
.pgd1-faq-item {
    margin-bottom: 1rem;
}

.pgd1-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 140, 0, 0.1);
    border-radius: var(--pgd1-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgd1-faq-question:hover {
    background: rgba(255, 140, 0, 0.2);
}

.pgd1-faq-question h4 {
    font-size: 1.4rem;
    color: var(--pgd1-text-light);
}

.pgd1-faq-answer {
    padding: 1.5rem;
    font-size: 1.3rem;
    color: var(--pgd1-text-light);
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 var(--pgd1-radius-sm) var(--pgd1-radius-sm);
}

/* Promo Link Styles */
.pgd1-promo-link {
    color: var(--pgd1-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgd1-promo-link:hover {
    color: var(--pgd1-secondary);
    text-decoration: underline;
}

.pgd1-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.4rem;
    background: var(--pgd1-gradient);
    color: var(--pgd1-text-dark);
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--pgd1-radius);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    transition: all 0.3s ease;
}

.pgd1-promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.5);
}

/* Footer */
.pgd1-footer {
    background: linear-gradient(180deg, rgba(40, 40, 40, 0.95) 0%, var(--pgd1-bg) 100%);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.pgd1-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pgd1-footer-link {
    color: var(--pgd1-text-light);
    text-decoration: none;
    font-size: 1.3rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.pgd1-footer-link:hover {
    color: var(--pgd1-primary);
    opacity: 1;
}

.pgd1-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 140, 0, 0.2);
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
}

.pgd1-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.pgd1-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.pgd1-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--pgd1-text-light);
    opacity: 0.6;
}

/* Mobile Bottom Navigation */
.pgd1-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(40, 40, 40, 0.98) 0%, var(--pgd1-bg) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 140, 0, 0.2);
}

@media (min-width: 769px) {
    .pgd1-bottom-nav {
        display: none;
    }
}

.pgd1-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pgd1-nav-btn i,
.pgd1-nav-btn .material-icons-outlined {
    font-size: 24px;
    color: var(--pgd1-text-light);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.pgd1-nav-btn span {
    font-size: 11px;
    color: var(--pgd1-text-light);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.pgd1-nav-btn:hover i,
.pgd1-nav-btn:hover .material-icons-outlined,
.pgd1-nav-btn.pgd1-active i,
.pgd1-nav-btn.pgd1-active .material-icons-outlined {
    color: var(--pgd1-primary);
    transform: scale(1.1);
}

.pgd1-nav-btn:hover span,
.pgd1-nav-btn.pgd1-active span {
    color: var(--pgd1-primary);
    opacity: 1;
}

/* Utility Classes */
.pgd1-text-center {
    text-align: center;
}

.pgd1-mb-1 {
    margin-bottom: 1rem;
}

.pgd1-mb-2 {
    margin-bottom: 2rem;
}

.pgd1-mb-3 {
    margin-bottom: 3rem;
}

.pgd1-hidden-desktop {
    display: block;
}

@media (min-width: 769px) {
    .pgd1-hidden-desktop {
        display: none;
    }
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .pgd1-container {
        max-width: 768px;
    }

    .pgd1-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .pgd1-carousel {
        height: 300px;
    }
}

/* RTP Section */
.pgd1-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pgd1-rtp-item {
    background: rgba(255, 140, 0, 0.1);
    padding: 1.2rem;
    border-radius: var(--pgd1-radius-sm);
    text-align: center;
}

.pgd1-rtp-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--pgd1-primary);
}

.pgd1-rtp-label {
    font-size: 1.2rem;
    color: var(--pgd1-text-light);
    opacity: 0.8;
}

/* Security Section */
.pgd1-security-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.pgd1-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.pgd1-badge i {
    font-size: 3.2rem;
    color: var(--pgd1-primary);
}

.pgd1-badge span {
    font-size: 1.2rem;
    color: var(--pgd1-text-light);
}

/* Achievements */
.pgd1-achievements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.pgd1-achievement {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 140, 0, 0.1);
    border-radius: var(--pgd1-radius-sm);
}

.pgd1-achievement-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--pgd1-primary);
    display: block;
}

.pgd1-achievement-label {
    font-size: 1.1rem;
    color: var(--pgd1-text-light);
    opacity: 0.9;
}

/* Tricks Section */
.pgd1-tricks-list {
    list-style: none;
    counter-reset: trick-counter;
}

.pgd1-trick-item {
    counter-increment: trick-counter;
    display: flex;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
}

.pgd1-trick-item::before {
    content: counter(trick-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--pgd1-gradient);
    color: var(--pgd1-text-dark);
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.pgd1-trick-content {
    flex: 1;
}

.pgd1-trick-content h4 {
    font-size: 1.4rem;
    color: var(--pgd1-secondary);
    margin-bottom: 0.3rem;
}

.pgd1-trick-content p {
    font-size: 1.2rem;
    color: var(--pgd1-text-light);
    opacity: 0.9;
}

/* Play Now CTA */
.pgd1-cta-section {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2) 0%, rgba(255, 183, 77, 0.1) 100%);
    border-radius: var(--pgd1-radius);
    margin: 2rem 0;
}

.pgd1-cta-section h3 {
    font-size: 2rem;
    color: var(--pgd1-primary);
    margin-bottom: 1rem;
}

.pgd1-cta-section p {
    font-size: 1.4rem;
    color: var(--pgd1-text-light);
    margin-bottom: 2rem;
    opacity: 0.9;
}
