/**
 * 222jl - Theme Stylesheet
 * All classes use vfb8- prefix for namespace isolation
 * Color palette: #CD5C5C | #ADB5BD | #2E4057 | #36454F | #F08080 | #8B008B
 * Mobile-first design for Philippine market
 */

/* CSS Variables */
:root {
    --vfb8-primary: #CD5C5C;
    --vfb8-secondary: #8B008B;
    --vfb8-accent: #F08080;
    --vfb8-bg-dark: #2E4057;
    --vfb8-bg-darker: #36454F;
    --vfb8-text-light: #ADB5BD;
    --vfb8-text-white: #F5F5F5;
    --vfb8-gold: #D4AF37;
    --vfb8-gradient: linear-gradient(135deg, #2E4057 0%, #36454F 50%, #8B008B 100%);
    --vfb8-radius: 10px;
    --vfb8-radius-sm: 6px;
    --vfb8-shadow: 0 4px 15px rgba(0,0,0,0.3);
    --vfb8-shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
    --vfb8-transition: all 0.3s ease;
    --vfb8-header-h: 56px;
    --vfb8-bottom-h: 60px;
}

/* Reset & Base */
*, *::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;
    background: var(--vfb8-bg-dark);
    color: var(--vfb8-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--vfb8-accent); text-decoration: none; transition: var(--vfb8-transition); }
a:hover { color: var(--vfb8-primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.vfb8-container { max-width: 430px; margin: 0 auto; padding: 0 12px; width: 100%; }
.vfb8-wrapper { padding: 0 12px; }

/* Header */
.vfb8-header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--vfb8-header-h);
    background: linear-gradient(180deg, #36454F 0%, #2E4057 100%);
    border-bottom: 2px solid var(--vfb8-primary);
    z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px;
}
.vfb8-header-logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.vfb8-header-logo img { width: 30px; height: 30px; border-radius: 4px; }
.vfb8-header-logo span {
    font-size: 1.8rem; font-weight: 700;
    color: var(--vfb8-text-white);
    background: linear-gradient(90deg, #CD5C5C, #F08080, #D4AF37);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.vfb8-header-actions { display: flex; align-items: center; gap: 8px; }
.vfb8-btn-register {
    background: linear-gradient(135deg, var(--vfb8-primary), #8B008B);
    color: var(--vfb8-text-white); border: none;
    padding: 6px 14px; border-radius: var(--vfb8-radius-sm);
    font-size: 1.2rem; font-weight: 600; cursor: pointer;
    transition: var(--vfb8-transition);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.vfb8-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(205,92,92,0.5); }
.vfb8-btn-login {
    background: transparent; color: var(--vfb8-accent);
    border: 1px solid var(--vfb8-accent);
    padding: 5px 12px; border-radius: var(--vfb8-radius-sm);
    font-size: 1.2rem; font-weight: 600; cursor: pointer;
    transition: var(--vfb8-transition);
}
.vfb8-btn-login:hover { background: var(--vfb8-accent); color: var(--vfb8-bg-dark); }
.vfb8-menu-toggle {
    background: none; border: none; color: var(--vfb8-text-light);
    font-size: 2rem; cursor: pointer; padding: 4px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--vfb8-transition);
}
.vfb8-menu-toggle:hover { color: var(--vfb8-primary); }

/* Mobile Menu */
.vfb8-mobile-menu {
    position: fixed; top: 0; right: -280px;
    width: 280px; height: 100vh;
    background: linear-gradient(180deg, #36454F, #2E4057);
    z-index: 9999;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 70px 16px 20px;
    overflow-y: auto;
}
.vfb8-mobile-menu.vfb8-menu-active { right: 0; }
.vfb8-mobile-menu .vfb8-menu-close {
    position: absolute; top: 14px; right: 14px;
    background: none; border: none; color: var(--vfb8-text-light);
    font-size: 2.2rem; cursor: pointer;
}
.vfb8-menu-link {
    display: block; padding: 12px 14px;
    color: var(--vfb8-text-light); font-size: 1.4rem;
    border-bottom: 1px solid rgba(173,181,189,0.15);
    transition: var(--vfb8-transition);
}
.vfb8-menu-link:hover, .vfb8-menu-link:focus {
    color: var(--vfb8-primary);
    background: rgba(205,92,92,0.1);
    padding-left: 20px;
}
.vfb8-menu-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.vfb8-menu-overlay.vfb8-overlay-active { opacity: 1; pointer-events: auto; }

/* Main Content */
.vfb8-main {
    padding-top: calc(var(--vfb8-header-h) + 8px);
    min-height: 100vh;
}

/* Carousel */
.vfb8-carousel {
    position: relative; overflow: hidden;
    border-radius: var(--vfb8-radius);
    margin-bottom: 16px;
    aspect-ratio: 16/7;
}
.vfb8-carousel-slide {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.6s ease;
    cursor: pointer;
}
.vfb8-carousel-slide.vfb8-slide-active { opacity: 1; }
.vfb8-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.vfb8-carousel-dots {
    position: absolute; bottom: 8px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 2;
}
.vfb8-carousel-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(173,181,189,0.5); border: none;
    cursor: pointer; transition: var(--vfb8-transition);
}
.vfb8-carousel-dot.vfb8-dot-active {
    background: var(--vfb8-primary);
    transform: scale(1.3);
}

/* Section Headings */
.vfb8-section-title {
    font-size: 1.8rem; font-weight: 700;
    color: var(--vfb8-text-white);
    margin: 20px 0 12px; padding-bottom: 8px;
    border-bottom: 2px solid var(--vfb8-primary);
    display: flex; align-items: center; gap: 8px;
}
.vfb8-section-title i { color: var(--vfb8-primary); }

/* Game Grid */
.vfb8-game-section { margin-bottom: 20px; }
.vfb8-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.vfb8-game-item {
    text-align: center; cursor: pointer;
    transition: var(--vfb8-transition);
    border-radius: var(--vfb8-radius-sm);
    padding: 6px 4px;
    background: rgba(54,69,79,0.6);
}
.vfb8-game-item:hover {
    transform: translateY(-3px);
    background: rgba(205,92,92,0.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.vfb8-game-item img {
    width: 100%; aspect-ratio: 1;
    border-radius: var(--vfb8-radius-sm);
    margin-bottom: 4px;
}
.vfb8-game-item span {
    font-size: 1.05rem; color: var(--vfb8-text-light);
    display: block; line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Cards */
.vfb8-card {
    background: linear-gradient(145deg, rgba(54,69,79,0.8), rgba(46,64,87,0.9));
    border-radius: var(--vfb8-radius);
    padding: 16px; margin-bottom: 16px;
    border: 1px solid rgba(173,181,189,0.1);
    box-shadow: var(--vfb8-shadow);
}
.vfb8-card-title {
    font-size: 1.6rem; font-weight: 700;
    color: var(--vfb8-text-white);
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}
.vfb8-card-title i { color: var(--vfb8-gold); }

/* Promo Buttons */
.vfb8-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--vfb8-primary), var(--vfb8-secondary));
    color: var(--vfb8-text-white); border: none;
    padding: 10px 22px; border-radius: var(--vfb8-radius-sm);
    font-size: 1.3rem; font-weight: 700; cursor: pointer;
    transition: var(--vfb8-transition);
    text-align: center;
    text-transform: uppercase;
}
.vfb8-promo-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(205,92,92,0.4); }
.vfb8-promo-btn-lg {
    display: block; width: 100%;
    padding: 14px; font-size: 1.5rem;
    background: linear-gradient(135deg, var(--vfb8-primary), var(--vfb8-secondary));
    color: var(--vfb8-text-white); border: none;
    border-radius: var(--vfb8-radius);
    font-weight: 700; cursor: pointer;
    transition: var(--vfb8-transition);
    text-align: center; margin: 12px 0;
    animation: vfb8-pulse 2s infinite;
}
.vfb8-promo-btn-lg:hover { transform: scale(1.02); }
@keyframes vfb8-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(205,92,92,0.4); }
    50% { box-shadow: 0 0 20px 4px rgba(205,92,92,0.3); }
}

/* Text styles */
.vfb8-text-accent { color: var(--vfb8-accent); }
.vfb8-text-primary { color: var(--vfb8-primary); }
.vfb8-text-gold { color: var(--vfb8-gold); }
.vfb8-text-white { color: var(--vfb8-text-white); }
.vfb8-text-bold { font-weight: 700; }
.vfb8-text-sm { font-size: 1.2rem; }
.vfb8-text-center { text-align: center; }

/* Feature List */
.vfb8-feature-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin: 12px 0;
}
.vfb8-feature-item {
    background: rgba(54,69,79,0.5);
    border-radius: var(--vfb8-radius-sm);
    padding: 12px; text-align: center;
    border: 1px solid rgba(205,92,92,0.2);
    transition: var(--vfb8-transition);
}
.vfb8-feature-item:hover { border-color: var(--vfb8-primary); }
.vfb8-feature-item i { font-size: 2.2rem; color: var(--vfb8-primary); margin-bottom: 6px; }
.vfb8-feature-item p { font-size: 1.2rem; color: var(--vfb8-text-light); margin-top: 4px; }

/* Winner List */
.vfb8-winner-list { margin: 8px 0; }
.vfb8-winner-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(173,181,189,0.1);
    font-size: 1.2rem;
}
.vfb8-winner-row:last-child { border-bottom: none; }
.vfb8-winner-name { color: var(--vfb8-gold); font-weight: 600; }
.vfb8-winner-game { color: var(--vfb8-text-light); flex: 1; margin: 0 10px; }
.vfb8-winner-amount { color: var(--vfb8-primary); font-weight: 700; }

/* Payment Grid */
.vfb8-payment-grid {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center; margin: 12px 0;
}
.vfb8-payment-item {
    background: rgba(54,69,79,0.5);
    border-radius: var(--vfb8-radius-sm);
    padding: 8px 14px;
    font-size: 1.2rem;
    border: 1px solid rgba(173,181,189,0.2);
    color: var(--vfb8-text-light);
}

/* FAQ */
.vfb8-faq-item {
    margin-bottom: 10px;
    background: rgba(54,69,79,0.4);
    border-radius: var(--vfb8-radius-sm);
    overflow: hidden;
}
.vfb8-faq-q {
    padding: 10px 12px;
    font-weight: 600;
    color: var(--vfb8-text-white);
    font-size: 1.3rem;
    cursor: pointer;
}
.vfb8-faq-a {
    padding: 8px 12px 10px;
    font-size: 1.2rem;
    color: var(--vfb8-text-light);
    line-height: 1.5;
}

/* Testimonials */
.vfb8-testimonial {
    background: rgba(46,64,87,0.6);
    border-radius: var(--vfb8-radius);
    padding: 14px; margin-bottom: 10px;
    border-left: 3px solid var(--vfb8-primary);
}
.vfb8-testimonial p { font-size: 1.2rem; font-style: italic; margin-bottom: 6px; }
.vfb8-testimonial-author { font-size: 1.1rem; color: var(--vfb8-gold); font-weight: 600; }

/* Footer */
.vfb8-footer {
    background: linear-gradient(180deg, var(--vfb8-bg-darker), #1a2a3a);
    padding: 24px 12px 80px;
    border-top: 2px solid var(--vfb8-primary);
    margin-top: 24px;
}
.vfb8-footer-brand { text-align: center; margin-bottom: 16px; }
.vfb8-footer-brand p { font-size: 1.2rem; color: var(--vfb8-text-light); line-height: 1.6; }
.vfb8-footer-links {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px 12px; margin: 14px 0;
}
.vfb8-footer-links a {
    font-size: 1.2rem; color: var(--vfb8-accent);
    transition: var(--vfb8-transition);
}
.vfb8-footer-links a:hover { color: var(--vfb8-primary); }
.vfb8-footer-copyright {
    text-align: center; font-size: 1.1rem;
    color: rgba(173,181,189,0.5);
    margin-top: 12px;
}

/* Bottom Navigation */
.vfb8-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--vfb8-bottom-h);
    background: linear-gradient(180deg, #2E4057, #1a2a3a);
    border-top: 2px solid var(--vfb8-primary);
    display: flex; justify-content: space-around; align-items: center;
    z-index: 1000;
    padding: 2px 0;
}
.vfb8-bottom-btn {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-width: 60px; min-height: 52px;
    background: none; border: none;
    color: var(--vfb8-text-light);
    font-size: 1rem; cursor: pointer;
    transition: var(--vfb8-transition);
    border-radius: var(--vfb8-radius-sm);
    padding: 2px 4px;
}
.vfb8-bottom-btn i, .vfb8-bottom-btn .material-icons {
    font-size: 22px; margin-bottom: 2px;
    transition: var(--vfb8-transition);
}
.vfb8-bottom-btn span { font-size: 0.95rem; }
.vfb8-bottom-btn:hover, .vfb8-bottom-btn:focus {
    color: var(--vfb8-primary);
    background: rgba(205,92,92,0.1);
}
.vfb8-bottom-btn:hover i, .vfb8-bottom-btn:hover .material-icons {
    transform: scale(1.15);
}
.vfb8-bottom-btn.vfb8-active {
    color: var(--vfb8-primary);
}
.vfb8-bottom-btn.vfb8-active::after {
    content: ''; display: block;
    width: 20px; height: 2px;
    background: var(--vfb8-primary);
    border-radius: 1px; margin-top: 1px;
}

/* Scroll Animations */
.vfb8-animate-on-scroll {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.vfb8-animate-on-scroll.vfb8-visible {
    opacity: 1; transform: translateY(0);
}

/* Promo text links */
.vfb8-promo-link {
    color: var(--vfb8-primary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: var(--vfb8-transition);
}
.vfb8-promo-link:hover { color: var(--vfb8-accent); }

/* Internal links */
.vfb8-internal-link {
    color: var(--vfb8-accent);
    text-decoration: underline;
    transition: var(--vfb8-transition);
}
.vfb8-internal-link:hover { color: var(--vfb8-gold); }

/* Stars rating */
.vfb8-stars { color: var(--vfb8-gold); font-size: 1.2rem; }

/* RTP Table */
.vfb8-rtp-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.vfb8-rtp-table th {
    background: var(--vfb8-primary); color: var(--vfb8-text-white);
    padding: 8px 6px; font-size: 1.1rem; text-align: left;
}
.vfb8-rtp-table td {
    padding: 7px 6px; font-size: 1.1rem;
    border-bottom: 1px solid rgba(173,181,189,0.15);
    color: var(--vfb8-text-light);
}
.vfb8-rtp-table tr:hover td { background: rgba(205,92,92,0.08); }

/* Responsive */
@media (max-width: 768px) {
    .vfb8-main { padding-bottom: calc(var(--vfb8-bottom-h) + 16px); }
}
@media (min-width: 769px) {
    .vfb8-bottom-nav { display: none; }
    .vfb8-container { max-width: 430px; }
}
