/**
 * winph99 Layout Stylesheet
 * Mobile-first responsive design
 * @version 1.0.0
 */

/* CSS Variables with prefix */
:root {
    --vfb8-primary: #7B68EE;
    --vfb8-bg: #0F0F23;
    --vfb8-text: #7B68EE;
    --vfb8-bg-light: #1a1a3e;
    --vfb8-border: #2a2a5a;
    --vfb8-accent: #FFD700;
    --vfb8-success: #00ff88;
    --vfb8-gradient: linear-gradient(135deg, #0F0F23 0%, #1a1a3e 100%);
    --vfb8-shadow: 0 4px 20px rgba(123, 104, 238, 0.3);
}

/* 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;
    background: var(--vfb8-bg);
    color: var(--vfb8-text);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header Styles */
.vfb8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--vfb8-bg);
    border-bottom: 1px solid var(--vfb8-border);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.vfb8-header-scrolled {
    background: rgba(15, 15, 35, 0.95);
    box-shadow: var(--vfb8-shadow);
}

.vfb8-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.vfb8-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.vfb8-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.vfb8-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--vfb8-primary);
    text-shadow: 0 0 10px rgba(123, 104, 238, 0.5);
}

.vfb8-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.vfb8-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.vfb8-btn-primary {
    background: var(--vfb8-primary);
    color: #fff;
}

.vfb8-btn-primary:hover {
    background: #8B79F0;
    transform: translateY(-2px);
    box-shadow: var(--vfb8-shadow);
}

.vfb8-btn-outline {
    background: transparent;
    border: 1px solid var(--vfb8-primary);
    color: var(--vfb8-primary);
}

.vfb8-btn-outline:hover {
    background: rgba(123, 104, 238, 0.1);
}

.vfb8-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--vfb8-primary);
    cursor: pointer;
    font-size: 2rem;
}

/* Mobile Menu */
.vfb8-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--vfb8-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.vfb8-menu-active {
    right: 0;
}

.vfb8-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vfb8-overlay-active {
    opacity: 1;
    visibility: visible;
}

.vfb8-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--vfb8-primary);
    font-size: 2.4rem;
    cursor: pointer;
}

.vfb8-nav-list {
    list-style: none;
    margin-top: 3rem;
}

.vfb8-nav-item {
    margin-bottom: 0.8rem;
}

.vfb8-nav-link {
    display: block;
    padding: 1rem;
    color: var(--vfb8-text);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.vfb8-nav-link:hover {
    background: rgba(123, 104, 238, 0.2);
    color: #fff;
}

/* Main Content */
.vfb8-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Carousel/Slider */
.vfb8-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.vfb8-slides-container {
    display: flex;
    transition: transform 0.5s ease;
}

.vfb8-slide {
    min-width: 100%;
    cursor: pointer;
}

.vfb8-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.vfb8-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 0;
}

.vfb8-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vfb8-border);
    cursor: pointer;
    transition: background 0.3s ease;
}

.vfb8-dot-active {
    background: var(--vfb8-primary);
}

/* Section Styles */
.vfb8-section {
    padding: 1.5rem 0;
}

.vfb8-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vfb8-primary);
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 15px rgba(123, 104, 238, 0.5);
}

.vfb8-section-subtitle {
    font-size: 1.3rem;
    color: var(--vfb8-text);
    opacity: 0.8;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Game Grid */
.vfb8-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.vfb8-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.vfb8-game-item:hover {
    transform: scale(1.05);
}

.vfb8-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vfb8-game-name {
    font-size: 1rem;
    color: var(--vfb8-text);
    text-align: center;
    margin-top: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Category Section */
.vfb8-category {
    margin-bottom: 2rem;
}

.vfb8-category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--vfb8-border);
}

.vfb8-category-icon {
    font-size: 2rem;
    color: var(--vfb8-accent);
}

.vfb8-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

/* Cards */
.vfb8-card {
    background: var(--vfb8-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--vfb8-border);
}

.vfb8-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--vfb8-primary);
    margin-bottom: 0.8rem;
}

.vfb8-card-text {
    font-size: 1.3rem;
    color: var(--vfb8-text);
    line-height: 1.8;
    opacity: 0.9;
}

/* Promo Links */
.vfb8-promo-link {
    color: var(--vfb8-accent);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.vfb8-promo-link:hover {
    color: #FFE44D;
    text-decoration: underline;
}

/* Footer */
.vfb8-footer {
    background: var(--vfb8-bg-light);
    padding: 2rem 0;
    border-top: 1px solid var(--vfb8-border);
}

.vfb8-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.vfb8-footer-desc {
    font-size: 1.2rem;
    color: var(--vfb8-text);
    opacity: 0.8;
    line-height: 1.6;
    max-width: 350px;
    margin: 0 auto;
}

.vfb8-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.vfb8-footer-link {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background: rgba(123, 104, 238, 0.2);
    border-radius: 20px;
    color: var(--vfb8-text);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.vfb8-footer-link:hover {
    background: var(--vfb8-primary);
    color: #fff;
}

.vfb8-footer-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--vfb8-text);
    opacity: 0.6;
}

/* Bottom Navigation */
.vfb8-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, #1a1a3e 0%, #0F0F23 100%);
    border-top: 1px solid var(--vfb8-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.vfb8-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--vfb8-text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vfb8-nav-btn:hover,
.vfb8-nav-btn-active {
    color: var(--vfb8-primary);
    transform: scale(1.1);
}

.vfb8-nav-btn i,
.vfb8-nav-btn .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
}

.vfb8-nav-btn span {
    font-size: 1rem;
    font-weight: 500;
}

/* Feature List */
.vfb8-feature-list {
    list-style: none;
}

.vfb8-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--vfb8-border);
}

.vfb8-feature-item:last-child {
    border-bottom: none;
}

.vfb8-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 104, 238, 0.2);
    border-radius: 8px;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.vfb8-feature-content h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.4rem;
}

.vfb8-feature-content p {
    font-size: 1.2rem;
    color: var(--vfb8-text);
    opacity: 0.8;
}

/* Testimonials */
.vfb8-testimonial {
    background: var(--vfb8-bg-light);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--vfb8-primary);
}

.vfb8-testimonial-text {
    font-size: 1.3rem;
    color: var(--vfb8-text);
    font-style: italic;
    margin-bottom: 0.8rem;
}

.vfb8-testimonial-author {
    font-size: 1.2rem;
    color: var(--vfb8-accent);
    font-weight: 600;
}

/* Payment Methods */
.vfb8-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.vfb8-payment-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    background: var(--vfb8-bg-light);
    border-radius: 8px;
    border: 1px solid var(--vfb8-border);
}

.vfb8-payment-item i {
    font-size: 2rem;
    color: var(--vfb8-primary);
}

.vfb8-payment-item span {
    font-size: 1.2rem;
    color: var(--vfb8-text);
}

/* Stats Grid */
.vfb8-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.vfb8-stat-item {
    text-align: center;
    padding: 1.2rem;
    background: var(--vfb8-bg-light);
    border-radius: 10px;
    border: 1px solid var(--vfb8-border);
}

.vfb8-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vfb8-accent);
}

.vfb8-stat-label {
    font-size: 1.1rem;
    color: var(--vfb8-text);
    opacity: 0.8;
}

/* FAQ Accordion */
.vfb8-faq-item {
    background: var(--vfb8-bg-light);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.vfb8-faq-question {
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vfb8-faq-answer {
    padding: 0 1.2rem 1.2rem;
    font-size: 1.2rem;
    color: var(--vfb8-text);
    line-height: 1.6;
}

/* CTA Section */
.vfb8-cta {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.3) 0%, rgba(15, 15, 35, 0.9) 100%);
    border-radius: 16px;
    margin: 1.5rem 0;
}

.vfb8-cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
}

.vfb8-cta-text {
    font-size: 1.3rem;
    color: var(--vfb8-text);
    margin-bottom: 1.5rem;
}

.vfb8-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: var(--vfb8-primary);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vfb8-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(123, 104, 238, 0.4);
}

/* Winners Showcase */
.vfb8-winners {
    background: var(--vfb8-bg-light);
    border-radius: 12px;
    padding: 1rem;
}

.vfb8-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--vfb8-border);
}

.vfb8-winner-item:last-child {
    border-bottom: none;
}

.vfb8-winner-name {
    font-size: 1.2rem;
    color: #fff;
}

.vfb8-winner-amount {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--vfb8-success);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .vfb8-bottom-nav {
        display: none;
    }

    .vfb8-main {
        padding-bottom: 2rem;
    }
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .vfb8-container {
        max-width: 1200px;
    }

    .vfb8-header-inner {
        max-width: 1200px;
    }

    .vfb8-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .vfb8-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
