/**
 * i8 Club - Theme Stylesheet
 * All classes use prefix: vbf4-
 * Color Palette: #F4A460 (sandy), #FF8C00 (orange), #FFA500 (amber), #3A3A3A (dark)
 */

/* CSS Variables */
:root {
    --vbf4-primary: #FF8C00;
    --vbf4-primary-light: #FFA500;
    --vbf4-primary-dark: #E67E00;
    --vbf4-secondary: #F4A460;
    --vbf4-bg: #3A3A3A;
    --vbf4-bg-dark: #2D2D2D;
    --vbf4-bg-light: #4A4A4A;
    --vbf4-text: #FFFFFF;
    --vbf4-text-muted: #B8B8B8;
    --vbf4-text-dark: #3A3A3A;
    --vbf4-accent: #FFD700;
    --vbf4-success: #4CAF50;
    --vbf4-danger: #F44336;
    --vbf4-radius-sm: 6px;
    --vbf4-radius-md: 10px;
    --vbf4-radius-lg: 16px;
    --vbf4-shadow: 0 4px 15px rgba(0,0,0,0.3);
    --vbf4-shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
    --vbf4-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background: var(--vbf4-bg);
    color: var(--vbf4-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--vbf4-primary-light); text-decoration: none; transition: var(--vbf4-transition); }
a:hover { color: var(--vbf4-accent); }

/* Container */
.vbf4-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.vbf4-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--vbf4-bg-dark) 0%, rgba(45,45,45,0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,140,0,0.2);
}

.vbf4-header-scrolled {
    box-shadow: var(--vbf4-shadow);
}

.vbf4-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.vbf4-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.vbf4-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--vbf4-radius-sm);
}

.vbf4-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vbf4-primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vbf4-header-btns {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Buttons */
.vbf4-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.4rem;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: var(--vbf4-radius-md);
    cursor: pointer;
    transition: var(--vbf4-transition);
    white-space: nowrap;
    min-height: 44px;
}

.vbf4-btn-primary {
    background: linear-gradient(135deg, var(--vbf4-primary) 0%, var(--vbf4-primary-dark) 100%);
    color: var(--vbf4-text);
    box-shadow: 0 4px 15px rgba(255,140,0,0.4);
}

.vbf4-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,140,0,0.5);
}

.vbf4-btn-outline {
    background: transparent;
    color: var(--vbf4-primary-light);
    border: 2px solid var(--vbf4-primary);
}

.vbf4-btn-outline:hover {
    background: var(--vbf4-primary);
    color: var(--vbf4-text);
}

.vbf4-btn-secondary {
    background: var(--vbf4-bg-light);
    color: var(--vbf4-text);
    border: 1px solid var(--vbf4-secondary);
}

.vbf4-btn-lg {
    padding: 1.2rem 2rem;
    font-size: 1.5rem;
}

.vbf4-btn-block {
    width: 100%;
}

.vbf4-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--vbf4-bg-light);
    border: none;
    border-radius: var(--vbf4-radius-sm);
    color: var(--vbf4-primary-light);
    font-size: 2rem;
    cursor: pointer;
}

/* Mobile Menu Overlay */
.vbf4-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    visibility: hidden;
    transition: var(--vbf4-transition);
    z-index: 9998;
}

.vbf4-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.vbf4-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--vbf4-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.vbf4-menu-active {
    right: 0;
}

.vbf4-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--vbf4-bg-light);
}

.vbf4-menu-close {
    width: 40px;
    height: 40px;
    background: var(--vbf4-bg-light);
    border: none;
    border-radius: var(--vbf4-radius-sm);
    color: var(--vbf4-text);
    font-size: 1.8rem;
    cursor: pointer;
}

.vbf4-menu-nav {
    list-style: none;
    padding: 1rem 0;
}

.vbf4-menu-nav li a {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    color: var(--vbf4-text);
    font-size: 1.5rem;
    border-bottom: 1px solid var(--vbf4-bg-light);
}

.vbf4-menu-nav li a:hover {
    background: var(--vbf4-bg-light);
    color: var(--vbf4-primary-light);
}

.vbf4-menu-nav li a i {
    width: 24px;
    color: var(--vbf4-primary);
}

/* Main Content */
.vbf4-main {
    padding-top: 70px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Carousel */
.vbf4-carousel {
    position: relative;
    margin-bottom: 2rem;
    border-radius: var(--vbf4-radius-lg);
    overflow: hidden;
}

.vbf4-slide {
    display: none;
    width: 100%;
}

.vbf4-slide-active {
    display: block;
}

.vbf4-slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    cursor: pointer;
}

.vbf4-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.vbf4-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--vbf4-transition);
}

.vbf4-dot-active {
    background: var(--vbf4-primary);
    transform: scale(1.2);
}

/* Cards */
.vbf4-card {
    background: var(--vbf4-bg-light);
    border-radius: var(--vbf4-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,140,0,0.15);
}

.vbf4-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vbf4-primary-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.vbf4-content-text {
    color: var(--vbf4-text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Stats Grid */
.vbf4-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vbf4-stat-card {
    background: var(--vbf4-bg-dark);
    border-radius: var(--vbf4-radius-md);
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255,140,0,0.2);
}

.vbf4-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--vbf4-accent);
}

.vbf4-stat-label {
    font-size: 1.1rem;
    color: var(--vbf4-text-muted);
}

/* Game Grid */
.vbf4-section {
    margin-bottom: 2rem;
}

.vbf4-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.vbf4-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--vbf4-primary-light);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.vbf4-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.vbf4-game-card {
    text-align: center;
    cursor: pointer;
    transition: var(--vbf4-transition);
}

.vbf4-game-card:hover {
    transform: translateY(-4px);
}

.vbf4-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--vbf4-radius-md);
    border: 2px solid transparent;
    transition: var(--vbf4-transition);
}

.vbf4-game-card:hover img {
    border-color: var(--vbf4-primary);
}

.vbf4-game-name {
    font-size: 1.1rem;
    color: var(--vbf4-text);
    margin-top: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Feature List */
.vbf4-feature-list {
    list-style: none;
}

.vbf4-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--vbf4-bg);
}

.vbf4-feature-list li:last-child {
    border-bottom: none;
}

.vbf4-feature-list li i {
    color: var(--vbf4-primary);
    font-size: 1.8rem;
    min-width: 24px;
}

/* RTP Grid */
.vbf4-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.vbf4-rtp-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--vbf4-bg-dark);
    border-radius: var(--vbf4-radius-sm);
}

.vbf4-rtp-game {
    font-size: 1.3rem;
    color: var(--vbf4-text);
}

.vbf4-rtp-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--vbf4-success);
}

/* Accordion */
.vbf4-accordion-item {
    background: var(--vbf4-bg-light);
    border-radius: var(--vbf4-radius-md);
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.vbf4-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
}

.vbf4-accordion-header i:last-child {
    transition: var(--vbf4-transition);
}

.vbf4-accordion-open .vbf4-accordion-header i:last-child {
    transform: rotate(180deg);
}

.vbf4-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.vbf4-accordion-open .vbf4-accordion-content {
    max-height: 500px;
}

.vbf4-accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--vbf4-text-muted);
}

/* CTA Banner */
.vbf4-cta-banner {
    background: linear-gradient(135deg, var(--vbf4-primary) 0%, var(--vbf4-primary-dark) 100%);
    border-radius: var(--vbf4-radius-lg);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.vbf4-cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vbf4-text);
    margin-bottom: 0.5rem;
}

.vbf4-cta-text {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.vbf4-cta-banner .vbf4-btn {
    background: var(--vbf4-text);
    color: var(--vbf4-primary-dark);
}

/* Footer */
.vbf4-footer {
    background: var(--vbf4-bg-dark);
    padding: 2rem 0;
    border-top: 1px solid var(--vbf4-bg-light);
}

.vbf4-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.vbf4-footer-links a {
    color: var(--vbf4-text-muted);
    font-size: 1.3rem;
}

.vbf4-footer-links a:hover {
    color: var(--vbf4-primary-light);
}

.vbf4-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.vbf4-partners img {
    height: 24px;
    width: auto;
}

.vbf4-footer-copy {
    text-align: center;
    font-size: 1.2rem;
    color: var(--vbf4-text-muted);
}

/* Bottom Navigation */
.vbf4-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--vbf4-bg-dark);
    border-top: 1px solid var(--vbf4-bg-light);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.vbf4-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    height: 60px;
}

.vbf4-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 60px;
    min-height: 56px;
    background: transparent;
    border: none;
    color: var(--vbf4-text-muted);
    cursor: pointer;
    transition: var(--vbf4-transition);
    padding: 0.5rem;
}

.vbf4-bottom-btn:hover,
.vbf4-bottom-btn.vbf4-nav-active {
    color: var(--vbf4-primary-light);
}

.vbf4-bottom-btn:active {
    transform: scale(0.95);
}

.vbf4-bottom-btn i,
.vbf4-bottom-btn .material-icons {
    font-size: 22px;
}

.vbf4-bottom-btn span:last-child {
    font-size: 1rem;
}

/* Desktop hide bottom nav */
@media (min-width: 769px) {
    .vbf4-bottom-nav {
        display: none;
    }
    .vbf4-main {
        padding-bottom: 2rem;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .vbf4-main {
        padding-bottom: 80px;
    }
    .vbf4-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vbf4-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }
}

/* Utility Classes */
.vbf4-text-center { text-align: center; }
.vbf4-text-primary { color: var(--vbf4-primary-light); }
.vbf4-text-muted { color: var(--vbf4-text-muted); }
.vbf4-mb-1 { margin-bottom: 1rem; }
.vbf4-mb-2 { margin-bottom: 2rem; }
.vbf4-mt-1 { margin-top: 1rem; }
.vbf4-mt-2 { margin-top: 2rem; }
.vbf4-hidden { display: none; }

/* Animations */
@keyframes vbf4-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.vbf4-loaded .vbf4-card,
.vbf4-loaded .vbf4-section {
    animation: vbf4-fadeIn 0.5s ease forwards;
}
