/**
 * Ninong Gaming APK - Main Stylesheet
 * Version: 1.0.0
 * Prefix: pg3a-
 * Color Palette: #66CDAA | #FFB6C1 | #FFFFBA | #0A0A0A | #FFB3BA
 */

/* CSS Variables */
:root {
    --pg3a-primary: #66CDAA;
    --pg3a-secondary: #FFB6C1;
    --pg3a-accent: #FFB3BA;
    --pg3a-light: #FFFFBA;
    --pg3a-dark: #0A0A0A;
    --pg3a-text: #FFFFBA;
    --pg3a-text-light: #FFFFFF;
    --pg3a-bg-card: #1A1A1A;
    --pg3a-gradient: linear-gradient(135deg, #66CDAA 0%, #FFB6C1 100%);
    --pg3a-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --pg3a-radius: 12px;
}

/* Base Styles */
html {
    font-size: 62.5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--pg3a-dark);
    color: var(--pg3a-text);
    line-height: 1.5;
    font-size: 1.6rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.pg3a-container {
    width: 100%;
    padding: 0 1.5rem;
    margin: 0 auto;
}

/* Header */
.pg3a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.pg3a-header-scrolled {
    box-shadow: 0 2px 20px rgba(102, 205, 170, 0.2);
}

.pg3a-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg3a-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg3a-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.pg3a-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--pg3a-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pg3a-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg3a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 44px;
}

.pg3a-btn-primary {
    background: var(--pg3a-gradient);
    color: var(--pg3a-dark);
}

.pg3a-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 205, 170, 0.4);
}

.pg3a-btn-secondary {
    background: transparent;
    border: 2px solid var(--pg3a-primary);
    color: var(--pg3a-primary);
}

.pg3a-btn-secondary:hover {
    background: var(--pg3a-primary);
    color: var(--pg3a-dark);
}

.pg3a-menu-btn {
    background: transparent;
    border: none;
    color: var(--pg3a-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.pg3a-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--pg3a-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    border-left: 1px solid rgba(102, 205, 170, 0.2);
}

.pg3a-menu-active {
    right: 0;
}

.pg3a-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pg3a-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pg3a-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(102, 205, 170, 0.2);
}

.pg3a-close-menu {
    background: transparent;
    border: none;
    color: var(--pg3a-secondary);
    font-size: 2.4rem;
    cursor: pointer;
}

.pg3a-menu-list {
    list-style: none;
}

.pg3a-menu-item {
    margin-bottom: 1rem;
}

.pg3a-menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--pg3a-text);
    font-size: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pg3a-menu-link:hover {
    background: rgba(102, 205, 170, 0.1);
    color: var(--pg3a-primary);
}

/* Carousel */
.pg3a-carousel {
    position: relative;
    width: 100%;
    margin-top: 60px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.pg3a-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.pg3a-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.pg3a-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pg3a-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg3a-dot-active {
    background: var(--pg3a-primary);
    transform: scale(1.2);
}

/* Main Content */
.pg3a-main {
    padding: 2rem 1.5rem;
    padding-bottom: 100px;
}

/* Section Title */
.pg3a-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: var(--pg3a-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Game Grid */
.pg3a-game-section {
    margin-bottom: 3rem;
}

.pg3a-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--pg3a-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pg3a-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg3a-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pg3a-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pg3a-game-item:hover {
    transform: scale(1.05);
}

.pg3a-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--pg3a-shadow);
}

.pg3a-game-name {
    font-size: 1.1rem;
    color: var(--pg3a-text);
    margin-top: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Info Section */
.pg3a-info-section {
    background: var(--pg3a-bg-card);
    border-radius: var(--pg3a-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(102, 205, 170, 0.2);
}

.pg3a-info-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--pg3a-primary);
    margin-bottom: 1rem;
}

.pg3a-info-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--pg3a-text);
}

.pg3a-info-text a {
    color: var(--pg3a-secondary);
    font-weight: 600;
}

.pg3a-info-text a:hover {
    text-decoration: underline;
}

/* Features List */
.pg3a-features-list {
    list-style: none;
    padding: 0;
}

.pg3a-features-list li {
    padding: 1rem 0;
    padding-left: 2.5rem;
    position: relative;
    border-bottom: 1px solid rgba(102, 205, 170, 0.1);
    font-size: 1.4rem;
}

.pg3a-features-list li:last-child {
    border-bottom: none;
}

.pg3a-features-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--pg3a-primary);
    font-weight: bold;
}

/* FAQ Section */
.pg3a-faq-item {
    background: var(--pg3a-bg-card);
    border-radius: var(--pg3a-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(102, 205, 170, 0.2);
}

.pg3a-faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--pg3a-primary);
    font-size: 1.5rem;
}

.pg3a-faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--pg3a-text);
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Promo Button */
.pg3a-promo-btn {
    display: block;
    width: 100%;
    padding: 1.5rem;
    background: var(--pg3a-gradient);
    color: var(--pg3a-dark);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    border-radius: var(--pg3a-radius);
    margin: 2rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.pg3a-promo-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 205, 170, 0.4);
}

/* Footer */
.pg3a-footer {
    background: var(--pg3a-bg-card);
    padding: 3rem 1.5rem;
    padding-bottom: 100px;
    border-top: 1px solid rgba(102, 205, 170, 0.2);
}

.pg3a-footer-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pg3a-primary);
    margin-bottom: 1.5rem;
}

.pg3a-footer-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.pg3a-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pg3a-footer-link {
    color: var(--pg3a-secondary);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.pg3a-footer-link:hover {
    color: var(--pg3a-primary);
}

.pg3a-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.pg3a-partner-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pg3a-partner-img:hover {
    opacity: 1;
}

.pg3a-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 205, 170, 0.1);
}

/* Bottom Navigation */
.pg3a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(102, 205, 170, 0.3);
}

.pg3a-nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pg3a-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 60px;
    min-height: 60px;
    justify-content: center;
    transition: all 0.3s ease;
}

.pg3a-nav-item:hover {
    transform: scale(1.1);
}

.pg3a-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    color: var(--pg3a-text);
    transition: color 0.3s ease;
}

.pg3a-nav-item:hover .pg3a-nav-icon,
.pg3a-nav-item.active .pg3a-nav-icon {
    color: var(--pg3a-primary);
}

.pg3a-nav-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.pg3a-nav-item:hover .pg3a-nav-text,
.pg3a-nav-item.active .pg3a-nav-text {
    color: var(--pg3a-primary);
}

/* Desktop Hidden */
@media (min-width: 769px) {
    .pg3a-bottom-nav {
        display: none;
    }
    .pg3a-footer {
        padding-bottom: 3rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pg3a-main {
        padding-bottom: 100px;
    }
}

/* Utility Classes */
.pg3a-text-center {
    text-align: center;
}

.pg3a-mt-2 {
    margin-top: 2rem;
}

.pg3a-mb-2 {
    margin-bottom: 2rem;
}

.pg3a-hidden {
    display: none;
}

/* Animations */
@keyframes pg3a-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pg3a-animate {
    animation: pg3a-fadeIn 0.5s ease forwards;
}
