/**
 * KingphaPK - Main Stylesheet
 * Website: kingphapk.club
 * CSS Prefix: pge9-
 * Color Palette: #5F9EA0 | #FFFFFF | #00BFFF | #90EE90 | #0C0C0C
 */

/* CSS Variables */
:root {
    --pge9-primary: #5F9EA0;
    --pge9-secondary: #FFFFFF;
    --pge9-accent: #00BFFF;
    --pge9-highlight: #90EE90;
    --pge9-dark: #0C0C0C;
    --pge9-bg-dark: #1a1a2e;
    --pge9-bg-card: #16213e;
    --pge9-text-light: #f0f0f0;
    --pge9-text-muted: #a0a0a0;
    --pge9-border: #2a2a4a;
    --pge9-gradient: linear-gradient(135deg, #5F9EA0, #00BFFF);
    --pge9-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Reset & 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.6;
    background: var(--pge9-dark);
    color: var(--pge9-text-light);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Container */
.pge9-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.pge9-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--pge9-bg-dark);
    border-bottom: 1px solid var(--pge9-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.pge9-header-scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
}

.pge9-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.pge9-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pge9-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.pge9-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--pge9-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pge9-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pge9-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.pge9-btn-login {
    background: transparent;
    color: var(--pge9-primary);
    border: 1px solid var(--pge9-primary);
}

.pge9-btn-login:hover {
    background: var(--pge9-primary);
    color: var(--pge9-dark);
}

.pge9-btn-register {
    background: var(--pge9-gradient);
    color: var(--pge9-dark);
}

.pge9-btn-register:hover {
    transform: scale(1.05);
    box-shadow: var(--pge9-shadow);
}

.pge9-menu-btn {
    background: none;
    border: none;
    color: var(--pge9-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.pge9-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pge9-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.pge9-menu-active {
    right: 0;
}

.pge9-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;
}

.pge9-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pge9-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pge9-border);
}

.pge9-close-menu {
    background: none;
    border: none;
    color: var(--pge9-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.pge9-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pge9-menu-link {
    padding: 1rem;
    color: var(--pge9-text-light);
    font-size: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pge9-menu-link:hover {
    background: var(--pge9-primary);
    color: var(--pge9-dark);
}

.pge9-no-scroll {
    overflow: hidden;
}

/* Hero/Carousel */
.pge9-hero {
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.pge9-carousel {
    position: relative;
    height: 200px;
}

.pge9-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pge9-slide-active {
    opacity: 1;
}

.pge9-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.pge9-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.pge9-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pge9-dot-active {
    background: var(--pge9-accent);
    transform: scale(1.2);
}

/* Main Content */
.pge9-main {
    padding: 2rem 0;
    padding-bottom: 80px;
}

/* Section */
.pge9-section {
    padding: 2rem 1.5rem;
}

.pge9-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: var(--pge9-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Games Grid */
.pge9-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.pge9-game-card {
    background: var(--pge9-bg-card);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--pge9-border);
}

.pge9-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--pge9-primary);
    box-shadow: var(--pge9-shadow);
}

.pge9-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.pge9-game-name {
    font-size: 1.1rem;
    padding: 0.5rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--pge9-text-light);
}

/* Category Tabs */
.pge9-category-tabs {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 1rem 0;
    margin-bottom: 1rem;
    scrollbar-width: none;
}

.pge9-category-tabs::-webkit-scrollbar {
    display: none;
}

.pge9-tab-btn {
    padding: 0.6rem 1.4rem;
    background: var(--pge9-bg-card);
    border: 1px solid var(--pge9-border);
    border-radius: 20px;
    color: var(--pge9-text-light);
    font-size: 1.3rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pge9-tab-btn:hover,
.pge9-tab-btn.active {
    background: var(--pge9-primary);
    border-color: var(--pge9-primary);
    color: var(--pge9-dark);
}

/* Info Cards */
.pge9-info-card {
    background: var(--pge9-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--pge9-border);
}

.pge9-info-title {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--pge9-accent);
}

.pge9-info-text {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--pge9-text-muted);
}

.pge9-info-text a {
    color: var(--pge9-highlight);
}

.pge9-info-text a:hover {
    text-decoration: underline;
}

/* Feature List */
.pge9-feature-list {
    display: grid;
    gap: 1rem;
}

.pge9-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pge9-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--pge9-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pge9-feature-icon i {
    font-size: 1.8rem;
    color: var(--pge9-dark);
}

.pge9-feature-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--pge9-text-light);
}

.pge9-feature-content p {
    font-size: 1.3rem;
    color: var(--pge9-text-muted);
}

/* FAQ Section */
.pge9-faq-item {
    background: var(--pge9-bg-card);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--pge9-border);
}

.pge9-faq-question {
    padding: 1.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pge9-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pge9-faq-answer {
    padding: 0 1.2rem 1.2rem;
    font-size: 1.3rem;
    color: var(--pge9-text-muted);
    line-height: 1.6;
}

/* Footer */
.pge9-footer {
    background: var(--pge9-bg-dark);
    border-top: 1px solid var(--pge9-border);
    padding: 2rem 1.5rem;
}

.pge9-footer-partners {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--pge9-border);
}

.pge9-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pge9-partner-logo:hover {
    opacity: 1;
}

.pge9-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pge9-footer-link {
    font-size: 1.3rem;
    color: var(--pge9-text-muted);
    text-align: center;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pge9-footer-link:hover {
    color: var(--pge9-accent);
    background: rgba(0, 191, 255, 0.1);
}

.pge9-footer-copy {
    text-align: center;
    font-size: 1.2rem;
    color: var(--pge9-text-muted);
}

/* Bottom Navigation */
.pge9-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--pge9-bg-dark), #0d0d1a);
    border-top: 1px solid var(--pge9-border);
    z-index: 1000;
    padding: 0.5rem 0;
}

.pge9-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.pge9-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 0.5rem;
}

.pge9-nav-item:hover {
    background: rgba(95, 158, 160, 0.2);
}

.pge9-nav-item i {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    color: var(--pge9-text-muted);
    transition: color 0.3s ease;
}

.pge9-nav-item span {
    font-size: 1rem;
    color: var(--pge9-text-muted);
    transition: color 0.3s ease;
}

.pge9-nav-item:hover i,
.pge9-nav-item:hover span,
.pge9-nav-item.active i,
.pge9-nav-item.active span {
    color: var(--pge9-accent);
}

/* CTA Banner */
.pge9-cta-banner {
    background: var(--pge9-gradient);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.pge9-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pge9-dark);
    margin-bottom: 0.5rem;
}

.pge9-cta-text {
    font-size: 1.3rem;
    color: var(--pge9-dark);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.pge9-cta-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--pge9-dark);
    color: var(--pge9-text-light);
    border-radius: 25px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pge9-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--pge9-shadow);
}

/* Internal Links */
.pge9-internal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1rem 0;
}

.pge9-internal-link {
    padding: 0.5rem 1rem;
    background: var(--pge9-bg-card);
    border: 1px solid var(--pge9-border);
    border-radius: 15px;
    font-size: 1.2rem;
    color: var(--pge9-highlight);
    transition: all 0.3s ease;
}

.pge9-internal-link:hover {
    background: var(--pge9-primary);
    color: var(--pge9-dark);
    border-color: var(--pge9-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .pge9-main {
        padding-bottom: 80px;
    }
}

@media (min-width: 769px) {
    .pge9-bottom-nav {
        display: none;
    }

    .pge9-container {
        max-width: 768px;
    }

    .pge9-header-inner {
        max-width: 768px;
    }

    .pge9-games-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .pge9-nav-inner {
        max-width: 768px;
    }
}

/* Utility Classes */
.pge9-text-center {
    text-align: center;
}

.pge9-mb-1 {
    margin-bottom: 1rem;
}

.pge9-mb-2 {
    margin-bottom: 2rem;
}

.pge9-hidden {
    display: none;
}
