/**
 * Jiliboss Theme Stylesheet
 * All classes use prefix: v9d9-
 * Color Palette: #FA8072 | #212F3D | #ADB5BD | #8B0000
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --v9d9-primary: #FA8072;
    --v9d9-secondary: #8B0000;
    --v9d9-bg: #212F3D;
    --v9d9-bg-light: #2C3E50;
    --v9d9-text: #ADB5BD;
    --v9d9-text-light: #FFFFFF;
    --v9d9-accent: #FA8072;
    --v9d9-border: #3D5A73;
    --v9d9-shadow: rgba(0, 0, 0, 0.3);
    --v9d9-gradient: linear-gradient(135deg, #8B0000 0%, #FA8072 100%);
    --v9d9-radius: 8px;
    --v9d9-radius-lg: 16px;
    --v9d9-transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--v9d9-bg);
    color: var(--v9d9-text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--v9d9-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.v9d9-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

/* Header */
.v9d9-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--v9d9-bg);
    border-bottom: 1px solid var(--v9d9-border);
    padding: 1rem 0;
    transition: var(--v9d9-transition);
}

.v9d9-header-scrolled {
    box-shadow: 0 4px 20px var(--v9d9-shadow);
}

.v9d9-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.6rem;
}

.v9d9-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v9d9-logo img {
    width: 32px;
    height: 32px;
}

.v9d9-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v9d9-primary);
}

.v9d9-header-btns {
    display: flex;
    gap: 0.8rem;
}

.v9d9-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--v9d9-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--v9d9-transition);
    min-height: 36px;
}

.v9d9-btn-primary {
    background: var(--v9d9-gradient);
    color: var(--v9d9-text-light);
}

.v9d9-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 128, 114, 0.4);
}

.v9d9-btn-outline {
    background: transparent;
    border: 2px solid var(--v9d9-primary);
    color: var(--v9d9-primary);
}

.v9d9-btn-outline:hover {
    background: var(--v9d9-primary);
    color: var(--v9d9-bg);
}

/* Menu Toggle */
.v9d9-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.v9d9-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--v9d9-text-light);
    transition: var(--v9d9-transition);
}

/* Mobile Menu */
.v9d9-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v9d9-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.v9d9-menu-active {
    right: 0;
}

.v9d9-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--v9d9-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.v9d9-menu-links {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.v9d9-menu-link {
    display: block;
    padding: 1.2rem 1.6rem;
    color: var(--v9d9-text);
    font-size: 1.5rem;
    border-radius: var(--v9d9-radius);
    transition: var(--v9d9-transition);
}

.v9d9-menu-link:hover {
    background: var(--v9d9-primary);
    color: var(--v9d9-text-light);
}

/* Menu Overlay */
.v9d9-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--v9d9-transition);
}

.v9d9-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.v9d9-main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .v9d9-main {
        padding-bottom: 80px;
    }
}

/* Carousel/Slider */
.v9d9-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--v9d9-radius-lg);
    margin-bottom: 2rem;
}

.v9d9-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.v9d9-slide {
    min-width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.v9d9-slide-active {
    opacity: 1;
    position: relative;
}

.v9d9-slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    cursor: pointer;
}

.v9d9-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.v9d9-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--v9d9-transition);
}

.v9d9-dot-active {
    background: var(--v9d9-primary);
    transform: scale(1.2);
}

/* Section Title */
.v9d9-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v9d9-text-light);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--v9d9-primary);
}

/* Game Grid */
.v9d9-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.v9d9-game-card {
    background: var(--v9d9-bg-light);
    border-radius: var(--v9d9-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--v9d9-transition);
    border: 1px solid var(--v9d9-border);
}

.v9d9-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--v9d9-shadow);
    border-color: var(--v9d9-primary);
}

.v9d9-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.v9d9-game-name {
    padding: 0.6rem;
    font-size: 1.1rem;
    color: var(--v9d9-text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Section */
.v9d9-category-section {
    margin-bottom: 3rem;
}

.v9d9-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.v9d9-category-icon {
    width: 32px;
    height: 32px;
    color: var(--v9d9-primary);
}

.v9d9-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--v9d9-text-light);
}

/* Info Section */
.v9d9-info-section {
    background: var(--v9d9-bg-light);
    border-radius: var(--v9d9-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--v9d9-border);
}

.v9d9-info-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--v9d9-primary);
    margin-bottom: 1.2rem;
}

.v9d9-info-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--v9d9-text);
}

.v9d9-info-text p {
    margin-bottom: 1rem;
}

.v9d9-info-list {
    list-style: none;
    padding-left: 0;
}

.v9d9-info-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.4rem;
}

.v9d9-info-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.2rem;
    width: 8px;
    height: 8px;
    background: var(--v9d9-primary);
    border-radius: 50%;
}

/* Promo Link */
.v9d9-promo-link {
    color: var(--v9d9-primary);
    font-weight: 600;
    cursor: pointer;
}

.v9d9-promo-link:hover {
    text-decoration: underline;
}

/* Footer */
.v9d9-footer {
    background: var(--v9d9-bg-light);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--v9d9-border);
}

.v9d9-footer-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.v9d9-footer-partner {
    width: 60px;
    height: 30px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--v9d9-transition);
}

.v9d9-footer-partner:hover {
    opacity: 1;
}

.v9d9-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin-bottom: 2rem;
}

.v9d9-footer-link {
    font-size: 1.3rem;
    color: var(--v9d9-text);
}

.v9d9-footer-link:hover {
    color: var(--v9d9-primary);
}

.v9d9-footer-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--v9d9-text);
    opacity: 0.7;
}

/* Bottom Navigation - Mobile */
.v9d9-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, var(--v9d9-bg-light) 0%, var(--v9d9-bg) 100%);
    border-top: 1px solid var(--v9d9-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .v9d9-bottom-nav {
        display: none;
    }
}

.v9d9-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--v9d9-transition);
    color: var(--v9d9-text);
}

.v9d9-bottom-btn:hover,
.v9d9-bottom-btn.v9d9-active {
    color: var(--v9d9-primary);
    transform: scale(1.1);
}

.v9d9-bottom-btn i,
.v9d9-bottom-btn .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.v9d9-bottom-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Utilities */
.v9d9-text-center { text-align: center; }
.v9d9-mb-1 { margin-bottom: 1rem; }
.v9d9-mb-2 { margin-bottom: 2rem; }
.v9d9-mb-3 { margin-bottom: 3rem; }
.v9d9-mt-2 { margin-top: 2rem; }
.v9d9-hidden { display: none; }

/* Responsive adjustments */
@media (max-width: 380px) {
    .v9d9-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .v9d9-btn {
        padding: 0.6rem 1rem;
        font-size: 1.2rem;
    }
}

/* Desktop styles */
@media (min-width: 769px) {
    .v9d9-container {
        max-width: 1200px;
    }

    .v9d9-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
