/**
 * nustar ph apk - Main Stylesheet
 * Class Prefix: pg3b-
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --pg3b-primary: #9932CC;
    --pg3b-secondary: #004D40;
    --pg3b-accent: #E0FFFF;
    --pg3b-bg-dark: #34495E;
    --pg3b-bg-light: #E8F5E8;
    --pg3b-text-light: #E0FFFF;
    --pg3b-text-dark: #34495E;
    --pg3b-gray: #6C757D;
    --pg3b-gradient: linear-gradient(135deg, #004D40 0%, #34495E 50%, #9932CC 100%);
    --pg3b-radius: 8px;
    --pg3b-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--pg3b-text-light);
    background: var(--pg3b-bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.pg3b-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.pg3b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #004D40 0%, #34495E 100%);
    padding: 0.8rem 0;
    box-shadow: var(--pg3b-shadow);
}

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

.pg3b-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pg3b-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.pg3b-logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pg3b-accent);
    white-space: nowrap;
}

.pg3b-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pg3b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: var(--pg3b-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 60px;
}

.pg3b-btn-login {
    background: transparent;
    border: 1.5px solid var(--pg3b-accent);
    color: var(--pg3b-accent);
}

.pg3b-btn-login:hover {
    background: var(--pg3b-accent);
    color: var(--pg3b-secondary);
}

.pg3b-btn-register {
    background: var(--pg3b-primary);
    color: #fff;
}

.pg3b-btn-register:hover {
    background: #7B28A8;
    transform: translateY(-2px);
}

.pg3b-menu-toggle {
    background: transparent;
    border: none;
    color: var(--pg3b-accent);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.pg3b-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;
}

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

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

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

.pg3b-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--pg3b-accent);
    font-size: 2.4rem;
    cursor: pointer;
}

.pg3b-menu-links {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pg3b-menu-link {
    color: var(--pg3b-text-light);
    font-size: 1.4rem;
    padding: 1rem;
    border-radius: var(--pg3b-radius);
    transition: all 0.3s ease;
}

.pg3b-menu-link:hover {
    background: var(--pg3b-primary);
    color: #fff;
}

/* Main Content */
.pg3b-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Carousel */
.pg3b-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.pg3b-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.pg3b-slide-active {
    opacity: 1;
}

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

/* Section Styles */
.pg3b-section {
    padding: 2rem 1.2rem;
}

.pg3b-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg3b-accent);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.pg3b-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--pg3b-primary);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Game Grid */
.pg3b-game-section {
    margin-bottom: 2.5rem;
}

.pg3b-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pg3b-primary);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--pg3b-primary);
}

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

.pg3b-game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--pg3b-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.pg3b-game-card:hover {
    transform: translateY(-3px);
    background: rgba(153, 50, 204, 0.2);
}

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

.pg3b-game-name {
    font-size: 1rem;
    color: var(--pg3b-text-light);
    padding: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Info Card */
.pg3b-info-card {
    background: linear-gradient(135deg, rgba(0, 77, 64, 0.8) 0%, rgba(52, 73, 94, 0.8) 100%);
    border-radius: var(--pg3b-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(153, 50, 204, 0.3);
}

.pg3b-info-card h3 {
    color: var(--pg3b-primary);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.pg3b-info-card p {
    color: var(--pg3b-text-light);
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Promo Banner */
.pg3b-promo-banner {
    background: var(--pg3b-gradient);
    border-radius: var(--pg3b-radius);
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.pg3b-promo-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
}

.pg3b-promo-text {
    font-size: 1.2rem;
    color: var(--pg3b-accent);
    margin-bottom: 1rem;
}

.pg3b-promo-btn {
    background: #fff;
    color: var(--pg3b-primary);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.3rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.pg3b-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Footer */
.pg3b-footer {
    background: linear-gradient(180deg, #34495E 0%, #004D40 100%);
    padding: 2rem 1rem;
    text-align: center;
}

.pg3b-footer-brand {
    margin-bottom: 1.5rem;
}

.pg3b-footer-brand p {
    font-size: 1.1rem;
    color: var(--pg3b-text-light);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

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

.pg3b-footer-link {
    background: var(--pg3b-primary);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.pg3b-footer-link:hover {
    background: #7B28A8;
    transform: translateY(-2px);
}

.pg3b-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pg3b-footer-nav a {
    color: var(--pg3b-accent);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.pg3b-footer-nav a:hover {
    color: var(--pg3b-primary);
}

.pg3b-copyright {
    font-size: 1rem;
    color: var(--pg3b-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

/* Bottom Navigation */
.pg3b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, #004D40 0%, #34495E 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    border-top: 2px solid var(--pg3b-primary);
}

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

.pg3b-nav-item:hover,
.pg3b-nav-item.pg3b-nav-active {
    color: var(--pg3b-primary);
    transform: scale(1.1);
}

.pg3b-nav-item i,
.pg3b-nav-item .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
}

.pg3b-nav-item ion-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.pg3b-nav-text {
    font-size: 10px;
    text-align: center;
}

/* Partners */
.pg3b-partners {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.pg3b-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.pg3b-partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .pg3b-main {
        padding-bottom: 80px;
    }
}

@media (min-width: 769px) {
    .pg3b-bottom-nav {
        display: none;
    }

    .pg3b-main {
        padding-bottom: 20px;
    }

    .pg3b-container {
        max-width: 600px;
    }
}

/* Utility Classes */
.pg3b-text-center {
    text-align: center;
}

.pg3b-mb-1 {
    margin-bottom: 1rem;
}

.pg3b-mb-2 {
    margin-bottom: 2rem;
}

.pg3b-highlight {
    color: var(--pg3b-primary);
    font-weight: 600;
}

.pg3b-link-text {
    color: var(--pg3b-primary);
    text-decoration: underline;
    cursor: pointer;
}

.pg3b-link-text:hover {
    color: var(--pg3b-accent);
}

/* Animations */
@keyframes pg3b-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pg3b-animate {
    animation: pg3b-fadeIn 0.5s ease forwards;
}

/* List Styles */
.pg3b-list {
    list-style: none;
    padding: 0;
}

.pg3b-list li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.2rem;
    color: var(--pg3b-text-light);
}

.pg3b-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--pg3b-primary);
    border-radius: 50%;
}

/* Badge */
.pg3b-badge {
    display: inline-block;
    background: var(--pg3b-primary);
    color: #fff;
    font-size: 1rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    margin-left: 0.5rem;
}
