/**
 * MaxGaming - Core Stylesheet
 * Website: maxgaming.sbs
 * Prefix: pgb1-
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --pgb1-primary: #1E90FF;
    --pgb1-secondary: #00CED1;
    --pgb1-accent: #FA8072;
    --pgb1-dark: #333333;
    --pgb1-light: #E0FFFF;
    --pgb1-bg: #1a1a2e;
    --pgb1-bg-alt: #16213e;
    --pgb1-card-bg: #0f3460;
    --pgb1-text: #E0FFFF;
    --pgb1-text-muted: #a0a0c0;
    --pgb1-border: rgba(224, 255, 255, 0.1);
    --pgb1-gradient: linear-gradient(135deg, #1E90FF 0%, #00CED1 100%);
    --pgb1-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', system-ui, -apple-system, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--pgb1-text);
    background: var(--pgb1-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--pgb1-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--pgb1-secondary);
}

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

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

.pgb1-wrapper {
    padding: 2rem 0;
}

/* Header */
.pgb1-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--pgb1-bg-alt) 0%, rgba(22, 33, 62, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--pgb1-border);
    transition: box-shadow 0.3s ease;
}

.pgb1-header-shadow {
    box-shadow: var(--pgb1-shadow);
}

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

.pgb1-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

.pgb1-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--pgb1-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.pgb1-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: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    gap: 0.5rem;
}

.pgb1-btn-primary {
    background: var(--pgb1-gradient);
    color: #fff;
}

.pgb1-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
}

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

.pgb1-btn-secondary:hover {
    background: var(--pgb1-primary);
    color: #fff;
}

.pgb1-menu-toggle {
    background: none;
    border: none;
    color: var(--pgb1-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

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

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

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

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

.pgb1-nav-item {
    display: block;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--pgb1-border);
    color: var(--pgb1-text);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.pgb1-nav-item:hover {
    color: var(--pgb1-primary);
}

/* Main Content */
main {
    padding-top: 7rem;
}

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

/* Carousel/Slider */
.pgb1-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.pgb1-slides {
    position: relative;
}

.pgb1-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.pgb1-slide:first-child {
    display: block;
}

.pgb1-slide img {
    width: 100%;
    border-radius: 1rem;
}

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

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

.pgb1-dot-active {
    background: var(--pgb1-primary);
}

/* Sections */
.pgb1-section {
    padding: 2rem 0;
}

.pgb1-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--pgb1-text);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pgb1-section-title i {
    color: var(--pgb1-accent);
}

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

.pgb1-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.8rem;
    background: var(--pgb1-card-bg);
}

.pgb1-game-card:hover {
    transform: translateY(-3px);
}

.pgb1-game-icon {
    width: 6rem;
    height: 6rem;
    border-radius: 1rem;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

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

/* Category Section */
.pgb1-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.pgb1-category-title {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--pgb1-secondary);
}

/* Cards */
.pgb1-card {
    background: var(--pgb1-card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--pgb1-border);
}

.pgb1-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--pgb1-text);
}

.pgb1-card-text {
    color: var(--pgb1-text-muted);
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Promo Link */
.pgb1-promo-link {
    color: var(--pgb1-accent);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pgb1-promo-link:hover {
    color: var(--pgb1-secondary);
}

/* Footer */
.pgb1-footer {
    background: var(--pgb1-bg-alt);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--pgb1-border);
}

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

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

.pgb1-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.pgb1-footer-link {
    font-size: 1.2rem;
    color: var(--pgb1-text-muted);
    transition: color 0.3s ease;
}

.pgb1-footer-link:hover {
    color: var(--pgb1-primary);
}

.pgb1-footer-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.pgb1-footer-btn {
    padding: 1rem;
    font-size: 1.2rem;
}

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

/* Bottom Navigation (Mobile) */
.pgb1-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--pgb1-bg-alt) 0%, var(--pgb1-bg) 100%);
    border-top: 1px solid var(--pgb1-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

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

.pgb1-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    color: var(--pgb1-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.pgb1-nav-btn:hover,
.pgb1-nav-btn-active {
    color: var(--pgb1-primary);
    background: rgba(30, 144, 255, 0.1);
}

.pgb1-nav-btn i {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
}

.pgb1-nav-btn span {
    font-size: 1rem;
}

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

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

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

.pgb1-mt-2 {
    margin-top: 2rem;
}

.pgb1-hidden {
    display: none;
}

/* Lists */
.pgb1-list {
    list-style: none;
    padding: 0;
}

.pgb1-list-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--pgb1-border);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pgb1-list-item:last-child {
    border-bottom: none;
}

.pgb1-list-icon {
    color: var(--pgb1-accent);
    font-size: 1.8rem;
    flex-shrink: 0;
}

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

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

.pgb1-faq-answer {
    padding: 0 1.5rem 1.2rem;
    color: var(--pgb1-text-muted);
    font-size: 1.4rem;
}

/* Responsive Adjustments */
@media (max-width: 360px) {
    .pgb1-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pgb1-game-icon {
        width: 5rem;
        height: 5rem;
    }

    .pgb1-game-name {
        font-size: 1rem;
    }
}
