/**
 * k777 Main Stylesheet - v1.0
 * Prefix: pg00-
 * All classes use pg00- prefix for namespace isolation
 * Mobile-first responsive design (max-width: 430px)
 */

/* CSS Variables */
:root {
    --pg00-primary: #8A2BE2;
    --pg00-secondary: #6A5ACD;
    --pg00-accent: #E6E6FA;
    --pg00-bg-dark: #141414;
    --pg00-bg-card: #1a1a2e;
    --pg00-text-light: #E6E6FA;
    --pg00-text-muted: #999999;
    --pg00-border: #2a2a4a;
    --pg00-gold: #FFD700;
    --pg00-success: #00C853;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--pg00-bg-dark);
    color: var(--pg00-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.pg00-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header Styles */
.pg00-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--pg00-bg-dark) 0%, rgba(20, 20, 20, 0.95) 100%);
    border-bottom: 1px solid var(--pg00-border);
    padding: 0.8rem 0;
}

.pg00-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    max-width: 430px;
    margin: 0 auto;
}

.pg00-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pg00-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.pg00-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pg00-primary) 0%, var(--pg00-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pg00-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pg00-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-height: 36px;
}

.pg00-btn-primary {
    background: linear-gradient(135deg, var(--pg00-primary) 0%, var(--pg00-secondary) 100%);
    color: var(--pg00-text-light);
}

.pg00-btn-secondary {
    background: transparent;
    border: 1px solid var(--pg00-primary);
    color: var(--pg00-primary);
}

.pg00-btn:hover {
    transform: scale(1.05);
}

.pg00-menu-btn {
    background: transparent;
    border: none;
    color: var(--pg00-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Menu */
.pg00-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pg00-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    border-left: 1px solid var(--pg00-border);
}

.pg00-menu-active {
    right: 0;
}

.pg00-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pg00-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pg00-close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--pg00-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.pg00-menu-list {
    list-style: none;
    margin-top: 3rem;
}

.pg00-menu-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--pg00-border);
}

.pg00-menu-item a {
    display: block;
    color: var(--pg00-text-light);
    font-size: 1.4rem;
    transition: color 0.2s;
}

.pg00-menu-item a:hover {
    color: var(--pg00-primary);
}

/* Main Content */
.pg00-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Carousel */
.pg00-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.pg00-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.pg00-carousel-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.pg00-slide-active {
    opacity: 1;
}

.pg00-carousel-slide img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.pg00-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.pg00-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.pg00-dot-active {
    background: var(--pg00-primary);
}

/* Section Styles */
.pg00-section {
    padding: 1.5rem 0;
}

.pg00-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--pg00-text-light);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pg00-section-title i {
    color: var(--pg00-primary);
}

/* Game Grid */
.pg00-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.pg00-game-card {
    background: var(--pg00-bg-card);
    border-radius: 8px;
    padding: 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--pg00-border);
}

.pg00-game-card:hover {
    transform: translateY(-2px);
    border-color: var(--pg00-primary);
}

.pg00-game-card img {
    width: 100%;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.4rem;
}

.pg00-game-name {
    font-size: 1rem;
    color: var(--pg00-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Tabs */
.pg00-category-tabs {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
    scrollbar-width: none;
}

.pg00-category-tabs::-webkit-scrollbar {
    display: none;
}

.pg00-category-tab {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: var(--pg00-bg-card);
    border-radius: 20px;
    font-size: 1.2rem;
    color: var(--pg00-text-muted);
    border: 1px solid var(--pg00-border);
    cursor: pointer;
    transition: all 0.2s;
}

.pg00-category-tab.pg00-active {
    background: var(--pg00-primary);
    color: var(--pg00-text-light);
    border-color: var(--pg00-primary);
}

/* Info Cards */
.pg00-info-card {
    background: var(--pg00-bg-card);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--pg00-border);
}

.pg00-info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--pg00-primary);
}

.pg00-info-card p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--pg00-text-muted);
}

.pg00-info-card ul {
    list-style: none;
    padding-left: 0;
}

.pg00-info-card li {
    padding: 0.4rem 0;
    font-size: 1.2rem;
    color: var(--pg00-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pg00-info-card li i {
    color: var(--pg00-success);
    font-size: 1rem;
}

/* Promo Link Styles */
.pg00-promo-link {
    color: var(--pg00-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.pg00-promo-link:hover {
    color: var(--pg00-accent);
}

.pg00-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--pg00-primary) 0%, var(--pg00-secondary) 100%);
    color: var(--pg00-text-light);
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.2s;
    border: none;
}

.pg00-promo-btn:hover {
    transform: scale(1.05);
}

/* Bottom Navigation */
.pg00-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, var(--pg00-bg-dark) 100%);
    border-top: 1px solid var(--pg00-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.pg00-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--pg00-text-muted);
    text-decoration: none;
}

.pg00-bottom-nav-item:hover {
    color: var(--pg00-primary);
    transform: scale(1.1);
}

.pg00-bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
}

.pg00-bottom-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.pg00-bottom-nav-item.pg00-active {
    color: var(--pg00-primary);
}

/* Footer */
.pg00-footer {
    background: var(--pg00-bg-card);
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--pg00-border);
}

.pg00-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.pg00-footer-links a {
    color: var(--pg00-text-muted);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.pg00-footer-links a:hover {
    color: var(--pg00-primary);
}

.pg00-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pg00-partners img {
    width: 40px;
    height: 24px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.pg00-partners img:hover {
    opacity: 1;
}

.pg00-copyright {
    text-align: center;
    font-size: 1rem;
    color: var(--pg00-text-muted);
}

/* Utility Classes */
.pg00-text-center {
    text-align: center;
}

.pg00-mt-1 {
    margin-top: 1rem;
}

.pg00-mb-1 {
    margin-bottom: 1rem;
}

.pg00-hidden-mobile {
    display: none;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .pg00-bottom-nav {
        display: none;
    }

    .pg00-main {
        padding-bottom: 2rem;
    }

    .pg00-container {
        max-width: 768px;
    }

    .pg00-header-inner {
        max-width: 768px;
    }

    .pg00-menu-btn {
        display: none;
    }

    .pg00-hidden-mobile {
        display: flex;
    }

    .pg00-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .pg00-carousel-slide img {
        height: 280px;
    }
}

/* Animation Classes */
@keyframes pg00-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.pg00-pulse {
    animation: pg00-pulse 2s infinite;
}

/* H1 Title Style */
.pg00-page-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 1rem 0;
    background: linear-gradient(135deg, var(--pg00-primary) 0%, var(--pg00-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FAQ Styles */
.pg00-faq-item {
    background: var(--pg00-bg-card);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border: 1px solid var(--pg00-border);
    overflow: hidden;
}

.pg00-faq-question {
    padding: 1rem;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--pg00-text-light);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pg00-faq-question i {
    color: var(--pg00-primary);
}

.pg00-faq-answer {
    padding: 0 1rem 1rem;
    font-size: 1.2rem;
    color: var(--pg00-text-muted);
    line-height: 1.6;
}

/* Steps List */
.pg00-steps-list {
    counter-reset: step-counter;
}

.pg00-step-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.pg00-step-number {
    width: 28px;
    height: 28px;
    background: var(--pg00-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--pg00-text-light);
    flex-shrink: 0;
}

.pg00-step-content {
    flex: 1;
}

.pg00-step-content h4 {
    font-size: 1.3rem;
    color: var(--pg00-text-light);
    margin-bottom: 0.3rem;
}

.pg00-step-content p {
    font-size: 1.1rem;
    color: var(--pg00-text-muted);
}
