/**
 * BL77 Casino - Main Stylesheet
 * Class prefix: v64f-
 * Color palette: Dark theme with red accents
 */

/* CSS Variables */
:root {
    --v64f-bg-primary: #0E1621;
    --v64f-bg-secondary: #151D2B;
    --v64f-bg-tertiary: #1A2535;
    --v64f-text-primary: #F8F9FA;
    --v64f-text-secondary: #B8C5D6;
    --v64f-text-muted: #6B7C93;
    --v64f-accent-red: #FF0000;
    --v64f-accent-pink: #FFC0CB;
    --v64f-accent-crimson: #DC143C;
    --v64f-gradient-red: linear-gradient(135deg, #FF0000 0%, #DC143C 100%);
    --v64f-gradient-dark: linear-gradient(180deg, #0E1621 0%, #1A2535 100%);
    --v64f-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --v64f-radius: 12px;
    --v64f-radius-lg: 20px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--v64f-bg-primary);
    color: var(--v64f-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles */
.v64f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(14, 22, 33, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.v64f-header.v64f-scrolled {
    background: rgba(14, 22, 33, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.v64f-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v64f-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.v64f-logo img {
    height: 40px;
    width: auto;
}

.v64f-logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--v64f-gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v64f-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.v64f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--v64f-radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 8px;
}

.v64f-btn-primary {
    background: var(--v64f-gradient-red);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.v64f-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.4);
}

.v64f-btn-secondary {
    background: transparent;
    color: var(--v64f-text-primary);
    border: 2px solid var(--v64f-accent-red);
}

.v64f-btn-secondary:hover {
    background: var(--v64f-accent-red);
    color: #fff;
}

.v64f-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--v64f-text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Menu */
.v64f-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--v64f-bg-secondary);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.v64f-mobile-menu.webc86-active {
    right: 0;
}

.v64f-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;
}

.v64f-menu-overlay.webc86-active {
    opacity: 1;
    visibility: visible;
}

.v64f-mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--v64f-text-primary);
    font-size: 28px;
    cursor: pointer;
}

.v64f-mobile-nav {
    list-style: none;
}

.v64f-mobile-nav li {
    margin-bottom: 8px;
}

.v64f-mobile-nav a {
    display: block;
    padding: 14px 16px;
    color: var(--v64f-text-secondary);
    border-radius: var(--v64f-radius);
    transition: all 0.3s ease;
}

.v64f-mobile-nav a:hover {
    background: var(--v64f-bg-tertiary);
    color: var(--v64f-accent-pink);
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel Styles */
.webc86-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--v64f-radius-lg) var(--v64f-radius-lg);
}

.webc86-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.webc86-slide {
    min-width: 100%;
    position: relative;
    display: none;
}

.webc86-slide.webc86-active {
    display: block;
}

.webc86-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

@media (min-width: 769px) {
    .webc86-slide img {
        height: 450px;
    }
}

.webc86-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(14, 22, 33, 0.95));
}

.webc86-slide-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--v64f-text-primary);
}

.webc86-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.webc86-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.webc86-dot.webc86-active {
    background: var(--v64f-accent-red);
    transform: scale(1.2);
}

/* Section Styles */
.v64f-section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.v64f-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.v64f-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--v64f-gradient-red);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Game Tabs */
.v64f-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.webc86-tab-btn {
    padding: 10px 20px;
    background: var(--v64f-bg-secondary);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: var(--v64f-radius);
    color: var(--v64f-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.webc86-tab-btn:hover,
.webc86-tab-btn.webc86-active {
    background: var(--v64f-gradient-red);
    color: #fff;
    border-color: transparent;
}

/* Game Grid */
.webc86-game-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.webc86-game-grid.webc86-active {
    display: grid;
}

@media (min-width: 769px) {
    .webc86-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

.v64f-game-card {
    background: var(--v64f-bg-secondary);
    border-radius: var(--v64f-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 0, 0, 0.1);
}

.v64f-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
    border-color: var(--v64f-accent-red);
}

.v64f-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.v64f-game-card-title {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--v64f-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Info Cards */
.v64f-info-card {
    background: var(--v64f-bg-secondary);
    border-radius: var(--v64f-radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 0, 0, 0.1);
}

.v64f-info-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--v64f-accent-pink);
}

.v64f-info-card p {
    color: var(--v64f-text-secondary);
    line-height: 1.8;
}

.v64f-info-card ul {
    list-style: none;
    margin-top: 15px;
}

.v64f-info-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--v64f-text-secondary);
}

.v64f-info-card li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--v64f-accent-red);
}

/* Features Grid */
.v64f-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.v64f-feature-item {
    background: var(--v64f-bg-secondary);
    padding: 25px;
    border-radius: var(--v64f-radius);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 0, 0, 0.1);
}

.v64f-feature-item:hover {
    transform: translateY(-3px);
    border-color: var(--v64f-accent-red);
}

.v64f-feature-icon {
    font-size: 40px;
    color: var(--v64f-accent-red);
    margin-bottom: 15px;
}

.v64f-feature-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.v64f-feature-item p {
    color: var(--v64f-text-secondary);
    font-size: 14px;
}

/* Footer */
.v64f-footer {
    background: var(--v64f-bg-secondary);
    border-top: 1px solid rgba(255, 0, 0, 0.2);
    padding: 40px 20px 20px;
}

.v64f-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.v64f-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.v64f-footer-col h4 {
    color: var(--v64f-accent-pink);
    margin-bottom: 15px;
    font-size: 16px;
}

.v64f-footer-col ul {
    list-style: none;
}

.v64f-footer-col li {
    margin-bottom: 10px;
}

.v64f-footer-col a {
    color: var(--v64f-text-secondary);
    transition: color 0.3s ease;
}

.v64f-footer-col a:hover {
    color: var(--v64f-accent-red);
}

.v64f-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--v64f-text-muted);
    font-size: 13px;
}

/* Bottom Navigation */
.v64f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, #151D2B 0%, #0E1621 100%);
    border-top: 2px solid var(--v64f-accent-red);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
    .v64f-bottom-nav {
        display: none;
    }
}

.v64f-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.v64f-nav-item:hover {
    background: rgba(255, 0, 0, 0.1);
}

.v64f-nav-item.active {
    background: rgba(255, 0, 0, 0.15);
}

.v64f-nav-item i,
.v64f-nav-item span.material-icons-outlined {
    font-size: 24px;
    color: var(--v64f-text-secondary);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.v64f-nav-item.active i,
.v64f-nav-item.active span.material-icons-outlined,
.v64f-nav-item:hover i,
.v64f-nav-item:hover span.material-icons-outlined {
    color: var(--v64f-accent-red);
}

.v64f-nav-item span:last-child {
    font-size: 11px;
    color: var(--v64f-text-muted);
    transition: color 0.3s ease;
}

.v64f-nav-item.active span:last-child,
.v64f-nav-item:hover span:last-child {
    color: var(--v64f-accent-pink);
}

/* CTA Banner */
.v64f-cta-banner {
    background: var(--v64f-gradient-red);
    padding: 40px 20px;
    text-align: center;
    border-radius: var(--v64f-radius-lg);
    margin: 30px 0;
}

.v64f-cta-banner h3 {
    font-size: 26px;
    margin-bottom: 15px;
}

.v64f-cta-banner p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .v64f-header-actions .v64f-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .v64f-menu-toggle {
        display: block;
    }

    .v64f-section-title {
        font-size: 22px;
    }

    .v64f-info-card {
        padding: 20px;
    }

    .v64f-slide-content h2 {
        font-size: 20px;
    }
}

/* Utility Classes */
.v64f-text-center { text-align: center; }
.v64f-mb-20 { margin-bottom: 20px; }
.v64f-mb-30 { margin-bottom: 30px; }
.v64f-hidden-mobile { display: none; }
@media (min-width: 769px) {
    .v64f-hidden-mobile { display: block; }
    .v64f-hidden-desktop { display: none; }
}
