/**
 * Boeing 777 - Main Stylesheet
 * All classes use prefix: w0e29-
 * Mobile-first responsive design (max-width: 430px)
 * Color Scheme: #FFFFBA | #1B263B | #C0C0C0 | #FF8A80 | #2C3E50
 */

/* CSS Variables */
:root {
    --w0e29-primary: #FFFFBA;
    --w0e29-dark: #1B263B;
    --w0e29-silver: #C0C0C0;
    --w0e29-accent: #FF8A80;
    --w0e29-navy: #2C3E50;
    --w0e29-text-light: #FFFFFF;
    --w0e29-text-dark: #1B263B;
    --w0e29-border: rgba(192, 192, 192, 0.3);
    --w0e29-shadow: rgba(27, 38, 59, 0.2);
    --w0e29-overlay: rgba(27, 38, 59, 0.95);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--w0e29-dark);
    color: var(--w0e29-text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Header Styles */
.w0e29-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--w0e29-dark) 0%, var(--w0e29-navy) 100%);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--w0e29-shadow);
    border-bottom: 2px solid var(--w0e29-accent);
}

.w0e29-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.w0e29-menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 186, 0.1);
    transition: all 0.3s ease;
}

.w0e29-menu-toggle:active {
    transform: scale(0.95);
    background: rgba(255, 255, 186, 0.2);
}

.w0e29-menu-toggle span {
    width: 22px;
    height: 2px;
    background-color: var(--w0e29-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.w0e29-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--w0e29-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px var(--w0e29-shadow);
}

.w0e29-header-right {
    display: flex;
    gap: 8px;
}

.w0e29-header-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    min-width: 70px;
    min-height: 36px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.w0e29-btn-register {
    background: linear-gradient(135deg, var(--w0e29-accent) 0%, #FF6B6B 100%);
    color: var(--w0e29-text-light);
    box-shadow: 0 4px 12px rgba(255, 138, 128, 0.4);
}

.w0e29-btn-register:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(255, 138, 128, 0.3);
}

.w0e29-btn-login {
    background: rgba(255, 255, 186, 0.15);
    color: var(--w0e29-primary);
    border: 1.5px solid var(--w0e29-primary);
}

.w0e29-btn-login:active {
    background: rgba(255, 255, 186, 0.25);
    transform: translateY(1px);
}

/* Mobile Menu */
.w0e29-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    background: linear-gradient(180deg, var(--w0e29-navy) 0%, var(--w0e29-dark) 100%);
    z-index: 9999;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 4px 0 20px var(--w0e29-shadow);
}

.w0e29-menu-active {
    left: 0;
}

.w0e29-menu-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--w0e29-accent) 0%, #FF6B6B 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--w0e29-primary);
}

.w0e29-menu-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--w0e29-text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.w0e29-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--w0e29-text-light);
    font-size: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.w0e29-menu-close:active {
    transform: rotate(90deg) scale(0.9);
    background: rgba(255, 255, 255, 0.3);
}

.w0e29-menu-nav {
    padding: 24px 0;
}

.w0e29-menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: var(--w0e29-text-light);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.w0e29-menu-link:active {
    background: rgba(255, 255, 186, 0.1);
    border-left-color: var(--w0e29-accent);
    transform: translateX(4px);
}

.w0e29-menu-link i {
    font-size: 20px;
    width: 24px;
    color: var(--w0e29-primary);
}

.w0e29-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    background: var(--w0e29-overlay);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.w0e29-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.w0e29-main {
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}

/* Carousel Styles */
.w0e29-carousel {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--w0e29-navy);
}

.w0e29-carousel-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.w0e29-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    cursor: pointer;
}

.w0e29-slide-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.w0e29-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w0e29-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.w0e29-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.w0e29-dot-active {
    background: var(--w0e29-accent);
    border-color: var(--w0e29-primary);
    transform: scale(1.3);
}

/* Game Section */
.w0e29-game-section {
    padding: 24px 16px;
    max-width: 430px;
    margin: 0 auto;
}

.w0e29-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--w0e29-border);
}

.w0e29-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--w0e29-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.w0e29-section-title i {
    font-size: 24px;
    color: var(--w0e29-accent);
}

.w0e29-view-all {
    font-size: 13px;
    color: var(--w0e29-silver);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 186, 0.1);
    transition: all 0.3s ease;
}

.w0e29-view-all:active {
    background: rgba(255, 255, 186, 0.2);
    transform: scale(0.96);
}

/* Game Grid */
.w0e29-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.w0e29-game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--w0e29-navy);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--w0e29-shadow);
    min-height: 90px;
}

.w0e29-game-card:active {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 6px 16px rgba(255, 138, 128, 0.4);
}

.w0e29-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 138, 128, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.w0e29-game-card:active::before {
    opacity: 1;
}

.w0e29-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.w0e29-game-card:active img {
    transform: scale(1.1);
}

.w0e29-game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 4px;
    background: linear-gradient(to top, rgba(27, 38, 59, 0.95), transparent);
    color: var(--w0e29-text-light);
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    z-index: 2;
    text-shadow: 0 1px 3px var(--w0e29-shadow);
}

/* Bottom Navigation */
.w0e29-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--w0e29-navy) 0%, var(--w0e29-dark) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -2px 10px var(--w0e29-shadow);
    border-top: 2px solid var(--w0e29-accent);
    z-index: 1000;
    height: 64px;
}

.w0e29-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 60px;
    min-height: 56px;
    padding: 6px 8px;
    color: var(--w0e29-silver);
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 12px;
    cursor: pointer;
}

.w0e29-bottom-nav-btn:active,
.w0e29-active-link {
    background: rgba(255, 138, 128, 0.2);
    color: var(--w0e29-primary);
    transform: translateY(-2px);
}

.w0e29-bottom-nav-btn i {
    font-size: 24px;
    transition: all 0.3s ease;
}

.w0e29-bottom-nav-btn:active i,
.w0e29-active-link i {
    color: var(--w0e29-accent);
    transform: scale(1.15);
}

/* Footer */
.w0e29-footer {
    background: linear-gradient(180deg, var(--w0e29-navy) 0%, #0d1520 100%);
    padding: 32px 16px 100px;
    max-width: 430px;
    margin: 0 auto;
    border-top: 2px solid var(--w0e29-border);
}

.w0e29-footer-partners {
    margin-bottom: 32px;
}

.w0e29-footer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--w0e29-primary);
    margin-bottom: 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.w0e29-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.w0e29-partner-logo {
    background: rgba(255, 255, 186, 0.05);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    transition: all 0.3s ease;
    border: 1px solid var(--w0e29-border);
}

.w0e29-partner-logo:active {
    background: rgba(255, 255, 186, 0.1);
    transform: scale(0.95);
}

.w0e29-partner-logo img {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
    filter: brightness(1.2);
}

.w0e29-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.w0e29-footer-link {
    padding: 10px;
    color: var(--w0e29-silver);
    font-size: 13px;
    text-align: center;
    background: rgba(255, 255, 186, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid var(--w0e29-border);
}

.w0e29-footer-link:active {
    background: rgba(255, 255, 186, 0.1);
    color: var(--w0e29-primary);
    transform: scale(0.97);
}

.w0e29-footer-info {
    text-align: center;
    color: var(--w0e29-silver);
    font-size: 12px;
    line-height: 1.8;
    padding: 16px 0;
    border-top: 1px solid var(--w0e29-border);
}

.w0e29-footer-info p {
    margin-bottom: 8px;
}

.w0e29-copyright {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--w0e29-border);
    color: rgba(192, 192, 192, 0.6);
    font-size: 11px;
}

/* Scroll to Top Button */
.w0e29-scroll-top {
    position: fixed;
    bottom: 84px;
    right: 16px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--w0e29-accent) 0%, #FF6B6B 100%);
    color: var(--w0e29-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(255, 138, 128, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.w0e29-scroll-visible {
    opacity: 1;
    visibility: visible;
}

.w0e29-scroll-top:active {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 138, 128, 0.6);
}

/* Lazy Loading */
img[data-src] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img.w0e29-loaded {
    opacity: 1;
}

/* Desktop Responsive */
@media (min-width: 769px) {
    .w0e29-bottom-nav {
        display: none;
    }

    .w0e29-main {
        padding-bottom: 0;
    }

    .w0e29-footer {
        padding-bottom: 32px;
    }

    .w0e29-scroll-top {
        bottom: 24px;
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .w0e29-main {
        padding-bottom: 80px;
    }

    .w0e29-game-grid {
        gap: 10px;
    }

    .w0e29-game-card {
        min-height: 85px;
    }
}

/* Touch Optimization */
@media (hover: none) and (pointer: coarse) {
    .w0e29-game-card:hover {
        transform: none;
    }

    .w0e29-game-card:hover::before {
        opacity: 0;
    }
}
