/**
 * 65jl Website CSS Design
 * Mobile-first responsive design with wf662- prefix classes
 * Color palette: #FFB6C1 | #BA55D3 | #FFB3FF | #2C3E50 | #880E4F
 */

/* CSS Variables */
:root {
    --wf662-primary: #BA55D3;
    --wf662-secondary: #FFB6C1;
    --wf662-accent: #FFB3FF;
    --wf662-dark: #2C3E50;
    --wf662-darker: #880E4F;
    --wf662-light: #FFEFD5;
    --wf662-text: #FFFFFF;
    --wf662-text-muted: #B8C5D6;
    --wf662-border: #4A5F7A;
    --wf662-gradient: linear-gradient(135deg, var(--wf662-primary), var(--wf662-secondary));
    --wf662-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --wf662-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Reset and Base */
* {
    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, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--wf662-text);
    background-color: var(--wf662-dark);
    overflow-x: hidden;
}

body.wf662-loading {
    opacity: 0;
}

body.wf662-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Container */
.wf662-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Header */
.wf662-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--wf662-darker);
    z-index: 1000;
    box-shadow: var(--wf662-shadow);
}

.wf662-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.wf662-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--wf662-text);
}

.wf662-logo img {
    width: 3rem;
    height: 3rem;
    border-radius: 0.8rem;
}

.wf662-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wf662-primary);
}

.wf662-header-actions {
    display: flex;
    gap: 1rem;
}

.wf662-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 2.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.wf662-btn-primary {
    background: var(--wf662-gradient);
    color: var(--wf662-text);
}

.wf662-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--wf662-shadow-lg);
}

.wf662-btn-secondary {
    background-color: transparent;
    color: var(--wf662-text);
    border: 2px solid var(--wf662-primary);
}

.wf662-btn-secondary:hover {
    background-color: var(--wf662-primary);
    color: var(--wf662-text);
}

/* Mobile Menu */
.wf662-burger-menu {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

.wf662-burger-line {
    width: 2.5rem;
    height: 0.3rem;
    background-color: var(--wf662-text);
    transition: all 0.3s ease;
}

.wf662-burger-menu.wf662-active .wf662-burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.wf662-burger-menu.wf662-active .wf662-burger-line:nth-child(2) {
    opacity: 0;
}

.wf662-burger-menu.wf662-active .wf662-burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.wf662-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--wf662-darker);
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.wf662-mobile-menu.wf662-menu-open {
    right: 0;
}

.wf662-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--wf662-border);
}

.wf662-menu-close {
    background: none;
    border: none;
    color: var(--wf662-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

.wf662-menu-nav {
    padding: 1rem 0;
}

.wf662-menu-link {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--wf662-text);
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-left: 4px solid transparent;
}

.wf662-menu-link:hover {
    background-color: var(--wf662-primary);
    border-left-color: var(--wf662-accent);
}

.wf662-menu-link.active {
    background-color: var(--wf662-primary);
    border-left-color: var(--wf662-accent);
}

/* Main Content */
.wf662-main {
    padding-top: 8rem;
    padding-bottom: 8rem;
    min-height: 100vh;
}

/* Carousel */
.wf662-carousel {
    position: relative;
    height: 20rem;
    border-radius: 1.2rem;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--wf662-shadow-lg);
}

.wf662-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.wf662-carousel-slide.wf662-active {
    opacity: 1;
}

.wf662-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wf662-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.wf662-carousel-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wf662-carousel-dot.wf662-active {
    background-color: var(--wf662-accent);
    transform: scale(1.2);
}

/* Section */
.wf662-section {
    margin-bottom: 3rem;
}

.wf662-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--wf662-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
}

/* Game Grid */
.wf662-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.wf662-game-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.wf662-game-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--wf662-shadow-lg);
    border-color: var(--wf662-primary);
}

.wf662-game-icon {
    width: 100%;
    height: 8rem;
    object-fit: cover;
    display: block;
}

.wf662-game-name {
    padding: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: var(--wf662-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card */
.wf662-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1.2rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--wf662-shadow);
    border: 1px solid var(--wf662-border);
}

.wf662-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--wf662-primary);
    margin-bottom: 1rem;
}

.wf662-card-content {
    color: var(--wf662-text-muted);
    line-height: 1.6;
}

/* Accordion */
.wf662-accordion {
    margin-bottom: 1rem;
}

.wf662-accordion-header {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--wf662-border);
    border-radius: 0.8rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wf662-accordion-header:hover {
    background-color: var(--wf662-primary);
}

.wf662-accordion-header.wf662-open {
    background-color: var(--wf662-primary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.wf662-accordion-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.wf662-accordion-header.wf662-open .wf662-accordion-icon {
    transform: rotate(180deg);
}

.wf662-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 1px solid var(--wf662-border);
    border-right: 1px solid var(--wf662-border);
}

.wf662-accordion-content-inner {
    padding: 1.5rem;
    color: var(--wf662-text-muted);
    line-height: 1.6;
}

.wf662-accordion:last-child .wf662-accordion-content {
    border-bottom: 1px solid var(--wf662-border);
    border-bottom-left-radius: 0.8rem;
    border-bottom-right-radius: 0.8rem;
}

/* Footer */
.wf662-footer {
    background-color: var(--wf662-darker);
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--wf662-border);
}

.wf662-footer-content {
    margin-bottom: 2rem;
}

.wf662-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.wf662-partner-logo {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.wf662-partner-logo:hover {
    opacity: 1;
}

.wf662-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.wf662-footer-link {
    color: var(--wf662-text-muted);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.wf662-footer-link:hover {
    color: var(--wf662-primary);
}

.wf662-copyright {
    text-align: center;
    color: var(--wf662-text-muted);
    font-size: 1.2rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--wf662-border);
}

/* Bottom Navigation */
.wf662-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--wf662-darker);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.wf662-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6.4rem;
    max-width: 430px;
    margin: 0 auto;
}

.wf662-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 6rem;
    min-height: 6rem;
    color: var(--wf662-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.wf662-nav-item:hover {
    color: var(--wf662-primary);
    transform: translateY(-2px);
}

.wf662-nav-item.active {
    color: var(--wf662-primary);
}

.wf662-nav-icon {
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf662-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

.wf662-nav-badge {
    position: absolute;
    top: 0.8rem;
    right: 2rem;
    background-color: var(--wf662-secondary);
    color: var(--wf662-darker);
    border-radius: 50%;
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notification */
.wf662-notification {
    position: fixed;
    top: 8rem;
    right: -100%;
    background-color: var(--wf662-darker);
    color: var(--wf662-text);
    padding: 1.5rem;
    border-radius: 0.8rem;
    box-shadow: var(--wf662-shadow-lg);
    z-index: 10000;
    max-width: 32rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.wf662-notification.wf662-show {
    transform: translateX(-100%);
}

.wf662-notification-info {
    border-left: 4px solid var(--wf662-primary);
}

.wf662-notification-success {
    border-left: 4px solid #4CAF50;
}

.wf662-notification-warning {
    border-left: 4px solid #FF9800;
}

.wf662-notification-error {
    border-left: 4px solid #F44336;
}

/* Utility Classes */
.wf662-text-center {
    text-align: center;
}

.wf662-text-primary {
    color: var(--wf662-primary);
}

.wf662-text-secondary {
    color: var(--wf662-text-muted);
}

.wf662-mb-1 {
    margin-bottom: 1rem;
}

.wf662-mb-2 {
    margin-bottom: 2rem;
}

.wf662-mb-3 {
    margin-bottom: 3rem;
}

.wf662-hidden {
    display: none !important;
}

.wf662-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wf662-lazy.loaded {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wf662-header-actions .wf662-btn {
        display: none;
    }

    .wf662-burger-menu {
        display: flex;
    }

    .wf662-main {
        padding-bottom: 8rem;
    }

    .wf662-bottom-nav {
        display: block;
    }

    .wf662-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .wf662-game-icon {
        height: 7rem;
    }
}

@media (min-width: 769px) {
    .wf662-bottom-nav {
        display: none !important;
    }

    .wf662-mobile-menu {
        display: none !important;
    }

    .wf662-burger-menu {
        display: none !important;
    }

    .wf662-main {
        padding-bottom: 2rem;
    }
}

/* Loading Animation */
@keyframes wf662-pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.wf662-loading {
    animation: wf662-pulse 1.5s ease-in-out infinite;
}

/* Button Animation */
@keyframes wf662-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.wf662-btn:hover {
    animation: wf662-bounce 0.6s ease;
}