/**
 * PGPH88 Website CSS
 * All classes prefixed with 'vbe0-' for namespace isolation
 * Color scheme: #333333 (dark) | #ECF0F1 (light)
 */

/* CSS Custom Properties */
:root {
    /* Primary Colors */
    --vbe0-primary: #333333;
    --vbe0-primary-light: #4a4a4a;
    --vbe0-primary-dark: #1a1a1a;

    /* Background Colors */
    --vbe0-bg: #ECF0F1;
    --vbe0-bg-light: #ffffff;
    --vbe0-bg-dark: #d5dbdd;

    /* Text Colors */
    --vbe0-text: #333333;
    --vbe0-text-light: #2c3e50;
    --vbe0-text-lighter: #7f8c8d;
    --vbe0-text-white: #ffffff;

    /* Accent Colors */
    --vbe0-accent: #e74c3c;
    --vbe0-accent-hover: #c0392b;
    --vbe0-accent-light: #f39c12;

    /* Border Colors */
    --vbe0-border: #bdc3c7;
    --vbe0-border-light: #ecf0f1;

    /* Spacing */
    --vbe0-spacing-xs: 0.25rem;
    --vbe0-spacing-sm: 0.5rem;
    --vbe0-spacing-md: 1rem;
    --vbe0-spacing-lg: 1.5rem;
    --vbe0-spacing-xl: 2rem;

    /* Border Radius */
    --vbe0-radius-sm: 4px;
    --vbe0-radius-md: 8px;
    --vbe0-radius-lg: 12px;

    /* Shadows */
    --vbe0-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --vbe0-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --vbe0-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--vbe0-bg);
    color: var(--vbe0-text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--vbe0-spacing-md);
}

h1 {
    font-size: 2.4rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: var(--vbe0-spacing-md);
}

a {
    color: var(--vbe0-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--vbe0-accent-hover);
}

/* Container */
.vbe0-container {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 var(--vbe0-spacing-md);
    width: 100%;
}

.vbe0-wrapper {
    width: 100%;
    margin: 0 auto;
}

/* Header Styles */
.vbe0-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--vbe0-primary);
    color: var(--vbe0-text-white);
    z-index: 1000;
    box-shadow: var(--vbe0-shadow-md);
    transition: all 0.3s ease;
}

.vbe0-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--vbe0-spacing-sm) var(--vbe0-spacing-md);
}

.vbe0-logo {
    display: flex;
    align-items: center;
    gap: var(--vbe0-spacing-sm);
}

.vbe0-logo img {
    width: 32px;
    height: 32px;
    border-radius: var(--vbe0-radius-sm);
}

.vbe0-logo span {
    font-size: 1.4rem;
    font-weight: 700;
}

.vbe0-header-actions {
    display: flex;
    gap: var(--vbe0-spacing-sm);
}

.vbe0-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--vbe0-spacing-sm) var(--vbe0-spacing-md);
    border: none;
    border-radius: var(--vbe0-radius-sm);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vbe0-btn-primary {
    background-color: var(--vbe0-accent);
    color: var(--vbe0-text-white);
}

.vbe0-btn-primary:hover {
    background-color: var(--vbe0-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--vbe0-shadow-sm);
}

.vbe0-btn-outline {
    background-color: transparent;
    color: var(--vbe0-text-white);
    border: 2px solid var(--vbe0-text-white);
}

.vbe0-btn-outline:hover {
    background-color: var(--vbe0-text-white);
    color: var(--vbe0-primary);
}

/* Mobile Menu Toggle */
.vbe0-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: var(--vbe0-spacing-sm);
}

.vbe0-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--vbe0-text-white);
    transition: all 0.3s ease;
}

.vbe0-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.vbe0-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.vbe0-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Menu */
.vbe0-nav {
    background-color: var(--vbe0-primary);
    color: var(--vbe0-text-white);
    margin-top: 60px;
}

.vbe0-nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--vbe0-spacing-md);
    padding: var(--vbe0-spacing-md);
}

.vbe0-nav-item a {
    color: var(--vbe0-text-white);
    text-decoration: none;
    font-size: 1.1rem;
    padding: var(--vbe0-spacing-sm) var(--vbe0-spacing-md);
    border-radius: var(--vbe0-radius-sm);
    transition: all 0.3s ease;
}

.vbe0-nav-item a:hover {
    background-color: var(--vbe0-text-white);
    color: var(--vbe0-primary);
}

/* Mobile Menu */
#sitedbe-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--vbe0-primary);
    color: var(--vbe0-text-white);
    z-index: 9999;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
}

#sitedbe-mobile-menu.active {
    display: block;
}

#sitedbe-mobile-menu ul {
    list-style: none;
    padding: var(--vbe0-spacing-md);
}

#sitedbe-mobile-menu li {
    margin-bottom: var(--vbe0-spacing-sm);
}

#sitedbe-mobile-menu a {
    color: var(--vbe0-text-white);
    text-decoration: none;
    font-size: 1.2rem;
    padding: var(--vbe0-spacing-md);
    display: block;
    border-radius: var(--vbe0-radius-sm);
    transition: background-color 0.3s ease;
}

#sitedbe-mobile-menu a:hover {
    background-color: var(--vbe0-text-white);
    color: var(--vbe0-primary);
}

/* Main Content */
main {
    flex: 1;
    margin-top: 60px;
    padding-bottom: 80px; /* Space for bottom nav */
}

/* Carousel Styles */
.vbe0-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--vbe0-radius-lg);
    margin-bottom: var(--vbe0-spacing-xl);
    box-shadow: var(--vbe0-shadow-md);
}

.vbe0-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.vbe0-carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.vbe0-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vbe0-carousel-slide .vbe0-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: var(--vbe0-spacing-md);
    color: var(--vbe0-text-white);
}

/* Game Grid */
.vbe0-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--vbe0-spacing-sm);
    margin-bottom: var(--vbe0-spacing-xl);
}

.vbe0-game-item {
    background-color: var(--vbe0-bg-light);
    border-radius: var(--vbe0-radius-sm);
    padding: var(--vbe0-spacing-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.vbe0-game-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--vbe0-shadow-sm);
    border-color: var(--vbe0-accent);
}

.vbe0-game-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--vbe0-radius-sm);
    margin-bottom: var(--vbe0-spacing-xs);
}

.vbe0-game-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--vbe0-text);
    line-height: 1.2;
}

/* Game Categories */
.vbe0-category {
    margin-bottom: var(--vbe0-spacing-xl);
}

.vbe0-category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vbe0-text);
    margin-bottom: var(--vbe0-spacing-md);
    display: flex;
    align-items: center;
    gap: var(--vbe0-spacing-sm);
}

.vbe0-category-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background-color: var(--vbe0-accent);
    border-radius: 2px;
}

/* Module Cards */
.vbe0-module {
    background-color: var(--vbe0-bg-light);
    border-radius: var(--vbe0-radius-lg);
    padding: var(--vbe0-spacing-lg);
    margin-bottom: var(--vbe0-spacing-xl);
    box-shadow: var(--vbe0-shadow-sm);
}

.vbe0-module h3 {
    color: var(--vbe0-text);
    margin-bottom: var(--vbe0-spacing-md);
}

.vbe0-module p {
    color: var(--vbe0-text-light);
    margin-bottom: var(--vbe0-spacing-md);
}

/* Bottom Navigation */
#vbe0-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--vbe0-primary);
    color: var(--vbe0-text-white);
    z-index: 1000;
    display: none;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

#vbe0-bottom-nav .vbe0-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 0 var(--vbe0-spacing-sm);
}

.vbe0-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--vbe0-text-white);
    text-decoration: none;
    padding: var(--vbe0-spacing-sm);
    min-width: 60px;
    min-height: 60px;
    transition: all 0.3s ease;
}

.vbe0-bottom-nav-item:hover {
    color: var(--vbe0-accent);
    transform: scale(1.1);
}

.vbe0-bottom-nav-item.active {
    color: var(--vbe0-accent);
}

.vbe0-bottom-nav-item .vbe0-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.vbe0-bottom-nav-item span {
    font-size: 0.9rem;
}

/* Footer */
.vbe0-footer {
    background-color: var(--vbe0-primary);
    color: var(--vbe0-text-white);
    padding: var(--vbe0-spacing-xl) 0;
    margin-top: auto;
}

.vbe0-footer-content {
    text-align: center;
}

.vbe0-partners {
    display: flex;
    justify-content: center;
    gap: var(--vbe0-spacing-md);
    margin-bottom: var(--vbe0-spacing-lg);
    flex-wrap: wrap;
}

.vbe0-partners img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.vbe0-partners img:hover {
    opacity: 1;
}

.vbe0-footer-links {
    display: flex;
    justify-content: center;
    gap: var(--vbe0-spacing-md);
    margin-bottom: var(--vbe0-spacing-lg);
    flex-wrap: wrap;
}

.vbe0-footer-links a {
    color: var(--vbe0-text-white);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.vbe0-footer-links a:hover {
    color: var(--vbe0-accent);
}

.vbe0-copyright {
    font-size: 0.9rem;
    color: var(--vbe0-text-lighter);
}

/* Utility Classes */
.vbe0-text-center {
    text-align: center;
}

.vbe0-text-left {
    text-align: left;
}

.vbe0-text-right {
    text-align: right;
}

.vbe0-hidden {
    display: none !important;
}

.vbe0-visible {
    display: block !important;
}

/* Loading States */
.vbe0-loading body {
    overflow: hidden;
}

.vbe0-loaded body {
    overflow: visible;
}

/* Responsive Design */
@media (min-width: 769px) {
    .vbe0-menu-toggle {
        display: none;
    }

    .vbe0-nav-list {
        display: flex;
        gap: var(--vbe0-spacing-lg);
    }

    #sitedbe-mobile-menu {
        display: none !important;
    }

    #vbe0-bottom-nav {
        display: none !important;
    }

    main {
        padding-bottom: 0;
    }

    .vbe0-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Mobile First Media Queries */
@media (max-width: 430px) {
    .vbe0-container {
        padding: 0 var(--vbe0-spacing-sm);
    }

    .vbe0-carousel {
        height: 180px;
    }

    .vbe0-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .vbe0-bottom-nav-item .vbe0-icon {
        font-size: 20px;
    }

    .vbe0-bottom-nav-item span {
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vbe0-animate-in {
    animation: fadeIn 0.6s ease-out;
}

/* Icon Libraries Integration */
/* Font Awesome */
.vbe0-icon-fa::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Material Icons */
.vbe0-icon-material::before {
    font-family: 'Material Icons';
}

/* Ionicons */
.vbe0-icon-ion::before {
    font-family: 'Ionicons';
}

/* Bootstrap Icons */
.vbe0-icon-bs::before {
    font-family: 'Bootstrap Icons';
}

/* Tabler Icons */
.vbe0-icon-tabler::before {
    font-family: 'Tabler Icons';
}