/**
 * BL7 Gaming Website - Main Stylesheet
 * All classes use v316- prefix for namespace isolation
 * Mobile-first responsive design
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --v316-primary: #48D1CC;
    --v316-secondary: #AFEEEE;
    --v316-accent: #0000CD;
    --v316-text: #AFEEEE;
    --v316-text-dark: #696969;
    --v316-bg: #0D1117;
    --v316-bg-light: #161b22;
    --v316-bg-card: #21262d;
    --v316-border: #30363d;
    --v316-gold: #FFD700;
    --v316-success: #3fb950;
    --v316-gradient: linear-gradient(135deg, #48D1CC 0%, #0000CD 100%);
    --v316-header-height: 60px;
    --v316-bottom-nav-height: 60px;
    --v316-radius: 8px;
    --v316-shadow: 0 4px 12px rgba(0, 0, 0, 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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--v316-text);
    background-color: var(--v316-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--v316-primary);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }

p {
    margin-bottom: 1rem;
    color: var(--v316-text);
}

a {
    color: var(--v316-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--v316-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.v316-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v316-wrapper {
    padding: 2rem 0;
}

/* Header */
.v316-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--v316-header-height);
    background: linear-gradient(180deg, var(--v316-bg) 0%, rgba(13, 17, 23, 0.95) 100%);
    border-bottom: 1px solid var(--v316-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.v316-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.v316-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v316-logo img {
    width: 32px;
    height: 32px;
}

.v316-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v316-primary);
    background: var(--v316-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v316-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v316-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: var(--v316-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
}

.v316-btn-primary {
    background: var(--v316-gradient);
    color: #fff;
}

.v316-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 209, 204, 0.4);
}

.v316-btn-secondary {
    background: transparent;
    color: var(--v316-primary);
    border: 1px solid var(--v316-primary);
}

.v316-btn-secondary:hover {
    background: var(--v316-primary);
    color: var(--v316-bg);
}

.v316-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.v316-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--v316-primary);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.v316-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v316-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.v316-mobile-menu.gamed836-active {
    right: 0;
}

.v316-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;
}

.v316-menu-overlay.gamed836-active {
    opacity: 1;
    visibility: visible;
}

.v316-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--v316-border);
}

.v316-menu-close {
    background: none;
    border: none;
    color: var(--v316-text);
    font-size: 2rem;
    cursor: pointer;
}

.v316-nav-list {
    list-style: none;
}

.v316-nav-item {
    margin-bottom: 0.5rem;
}

.v316-nav-link {
    display: block;
    padding: 1rem;
    color: var(--v316-text);
    border-radius: var(--v316-radius);
    transition: all 0.3s ease;
}

.v316-nav-link:hover,
.v316-nav-link.gamed836-current {
    background: var(--v316-bg-card);
    color: var(--v316-primary);
}

/* Main Content */
.v316-main {
    padding-top: var(--v316-header-height);
    padding-bottom: calc(var(--v316-bottom-nav-height) + 2rem);
    min-height: 100vh;
}

/* Carousel/Slider */
.v316-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--v316-radius);
    margin-bottom: 2rem;
}

.v316-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.v316-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.v316-slide.gamed836-active {
    opacity: 1;
}

.v316-slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.v316-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.v316-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v316-indicator.gamed836-active {
    background: var(--v316-primary);
    transform: scale(1.2);
}

/* Section */
.v316-section {
    padding: 2rem 0;
}

.v316-section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--v316-primary);
    display: inline-block;
}

/* Game Grid */
.v316-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.v316-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.v316-game-item:hover {
    transform: scale(1.05);
}

.v316-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--v316-radius);
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--v316-border);
    transition: border-color 0.3s ease;
}

.v316-game-item:hover .v316-game-img {
    border-color: var(--v316-primary);
}

.v316-game-name {
    font-size: 1.1rem;
    color: var(--v316-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Tabs */
.v316-category-title {
    font-size: 1.6rem;
    color: var(--v316-primary);
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v316-category-title i {
    font-size: 2rem;
}

/* Cards */
.v316-card {
    background: var(--v316-bg-card);
    border-radius: var(--v316-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--v316-border);
}

.v316-card-title {
    font-size: 1.6rem;
    color: var(--v316-primary);
    margin-bottom: 1rem;
}

.v316-card-content {
    color: var(--v316-text);
    line-height: 1.6;
}

/* Features List */
.v316-features-list {
    list-style: none;
}

.v316-features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--v316-border);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.v316-features-list li:last-child {
    border-bottom: none;
}

.v316-features-list i {
    color: var(--v316-primary);
    font-size: 1.6rem;
    margin-top: 0.2rem;
}

/* Promo Link Styles */
.v316-promo-link {
    color: var(--v316-gold);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.v316-promo-link:hover {
    color: var(--v316-secondary);
    text-decoration: underline;
}

.v316-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--v316-gradient);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--v316-shadow);
}

.v316-promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(72, 209, 204, 0.5);
}

/* Footer */
.v316-footer {
    background: var(--v316-bg-light);
    padding: 2rem 0;
    border-top: 1px solid var(--v316-border);
}

.v316-footer-content {
    text-align: center;
}

.v316-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.v316-footer-link {
    color: var(--v316-text);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.v316-footer-link:hover {
    color: var(--v316-primary);
}

.v316-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.v316-partner-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.v316-partner-img:hover {
    opacity: 1;
}

.v316-copyright {
    font-size: 1.2rem;
    color: var(--v316-text-dark);
}

/* Bottom Navigation */
.v316-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--v316-bottom-nav-height);
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.98) 0%, var(--v316-bg) 100%);
    border-top: 1px solid var(--v316-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.v316-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--v316-text-dark);
}

.v316-nav-btn:hover,
.v316-nav-btn.v316-active {
    color: var(--v316-primary);
    transform: scale(1.1);
}

.v316-nav-btn i {
    font-size: 22px;
}

.v316-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Desktop Hide Bottom Nav */
@media (min-width: 769px) {
    .v316-bottom-nav {
        display: none;
    }

    .v316-main {
        padding-bottom: 2rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .v316-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .v316-game-name {
        font-size: 1rem;
    }
}

@media (max-width: 380px) {
    .v316-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .v316-btn {
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }
}

/* Utility Classes */
.v316-text-center { text-align: center; }
.v316-mb-1 { margin-bottom: 1rem; }
.v316-mb-2 { margin-bottom: 2rem; }
.v316-mt-2 { margin-top: 2rem; }
.v316-hidden { display: none; }
.v316-flex { display: flex; }
.v316-flex-center { display: flex; align-items: center; justify-content: center; }
.v316-gap-1 { gap: 1rem; }

/* Animation */
@keyframes v316-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.v316-animate-pulse {
    animation: v316-pulse 2s infinite;
}
