/**
 * JL111 Stylesheet - Mobile First Design
 * All classes use v77b- prefix for namespace isolation
 */

/* CSS Variables for color palette */
:root {
    --v77b-pink: #FF69B4;
    --v77b-light-pink: #FFB6C1;
    --v77b-teal: #80CBC4;
    --v77b-dark: #0A0A0A;
    --v77b-mint: #BAFFC9;
    --v77b-white: #FFFFFF;
    --v77b-gray: #333333;
    --v77b-light-gray: #F5F5F5;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--v77b-white);
    background-color: var(--v77b-dark);
    overflow-x: hidden;
}

/* Container */
.v77b-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.v77b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--v77b-pink) 0%, var(--v77b-light-pink) 100%);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.v77b-header-content {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v77b-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--v77b-white);
    font-weight: bold;
    font-size: 1.8rem;
}

.v77b-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.v77b-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.v77b-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.v77b-btn-register {
    background-color: var(--v77b-mint);
    color: var(--v77b-dark);
}

.v77b-btn-login {
    background-color: var(--v77b-white);
    color: var(--v77b-pink);
}

.v77b-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.v77b-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.v77b-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--v77b-white);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.v77b-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, var(--v77b-dark) 0%, #1a1a1a 100%);
    z-index: 9999;
    transition: left 0.3s ease;
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
}

.v77b-mobile-menu.v77b-menu-open {
    left: 0;
}

.v77b-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.v77b-menu-overlay.v77b-active {
    display: block;
}

.v77b-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.v77b-menu-link {
    color: var(--v77b-white);
    text-decoration: none;
    font-size: 1.6rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v77b-menu-link:hover {
    background-color: var(--v77b-teal);
    color: var(--v77b-dark);
}

.v77b-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--v77b-white);
    font-size: 2rem;
    cursor: pointer;
}

/* Main Content */
.v77b-main {
    margin-top: 70px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .v77b-main {
        padding-bottom: 2rem;
    }
}

/* Carousel */
.v77b-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.v77b-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.v77b-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v77b-carousel-slide:first-child {
    opacity: 1;
}

/* Section Styles */
.v77b-section {
    margin-bottom: 2.5rem;
}

.v77b-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v77b-teal);
    margin-bottom: 1.5rem;
    text-align: center;
}

.v77b-section-title h1 {
    font-size: 2rem;
    color: var(--v77b-pink);
}

.v77b-section-title h2 {
    font-size: 1.8rem;
    color: var(--v77b-light-pink);
}

/* Game Grid */
.v77b-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.v77b-game-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    padding: 0.8rem;
}

.v77b-game-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 105, 180, 0.3);
}

.v77b-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.v77b-game-name {
    font-size: 1rem;
    color: var(--v77b-white);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Title */
.v77b-category-title {
    font-size: 1.6rem;
    color: var(--v77b-teal);
    margin: 2rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid var(--v77b-pink);
}

/* Content Modules */
.v77b-content-module {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.v77b-module-title {
    font-size: 1.6rem;
    color: var(--v77b-pink);
    margin-bottom: 1rem;
    font-weight: 600;
}

.v77b-module-content {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--v77b-light-pink);
}

.v77b-module-content p {
    margin-bottom: 1rem;
}

.v77b-module-content a {
    color: var(--v77b-teal);
    text-decoration: none;
    font-weight: 600;
}

.v77b-module-content a:hover {
    text-decoration: underline;
}

/* Feature List */
.v77b-feature-list {
    list-style: none;
    padding: 0;
}

.v77b-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 105, 180, 0.2);
}

.v77b-feature-item:last-child {
    border-bottom: none;
}

.v77b-feature-icon {
    width: 24px;
    height: 24px;
    color: var(--v77b-teal);
    flex-shrink: 0;
}

/* FAQ Styles */
.v77b-faq-item {
    background: rgba(255, 105, 180, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.v77b-faq-question {
    padding: 1.2rem;
    font-weight: 600;
    color: var(--v77b-pink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v77b-faq-answer {
    padding: 0 1.2rem 1.2rem;
    color: var(--v77b-light-pink);
    line-height: 1.6;
}

/* Footer */
.v77b-footer {
    background: linear-gradient(135deg, var(--v77b-dark) 0%, #1a1a1a 100%);
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.v77b-footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.v77b-footer-description {
    font-size: 1.4rem;
    color: var(--v77b-light-pink);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.v77b-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.v77b-footer-link {
    color: var(--v77b-teal);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    background: rgba(128, 203, 196, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.v77b-footer-link:hover {
    background: var(--v77b-teal);
    color: var(--v77b-dark);
}

.v77b-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.v77b-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.v77b-partner-logo:hover {
    opacity: 1;
}

.v77b-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--v77b-gray);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 105, 180, 0.2);
}

/* Mobile Bottom Navigation */
.v77b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--v77b-pink) 0%, var(--v77b-light-pink) 100%);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
    .v77b-bottom-nav {
        display: none;
    }
}

.v77b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--v77b-white);
    transition: all 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.v77b-nav-item:hover,
.v77b-nav-item.v77b-active {
    transform: scale(1.1);
}

.v77b-nav-item i,
.v77b-nav-item svg {
    font-size: 24px;
    margin-bottom: 0.3rem;
}

.v77b-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Touch feedback */
.v77b-nav-item:active {
    transform: scale(0.95);
}

/* Utility Classes */
.v77b-text-center {
    text-align: center;
}

.v77b-mt-1 {
    margin-top: 1rem;
}

.v77b-mb-1 {
    margin-bottom: 1rem;
}

.v77b-mb-2 {
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (min-width: 769px) {
    .v77b-menu-toggle {
        display: none;
    }

    .v77b-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .v77b-carousel {
        height: 300px;
    }
}

/* Accessibility */
.v77b-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Animation */
@keyframes v77b-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.v77b-animate-fadeIn {
    animation: v77b-fadeIn 0.5s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--v77b-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--v77b-pink);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--v77b-light-pink);
}
