/**
 * 86Jl - Main Stylesheet
 * All classes use vb57- prefix for namespace isolation
 * Mobile-first responsive design
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --vb57-bg-dark: #273746;
    --vb57-bg-light: #1a252f;
    --vb57-primary: #BAE1FF;
    --vb57-secondary: #FFB6C1;
    --vb57-accent: #FFD700;
    --vb57-highlight: #FF9500;
    --vb57-text: #ffffff;
    --vb57-text-muted: #a8b5c4;
    --vb57-border: rgba(186, 225, 255, 0.2);
    --vb57-shadow: rgba(0, 0, 0, 0.3);
    --vb57-gradient: linear-gradient(135deg, #273746 0%, #1a252f 100%);
    --vb57-radius: 12px;
    --vb57-radius-sm: 8px;
    --vb57-transition: all 0.3s ease;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background: var(--vb57-bg-dark);
    color: var(--vb57-text);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--vb57-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Container */
.vb57-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

/* Header */
.vb57-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--vb57-bg-dark);
    border-bottom: 1px solid var(--vb57-border);
    transition: var(--vb57-transition);
}

.vb57-header-scrolled {
    background: rgba(39, 55, 70, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--vb57-shadow);
}

.vb57-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.6rem;
    max-width: 430px;
    margin: 0 auto;
}

.vb57-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vb57-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.vb57-logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vb57-accent);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.vb57-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vb57-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: var(--vb57-radius-sm);
    cursor: pointer;
    transition: var(--vb57-transition);
    border: none;
    min-height: 44px;
}

.vb57-btn-primary {
    background: linear-gradient(135deg, var(--vb57-accent), var(--vb57-highlight));
    color: var(--vb57-bg-dark);
}

.vb57-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.vb57-btn-secondary {
    background: transparent;
    color: var(--vb57-primary);
    border: 2px solid var(--vb57-primary);
}

.vb57-btn-secondary:hover {
    background: var(--vb57-primary);
    color: var(--vb57-bg-dark);
}

.vb57-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--vb57-primary);
    font-size: 2.4rem;
    cursor: pointer;
}

/* Mobile Menu */
.vb57-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--vb57-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 8rem 2rem 2rem;
    overflow-y: auto;
}

.vb57-menu-active {
    right: 0;
}

.vb57-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--vb57-transition);
}

.vb57-overlay-active {
    opacity: 1;
    visibility: visible;
}

.vb57-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vb57-nav-item {
    padding: 1.2rem 1.6rem;
    border-radius: var(--vb57-radius-sm);
    color: var(--vb57-text);
    font-size: 1.5rem;
    transition: var(--vb57-transition);
}

.vb57-nav-item:hover {
    background: rgba(186, 225, 255, 0.1);
    color: var(--vb57-primary);
}

/* Main Content */
main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Carousel */
.vb57-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 var(--vb57-radius) var(--vb57-radius);
}

.vb57-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.vb57-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.vb57-slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.vb57-slide-active {
    display: block;
}

.vb57-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.vb57-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--vb57-transition);
}

.vb57-dot-active {
    background: var(--vb57-accent);
    transform: scale(1.2);
}

/* Section Styles */
.vb57-section {
    padding: 2.4rem 0;
}

.vb57-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vb57-accent);
    margin-bottom: 1.6rem;
    text-align: center;
}

.vb57-section-subtitle {
    font-size: 1.4rem;
    color: var(--vb57-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.vb57-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.vb57-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--vb57-transition);
}

.vb57-game-item:hover {
    transform: translateY(-4px);
}

.vb57-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--vb57-radius-sm);
    object-fit: cover;
    border: 2px solid transparent;
    transition: var(--vb57-transition);
}

.vb57-game-item:hover img {
    border-color: var(--vb57-accent);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.vb57-game-name {
    font-size: 1.1rem;
    color: var(--vb57-text);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Category Title */
.vb57-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--vb57-primary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--vb57-border);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.vb57-category-title i {
    color: var(--vb57-highlight);
}

/* Features Section */
.vb57-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-top: 1.6rem;
}

.vb57-feature-card {
    background: var(--vb57-bg-light);
    border-radius: var(--vb57-radius);
    padding: 1.6rem;
    text-align: center;
    border: 1px solid var(--vb57-border);
    transition: var(--vb57-transition);
}

.vb57-feature-card:hover {
    border-color: var(--vb57-accent);
    transform: translateY(-2px);
}

.vb57-feature-icon {
    font-size: 3rem;
    color: var(--vb57-accent);
    margin-bottom: 1rem;
}

.vb57-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--vb57-primary);
    margin-bottom: 0.5rem;
}

.vb57-feature-desc {
    font-size: 1.2rem;
    color: var(--vb57-text-muted);
}

/* Info Card */
.vb57-info-card {
    background: var(--vb57-bg-light);
    border-radius: var(--vb57-radius);
    padding: 2rem;
    margin: 1.6rem 0;
    border: 1px solid var(--vb57-border);
}

.vb57-info-card h3 {
    color: var(--vb57-accent);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.vb57-info-card p {
    color: var(--vb57-text-muted);
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.vb57-info-card p:last-child {
    margin-bottom: 0;
}

/* Promo Link */
.vb57-promo-link {
    color: var(--vb57-accent);
    font-weight: 600;
    cursor: pointer;
    transition: var(--vb57-transition);
}

.vb57-promo-link:hover {
    color: var(--vb57-highlight);
    text-decoration: underline;
}

/* Footer */
.vb57-footer {
    background: var(--vb57-bg-light);
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--vb57-border);
}

.vb57-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.vb57-footer-link {
    font-size: 1.3rem;
    color: var(--vb57-text-muted);
    transition: var(--vb57-transition);
}

.vb57-footer-link:hover {
    color: var(--vb57-primary);
}

.vb57-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.vb57-partners img {
    height: 24px;
    opacity: 0.7;
    transition: var(--vb57-transition);
}

.vb57-partners img:hover {
    opacity: 1;
}

.vb57-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--vb57-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--vb57-border);
}

/* Bottom Navigation */
.vb57-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--vb57-bg-light), var(--vb57-bg-dark));
    border-top: 1px solid var(--vb57-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 0 0.5rem;
}

.vb57-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    border-radius: var(--vb57-radius-sm);
    cursor: pointer;
    transition: var(--vb57-transition);
    background: transparent;
    border: none;
    color: var(--vb57-text-muted);
}

.vb57-nav-btn:hover {
    background: rgba(186, 225, 255, 0.1);
}

.vb57-nav-btn.active {
    color: var(--vb57-accent);
}

.vb57-nav-btn i,
.vb57-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 0.2rem;
}

.vb57-nav-btn span {
    font-size: 1rem;
    font-weight: 500;
}

/* Desktop: Hide bottom nav */
@media (min-width: 769px) {
    .vb57-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 2rem;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Responsive Grid */
@media (max-width: 380px) {
    .vb57-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .vb57-game-name {
        font-size: 1rem;
    }
}

/* Utility Classes */
.vb57-text-center { text-align: center; }
.vb57-text-accent { color: var(--vb57-accent); }
.vb57-text-primary { color: var(--vb57-primary); }
.vb57-text-muted { color: var(--vb57-text-muted); }
.vb57-mt-1 { margin-top: 1rem; }
.vb57-mt-2 { margin-top: 2rem; }
.vb57-mb-1 { margin-bottom: 1rem; }
.vb57-mb-2 { margin-bottom: 2rem; }

/* List Styles */
.vb57-list {
    padding-left: 2rem;
}

.vb57-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.8rem;
    color: var(--vb57-text-muted);
}

.vb57-list li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--vb57-accent);
    border-radius: 50%;
}

/* FAQ Styles */
.vb57-faq-item {
    background: var(--vb57-bg-light);
    border-radius: var(--vb57-radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.vb57-faq-question {
    padding: 1.2rem 1.6rem;
    font-weight: 600;
    color: var(--vb57-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vb57-faq-question i {
    color: var(--vb57-accent);
}

.vb57-faq-answer {
    padding: 0 1.6rem 1.2rem;
    color: var(--vb57-text-muted);
    font-size: 1.4rem;
    line-height: 1.6;
}

/* RTP Table */
.vb57-rtp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.vb57-rtp-table th,
.vb57-rtp-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--vb57-border);
}

.vb57-rtp-table th {
    color: var(--vb57-accent);
    font-weight: 600;
}

.vb57-rtp-table td {
    color: var(--vb57-text-muted);
}

.vb57-rtp-value {
    color: var(--vb57-highlight);
    font-weight: 600;
}
