/**
 * phl789 Website CSS Design
 * Mobile-first responsive design with v3e7- prefix
 * Color Palette: #2F2F2F | #6C757D | #141414 | #ECF0F1
 */

/* CSS Custom Properties */
:root {
    --v3e7-primary: #2F2F2F;
    --v3e7-secondary: #6C757D;
    --v3e7-dark: #141414;
    --v3e7-light: #ECF0F1;
    --v3e7-accent: #FFD700;
    --v3e7-success: #28A745;
    --v3e7-danger: #DC3545;
    --v3e7-warning: #FFC107;
    --v3e7-info: #17A2B8;
    --v3e7-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --v3e7-border-radius: 8px;
    --v3e7-transition: all 0.3s ease;
    --v3e7-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --v3e7-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--v3e7-font-primary);
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--v3e7-light);
    background-color: var(--v3e7-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--v3e7-border-radius);
}

a {
    color: var(--v3e7-accent);
    text-decoration: none;
    transition: var(--v3e7-transition);
}

a:hover {
    color: var(--v3e7-light);
    transform: translateY(-1px);
}

/* Container and Layout */
.v3e7-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 15px;
}

.v3e7-wrapper {
    padding: 2rem 0;
    min-height: 100vh;
}

.v3e7-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.v3e7-grid {
    display: grid;
    gap: 1rem;
}

.v3e7-grid-2 { grid-template-columns: repeat(2, 1fr); }
.v3e7-grid-3 { grid-template-columns: repeat(3, 1fr); }
.v3e7-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Header Styles */
.v3e7-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--v3e7-primary) 0%, var(--v3e7-dark) 100%);
    box-shadow: var(--v3e7-shadow);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.v3e7-header-content {
    height: 60px;
    align-items: center;
    justify-content: space-between;
}

.v3e7-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--v3e7-light);
}

.v3e7-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.v3e7-nav-buttons {
    display: flex;
    gap: 10px;
}

.v3e7-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--v3e7-transition);
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.v3e7-btn-primary {
    background: linear-gradient(135deg, var(--v3e7-accent) 0%, #FFA500 100%);
    color: var(--v3e7-dark);
}

.v3e7-btn-secondary {
    background: transparent;
    color: var(--v3e7-light);
    border: 2px solid var(--v3e7-light);
}

.v3e7-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--v3e7-shadow-hover);
}

.v3e7-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--v3e7-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--v3e7-border-radius);
    transition: var(--v3e7-transition);
}

.v3e7-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.v3e7-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--v3e7-primary);
    z-index: 9999;
    transition: var(--v3e7-transition);
    overflow-y: auto;
}

.v3e7-mobile-menu.v3e7-menu-open {
    left: 0;
}

.v3e7-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--v3e7-transition);
}

.v3e7-menu-overlay.v3e7-overlay-active {
    opacity: 1;
    visibility: visible;
}

.v3e7-menu-content {
    padding: 80px 20px 20px;
}

.v3e7-menu-nav {
    list-style: none;
}

.v3e7-menu-nav li {
    margin-bottom: 1rem;
}

.v3e7-menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--v3e7-border-radius);
    color: var(--v3e7-light);
    font-size: 1.4rem;
    font-weight: 500;
}

.v3e7-menu-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

/* Main Content */
main {
    margin-top: 80px;
    padding-bottom: 80px;
}

.v3e7-section {
    margin-bottom: 3rem;
}

.v3e7-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--v3e7-light);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.v3e7-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--v3e7-accent);
    border-radius: 2px;
}

/* Carousel Styles */
.v3e7-carousel {
    position: relative;
    border-radius: var(--v3e7-border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--v3e7-shadow);
}

.v3e7-carousel-item {
    display: none;
    cursor: pointer;
}

.v3e7-carousel-item.active {
    display: block;
}

.v3e7-carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.v3e7-carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.v3e7-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--v3e7-transition);
}

.v3e7-carousel-dot.active {
    background: var(--v3e7-accent);
    transform: scale(1.2);
}

/* Game Categories */
.v3e7-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.v3e7-categories::-webkit-scrollbar {
    display: none;
}

.v3e7-category-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 2px solid var(--v3e7-secondary);
    background: transparent;
    border-radius: 20px;
    color: var(--v3e7-light);
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--v3e7-transition);
    white-space: nowrap;
}

.v3e7-category-btn.v3e7-active {
    background: var(--v3e7-accent);
    border-color: var(--v3e7-accent);
    color: var(--v3e7-dark);
}

.v3e7-category-btn:hover {
    border-color: var(--v3e7-accent);
    transform: scale(1.05);
}

/* Game Grid */
.v3e7-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 2rem;
}

.v3e7-game-item {
    position: relative;
    border-radius: var(--v3e7-border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--v3e7-transition);
    opacity: 0;
    transform: translateY(20px);
}

.v3e7-game-item.v3e7-game-visible {
    opacity: 1;
    transform: translateY(0);
}

.v3e7-game-item:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--v3e7-shadow-hover);
    z-index: 10;
}

.v3e7-game-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px;
    height: 100%;
}

.v3e7-game-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--v3e7-border-radius);
    object-fit: cover;
    background: var(--v3e7-primary);
}

.v3e7-game-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--v3e7-light);
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Feature Cards */
.v3e7-feature-card {
    background: linear-gradient(135deg, var(--v3e7-primary) 0%, var(--v3e7-secondary) 100%);
    border-radius: var(--v3e7-border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--v3e7-shadow);
    transition: var(--v3e7-transition);
}

.v3e7-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--v3e7-shadow-hover);
}

.v3e7-feature-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--v3e7-accent);
}

.v3e7-feature-content {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--v3e7-light);
}

/* Bottom Navigation */
.v3e7-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--v3e7-primary) 0%, var(--v3e7-dark) 100%);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.v3e7-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    max-width: 430px;
    margin: 0 auto;
}

.v3e7-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 60px;
    min-height: 60px;
    border-radius: var(--v3e7-border-radius);
    cursor: pointer;
    transition: var(--v3e7-transition);
    color: var(--v3e7-light);
}

.v3e7-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.v3e7-nav-item.v3e7-active {
    color: var(--v3e7-accent);
}

.v3e7-nav-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v3e7-nav-text {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}

/* Footer */
.v3e7-footer {
    background: var(--v3e7-primary);
    padding: 2rem 0;
    margin-top: 3rem;
}

.v3e7-footer-content {
    text-align: center;
}

.v3e7-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.v3e7-footer-links a {
    color: var(--v3e7-light);
    font-size: 1.3rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--v3e7-transition);
}

.v3e7-footer-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--v3e7-accent);
}

.v3e7-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.v3e7-partners img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.8;
    transition: var(--v3e7-transition);
}

.v3e7-partners img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.v3e7-copyright {
    color: var(--v3e7-secondary);
    font-size: 1.2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--v3e7-secondary);
}

/* Notification */
.v3e7-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--v3e7-success);
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    transition: var(--v3e7-transition);
}

.v3e7-notification.v3e7-notification-show {
    opacity: 1;
}

/* Responsive Design */
@media (min-width: 769px) {
    .v3e7-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 0;
    }

    .v3e7-games-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }

    .v3e7-game-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .v3e7-menu-toggle {
        display: block;
    }

    .v3e7-nav-buttons {
        display: none;
    }

    .v3e7-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .v3e7-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .v3e7-game-image {
        width: 100%;
        height: 80px;
        object-fit: cover;
    }

    .v3e7-game-name {
        font-size: 0.9rem;
    }
}

/* Loading State */
.v3e7-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--v3e7-light);
    border-radius: 50%;
    border-top-color: transparent;
    animation: v3e7-spin 1s linear infinite;
}

@keyframes v3e7-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Image Lazy Loading */
.v3e7-loaded {
    animation: v3e7-fadeIn 0.5s ease;
}

@keyframes v3e7-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}