/**
 * PH99 Gaming Platform - Main Stylesheet
 * Website: ph99.cfd
 * Prefix: pge1-
 */

/* CSS Variables */
:root {
    --pge1-bg-primary: #1a1a2e;
    --pge1-bg-secondary: #16213e;
    --pge1-bg-card: #0f3460;
    --pge1-accent: #e94560;
    --pge1-accent-hover: #ff6b6b;
    --pge1-text-primary: #FAFAFA;
    --pge1-text-secondary: #87CEEB;
    --pge1-text-muted: #696969;
    --pge1-border: #3C3C3C;
    --pge1-success: #4ade80;
    --pge1-warning: #fbbf24;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--pge1-bg-primary);
    color: var(--pge1-text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

/* Container */
.pge1-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.pge1-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--pge1-bg-secondary);
    padding: 1rem 1.5rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pge1-header-inner {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pge1-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.pge1-logo img {
    width: 32px;
    height: 32px;
}

.pge1-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pge1-text-primary);
}

.pge1-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.pge1-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pge1-btn-primary {
    background: linear-gradient(135deg, var(--pge1-accent), #ff8a5b);
    color: white;
}

.pge1-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.pge1-btn-outline {
    background: transparent;
    border: 2px solid var(--pge1-accent);
    color: var(--pge1-text-primary);
}

.pge1-btn-outline:hover {
    background: var(--pge1-accent);
}

.pge1-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--pge1-text-primary);
    font-size: 2.4rem;
    cursor: pointer;
}

/* Navigation */
.pge1-nav-desktop {
    display: none;
}

/* Mobile Menu */
.pge1-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pge1-bg-secondary);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.gamee19c-menu-active {
    right: 0;
}

.pge1-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pge1-border);
}

.pge1-mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--pge1-text-primary);
    font-size: 2.4rem;
    cursor: pointer;
}

.pge1-nav-list {
    list-style: none;
}

.pge1-nav-item {
    margin-bottom: 0.5rem;
}

.pge1-nav-link {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--pge1-text-primary);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 0.6rem;
    transition: background 0.3s ease;
}

.pge1-nav-link:hover {
    background: var(--pge1-bg-card);
    color: var(--pge1-accent);
}

/* Overlay */
.pge1-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;
}

.gamee19c-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.pge1-main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .pge1-main {
        padding-bottom: 80px;
    }
}

/* Hero Carousel */
.pge1-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.gamee19c-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.gamee19c-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pge1-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.gamee19c-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.gamee19c-dot-active {
    background: var(--pge1-accent);
}

/* Section Title */
.pge1-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--pge1-text-primary);
    text-align: center;
}

.pge1-section-subtitle {
    font-size: 1.4rem;
    color: var(--pge1-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.pge1-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pge1-game-card {
    background: var(--pge1-bg-card);
    border-radius: 0.8rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pge1-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.pge1-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.pge1-game-name {
    font-size: 1.1rem;
    text-align: center;
    padding: 0.6rem;
    color: var(--pge1-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Badge */
.pge1-category-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--pge1-bg-card);
    color: var(--pge1-text-secondary);
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Info Card */
.pge1-info-card {
    background: var(--pge1-bg-secondary);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.pge1-info-card h3 {
    font-size: 1.6rem;
    color: var(--pge1-text-secondary);
    margin-bottom: 1rem;
}

.pge1-info-card p {
    font-size: 1.3rem;
    color: var(--pge1-text-primary);
    line-height: 1.6;
}

/* Feature List */
.pge1-feature-list {
    list-style: none;
}

.pge1-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.pge1-feature-icon {
    font-size: 2rem;
    color: var(--pge1-accent);
}

.pge1-feature-text {
    font-size: 1.3rem;
    color: var(--pge1-text-primary);
}

/* Promo Banner */
.pge1-promo-banner {
    background: linear-gradient(135deg, var(--pge1-bg-card), var(--pge1-accent));
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.pge1-promo-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pge1-promo-text {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Stats Grid */
.pge1-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pge1-stat-card {
    background: var(--pge1-bg-secondary);
    border-radius: 0.8rem;
    padding: 1.5rem;
    text-align: center;
}

.pge1-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pge1-accent);
}

.pge1-stat-label {
    font-size: 1.2rem;
    color: var(--pge1-text-muted);
}

/* Testimonial */
.pge1-testimonial {
    background: var(--pge1-bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--pge1-accent);
}

.pge1-testimonial-text {
    font-size: 1.3rem;
    color: var(--pge1-text-primary);
    margin-bottom: 1rem;
    font-style: italic;
}

.pge1-testimonial-author {
    font-size: 1.2rem;
    color: var(--pge1-text-secondary);
}

/* Footer */
.pge1-footer {
    background: var(--pge1-bg-secondary);
    padding: 3rem 1.5rem 2rem;
    margin-top: 2rem;
}

.pge1-footer-inner {
    max-width: 430px;
    margin: 0 auto;
}

.pge1-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.pge1-footer-desc {
    font-size: 1.3rem;
    color: var(--pge1-text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.pge1-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.pge1-footer-link {
    padding: 0.6rem 1.2rem;
    background: var(--pge1-bg-card);
    color: var(--pge1-text-primary);
    text-decoration: none;
    border-radius: 0.6rem;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.pge1-footer-link:hover {
    background: var(--pge1-accent);
}

.pge1-footer-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--pge1-text-muted);
    padding-top: 1.5rem;
    border-top: 1px solid var(--pge1-border);
}

/* Bottom Navigation */
.pge1-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--pge1-bg-secondary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.pge1-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--pge1-text-muted);
    transition: color 0.3s ease;
    cursor: pointer;
}

.pge1-bottom-nav-item:hover,
.pge1-bottom-nav-item.active {
    color: var(--pge1-accent);
}

.pge1-bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.pge1-bottom-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .pge1-bottom-nav {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pge1-header-actions .pge1-btn {
        padding: 0.6rem 1rem;
        font-size: 1.2rem;
    }

    .pge1-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .pge1-game-name {
        font-size: 1rem;
        padding: 0.4rem;
    }
}

/* Text Link Style */
.pge1-text-link {
    color: var(--pge1-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pge1-text-link:hover {
    color: var(--pge1-accent);
    text-decoration: underline;
}

/* FAQ Accordion */
.pge1-faq-item {
    background: var(--pge1-bg-secondary);
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.pge1-faq-question {
    padding: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pge1-text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pge1-faq-answer {
    padding: 0 1.5rem 1.5rem;
    font-size: 1.3rem;
    color: var(--pge1-text-muted);
    line-height: 1.6;
}

/* Step List */
.pge1-step-list {
    counter-reset: step;
}

.pge1-step-item {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 1.5rem;
}

.pge1-step-item::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.8rem;
    height: 2.8rem;
    background: var(--pge1-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
}

/* Payment Methods */
.pge1-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.pge1-payment-item {
    background: var(--pge1-bg-card);
    padding: 1rem 1.5rem;
    border-radius: 0.6rem;
    font-size: 1.2rem;
    color: var(--pge1-text-primary);
}

/* Winner List */
.pge1-winner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--pge1-bg-secondary);
    border-radius: 0.6rem;
    margin-bottom: 0.8rem;
}

.pge1-winner-game {
    font-size: 1.3rem;
    color: var(--pge1-text-primary);
}

.pge1-winner-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pge1-success);
}

/* Highlight Box */
.pge1-highlight-box {
    background: linear-gradient(135deg, var(--pge1-bg-card), rgba(233, 69, 96, 0.2));
    border: 1px solid var(--pge1-accent);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.pge1-highlight-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pge1-text-secondary);
    margin-bottom: 0.8rem;
}

.pge1-highlight-text {
    font-size: 1.3rem;
    color: var(--pge1-text-primary);
}
