/**
 * ninong gaming - Theme Stylesheet
 * File: css/theme-5b87.css
 * Prefix: pg5b-
 */

/* CSS Variables */
:root {
    --pg5b-primary: #FFD700;
    --pg5b-secondary: #FFF176;
    --pg5b-bg: #333333;
    --pg5b-bg-dark: #1a1a1a;
    --pg5b-text: #FFFFFF;
    --pg5b-text-dark: #333333;
    --pg5b-accent: #FFD700;
    --pg5b-gradient: linear-gradient(135deg, #FFD700 0%, #FFF176 100%);
    --pg5b-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    --pg5b-radius: 8px;
    --pg5b-transition: all 0.3s ease;
    --vh: 1vh;
}

/* Base Reset */
* {
    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.5;
    background-color: var(--pg5b-bg);
    color: var(--pg5b-text);
    overflow-x: hidden;
}

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

/* Header */
.pg5b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--pg5b-bg-dark) 0%, var(--pg5b-bg) 100%);
    padding: 1rem 0;
    box-shadow: var(--pg5b-shadow);
}

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

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

.pg5b-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.pg5b-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pg5b-primary);
    letter-spacing: 0.5px;
}

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

.pg5b-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: var(--pg5b-radius);
    cursor: pointer;
    transition: var(--pg5b-transition);
    text-decoration: none;
}

.pg5b-btn-primary {
    background: var(--pg5b-gradient);
    color: var(--pg5b-text-dark);
}

.pg5b-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--pg5b-shadow);
}

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

.pg5b-btn-outline:hover {
    background: var(--pg5b-primary);
    color: var(--pg5b-text-dark);
}

.pg5b-menu-toggle {
    background: transparent;
    border: none;
    color: var(--pg5b-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

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

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

.pg5b-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;
}

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

.pg5b-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

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

.pg5b-menu-nav {
    list-style: none;
}

.pg5b-menu-nav li {
    margin-bottom: 0.5rem;
}

.pg5b-menu-nav a {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--pg5b-text);
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: var(--pg5b-radius);
    transition: var(--pg5b-transition);
}

.pg5b-menu-nav a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--pg5b-primary);
}

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

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

/* Hero Carousel */
.pg5b-hero {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.pg5b-slides {
    display: flex;
    width: 100%;
    height: 100%;
}

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

.pg5b-slide-active {
    opacity: 1;
    z-index: 1;
}

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

.pg5b-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 2;
}

.pg5b-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--pg5b-transition);
}

.pg5b-dot-active {
    background: var(--pg5b-primary);
    transform: scale(1.2);
}

/* Section Titles */
.pg5b-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg5b-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.pg5b-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--pg5b-gradient);
    border-radius: 2px;
}

/* Game Grid */
.pg5b-game-section {
    padding: 2rem 0;
}

.pg5b-game-category {
    margin-bottom: 2rem;
}

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

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

.pg5b-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--pg5b-transition);
}

.pg5b-game-item:hover {
    transform: translateY(-3px);
}

.pg5b-game-item:hover .pg5b-game-icon {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.pg5b-game-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    transition: var(--pg5b-transition);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.pg5b-game-name {
    font-size: 1.1rem;
    color: var(--pg5b-text);
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Info Sections */
.pg5b-info-section {
    background: linear-gradient(145deg, rgba(51, 51, 51, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-radius: var(--pg5b-radius);
    padding: 2rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.pg5b-info-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--pg5b-primary);
    margin-bottom: 1rem;
}

.pg5b-info-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.pg5b-info-list {
    list-style: none;
    padding-left: 0;
}

.pg5b-info-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
}

.pg5b-info-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--pg5b-primary);
    font-size: 1.2rem;
}

/* Promo Link Styles */
.pg5b-promo-link {
    color: var(--pg5b-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--pg5b-transition);
}

.pg5b-promo-link:hover {
    color: var(--pg5b-secondary);
    text-decoration: underline;
}

/* Bottom Navigation */
.pg5b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--pg5b-bg) 0%, var(--pg5b-bg-dark) 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: 1px solid rgba(255, 215, 0, 0.2);
}

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

.pg5b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--pg5b-transition);
    cursor: pointer;
    border-radius: 12px;
}

.pg5b-nav-item:hover,
.pg5b-nav-item.active {
    color: var(--pg5b-primary);
    background: rgba(255, 215, 0, 0.1);
}

.pg5b-nav-item i,
.pg5b-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.pg5b-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

/* Footer */
.pg5b-footer {
    background: var(--pg5b-bg-dark);
    padding: 3rem 0 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

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

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

.pg5b-footer-brand p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.pg5b-footer-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 215, 0, 0.1);
    color: var(--pg5b-primary);
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 20px;
    transition: var(--pg5b-transition);
}

.pg5b-footer-links a:hover {
    background: var(--pg5b-primary);
    color: var(--pg5b-text-dark);
}

.pg5b-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pg5b-footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--pg5b-transition);
}

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

.pg5b-footer-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Card Component */
.pg5b-card {
    background: rgba(51, 51, 51, 0.8);
    border-radius: var(--pg5b-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: var(--pg5b-transition);
}

.pg5b-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

/* Badge */
.pg5b-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--pg5b-gradient);
    color: var(--pg5b-text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 20px;
}

/* Responsive Typography */
@media (max-width: 380px) {
    html {
        font-size: 55%;
    }

    .pg5b-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Utility Classes */
.pg5b-text-center { text-align: center; }
.pg5b-text-gold { color: var(--pg5b-primary); }
.pg5b-mb-1 { margin-bottom: 1rem; }
.pg5b-mb-2 { margin-bottom: 2rem; }
.pg5b-mt-2 { margin-top: 2rem; }
.pg5b-hidden { display: none; }

/* Animation */
@keyframes pg5b-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pg5b-pulse {
    animation: pg5b-pulse 2s infinite;
}
