/**
 * PBA Score - Theme CSS
 * All classes use v116- prefix for namespace isolation
 */

/* CSS Variables */
:root {
    --v116-primary: #DAA520;
    --v116-secondary: #F0E68C;
    --v116-bg-dark: #2C2C2C;
    --v116-bg-darker: #1a1a1a;
    --v116-text-light: #E9ECEF;
    --v116-text-muted: #adb5bd;
    --v116-border: #444;
    --v116-success: #28a745;
    --v116-header-height: 60px;
    --v116-bottom-nav-height: 60px;
}

/* Reset & Base */
* {
    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, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--v116-text-light);
    background-color: var(--v116-bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.v116-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Header */
.v116-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--v116-header-height);
    background-color: var(--v116-bg-darker);
    border-bottom: 1px solid var(--v116-border);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.v116-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.v116-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--v116-text-light);
    font-weight: 700;
    font-size: 1.6rem;
}

.v116-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.v116-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.v116-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.v116-btn-primary {
    background: linear-gradient(135deg, var(--v116-primary) 0%, #b8860b 100%);
    color: var(--v116-bg-dark);
}

.v116-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4);
}

.v116-btn-outline {
    background: transparent;
    color: var(--v116-primary);
    border: 2px solid var(--v116-primary);
}

.v116-btn-outline:hover {
    background: var(--v116-primary);
    color: var(--v116-bg-dark);
}

.v116-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--v116-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.v116-mobile-menu {
    position: fixed;
    top: var(--v116-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--v116-bg-darker);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.v116-mobile-menu.gamea8c9-menu-open {
    transform: translateX(0);
}

.v116-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--v116-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.v116-menu-nav {
    margin-top: 3rem;
}

.v116-menu-nav a {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--v116-text-light);
    text-decoration: none;
    font-size: 1.6rem;
    border-bottom: 1px solid var(--v116-border);
    transition: all 0.3s ease;
}

.v116-menu-nav a:hover {
    background-color: var(--v116-primary);
    color: var(--v116-bg-dark);
    padding-left: 2rem;
}

/* Carousel */
.v116-carousel {
    position: relative;
    margin-top: var(--v116-header-height);
    overflow: hidden;
}

.v116-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.v116-carousel-slide {
    min-width: 100%;
    height: 200px;
    overflow: hidden;
}

.v116-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Content */
.v116-main {
    padding: 2rem 0 8rem 0;
    min-height: calc(100vh - var(--v116-header-height) - var(--v116-bottom-nav-height));
}

.v116-section {
    margin-bottom: 2.5rem;
}

.v116-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v116-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v116-section-title h1,
.v116-section-title h2 {
    font-size: inherit;
    color: inherit;
    margin: 0;
}

/* Game Grid */
.v116-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.v116-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--v116-text-light);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.v116-game-item:hover {
    transform: scale(1.05);
}

.v116-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background-color: var(--v116-bg-darker);
}

.v116-game-name {
    font-size: 1rem;
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Cards */
.v116-card {
    background-color: var(--v116-bg-darker);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--v116-border);
}

.v116-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--v116-primary);
    margin-bottom: 1rem;
}

.v116-card-content {
    color: var(--v116-text-muted);
    line-height: 1.6;
}

.v116-card-content p {
    margin-bottom: 1rem;
}

.v116-card-content a {
    color: var(--v116-primary);
    text-decoration: none;
    font-weight: 600;
}

.v116-card-content a:hover {
    text-decoration: underline;
}

/* Features List */
.v116-features-list {
    list-style: none;
    padding: 0;
}

.v116-features-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--v116-border);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.v116-features-list li:last-child {
    border-bottom: none;
}

.v116-features-list li i {
    color: var(--v116-primary);
    font-size: 1.8rem;
    margin-top: 0.2rem;
}

/* Footer */
.v116-footer {
    background-color: var(--v116-bg-darker);
    border-top: 1px solid var(--v116-border);
    padding: 2rem 0 1rem 0;
}

.v116-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.v116-footer-links a {
    color: var(--v116-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--v116-border);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.v116-footer-links a:hover {
    background-color: var(--v116-primary);
    color: var(--v116-bg-dark);
    border-color: var(--v116-primary);
}

.v116-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.v116-partners img {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.v116-partners img:hover {
    opacity: 1;
}

.v116-copyright {
    text-align: center;
    color: var(--v116-text-muted);
    font-size: 1.2rem;
    padding: 1rem;
    border-top: 1px solid var(--v116-border);
}

/* Bottom Navigation */
.v116-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--v116-bottom-nav-height);
    background: linear-gradient(to top, var(--v116-bg-darker) 0%, var(--v116-bg-dark) 100%);
    border-top: 2px solid var(--v116-primary);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.v116-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--v116-text-muted);
    min-width: 60px;
    min-height: 60px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.v116-nav-item:hover,
.v116-nav-item.v116-nav-active {
    color: var(--v116-primary);
    transform: scale(1.1);
}

.v116-nav-icon {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
}

.v116-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .v116-bottom-nav {
        display: none;
    }

    .v116-main {
        padding-bottom: 2rem;
    }

    .v116-menu-toggle {
        display: block;
    }

    .v116-header-buttons {
        display: flex;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .v116-menu-toggle {
        display: block;
    }

    .v116-header-buttons .v116-btn {
        display: none;
    }
}

/* Utility Classes */
.v116-text-center {
    text-align: center;
}

.v116-mb-1 {
    margin-bottom: 1rem;
}

.v116-mb-2 {
    margin-bottom: 2rem;
}

.v116-mt-1 {
    margin-top: 1rem;
}

.v116-mt-2 {
    margin-top: 2rem;
}

.v116-promo-link {
    color: var(--v116-primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.1) 0%, rgba(218, 165, 32, 0.2) 100%);
    border-radius: 6px;
    border: 1px solid var(--v116-primary);
    transition: all 0.3s ease;
}

.v116-promo-link:hover {
    background: var(--v116-primary);
    color: var(--v116-bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4);
}
