/**
 * JL Bourg Basketball - Core Stylesheet
 * All classes prefixed with v806 for namespace isolation
 * Color palette: #E91E63 | #2C2C2C | #4A4A4A | #778899 | #696969
 */

/* CSS Variables */
:root {
    --v806-primary: #E91E63;
    --v806-primary-dark: #C2185B;
    --v806-primary-light: #F48FB1;
    --v806-bg-dark: #2C2C2C;
    --v806-bg-medium: #4A4A4A;
    --v806-text-light: #778899;
    --v806-text-dim: #696969;
    --v806-white: #FFFFFF;
    --v806-black: #000000;
    --v806-shadow: rgba(0, 0, 0, 0.3);
    --v806-transition: all 0.3s ease;
}

/* Reset & 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;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--v806-text-light);
    background-color: var(--v806-bg-dark);
    min-width: 320px;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

body.v806-loaded * {
    transition: var(--v806-transition);
}

/* Container */
.v806-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.v806-wrapper {
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .v806-wrapper {
        padding-bottom: 0;
    }
}

/* Header Styles */
.v806-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 56px;
    background: linear-gradient(135deg, var(--v806-bg-dark) 0%, var(--v806-bg-medium) 100%);
    box-shadow: 0 2px 10px var(--v806-shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.v806-header-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--v806-white);
}

.v806-header-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.v806-header-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v806-primary);
}

.v806-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.v806-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--v806-transition);
}

.v806-btn-primary {
    background: linear-gradient(135deg, var(--v806-primary) 0%, var(--v806-primary-dark) 100%);
    color: var(--v806-white);
}

.v806-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.v806-btn-secondary {
    background: transparent;
    color: var(--v806-primary);
    border: 2px solid var(--v806-primary);
}

.v806-btn-secondary:hover {
    background: var(--v806-primary);
    color: var(--v806-white);
}

.v806-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.v806-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--v806-primary);
    transition: var(--v806-transition);
}

/* Mobile Menu */
.v806-mobile-menu {
    position: fixed;
    top: 56px;
    left: -100%;
    width: 100%;
    max-width: 430px;
    height: calc(100vh - 56px);
    background-color: var(--v806-bg-dark);
    transition: left 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
    padding: 1rem 0;
}

.v806-mobile-menu.v806-menu-open {
    left: 0;
}

.v806-menu-overlay {
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: var(--v806-transition);
    z-index: 9998;
}

.v806-menu-overlay.v806-overlay-visible {
    opacity: 1;
    visibility: visible;
}

.v806-menu-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--v806-text-light);
    text-decoration: none;
    border-bottom: 1px solid var(--v806-bg-medium);
    transition: var(--v806-transition);
}

.v806-menu-item:hover {
    background-color: var(--v806-bg-medium);
    color: var(--v806-primary);
    padding-left: 2rem;
}

/* Carousel */
.v806-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: 56px;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.v806-carousel-slide {
    width: 100%;
    height: 100%;
    display: none;
}

.v806-carousel-slide.v806-slide-active {
    display: block;
}

.v806-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v806-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--v806-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--v806-transition);
}

.v806-carousel-btn:hover {
    background-color: var(--v806-primary);
}

.v806-carousel-prev {
    left: 10px;
}

.v806-carousel-next {
    right: 10px;
}

.v806-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.v806-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--v806-transition);
}

.v806-carousel-dot.v806-dot-active {
    background-color: var(--v806-primary);
    transform: scale(1.2);
}

/* Main Content */
.v806-main {
    padding: 2rem 0;
}

.v806-section {
    margin-bottom: 2.5rem;
}

.v806-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v806-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.v806-card {
    background-color: var(--v806-bg-medium);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px var(--v806-shadow);
}

.v806-card h3 {
    color: var(--v806-primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.v806-card p {
    color: var(--v806-text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Game Grid */
.v806-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.v806-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--v806-transition);
}

.v806-game-item:hover {
    transform: scale(1.05);
}

.v806-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--v806-shadow);
}

.v806-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v806-game-name {
    font-size: 1rem;
    color: var(--v806-text-light);
    text-align: center;
    word-wrap: break-word;
    line-height: 1.2;
}

/* Promotional Links */
.v806-promo-link {
    color: var(--v806-primary);
    font-weight: 700;
    text-decoration: none;
    transition: var(--v806-transition);
    cursor: pointer;
}

.v806-promo-link:hover {
    color: var(--v806-primary-light);
    text-decoration: underline;
}

/* Footer */
.v806-footer {
    background-color: var(--v806-bg-medium);
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.v806-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.v806-footer-link {
    color: var(--v806-text-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--v806-transition);
}

.v806-footer-link:hover {
    color: var(--v806-primary);
}

.v806-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.v806-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--v806-transition);
}

.v806-partner-logo:hover {
    opacity: 1;
}

.v806-copyright {
    text-align: center;
    color: var(--v806-text-dim);
    font-size: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--v806-bg-dark);
}

/* Mobile Bottom Navigation */
.v806-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 60px;
    background: linear-gradient(180deg, var(--v806-bg-medium) 0%, var(--v806-bg-dark) 100%);
    box-shadow: 0 -2px 10px var(--v806-shadow);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

@media (min-width: 769px) {
    .v806-bottom-nav {
        display: none;
    }
}

.v806-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    min-height: 60px;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--v806-text-light);
    transition: var(--v806-transition);
    padding: 0.5rem;
    border-radius: 8px;
}

.v806-nav-item:hover {
    background-color: rgba(233, 30, 99, 0.1);
    transform: scale(1.05);
}

.v806-nav-item.active {
    color: var(--v806-primary);
}

.v806-nav-icon {
    font-size: 24px;
}

.v806-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Utility Classes */
.v806-text-center {
    text-align: center;
}

.v806-mt-1 { margin-top: 1rem; }
.v806-mt-2 { margin-top: 2rem; }
.v806-mb-1 { margin-bottom: 1rem; }
.v806-mb-2 { margin-bottom: 2rem; }

.v806-touch-active {
    transform: scale(0.95);
}
