/**
 * Tong-its Website CSS Theme
 * Prefix: pgef-
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --pgef-primary: #7B68EE;
    --pgef-secondary: #CC99FF;
    --pgef-accent: #8B008B;
    --pgef-bg-dark: #1A1A2E;
    --pgef-bg-darker: #0F0F1A;
    --pgef-text-light: #FFFFFF;
    --pgef-text-muted: #BBBBBB;
    --pgef-text-pink: #FFCCCB;
    --pgef-border: rgba(204, 153, 255, 0.2);
    --pgef-shadow: rgba(0, 0, 0, 0.3);
    --pgef-gradient: linear-gradient(135deg, #7B68EE 0%, #8B008B 100%);
    --pgef-radius: 8px;
    --pgef-radius-lg: 16px;
    --pgef-transition: all 0.3s ease;
}

/* 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(--pgef-bg-dark);
    color: var(--pgef-text-light);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--pgef-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles */
.pgef-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--pgef-bg-darker) 0%, rgba(26, 26, 46, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--pgef-border);
    padding: 1rem 1.5rem;
}

.pgef-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.pgef-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pgef-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.pgef-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--pgef-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pgef-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pgef-btn {
    padding: 0.8rem 1.6rem;
    border-radius: var(--pgef-radius);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pgef-transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pgef-btn-primary {
    background: var(--pgef-gradient);
    color: var(--pgef-text-light);
}

.pgef-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.4);
}

.pgef-btn-outline {
    background: transparent;
    color: var(--pgef-secondary);
    border: 2px solid var(--pgef-secondary);
}

.pgef-btn-outline:hover {
    background: var(--pgef-secondary);
    color: var(--pgef-bg-dark);
}

.pgef-menu-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--pgef-text-light);
    font-size: 2rem;
    cursor: pointer;
}

/* Mobile Menu */
.pgef-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 26, 0.98);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 8rem 2rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.pgef-menu-active {
    transform: translateX(0);
}

.pgef-mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--pgef-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.pgef-mobile-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pgef-mobile-nav a {
    display: block;
    padding: 1.5rem 1rem;
    font-size: 1.8rem;
    color: var(--pgef-text-light);
    border-bottom: 1px solid var(--pgef-border);
    transition: var(--pgef-transition);
}

.pgef-mobile-nav a:hover {
    color: var(--pgef-secondary);
    padding-left: 1.5rem;
}

/* Main Content */
main {
    padding-top: 70px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    main {
        padding-bottom: 2rem;
    }
}

.pgef-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Carousel Styles */
.pgef-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--pgef-radius-lg);
    margin-bottom: 2rem;
}

.pgef-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.pgef-slide {
    min-width: 100%;
    cursor: pointer;
}

.pgef-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--pgef-radius-lg);
}

.pgef-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.pgef-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--pgef-transition);
}

.pgef-dot-active {
    background: var(--pgef-secondary);
    transform: scale(1.2);
}

/* Section Styles */
.pgef-section {
    padding: 2rem 0;
}

.pgef-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: var(--pgef-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pgef-section-subtitle {
    font-size: 1.6rem;
    color: var(--pgef-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.pgef-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pgef-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--pgef-transition);
}

.pgef-game-item:hover {
    transform: translateY(-5px);
}

.pgef-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--pgef-radius);
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
    transition: var(--pgef-transition);
}

.pgef-game-item:hover img {
    border-color: var(--pgef-secondary);
    box-shadow: 0 4px 15px rgba(204, 153, 255, 0.3);
}

.pgef-game-name {
    font-size: 1.1rem;
    color: var(--pgef-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Title */
.pgef-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--pgef-secondary);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--pgef-primary);
}

/* Feature Cards */
.pgef-feature-card {
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.1) 0%, rgba(139, 0, 139, 0.1) 100%);
    border: 1px solid var(--pgef-border);
    border-radius: var(--pgef-radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--pgef-transition);
}

.pgef-feature-card:hover {
    border-color: var(--pgef-secondary);
    transform: translateY(-3px);
}

.pgef-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--pgef-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pgef-feature-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--pgef-text-light);
}

.pgef-feature-text {
    font-size: 1.4rem;
    color: var(--pgef-text-muted);
    line-height: 1.6;
}

.pgef-feature-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--pgef-secondary);
    font-weight: 600;
    font-size: 1.4rem;
}

.pgef-feature-link:hover {
    color: var(--pgef-primary);
}

/* Promo Link Styles */
.pgef-promo-link {
    color: var(--pgef-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--pgef-transition);
}

.pgef-promo-link:hover {
    color: var(--pgef-primary);
    text-decoration: underline;
}

.pgef-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.4rem;
    background: var(--pgef-gradient);
    color: var(--pgef-text-light);
    border-radius: var(--pgef-radius);
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--pgef-transition);
}

.pgef-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(123, 104, 238, 0.4);
}

/* Footer */
.pgef-footer {
    background: var(--pgef-bg-darker);
    border-top: 1px solid var(--pgef-border);
    padding: 3rem 1.5rem;
}

.pgef-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pgef-footer-link {
    font-size: 1.4rem;
    color: var(--pgef-text-muted);
    padding: 0.5rem 0;
    transition: var(--pgef-transition);
}

.pgef-footer-link:hover {
    color: var(--pgef-secondary);
}

.pgef-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pgef-partner-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    opacity: 0.7;
    transition: var(--pgef-transition);
}

.pgef-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.pgef-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--pgef-text-muted);
}

/* Bottom Navigation - Mobile Only */
.pgef-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, var(--pgef-bg-darker) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--pgef-border);
    padding: 0.8rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

@media (min-width: 769px) {
    .pgef-bottom-nav {
        display: none;
    }
}

.pgef-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--pgef-transition);
    border-radius: var(--pgef-radius);
}

.pgef-nav-item:hover {
    background: rgba(123, 104, 238, 0.2);
    transform: scale(1.1);
}

.pgef-nav-item.active {
    color: var(--pgef-secondary);
}

.pgef-nav-item.active .pgef-nav-icon {
    color: var(--pgef-secondary);
}

.pgef-nav-icon {
    font-size: 2.4rem;
    color: var(--pgef-text-muted);
    margin-bottom: 0.3rem;
    transition: var(--pgef-transition);
}

.pgef-nav-item:hover .pgef-nav-icon {
    color: var(--pgef-secondary);
}

.pgef-nav-text {
    font-size: 1rem;
    color: var(--pgef-text-muted);
    transition: var(--pgef-transition);
}

.pgef-nav-item:hover .pgef-nav-text,
.pgef-nav-item.active .pgef-nav-text {
    color: var(--pgef-secondary);
}

/* RTP Section */
.pgef-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pgef-rtp-item {
    background: rgba(123, 104, 238, 0.1);
    border-radius: var(--pgef-radius);
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--pgef-border);
}

.pgef-rtp-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--pgef-secondary);
    margin-bottom: 0.5rem;
}

.pgef-rtp-label {
    font-size: 1.2rem;
    color: var(--pgef-text-muted);
}

/* FAQ Section */
.pgef-faq-item {
    background: rgba(123, 104, 238, 0.05);
    border: 1px solid var(--pgef-border);
    border-radius: var(--pgef-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.pgef-faq-question {
    padding: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pgef-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pgef-faq-answer {
    padding: 0 1.5rem 1.5rem;
    font-size: 1.4rem;
    color: var(--pgef-text-muted);
    line-height: 1.6;
}

/* Utility Classes */
.pgef-text-center {
    text-align: center;
}

.pgef-mb-1 {
    margin-bottom: 1rem;
}

.pgef-mb-2 {
    margin-bottom: 2rem;
}

.pgef-mt-2 {
    margin-top: 2rem;
}

.pgef-hidden {
    display: none;
}

/* Responsive */
@media (max-width: 430px) {
    .pgef-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) {
    .pgef-container {
        max-width: 768px;
    }

    .pgef-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .pgef-footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
}
