/* Joya 999 - Layout Stylesheet */
/* Prefix: pgea- */
/* Color Palette: #9966CC #8A2BE2 #B2DFDB #0E1621 #9932CC */

:root {
    --pgea-primary: #9966CC;
    --pgea-secondary: #8A2BE2;
    --pgea-accent: #9932CC;
    --pgea-text: #B2DFDB;
    --pgea-text-dark: #0E1621;
    --pgea-bg: #0E1621;
    --pgea-bg-card: #141E2E;
    --pgea-bg-hover: #1A2738;
    --pgea-border: #2A3A4E;
    --pgea-gradient: linear-gradient(135deg, #9966CC 0%, #8A2BE2 100%);
    --pgea-radius: 8px;
    --pgea-radius-lg: 12px;
    --pgea-shadow: 0 2px 8px rgba(0,0,0,0.3);
    --pgea-shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
    --pgea-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: 'Hind Siliguri', sans-serif;
    background: var(--pgea-bg);
    color: var(--pgea-text);
    font-size: 1.5rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--pgea-primary); text-decoration: none; transition: var(--pgea-transition); }
a:hover { color: var(--pgea-secondary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Header */
.pgea-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(14, 22, 33, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--pgea-border);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}
.pgea-logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pgea-logo-area img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}
.pgea-logo-area span {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}
.pgea-header-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}
.pgea-btn-register, .pgea-btn-login {
    padding: 6px 14px;
    border-radius: var(--pgea-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--pgea-transition);
}
.pgea-btn-register {
    background: var(--pgea-gradient);
    color: #fff;
}
.pgea-btn-register:hover { opacity: 0.9; transform: scale(1.03); }
.pgea-btn-login {
    background: transparent;
    color: var(--pgea-primary);
    border: 1.5px solid var(--pgea-primary);
}
.pgea-btn-login:hover { background: var(--pgea-primary); color: #fff; }
.pgea-menu-toggle {
    background: none;
    border: none;
    color: var(--pgea-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 4px;
}

/* Mobile Menu */
.pgea-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(14, 22, 33, 0.98);
    display: none;
    flex-direction: column;
    padding: 60px 20px 20px;
    overflow-y: auto;
}
.pgea-mobile-menu.pgea-menu-active { display: flex; }
.pgea-menu-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--pgea-text);
    font-size: 2.4rem;
    cursor: pointer;
}
.pgea-mobile-menu a {
    display: block;
    padding: 12px 0;
    font-size: 1.6rem;
    color: var(--pgea-text);
    border-bottom: 1px solid var(--pgea-border);
}

/* Main Content */
.pgea-main {
    margin-top: 56px;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
    .pgea-main { padding-bottom: 80px; }
}

/* Carousel */
.pgea-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 var(--pgea-radius-lg) var(--pgea-radius-lg);
}
.pgea-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}
.pgea-slide img { width: 100%; height: auto; }
.pgea-slide-active { display: block; }
.pgea-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.pgea-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    border: none;
    transition: var(--pgea-transition);
}
.pgea-dot-active { background: var(--pgea-primary); transform: scale(1.3); }

/* Section Titles */
.pgea-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 20px 12px 12px;
    padding-left: 10px;
    border-left: 3px solid var(--pgea-primary);
}

/* Game Grid */
.pgea-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px 12px;
}
.pgea-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--pgea-transition);
    border-radius: var(--pgea-radius);
    padding: 6px 4px;
}
.pgea-game-item:hover { background: var(--pgea-bg-hover); transform: translateY(-2px); }
.pgea-game-item img {
    width: 64px;
    height: 64px;
    border-radius: var(--pgea-radius);
    margin-bottom: 4px;
    object-fit: cover;
}
.pgea-game-item span {
    font-size: 1.1rem;
    color: var(--pgea-text);
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Sections */
.pgea-content-section {
    padding: 16px 12px;
    margin: 8px 0;
    background: var(--pgea-bg-card);
    border-radius: var(--pgea-radius-lg);
}
.pgea-content-section h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}
.pgea-content-section h3 {
    font-size: 1.5rem;
    color: var(--pgea-primary);
    margin: 12px 0 6px;
}
.pgea-content-section p {
    font-size: 1.4rem;
    color: var(--pgea-text);
    margin-bottom: 8px;
    line-height: 1.7;
}

/* CTA / Promo Buttons */
.pgea-cta-btn {
    display: inline-block;
    background: var(--pgea-gradient);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--pgea-radius);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--pgea-transition);
    text-align: center;
}
.pgea-cta-btn:hover { opacity: 0.9; transform: scale(1.03); }

/* FAQ Styles */
.pgea-faq-item {
    border: 1px solid var(--pgea-border);
    border-radius: var(--pgea-radius);
    margin-bottom: 8px;
    overflow: hidden;
}
.pgea-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    background: var(--pgea-bg-card);
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
}
.pgea-faq-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: var(--pgea-primary);
}
.pgea-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 14px;
    font-size: 1.3rem;
    color: var(--pgea-text);
    background: var(--pgea-bg);
}
.pgea-faq-answer-inner { padding: 10px 0; }

/* Internal Links */
.pgea-internal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
}
.pgea-internal-links a {
    display: inline-block;
    padding: 6px 12px;
    background: var(--pgea-bg-card);
    border-radius: 20px;
    font-size: 1.2rem;
    color: var(--pgea-text);
    border: 1px solid var(--pgea-border);
    transition: var(--pgea-transition);
}
.pgea-internal-links a:hover { border-color: var(--pgea-primary); color: var(--pgea-primary); }

/* Footer */
.pgea-footer {
    background: var(--pgea-bg-card);
    padding: 24px 12px;
    margin-top: 24px;
    border-top: 1px solid var(--pgea-border);
}
.pgea-footer-brand { margin-bottom: 16px; }
.pgea-footer-brand h3 { font-size: 1.6rem; color: #fff; margin-bottom: 6px; }
.pgea-footer-brand p { font-size: 1.3rem; color: var(--pgea-text); line-height: 1.6; }
.pgea-footer-btns {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}
.pgea-footer-btns button {
    flex: 1;
    padding: 10px;
    border-radius: var(--pgea-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--pgea-transition);
}
.pgea-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}
.pgea-footer-links a {
    font-size: 1.2rem;
    color: var(--pgea-text);
    padding: 4px 8px;
}
.pgea-footer-links a:hover { color: var(--pgea-primary); }
.pgea-footer-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    align-items: center;
}
.pgea-footer-partners span {
    font-size: 1.1rem;
    color: rgba(178,223,219,0.6);
    padding: 3px 8px;
    background: var(--pgea-bg);
    border-radius: 4px;
}
.pgea-footer-copy {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(178,223,219,0.5);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--pgea-border);
}

/* Bottom Navigation */
.pgea-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    background: rgba(14, 22, 33, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--pgea-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
}
.pgea-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    background: none;
    border: none;
    color: var(--pgea-text);
    cursor: pointer;
    transition: var(--pgea-transition);
    gap: 2px;
}
.pgea-bottom-btn:hover, .pgea-bottom-btn:focus { color: var(--pgea-primary); }
.pgea-bottom-btn .pgea-nav-icon { font-size: 22px; }
.pgea-bottom-btn .pgea-nav-label { font-size: 1rem; }
.pgea-bottom-btn-active { color: var(--pgea-primary) !important; }
@media (min-width: 769px) { .pgea-bottom-nav { display: none; } }

/* Back to Top */
.pgea-back-top {
    position: fixed;
    bottom: 72px;
    right: 12px;
    z-index: 999;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pgea-gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--pgea-transition);
    box-shadow: var(--pgea-shadow);
}
.pgea-back-top-visible { opacity: 1; visibility: visible; }
.pgea-back-top:hover { transform: translateY(-2px); }

/* Lazy image placeholder */
.pgea-lazy { background: var(--pgea-bg-card); }
.pgea-loaded { background: none; }

/* Utilities */
.pgea-text-center { text-align: center; }
.pgea-mt-8 { margin-top: 8px; }
.pgea-mt-16 { margin-top: 16px; }
.pgea-mb-8 { margin-bottom: 8px; }
.pgea-p-12 { padding: 12px; }
.pgea-hidden { display: none; }

/* Desktop adjustments */
@media (min-width: 769px) {
    .pgea-main { max-width: 430px; }
    .pgea-pgea-desktop-nav { display: flex; }
}
