/**
 * Okgames App APK - Main Stylesheet
 * Version: 1.0.0
 * Prefix: pgbe-
 * Colors: #BBBBBB | #5D5D5D | #34495E
 */

/* CSS Variables */
:root {
    --pgbe-primary: #34495E;
    --pgbe-secondary: #5D5D5D;
    --pgbe-accent: #BBBBBB;
    --pgbe-dark: #1a252f;
    --pgbe-light: #f5f6f7;
    --pgbe-white: #ffffff;
    --pgbe-gradient: linear-gradient(135deg, #34495E 0%, #5D5D5D 100%);
    --pgbe-shadow: 0 4px 15px rgba(52, 73, 94, 0.3);
    --pgbe-radius: 12px;
    --pgbe-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--pgbe-light);
    color: var(--pgbe-dark);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 430px;
    margin: 0 auto;
}

/* Header */
.pgbe-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: var(--pgbe-primary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transition: var(--pgbe-transition);
}

.pgbe-header-scrolled {
    background: var(--pgbe-dark);
    box-shadow: var(--pgbe-shadow);
}

.pgbe-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.pgbe-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.pgbe-logo-text {
    color: var(--pgbe-white);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pgbe-header-actions {
    display: flex;
    gap: 10px;
}

.pgbe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--pgbe-transition);
    text-decoration: none;
}

.pgbe-btn-login {
    background: transparent;
    color: var(--pgbe-white);
    border: 1px solid var(--pgbe-accent);
}

.pgbe-btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pgbe-btn-register {
    background: var(--pgbe-accent);
    color: var(--pgbe-dark);
}

.pgbe-btn-register:hover {
    background: var(--pgbe-white);
    transform: translateY(-2px);
}

.pgbe-menu-btn {
    background: transparent;
    border: none;
    color: var(--pgbe-white);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

/* Mobile Menu */
.pgbe-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--pgbe-transition);
}

.pgbe-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pgbe-mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pgbe-dark);
    z-index: 9999;
    transition: var(--pgbe-transition);
    overflow-y: auto;
}

.pgbe-menu-active {
    left: 0;
}

.pgbe-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pgbe-menu-close {
    background: transparent;
    border: none;
    color: var(--pgbe-white);
    font-size: 28px;
    cursor: pointer;
}

.pgbe-menu-nav {
    padding: 20px;
}

.pgbe-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--pgbe-accent);
    text-decoration: none;
    font-size: 15px;
    border-radius: 8px;
    transition: var(--pgbe-transition);
    margin-bottom: 6px;
}

.pgbe-menu-link:hover,
.pgbe-menu-link.active {
    background: var(--pgbe-primary);
    color: var(--pgbe-white);
}

/* Main Content */
main {
    padding-top: 68px;
    padding-bottom: 80px;
}

/* Hero Slider */
.pgbe-hero-slider {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.pgbe-slides-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.pgbe-slide {
    min-width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.pgbe-slide-active {
    opacity: 1;
    z-index: 1;
}

.pgbe-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgbe-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.pgbe-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--pgbe-transition);
}

.pgbe-dot-active {
    background: var(--pgbe-white);
    transform: scale(1.2);
}

/* Section Styles */
.pgbe-section {
    padding: 24px 16px;
}

.pgbe-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--pgbe-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pgbe-section-title i {
    color: var(--pgbe-secondary);
}

/* Game Categories */
.pgbe-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 16px;
    scrollbar-width: none;
}

.pgbe-categories::-webkit-scrollbar {
    display: none;
}

.pgbe-category-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--pgbe-white);
    border: 1px solid var(--pgbe-accent);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--pgbe-secondary);
    cursor: pointer;
    transition: var(--pgbe-transition);
}

.pgbe-category-tab:hover,
.pgbe-category-tab.active {
    background: var(--pgbe-primary);
    color: var(--pgbe-white);
    border-color: var(--pgbe-primary);
}

/* Game Grid */
.pgbe-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.pgbe-game-card {
    background: var(--pgbe-white);
    border-radius: var(--pgbe-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: var(--pgbe-transition);
}

.pgbe-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pgbe-shadow);
}

.pgbe-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.pgbe-game-name {
    padding: 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--pgbe-dark);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Features Section */
.pgbe-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pgbe-feature-card {
    background: var(--pgbe-white);
    border-radius: var(--pgbe-radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--pgbe-transition);
}

.pgbe-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pgbe-shadow);
}

.pgbe-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--pgbe-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--pgbe-white);
    font-size: 24px;
}

.pgbe-feature-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--pgbe-primary);
    margin-bottom: 6px;
}

.pgbe-feature-desc {
    font-size: 12px;
    color: var(--pgbe-secondary);
}

/* Promo Banner */
.pgbe-promo-banner {
    background: var(--pgbe-gradient);
    border-radius: var(--pgbe-radius);
    padding: 24px 20px;
    margin: 20px 0;
    text-align: center;
    color: var(--pgbe-white);
}

.pgbe-promo-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pgbe-promo-text {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.pgbe-promo-btn {
    background: var(--pgbe-accent);
    color: var(--pgbe-dark);
    padding: 12px 32px;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--pgbe-transition);
}

.pgbe-promo-btn:hover {
    background: var(--pgbe-white);
    transform: scale(1.05);
}

/* Why Choose Section */
.pgbe-why-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pgbe-why-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--pgbe-white);
    padding: 16px;
    border-radius: var(--pgbe-radius);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pgbe-why-icon {
    width: 36px;
    height: 36px;
    background: var(--pgbe-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pgbe-white);
    font-size: 18px;
    flex-shrink: 0;
}

.pgbe-why-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--pgbe-primary);
    margin-bottom: 4px;
}

.pgbe-why-content p {
    font-size: 13px;
    color: var(--pgbe-secondary);
}

/* CTA Section */
.pgbe-cta {
    background: var(--pgbe-dark);
    padding: 32px 20px;
    text-align: center;
    border-radius: var(--pgbe-radius);
    margin: 20px 0;
}

.pgbe-cta h3 {
    color: var(--pgbe-white);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pgbe-cta p {
    color: var(--pgbe-accent);
    font-size: 14px;
    margin-bottom: 20px;
}

.pgbe-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Footer */
.pgbe-footer {
    background: var(--pgbe-dark);
    padding: 32px 16px 20px;
    color: var(--pgbe-accent);
}

.pgbe-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.pgbe-footer-logo img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

.pgbe-footer-logo span {
    color: var(--pgbe-white);
    font-size: 18px;
    font-weight: 700;
}

.pgbe-footer-desc {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.pgbe-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.pgbe-footer-link {
    color: var(--pgbe-accent);
    text-decoration: none;
    font-size: 13px;
    transition: var(--pgbe-transition);
}

.pgbe-footer-link:hover {
    color: var(--pgbe-white);
}

.pgbe-partners {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-bottom: 20px;
}

.pgbe-partners-title {
    font-size: 12px;
    color: var(--pgbe-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pgbe-partners-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.pgbe-partners-logos img {
    height: 28px;
    opacity: 0.7;
    transition: var(--pgbe-transition);
}

.pgbe-partners-logos img:hover {
    opacity: 1;
}

.pgbe-copyright {
    text-align: center;
    font-size: 12px;
    color: var(--pgbe-secondary);
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation */
.pgbe-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: var(--pgbe-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

.pgbe-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 52px;
    color: var(--pgbe-accent);
    text-decoration: none;
    cursor: pointer;
    transition: var(--pgbe-transition);
    border-radius: 12px;
    padding: 4px 8px;
}

.pgbe-nav-item:hover,
.pgbe-nav-item.active {
    color: var(--pgbe-white);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.pgbe-nav-item i,
.pgbe-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.pgbe-nav-item ion-icon {
    font-size: 26px;
    margin-bottom: 4px;
}

.pgbe-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .pgbe-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 40px;
    }

    .pgbe-menu-btn {
        display: none;
    }

    .pgbe-header {
        padding: 12px 24px;
    }

    .pgbe-section {
        padding: 32px 24px;
    }

    .pgbe-games-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }

    .pgbe-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Utility Classes */
.pgbe-text-center {
    text-align: center;
}

.pgbe-mt-20 {
    margin-top: 20px;
}

.pgbe-mb-20 {
    margin-bottom: 20px;
}

.pgbe-hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pgbe-animate {
    animation: fadeIn 0.5s ease forwards;
}
