/**
 * 222jl Gaming Platform - Core Stylesheet
 * All classes use v24e- prefix for namespace isolation
 * Mobile-first responsive design
 * @version 1.0.0
 */

/* CSS Variables with v24e prefix */
:root {
    --v24e-primary: #FFD700;
    --v24e-secondary: #4B0082;
    --v24e-accent: #CC99FF;
    --v24e-bg-dark: #0A0A0A;
    --v24e-bg-card: #1a1a2e;
    --v24e-text-light: #D3D3D3;
    --v24e-text-gold: #FFD700;
    --v24e-purple-deep: #8B008B;
    --v24e-gradient-purple: linear-gradient(135deg, #4B0082 0%, #8B008B 100%);
    --v24e-gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --v24e-shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--v24e-bg-dark);
    color: var(--v24e-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    overflow-x: hidden;
}

/* Container with v24e prefix */
.v24e-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header with v24e prefix */
.v24e-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--v24e-gradient-purple);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

.v24e-logo img {
    width: 28px;
    height: 28px;
}

.v24e-logo-text {
    color: var(--v24e-text-gold);
    font-size: 1.6rem;
    font-weight: 700;
}

.v24e-header-actions {
    display: flex;
    gap: 0.5rem;
}

.v24e-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.v24e-btn-primary {
    background: var(--v24e-gradient-gold);
    color: #0A0A0A;
}

.v24e-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--v24e-shadow-glow);
}

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

.v24e-btn-outline:hover {
    background: var(--v24e-primary);
    color: #0A0A0A;
}

/* Menu toggle button */
.v24e-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.v24e-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--v24e-text-gold);
    transition: 0.3s;
}

/* Mobile menu overlay */
.v24e-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;
}

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

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

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

.v24e-mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--v24e-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.v24e-mobile-menu-nav {
    margin-top: 3rem;
}

.v24e-mobile-menu-nav a {
    display: block;
    color: var(--v24e-text-light);
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    transition: color 0.3s ease;
}

.v24e-mobile-menu-nav a:hover {
    color: var(--v24e-text-gold);
}

/* Main content area */
.v24e-main {
    padding-top: 60px;
    padding-bottom: 1rem;
}

/* Carousel/Slider styles */
.v24e-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

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

.v24e-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.v24e-slide-active {
    opacity: 1;
}

.v24e-slide img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.v24e-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* Section styles */
.v24e-section {
    padding: 2rem 1rem;
}

.v24e-section-title {
    color: var(--v24e-text-gold);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.v24e-section-subtitle {
    color: var(--v24e-text-light);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.8;
}

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

.v24e-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.v24e-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.8rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.v24e-game-item:hover img {
    border-color: var(--v24e-primary);
}

.v24e-game-name {
    font-size: 1rem;
    color: var(--v24e-text-light);
    margin-top: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category section header */
.v24e-category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

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

.v24e-category-title {
    color: var(--v24e-text-gold);
    font-size: 1.6rem;
    font-weight: 600;
}

/* Card styles */
.v24e-card {
    background: var(--v24e-bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.v24e-card-title {
    color: var(--v24e-text-gold);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.v24e-card-text {
    color: var(--v24e-text-light);
    font-size: 1.2rem;
    line-height: 1.6;
}

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

.v24e-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.v24e-feature-list li i {
    color: var(--v24e-primary);
    font-size: 1.4rem;
    margin-top: 0.2rem;
}

/* Promo link styles */
.v24e-promo-link {
    display: inline-block;
    color: var(--v24e-text-gold);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.v24e-promo-link:hover {
    color: var(--v24e-accent);
    text-decoration: underline;
}

/* Footer styles */
.v24e-footer {
    background: var(--v24e-bg-card);
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

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

.v24e-footer-brand p {
    color: var(--v24e-text-light);
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

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

.v24e-footer-link {
    padding: 0.6rem 1.2rem;
    background: var(--v24e-gradient-purple);
    border-radius: 2rem;
    color: var(--v24e-text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.v24e-footer-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--v24e-shadow-glow);
}

.v24e-footer-sitemap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

.v24e-footer-sitemap a {
    color: var(--v24e-text-light);
    text-decoration: none;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.v24e-footer-sitemap a:hover {
    opacity: 1;
    color: var(--v24e-text-gold);
}

.v24e-copyright {
    text-align: center;
    color: var(--v24e-text-light);
    font-size: 1rem;
    opacity: 0.7;
}

/* Mobile bottom navigation */
.v24e-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--v24e-gradient-purple);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.v24e-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--v24e-text-light);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v24e-bottom-nav-item:hover,
.v24e-bottom-nav-item.active {
    color: var(--v24e-text-gold);
}

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

.v24e-bottom-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

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

    .v24e-menu-toggle {
        display: none;
    }
}

/* Add bottom padding for mobile nav */
@media (max-width: 768px) {
    .v24e-main {
        padding-bottom: 70px;
    }

    .v24e-footer {
        padding-bottom: 80px;
    }
}

/* Responsive adjustments */
@media (max-width: 430px) {
    html {
        font-size: 58%;
    }

    .v24e-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .v24e-game-name {
        font-size: 0.9rem;
    }
}

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

    .v24e-header {
        padding: 1rem 2rem;
    }

    .v24e-logo img {
        width: 36px;
        height: 36px;
    }

    .v24e-logo-text {
        font-size: 2rem;
    }

    .v24e-desktop-nav {
        display: flex;
        gap: 1.5rem;
        align-items: center;
    }

    .v24e-desktop-nav a {
        color: var(--v24e-text-light);
        text-decoration: none;
        font-size: 1.2rem;
        transition: color 0.3s ease;
    }

    .v24e-desktop-nav a:hover {
        color: var(--v24e-text-gold);
    }

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

    .v24e-section {
        padding: 3rem 2rem;
    }

    .v24e-section-title {
        font-size: 2.4rem;
    }
}

/* Animation utilities */
@keyframes v24e-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.v24e-animate-pulse {
    animation: v24e-pulse 2s infinite;
}

/* RTL and accessibility */
.v24e-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
