/**
 * PHJL Website Theme CSS
 * Prefix: v2be-
 *
 * This file contains all CSS styles for the PHJL platform
 * with responsive design and mobile-first approach.
 */

/* CSS Variables for consistent theming */
:root {
    --v2be-primary: #FF8A80;
    --v2be-secondary: #FA8072;
    --v2be-accent: #FF1493;
    --v2be-dark-bg: #2E4057;
    --v2be-light-text: #E5E5E5;
    --v2be-bg-light: #FFDEAD;
    --v2be-shadow: rgba(0, 0, 0, 0.1);
    --v2be-border-radius: 8px;
    --v2be-transition: all 0.3s ease;
    --v2be-font-size-base: 16px;
    --v2be-spacing-unit: 8px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.v2be-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: var(--v2be-dark-bg);
    background-color: var(--v2be-bg-light);
    font-size: var(--v2be-font-size-base);
}

.v2be-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 var(--v2be-spacing-unit);
    overflow-x: hidden;
}

.v2be-wrapper {
    position: relative;
    min-height: 100vh;
}

/* Typography */
.v2be-heading {
    font-weight: 700;
    margin-bottom: var(--v2be-spacing-unit);
    line-height: 1.2;
}

.v2be-heading-1 {
    font-size: 2rem;
    color: var(--v2be-dark-bg);
}

.v2be-heading-2 {
    font-size: 1.5rem;
    color: var(--v2be-dark-bg);
}

.v2be-heading-3 {
    font-size: 1.25rem;
    color: var(--v2be-dark-bg);
}

.v2be-text {
    margin-bottom: var(--v2be-spacing-unit);
}

.v2be-text-small {
    font-size: 0.875rem;
}

.v2be-text-center {
    text-align: center;
}

/* Header Styles */
.v2be-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background-color: white;
    box-shadow: 0 2px 10px var(--v2be-shadow);
    z-index: 1000;
    transition: var(--v2be-transition);
}

.v2be-header-scrolled {
    box-shadow: 0 4px 20px var(--v2be-shadow);
}

.v2be-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--v2be-spacing-unit) calc(var(--v2be-spacing-unit) * 2);
    position: relative;
}

.v2be-logo {
    display: flex;
    align-items: center;
    gap: calc(var(--v2be-spacing-unit) * 0.5);
    text-decoration: none;
    color: var(--v2be-dark-bg);
}

.v2be-logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.v2be-logo-text {
    font-weight: 700;
    font-size: 1.125rem;
}

.v2be-nav-buttons {
    display: flex;
    gap: calc(var(--v2be-spacing-unit) * 0.5);
}

.v2be-nav-button {
    padding: calc(var(--v2be-spacing-unit) * 0.75) calc(var(--v2be-spacing-unit) * 1.5);
    background-color: var(--v2be-primary);
    color: white;
    border: none;
    border-radius: var(--v2be-border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--v2be-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.v2be-nav-button:hover {
    background-color: var(--v2be-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--v2be-shadow);
}

.v2be-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--v2be-spacing-unit);
    border-radius: var(--v2be-border-radius);
    transition: var(--v2be-transition);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.v2be-menu-toggle:hover {
    background-color: var(--v2be-bg-light);
}

.v2be-menu-toggle span {
    width: 20px;
    height: 2px;
    background-color: var(--v2be-dark-bg);
    transition: var(--v2be-transition);
}

.v2be-mobile-menu {
    display: none;
    position: fixed;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background-color: white;
    box-shadow: 0 4px 20px var(--v2be-shadow);
    z-index: 9999;
    animation: v2be-menuSlide 0.3s ease;
}

@keyframes v2be-menuSlide {
    from {
        transform: translateX(-50%) translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.v2be-mobile-menu-inner {
    padding: calc(var(--v2be-spacing-unit) * 2);
}

.v2be-menu-item {
    display: block;
    padding: var(--v2be-spacing-unit) calc(var(--v2be-spacing-unit) * 1.5);
    color: var(--v2be-dark-bg);
    text-decoration: none;
    border-radius: var(--v2be-border-radius);
    transition: var(--v2be-transition);
    font-weight: 500;
}

.v2be-menu-item:hover {
    background-color: var(--v2be-bg-light);
    color: var(--v2be-accent);
}

/* Mobile Bottom Navigation */
.v2be-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background-color: white;
    box-shadow: 0 -2px 10px var(--v2be-shadow);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: var(--v2be-spacing-unit) 0;
    border-top: 1px solid #e0e0e0;
}

@media (min-width: 769px) {
    .v2be-bottom-nav {
        display: none;
    }
}

.v2be-nav-button-bottom {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--v2be-spacing-unit);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--v2be-transition);
    min-width: 60px;
    min-height: 60px;
    position: relative;
}

.v2be-nav-button-bottom:hover {
    background-color: var(--v2be-bg-light);
    transform: scale(1.05);
}

.v2be-nav-button-bottom.active {
    color: var(--v2be-primary);
}

.v2be-nav-button-bottom .v2be-icon {
    width: 24px;
    height: 24px;
    color: var(--v2be-dark-bg);
}

.v2be-nav-button-bottom.active .v2be-icon {
    color: var(--v2be-primary);
}

.v2be-nav-button-bottom .v2be-text {
    font-size: 10px;
    font-weight: 500;
    color: var(--v2be-dark-bg);
}

.v2be-nav-button-bottom.active .v2be-text {
    color: var(--v2be-primary);
}

.v2be-nav-button-bottom:hover .v2be-icon,
.v2be-nav-button-bottom:hover .v2be-text {
    color: var(--v2be-primary);
}

/* Carousel Styles */
.v2be-carousel {
    position: relative;
    margin: calc(var(--v2be-spacing-unit) * 2) 0;
    border-radius: var(--v2be-border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--v2be-shadow);
}

.v2be-carousel-slide {
    display: none;
    width: 100%;
}

.v2be-carousel-slide-active {
    display: block;
}

.v2be-carousel-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: var(--v2be-transition);
}

.v2be-carousel-image:hover {
    transform: scale(1.05);
}

.v2be-carousel-indicators {
    position: absolute;
    bottom: var(--v2be-spacing-unit);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: calc(var(--v2be-spacing-unit) * 0.5);
}

.v2be-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--v2be-transition);
}

.v2be-indicator-active {
    background-color: white;
    transform: scale(1.2);
}

/* Game Grid Styles */
.v2be-game-section {
    margin-bottom: calc(var(--v2be-spacing-unit) * 3);
}

.v2be-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--v2be-spacing-unit) * 1.5;
    color: var(--v2be-dark-bg);
    padding-bottom: var(--v2be-spacing-unit);
    border-bottom: 2px solid var(--v2be-primary);
}

.v2be-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--v2be-spacing-unit);
    margin-bottom: var(--v2be-spacing-unit);
}

.v2be-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--v2be-spacing-unit) * 0.5;
    cursor: pointer;
    transition: var(--v2be-transition);
    padding: var(--v2be-spacing-unit) * 0.5;
    border-radius: var(--v2be-border-radius);
}

.v2be-game-item:hover {
    background-color: var(--v2be-bg-light);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px var(--v2be-shadow);
}

.v2be-game-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: var(--v2be-transition);
}

.v2be-game-item:hover .v2be-game-image {
    transform: scale(1.1);
}

.v2be-game-name {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    color: var(--v2be-dark-bg);
    line-height: 1.2;
}

.v2be-game-name-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Feature Cards */
.v2be-feature-card {
    background-color: white;
    border-radius: var(--v2be-border-radius);
    padding: var(--v2be-spacing-unit) * 1.5;
    margin-bottom: var(--v2be-spacing-unit) * 1.5;
    box-shadow: 0 2px 10px var(--v2be-shadow);
    transition: var(--v2be-transition);
}

.v2be-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px var(--v2be-shadow);
}

.v2be-feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--v2be-primary);
    margin-bottom: var(--v2be-spacing-unit);
}

.v2be-feature-content {
    color: var(--v2be-dark-bg);
    line-height: 1.6;
}

.v2be-feature-link {
    color: var(--v2be-accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--v2be-transition);
}

.v2be-feature-link:hover {
    text-decoration: underline;
}

/* Buttons */
.v2be-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--v2be-spacing-unit) * 0.75) calc(var(--v2be-spacing-unit) * 2);
    background-color: var(--v2be-primary);
    color: white;
    border: none;
    border-radius: var(--v2be-border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--v2be-transition);
    gap: var(--v2be-spacing-unit) * 0.5;
}

.v2be-button:hover {
    background-color: var(--v2be-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--v2be-shadow);
}

.v2be-button-secondary {
    background-color: var(--v2be-secondary);
}

.v2be-button-secondary:hover {
    background-color: var(--v2be-accent);
}

.v2be-button-outline {
    background-color: transparent;
    border: 2px solid var(--v2be-primary);
    color: var(--v2be-primary);
}

.v2be-button-outline:hover {
    background-color: var(--v2be-primary);
    color: white;
}

/* Footer */
.v2be-footer {
    background-color: var(--v2be-dark-bg);
    color: var(--v2be-light-text);
    padding: calc(var(--v2be-spacing-unit) * 2) 0;
    margin-top: calc(var(--v2be-spacing-unit) * 4);
}

.v2be-footer-content {
    text-align: center;
}

.v2be-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--v2be-spacing-unit);
    margin-bottom: var(--v2be-spacing-unit) * 1.5;
}

.v2be-footer-link {
    color: var(--v2be-light-text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--v2be-transition);
}

.v2be-footer-link:hover {
    color: var(--v2be-primary);
    text-decoration: underline;
}

.v2be-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(var(--v2be-spacing-unit) * 1.5);
    margin-bottom: var(--v2be-spacing-unit) * 1.5;
}

.v2be-partner-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--v2be-transition);
}

.v2be-partner-logo:hover {
    opacity: 1;
}

.v2be-copyright {
    font-size: 0.75rem;
    color: var(--v2be-light-text);
    opacity: 0.7;
}

/* Main Content with Bottom Padding for Mobile Navigation */
.v2be-main-content {
    padding-bottom: calc(var(--v2be-spacing-unit) * 10);
    max-width: 430px;
    margin: 0 auto;
    width: 100%;
}

/* Stats Code Container */
.v2be-stats-container {
    padding: var(--v2be-spacing-unit);
    background-color: transparent;
}

/* Utility Classes */
.v2be-margin-top {
    margin-top: var(--v2be-spacing-unit) * 2;
}

.v2be-margin-bottom {
    margin-bottom: var(--v2be-spacing-unit) * 2;
}

.v2be-text-bold {
    font-weight: 700;
}

.v2be-text-uppercase {
    text-transform: uppercase;
}

.v2be-center-content {
    text-align: center;
}

/* Loading Animation */
@keyframes v2be-spin {
    to {
        transform: rotate(360deg);
    }
}

.v2be-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--v2be-bg-light);
    border-top-color: var(--v2be-primary);
    border-radius: 50%;
    animation: v2be-spin 1s linear infinite;
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .v2be-container {
        max-width: 1200px;
    }

    .v2be-main-content {
        max-width: 1200px;
        margin: 0 auto;
    }

    .v2be-header {
        max-width: 1200px;
    }
}

/* Print styles */
@media print {
    .v2be-header,
    .v2be-bottom-nav,
    .v2be-mobile-menu {
        display: none !important;
    }

    .v2be-main-content {
        padding: 0;
        max-width: 100%;
    }
}