/**
 * JL55 Core CSS Stylesheet
 * Prefix: pgee-
 * Color Scheme: #2D2D2D, #C0C0C0, #FF9800, #FFAA00, #FF7F50, #DEB887
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
    --pgee-primary-dark: #2D2D2D;
    --pgee-primary-light: #C0C0C0;
    --pgee-accent-orange: #FF9800;
    --pgee-accent-yellow: #FFAA00;
    --pgee-accent-coral: #FF7F50;
    --pgee-accent-burlywood: #DEB887;
    --pgee-text-dark: #1A1A1A;
    --pgee-text-light: #FFFFFF;
    --pgee-text-muted: #999999;
    --pgee-bg-card: #3A3A3A;
    --pgee-bg-hover: #4A4A4A;
    --pgee-border: #555555;
    --pgee-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --pgee-radius: 8px;
    --pgee-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and 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;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--pgee-primary-light);
    background-color: var(--pgee-primary-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container and Layout */
.pgee-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.pgee-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 80px; /* Space for bottom nav */
}

/* Header Styles */
.pgee-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--pgee-primary-dark) 0%, #1F1F1F 100%);
    border-bottom: 2px solid var(--pgee-accent-orange);
    z-index: 1000;
    box-shadow: var(--pgee-shadow);
}

.pgee-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    height: 60px;
}

.pgee-logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pgee-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.pgee-site-name {
    font-size: 2.0rem;
    font-weight: bold;
    color: var(--pgee-text-light);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.pgee-nav-buttons {
    display: flex;
    gap: 10px;
}

.pgee-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--pgee-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pgee-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 36px;
}

.pgee-btn-register {
    background: linear-gradient(135deg, var(--pgee-accent-orange) 0%, var(--pgee-accent-yellow) 100%);
    color: var(--pgee-text-dark);
}

.pgee-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.pgee-btn-login {
    background: transparent;
    color: var(--pgee-text-light);
    border: 2px solid var(--pgee-accent-orange);
}

.pgee-btn-login:hover {
    background: var(--pgee-accent-orange);
    color: var(--pgee-text-dark);
}

.pgee-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--pgee-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 5px;
    border-radius: var(--pgee-radius);
    transition: var(--pgee-transition);
}

.pgee-menu-toggle:hover {
    background: var(--pgee-bg-hover);
}

/* Mobile Navigation Menu */
.pgee-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, var(--pgee-primary-dark) 0%, #1A1A1A 100%);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.pgee-menu-open {
    left: 0;
}

.pgee-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--pgee-border);
}

.pgee-menu-close {
    background: none;
    border: none;
    color: var(--pgee-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 5px;
    border-radius: var(--pgee-radius);
}

.pgee-menu-close:hover {
    background: var(--pgee-bg-hover);
}

.pgee-menu-nav {
    padding: 20px 0;
}

.pgee-menu-item {
    display: block;
    padding: 15px 20px;
    color: var(--pgee-primary-light);
    text-decoration: none;
    font-size: 1.6rem;
    transition: var(--pgee-transition);
    border-left: 3px solid transparent;
}

.pgee-menu-item:hover {
    background: var(--pgee-bg-hover);
    border-left-color: var(--pgee-accent-orange);
    color: var(--pgee-text-light);
}

.pgee-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pgee-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    flex: 1;
    padding-top: 80px;
    margin-top: 2px;
}

/* Carousel Styles */
.pgee-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 30px;
    border-radius: var(--pgee-radius);
    overflow: hidden;
    box-shadow: var(--pgee-shadow);
}

.pgee-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pgee-slide-active {
    opacity: 1;
}

.pgee-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgee-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    color: var(--pgee-text-light);
}

.pgee-slide-title {
    font-size: 2.0rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.pgee-slide-description {
    font-size: 1.4rem;
    opacity: 0.9;
}

.pgee-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pgee-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--pgee-transition);
}

.pgee-dot-active {
    background: var(--pgee-accent-orange);
    transform: scale(1.2);
}

/* Game Categories */
.pgee-section {
    margin-bottom: 40px;
}

.pgee-section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--pgee-text-light);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.pgee-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--pgee-accent-orange) 0%, var(--pgee-accent-yellow) 100%);
    border-radius: 2px;
}

.pgee-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.pgee-game-card {
    background: var(--pgee-bg-card);
    border-radius: var(--pgee-radius);
    overflow: hidden;
    transition: var(--pgee-transition);
    cursor: pointer;
    border: 1px solid var(--pgee-border);
    aspect-ratio: 1;
}

.pgee-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    border-color: var(--pgee-accent-orange);
}

.pgee-game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--pgee-transition);
}

.pgee-game-card:hover .pgee-game-image {
    transform: scale(1.05);
}

.pgee-game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: var(--pgee-text-light);
    padding: 8px 5px;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cards and Components */
.pgee-card {
    background: var(--pgee-bg-card);
    border-radius: var(--pgee-radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--pgee-border);
    box-shadow: var(--pgee-shadow);
}

.pgee-card-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--pgee-text-light);
    margin-bottom: 15px;
}

.pgee-card-content {
    color: var(--pgee-primary-light);
    line-height: 1.6;
}

.pgee-feature-list {
    list-style: none;
    padding: 0;
}

.pgee-feature-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--pgee-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pgee-feature-item:last-child {
    border-bottom: none;
}

.pgee-feature-icon {
    width: 24px;
    height: 24px;
    color: var(--pgee-accent-orange);
    flex-shrink: 0;
}

/* Footer */
.pgee-footer {
    background: linear-gradient(180deg, var(--pgee-bg-card) 0%, var(--pgee-primary-dark) 100%);
    padding: 30px 0;
    border-top: 2px solid var(--pgee-accent-orange);
    margin-top: auto;
}

.pgee-footer-content {
    text-align: center;
}

.pgee-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pgee-footer-link {
    color: var(--pgee-primary-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--pgee-transition);
}

.pgee-footer-link:hover {
    color: var(--pgee-accent-orange);
}

.pgee-partners {
    margin: 20px 0;
}

.pgee-partners-title {
    font-size: 1.6rem;
    color: var(--pgee-text-muted);
    margin-bottom: 15px;
}

.pgee-partner-logos {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pgee-partner-logo {
    width: 40px;
    height: 40px;
    opacity: 0.7;
    transition: var(--pgee-transition);
}

.pgee-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.pgee-copyright {
    color: var(--pgee-text-muted);
    font-size: 1.2rem;
    margin-top: 20px;
}

/* Bottom Navigation */
.pgee-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--pgee-bg-card) 0%, var(--pgee-primary-dark) 100%);
    border-top: 2px solid var(--pgee-accent-orange);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.pgee-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--pgee-text-muted);
    text-decoration: none;
    font-size: 1.0rem;
    transition: var(--pgee-transition);
    padding: 5px;
    min-height: 60px;
    position: relative;
}

.pgee-nav-item:hover,
.pgee-nav-item.active {
    color: var(--pgee-accent-orange);
    transform: translateY(-2px);
}

.pgee-nav-icon {
    font-size: 2.2rem;
    margin-bottom: 2px;
    transition: var(--pgee-transition);
}

.pgee-nav-item:hover .pgee-nav-icon,
.pgee-nav-item.active .pgee-nav-icon {
    transform: scale(1.1);
}

.pgee-nav-text {
    font-weight: 600;
    font-size: 1.0rem;
}

/* Utility Classes */
.pgee-text-center {
    text-align: center;
}

.pgee-text-orange {
    color: var(--pgee-accent-orange);
}

.pgee-text-yellow {
    color: var(--pgee-accent-yellow);
}

.pgee-bg-gradient {
    background: linear-gradient(135deg, var(--pgee-accent-orange) 0%, var(--pgee-accent-yellow) 100%);
}

.pgee-rounded {
    border-radius: var(--pgee-radius);
}

.pgee-shadow {
    box-shadow: var(--pgee-shadow);
}

.pgee-hidden-mobile {
    display: none;
}

.pgee-visible-mobile {
    display: block;
}

/* Loading and Animations */
.pgee-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pgee-lazy.loaded {
    opacity: 1;
}

@keyframes pgee-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pgee-pulse {
    animation: pgee-pulse 2s infinite;
}

/* Responsive Design */
@media (min-width: 769px) {
    .pgee-container {
        max-width: 1200px;
        padding: 0 20px;
    }

    .pgee-wrapper {
        padding-bottom: 0;
    }

    .pgee-menu-toggle {
        display: none;
    }

    .pgee-nav-buttons {
        display: flex;
    }

    .pgee-mobile-menu {
        display: none;
    }

    .pgee-menu-overlay {
        display: none;
    }

    main {
        padding-top: 80px;
    }

    .pgee-carousel {
        height: 300px;
    }

    .pgee-game-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
    }

    .pgee-section-title {
        font-size: 2.8rem;
    }

    .pgee-bottom-nav {
        display: none;
    }

    .pgee-hidden-mobile {
        display: block;
    }

    .pgee-visible-mobile {
        display: none;
    }

    .pgee-card {
        padding: 30px;
    }

    .pgee-footer {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .pgee-menu-toggle {
        display: block;
    }

    .pgee-nav-buttons {
        display: none;
    }

    .pgee-carousel {
        height: 180px;
    }

    .pgee-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .pgee-section-title {
        font-size: 2.0rem;
    }

    .pgee-card {
        padding: 15px;
    }
}

/* Special Styles for Specific Elements */
.pgee-cta-button {
    background: linear-gradient(135deg, var(--pgee-accent-coral) 0%, var(--pgee-accent-burlywood) 100%);
    color: var(--pgee-text-dark);
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(255, 127, 80, 0.3);
}

.pgee-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 127, 80, 0.4);
}

/* RTP Color Coding */
.pgee-rtp-high {
    color: #4CAF50;
    font-weight: bold;
}

.pgee-rtp-medium {
    color: #FF9800;
    font-weight: bold;
}

.pgee-rtp-low {
    color: #F44336;
    font-weight: bold;
}

/* Countdown Timer Styles */
.pgee-countdown {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--pgee-accent-orange);
    text-align: center;
    margin: 20px 0;
}

/* Badge Styles */
.pgee-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    background: var(--pgee-accent-orange);
    color: var(--pgee-text-dark);
    margin-left: 8px;
}

/* Loading Spinner */
.pgee-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--pgee-border);
    border-top: 4px solid var(--pgee-accent-orange);
    border-radius: 50%;
    animation: pgee-spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes pgee-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}