/* Jili BB Website - Stylesheet */
/* CSS class prefix: v4f8- */
/* Version: 1.0.0 */

/* CSS Variables for Theme */
:root {
    --v4f8-primary: #F4A460;        /* Sandy Brown */
    --v4f8-secondary: #2C3E50;       /* Dark Blue Grey */
    --v4f8-bg-primary: #1a1a1a;
    --v4f8-bg-secondary: #2d2d2d;
    --v4f8-bg-tertiary: #3a3a3a;
    --v4f8-text-primary: #F4A460;
    --v4f8-text-secondary: #ecf0f1;
    --v4f8-text-tertiary: #bdc3c7;
    --v4f8-accent: #e74c3c;
    --v4f8-success: #27ae60;
    --v4f8-warning: #f39c12;
    --v4f8-border: #444;
    --v4f8-shadow: rgba(0, 0, 0, 0.3);
    --v4f8-radius: 8px;
    --v4f8-transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.6rem; /* 16px at root font-size: 62.5% */
    line-height: 1.5;
    color: var(--v4f8-text-secondary);
    background-color: var(--v4f8-bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Utility Classes */
.v4f8-hidden {
    display: none !important;
}

.v4f8-invisible {
    visibility: hidden !important;
}

.v4f8-uppercase {
    text-transform: uppercase;
}

.v4f8-bold {
    font-weight: bold;
}

.v4f8-text-center {
    text-align: center;
}

.v4f8-mt-1 { margin-top: 1rem; }
.v4f8-mt-2 { margin-top: 2rem; }
.v4f8-mt-3 { margin-top: 3rem; }
.v4f8-mb-1 { margin-bottom: 1rem; }
.v4f8-mb-2 { margin-bottom: 2rem; }
.v4f8-mb-3 { margin-bottom: 3rem; }
.v4f8-p-1 { padding: 1rem; }
.v4f8-p-2 { padding: 2rem; }
.v4f8-p-3 { padding: 3rem; }

/* Header Styles */
.v4f8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--v4f8-border);
    transition: var(--v4f8-transition);
}

.v4f8-header.scrolled {
    box-shadow: 0 2px 10px var(--v4f8-shadow);
}

.v4f8-header-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v4f8-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.v4f8-logo-icon {
    width: 24px;
    height: 24px;
    background-color: var(--v4f8-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v4f8-logo-text {
    color: var(--v4f8-text-primary);
    font-size: 1.4rem;
    font-weight: bold;
}

.v4f8-nav-buttons {
    display: flex;
    gap: 1rem;
}

.v4f8-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--v4f8-transition);
    text-decoration: none;
    display: inline-block;
}

.v4f8-btn-primary {
    background-color: var(--v4f8-primary);
    color: var(--v4f8-bg-primary);
}

.v4f8-btn-primary:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--v4f8-shadow);
}

.v4f8-btn-secondary {
    background-color: transparent;
    color: var(--v4f8-text-primary);
    border: 2px solid var(--v4f8-primary);
}

.v4f8-btn-secondary:hover {
    background-color: var(--v4f8-primary);
    color: var(--v4f8-bg-primary);
}

.v4f8-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--v4f8-text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.v4f8-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(44, 62, 80, 0.98);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 5rem 1rem 2rem;
}

.v4f8-mobile-menu.web7d4-menu-open {
    right: 0;
}

.v4f8-mobile-menu.web7d4-menu-closed {
    right: -100%;
}

.v4f8-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.v4f8-menu-title {
    color: var(--v4f8-text-primary);
    font-size: 1.6rem;
}

.v4f8-close-menu {
    background: none;
    border: none;
    color: var(--v4f8-text-primary);
    font-size: 2rem;
    cursor: pointer;
}

.v4f8-menu-links {
    list-style: none;
}

.v4f8-menu-links li {
    margin-bottom: 1rem;
}

.v4f8-menu-links a {
    color: var(--v4f8-text-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 0.5rem 1rem;
    display: block;
    border-radius: 4px;
    transition: var(--v4f8-transition);
}

.v4f8-menu-links a:hover {
    background-color: rgba(244, 164, 96, 0.2);
    color: var(--v4f8-text-primary);
    transform: translateX(5px);
}

/* Main Content */
main {
    margin-top: 4rem;
    padding: 1rem;
    max-width: 100%;
}

/* Carousel Styles */
.v4f8-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--v4f8-radius);
    margin-bottom: 2rem;
}

.v4f8-carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.v4f8-carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.v4f8-carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
}

.v4f8-carousel-info {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    color: white;
}

.v4f8-carousel-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.v4f8-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.v4f8-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--v4f8-transition);
}

.v4f8-carousel-dot.v4f8-active {
    background-color: white;
    transform: scale(1.2);
}

/* Game Grid Styles */
.v4f8-game-grid {
    display: grid;
    gap: 1rem;
    padding: 1rem 0;
    grid-template-columns: repeat(3, 1fr);
}

.v4f8-game-card {
    background-color: var(--v4f8-bg-secondary);
    border-radius: var(--v4f8-radius);
    overflow: hidden;
    transition: var(--v4f8-transition);
    cursor: pointer;
    border: 1px solid var(--v4f8-border);
}

.v4f8-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--v4f8-shadow);
}

.v4f8-game-image {
    width: 100%;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    position: relative;
}

.v4f8-game-name {
    padding: 0.5rem;
    font-size: 1.2rem;
    color: var(--v4f8-text-secondary);
    text-align: center;
    background-color: var(--v4f8-bg-secondary);
}

/* Section Styles */
.v4f8-section {
    margin-bottom: 3rem;
    padding: 2rem 1rem;
    background-color: var(--v4f8-bg-secondary);
    border-radius: var(--v4f8-radius);
    box-shadow: 0 2px 5px var(--v4f8-shadow);
}

.v4f8-section-title {
    font-size: 2rem;
    color: var(--v4f8-text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.v4f8-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--v4f8-primary);
}

.v4f8-grid {
    display: grid;
    gap: 1.5rem;
}

.v4f8-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.v4f8-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.v4f8-card {
    background-color: var(--v4f8-bg-tertiary);
    padding: 1.5rem;
    border-radius: var(--v4f8-radius);
    transition: var(--v4f8-transition);
}

.v4f8-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px var(--v4f8-shadow);
}

.v4f8-card-title {
    font-size: 1.6rem;
    color: var(--v4f8-text-primary);
    margin-bottom: 1rem;
}

.v4f8-card-content {
    color: var(--v4f8-text-secondary);
    line-height: 1.6;
}

.v4f8-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.v4f8-stat-item {
    text-align: center;
    padding: 1rem;
    background-color: var(--v4f8-bg-tertiary);
    border-radius: var(--v4f8-radius);
}

.v4f8-stat-value {
    font-size: 2rem;
    color: var(--v4f8-primary);
    font-weight: bold;
    display: block;
}

.v4f8-stat-label {
    font-size: 1.2rem;
    color: var(--v4f8-text-tertiary);
}

/* Button Variants */
.v4f8-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.4rem;
}

.v4f8-btn-outline {
    background-color: transparent;
    border: 2px solid var(--v4f8-primary);
    color: var(--v4f8-text-primary);
}

.v4f8-btn-outline:hover {
    background-color: var(--v4f8-primary);
    color: var(--v4f8-bg-primary);
}

.v4f8-btn-block {
    display: block;
    width: 100%;
    margin: 1rem 0;
}

/* Footer Styles */
.v4f8-footer {
    background-color: var(--v4f8-bg-primary);
    border-top: 1px solid var(--v4f8-border);
    padding: 2rem 1rem;
    margin-top: 4rem;
}

.v4f8-footer-content {
    max-width: 100%;
    margin: 0 auto;
}

.v4f8-footer-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.v4f8-footer-section h3 {
    color: var(--v4f8-text-primary);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.v4f8-footer-links {
    list-style: none;
}

.v4f8-footer-links li {
    margin-bottom: 0.5rem;
}

.v4f8-footer-links a {
    color: var(--v4f8-text-tertiary);
    text-decoration: none;
    transition: var(--v4f8-transition);
    display: inline-block;
}

.v4f8-footer-links a:hover {
    color: var(--v4f8-text-primary);
    transform: translateX(5px);
}

.v4f8-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.v4f8-partner-logo {
    width: 60px;
    height: 40px;
    background-color: var(--v4f8-bg-tertiary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--v4f8-text-tertiary);
}

.v4f8-footer-bottom {
    border-top: 1px solid var(--v4f8-border);
    padding-top: 1rem;
    text-align: center;
    color: var(--v4f8-text-tertiary);
}

.v4f8-copyright {
    margin-bottom: 1rem;
}

/* Mobile Bottom Navigation */
.v4f8-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--v4f8-bg-primary);
    border-top: 1px solid var(--v4f8-border);
    height: 64px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
    box-shadow: 0 -2px 10px var(--v4f8-shadow);
}

.v4f8-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: var(--v4f8-transition);
    position: relative;
}

.v4f8-bottom-nav-item:hover {
    transform: translateY(-3px);
}

.v4f8-bottom-nav-item.v4f8-active {
    color: var(--v4f8-primary);
}

.v4f8-bottom-nav-icon {
    font-size: 24px;
    color: var(--v4f8-text-tertiary);
    transition: var(--v4f8-transition);
}

.v4f8-bottom-nav-item.v4f8-active .v4f8-bottom-nav-icon {
    color: var(--v4f8-primary);
}

.v4f8-bottom-nav-text {
    font-size: 0.8rem;
    color: var(--v4f8-text-tertiary);
    transition: var(--v4f8-transition);
}

.v4f8-bottom-nav-item.v4f8-active .v4f8-bottom-nav-text {
    color: var(--v4f8-primary);
    font-weight: bold;
}

.v4f8-bottom-nav-badge {
    position: absolute;
    top: 0;
    right: 25%;
    background-color: var(--v4f8-accent);
    color: white;
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    border-radius: 10px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .v4f8-menu-toggle {
        display: block;
    }

    .v4f8-nav-buttons {
        display: none;
    }

    .v4f8-game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v4f8-footer-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .v4f8-stat-grid {
        grid-template-columns: 1fr;
    }

    .v4f8-grid-2,
    .v4f8-grid-3 {
        grid-template-columns: 1fr;
    }

    main {
        padding-bottom: 100px;
    }
}

@media (min-width: 769px) {
    .v4f8-bottom-nav {
        display: none;
    }
}

/* Responsive for larger screens */
@media (min-width: 481px) and (max-width: 768px) {
    .v4f8-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .v4f8-section {
        padding: 2.5rem 1.5rem;
    }

    .v4f8-section-title {
        font-size: 2.2rem;
    }
}

/* Special Effects */
.v4f8-glow {
    box-shadow: 0 0 20px rgba(244, 164, 96, 0.5);
}

.v4f8-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.v4f8-slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Utility classes for animations */
.v4f8-animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.v4f8-animate-slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.v4f8-animate-slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}