/**
 * 888bet Website Stylesheet
 * All classes use prefix "v4f7-" for namespace isolation
 * Mobile-first responsive design
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --v4f7-primary: #DA70D6;
    --v4f7-secondary: #DDA0DD;
    --v4f7-bg: #1a1a2e;
    --v4f7-bg-light: #16213e;
    --v4f7-text: #F0F0F0;
    --v4f7-text-dark: #333333;
    --v4f7-accent: #DA70D6;
    --v4f7-gradient: linear-gradient(135deg, #DA70D6 0%, #DDA0DD 100%);
    --v4f7-shadow: 0 4px 15px rgba(218, 112, 214, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--v4f7-bg);
    color: var(--v4f7-text);
    line-height: 1.5rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.v4f7-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v4f7-wrapper {
    padding: 1rem;
}

/* Header */
.v4f7-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--v4f7-bg-light);
    padding: 1rem;
    box-shadow: var(--v4f7-shadow);
}

.v4f7-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.v4f7-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v4f7-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.v4f7-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--v4f7-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v4f7-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.v4f7-btn {
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.v4f7-btn-primary {
    background: var(--v4f7-gradient);
    color: white;
}

.v4f7-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--v4f7-shadow);
}

.v4f7-btn-outline {
    background: transparent;
    border: 2px solid var(--v4f7-primary);
    color: var(--v4f7-primary);
}

.v4f7-btn-outline:hover {
    background: var(--v4f7-primary);
    color: white;
}

/* Menu Toggle */
.v4f7-menu-toggle {
    background: none;
    border: none;
    color: var(--v4f7-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.v4f7-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v4f7-bg-light);
    z-index: 9999;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.app96a-menu-active {
    right: 0;
}

.v4f7-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.app96a-overlay-active {
    opacity: 1;
    visibility: visible;
}

.v4f7-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--v4f7-primary);
}

.v4f7-menu-close {
    background: none;
    border: none;
    color: var(--v4f7-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.v4f7-menu-links {
    list-style: none;
}

.v4f7-menu-link {
    display: block;
    padding: 1.2rem 0;
    font-size: 1.4rem;
    color: var(--v4f7-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.v4f7-menu-link:hover {
    color: var(--v4f7-primary);
}

/* Main Content */
.v4f7-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Carousel */
.v4f7-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.v4f7-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.app96a-slide-active {
    opacity: 1;
}

.v4f7-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Titles */
.v4f7-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--v4f7-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v4f7-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--v4f7-primary);
}

/* Game Grid */
.v4f7-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.v4f7-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.v4f7-game-item:hover {
    transform: scale(1.05);
}

.v4f7-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.v4f7-game-name {
    font-size: 1rem;
    color: var(--v4f7-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Tabs */
.v4f7-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--v4f7-secondary);
    margin: 1.5rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--v4f7-primary);
}

/* Cards */
.v4f7-card {
    background: var(--v4f7-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(218, 112, 214, 0.2);
}

.v4f7-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--v4f7-primary);
}

.v4f7-card-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--v4f7-text);
}

/* Promo Links */
.v4f7-promo-link {
    color: var(--v4f7-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.v4f7-promo-link:hover {
    color: var(--v4f7-secondary);
    text-decoration: underline;
}

.v4f7-promo-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--v4f7-gradient);
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.v4f7-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--v4f7-shadow);
}

/* Features Grid */
.v4f7-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.v4f7-feature {
    background: rgba(218, 112, 214, 0.1);
    padding: 1.2rem;
    border-radius: 10px;
    text-align: center;
}

.v4f7-feature-icon {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.v4f7-feature-text {
    font-size: 1.2rem;
    color: var(--v4f7-text);
}

/* FAQ Section */
.v4f7-faq-item {
    background: var(--v4f7-bg-light);
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.v4f7-faq-q {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--v4f7-primary);
    margin-bottom: 0.5rem;
}

.v4f7-faq-a {
    font-size: 1.2rem;
    color: var(--v4f7-text);
    line-height: 1.5;
}

/* Footer */
.v4f7-footer {
    background: var(--v4f7-bg-light);
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.v4f7-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.v4f7-footer-link {
    font-size: 1.2rem;
    color: var(--v4f7-secondary);
    transition: color 0.3s ease;
}

.v4f7-footer-link:hover {
    color: var(--v4f7-primary);
}

.v4f7-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.v4f7-partner {
    width: 40px;
    height: 25px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.v4f7-partner:hover {
    opacity: 1;
}

.v4f7-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(240, 240, 240, 0.6);
}

/* Bottom Navigation */
.v4f7-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--v4f7-bg-light);
    border-top: 1px solid rgba(218, 112, 214, 0.3);
    padding: 0.5rem 0;
}

.v4f7-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.v4f7-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.v4f7-nav-item:hover {
    background: rgba(218, 112, 214, 0.1);
    transform: scale(1.05);
}

.v4f7-nav-item.active {
    background: rgba(218, 112, 214, 0.2);
}

.v4f7-nav-icon {
    font-size: 2.4rem;
    color: var(--v4f7-secondary);
}

.v4f7-nav-item.active .v4f7-nav-icon {
    color: var(--v4f7-primary);
}

.v4f7-nav-text {
    font-size: 1rem;
    color: var(--v4f7-text);
}

/* Desktop Hide Bottom Nav */
@media (min-width: 769px) {
    .v4f7-bottom-nav {
        display: none;
    }

    .v4f7-main {
        padding-bottom: 2rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .v4f7-main {
        padding-bottom: 90px;
    }
}

/* Utilities */
.v4f7-text-center {
    text-align: center;
}

.v4f7-mb-1 {
    margin-bottom: 1rem;
}

.v4f7-mb-2 {
    margin-bottom: 2rem;
}

.v4f7-mt-2 {
    margin-top: 2rem;
}

.v4f7-hidden {
    display: none;
}

/* Animations */
@keyframes v4f7-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.v4f7-animate-pulse {
    animation: v4f7-pulse 2s infinite;
}
