/**
 * BL77 Gaming Platform - Stylesheet
 * Website: bl77.sbs
 * Version: 1.0.0
 * CSS Prefix: v66e-
 */

/* ========================================
   CSS Variables & Reset
======================================== */
:root {
    --v66e-primary: #BDB76B;
    --v66e-secondary: #FDF5E6;
    --v66e-bg-dark: #1B263B;
    --v66e-accent: #FFEF94;
    --v66e-highlight: #D2691E;
    --v66e-text-light: #BBBBBB;
    --v66e-text-white: #FFFFFF;
    --v66e-bg-card: #2a3650;
    --v66e-border: #3d4f6f;
    --v66e-shadow: rgba(0, 0, 0, 0.3);
    --v66e-font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --v66e-radius: 8px;
    --v66e-radius-lg: 16px;
    --v66e-transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--v66e-font-main);
    background-color: var(--v66e-bg-dark);
    color: var(--v66e-text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Layout Classes
======================================== */
.v66e-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

.v66e-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.v66e-grid {
    display: grid;
    gap: 12px;
}

.v66e-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.v66e-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ========================================
   Header Styles
======================================== */
.v66e-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--v66e-bg-dark) 0%, rgba(27, 38, 59, 0.95) 100%);
    padding: 12px 0;
    transition: var(--v66e-transition);
}

.v66e-header-scrolled {
    box-shadow: 0 4px 20px var(--v66e-shadow);
}

.v66e-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    max-width: 430px;
    margin: 0 auto;
}

.v66e-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.v66e-logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--v66e-radius);
}

.v66e-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--v66e-accent);
    text-shadow: 2px 2px 4px var(--v66e-shadow);
}

.v66e-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.v66e-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    border-radius: var(--v66e-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--v66e-transition);
    text-decoration: none;
}

.v66e-btn-register {
    background: linear-gradient(135deg, var(--v66e-highlight) 0%, #e07830 100%);
    color: var(--v66e-text-white);
}

.v66e-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.4);
}

.v66e-btn-login {
    background: transparent;
    color: var(--v66e-primary);
    border: 2px solid var(--v66e-primary);
}

.v66e-btn-login:hover {
    background: var(--v66e-primary);
    color: var(--v66e-bg-dark);
}

.v66e-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--v66e-primary);
    font-size: 24px;
    cursor: pointer;
}

/* ========================================
   Mobile Menu
======================================== */
.v66e-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--v66e-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.v66e-menu-active {
    right: 0;
}

.v66e-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: var(--v66e-transition);
}

.v66e-overlay-active {
    opacity: 1;
    visibility: visible;
}

.v66e-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--v66e-border);
}

.v66e-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--v66e-bg-card);
    border: none;
    border-radius: 50%;
    color: var(--v66e-text-white);
    font-size: 20px;
    cursor: pointer;
}

.v66e-menu-nav {
    list-style: none;
}

.v66e-menu-nav li {
    margin-bottom: 8px;
}

.v66e-menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--v66e-text-light);
    text-decoration: none;
    border-radius: var(--v66e-radius);
    transition: var(--v66e-transition);
}

.v66e-menu-nav a:hover {
    background: var(--v66e-bg-card);
    color: var(--v66e-accent);
}

.v66e-menu-nav i {
    width: 20px;
    text-align: center;
}

.v66e-no-scroll {
    overflow: hidden;
}

/* ========================================
   Carousel/Slider
======================================== */
.v66e-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--v66e-radius-lg);
    margin-top: 70px;
}

.v66e-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.v66e-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.v66e-slide-active {
    opacity: 1;
}

.v66e-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v66e-slide-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.v66e-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--v66e-transition);
}

.v66e-dot-active {
    background: var(--v66e-accent);
    width: 24px;
    border-radius: 4px;
}

/* ========================================
   Game Categories
======================================== */
.v66e-categories {
    padding: 20px 0;
}

.v66e-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.v66e-category-tabs::-webkit-scrollbar {
    display: none;
}

.v66e-category-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--v66e-bg-card);
    border: 1px solid var(--v66e-border);
    border-radius: 20px;
    color: var(--v66e-text-light);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--v66e-transition);
    white-space: nowrap;
}

.v66e-category-tab:hover,
.v66e-tab-active {
    background: var(--v66e-primary);
    color: var(--v66e-bg-dark);
    border-color: var(--v66e-primary);
}

/* ========================================
   Game Grid
======================================== */
.v66e-game-section {
    padding: 16px 0;
}

.v66e-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--v66e-accent);
    margin-bottom: 16px;
}

.v66e-section-title i {
    color: var(--v66e-highlight);
}

.v66e-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.v66e-game-card {
    position: relative;
    background: var(--v66e-bg-card);
    border-radius: var(--v66e-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--v66e-transition);
}

.v66e-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--v66e-shadow);
}

.v66e-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.v66e-game-name {
    padding: 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--v66e-text-white);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(27, 38, 59, 0.9);
}

.v66e-game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 40px;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--v66e-transition);
}

.v66e-game-card:hover .v66e-game-overlay {
    opacity: 1;
}

.v66e-play-btn {
    padding: 8px 20px;
    background: var(--v66e-highlight);
    color: var(--v66e-text-white);
    border: none;
    border-radius: var(--v66e-radius);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* ========================================
   Content Sections
======================================== */
.v66e-content-section {
    padding: 24px 0;
}

.v66e-content-card {
    background: var(--v66e-bg-card);
    border-radius: var(--v66e-radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.v66e-content-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--v66e-accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.v66e-content-text {
    color: var(--v66e-text-light);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.v66e-content-text a {
    color: var(--v66e-primary);
    text-decoration: none;
}

.v66e-content-text a:hover {
    text-decoration: underline;
}

/* ========================================
   Accordion/FAQ
======================================== */
.v66e-accordion {
    border-radius: var(--v66e-radius);
    overflow: hidden;
}

.v66e-accordion-item {
    border-bottom: 1px solid var(--v66e-border);
}

.v66e-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--v66e-bg-card);
    cursor: pointer;
    transition: var(--v66e-transition);
}

.v66e-accordion-header:hover {
    background: var(--v66e-bg-card);
}

.v66e-accordion-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--v66e-text-white);
}

.v66e-accordion-icon {
    color: var(--v66e-primary);
    transition: transform 0.3s ease;
}

.v66e-icon-rotate {
    transform: rotate(180deg);
}

.v66e-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(42, 54, 80, 0.5);
}

.v66e-accordion-body {
    padding: 16px;
    color: var(--v66e-text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* ========================================
   Features Grid
======================================== */
.v66e-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 0;
}

.v66e-feature-item {
    background: var(--v66e-bg-card);
    border-radius: var(--v66e-radius);
    padding: 16px;
    text-align: center;
    transition: var(--v66e-transition);
}

.v66e-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--v66e-shadow);
}

.v66e-feature-icon {
    font-size: 32px;
    color: var(--v66e-highlight);
    margin-bottom: 12px;
}

.v66e-feature-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--v66e-accent);
    margin-bottom: 8px;
}

.v66e-feature-text {
    font-size: 12px;
    color: var(--v66e-text-light);
}

/* ========================================
   Bottom Navigation (Mobile)
======================================== */
.v66e-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(27, 38, 59, 0.98) 0%, var(--v66e-bg-dark) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--v66e-border);
    box-shadow: 0 -4px 20px var(--v66e-shadow);
}

.v66e-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--v66e-text-light);
    transition: var(--v66e-transition);
    cursor: pointer;
    border: none;
    background: transparent;
}

.v66e-nav-item:hover,
.v66e-nav-item.v66e-nav-active {
    color: var(--v66e-accent);
}

.v66e-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.v66e-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.v66e-nav-item.v66e-nav-active {
    color: var(--v66e-highlight);
}

.v66e-nav-item.v66e-nav-active i {
    transform: scale(1.1);
}

/* ========================================
   Footer
======================================== */
.v66e-footer {
    background: var(--v66e-bg-card);
    padding: 24px 16px 100px;
    margin-top: 24px;
}

.v66e-footer-partners {
    margin-bottom: 24px;
}

.v66e-footer-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--v66e-accent);
    margin-bottom: 12px;
    text-align: center;
}

.v66e-partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.v66e-partner-logos img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--v66e-radius);
    background: var(--v66e-bg-dark);
    padding: 4px;
}

.v66e-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.v66e-footer-links a {
    color: var(--v66e-text-light);
    text-decoration: none;
    font-size: 12px;
    transition: var(--v66e-transition);
}

.v66e-footer-links a:hover {
    color: var(--v66e-primary);
}

.v66e-footer-copyright {
    text-align: center;
    font-size: 12px;
    color: var(--v66e-text-light);
    opacity: 0.7;
}

/* ========================================
   Utility Classes
======================================== */
.v66e-text-center { text-align: center; }
.v66e-text-left { text-align: left; }
.v66e-text-right { text-align: right; }
.v66e-mt-16 { margin-top: 16px; }
.v66e-mb-16 { margin-bottom: 16px; }
.v66e-py-20 { padding-top: 20px; padding-bottom: 20px; }

.v66e-hidden { display: none !important; }
.v66e-visible { display: block !important; }

/* ========================================
   Desktop Styles (Hide Mobile Nav)
======================================== */
@media (min-width: 769px) {
    .v66e-bottom-nav {
        display: none;
    }

    .v66e-container {
        max-width: 768px;
    }

    .v66e-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .v66e-features {
        grid-template-columns: repeat(4, 1fr);
    }

    .v66e-footer {
        padding-bottom: 24px;
    }
}

/* ========================================
   Mobile Bottom Padding
======================================== */
@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }

    .v66e-footer {
        padding-bottom: 100px;
    }
}
