/* lucky cola CSS with wf638- prefix for namespace isolation */
/* All classes use prefix "wf638-" to avoid conflicts */

/* CSS Variables for consistent theming */
:root {
    --wf638-primary: #34495E;
    --wf638-secondary: #36454F;
    --wf638-accent: #F5F5F5;
    --wf638-bg: #1a1a1a;
    --wf638-text: #ffffff;
    --wf638-text-secondary: #cccccc;
    --wf638-border: #333333;
    --wf638-success: #27ae60;
    --wf638-warning: #f39c12;
    --wf638-danger: #e74c3c;
    --wf638-gradient: linear-gradient(135deg, #34495E 0%, #36454F 100%);
    --wf638-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --wf638-radius: 8px;
    --wf638-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 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;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--wf638-text);
    background: var(--wf638-bg);
    overflow-x: hidden;
}

/* Typography */
.wf638-h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--wf638-text);
    line-height: 1.2;
}

.wf638-h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--wf638-text);
    line-height: 1.3;
}

.wf638-h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--wf638-text);
    line-height: 1.4;
}

.wf638-p {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--wf638-text-secondary);
}

.wf638-small {
    font-size: 1.2rem;
    color: var(--wf638-text-secondary);
}

/* Layout containers */
.wf638-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.wf638-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wf638-main {
    flex: 1;
    padding-bottom: 8rem; /* Space for bottom nav on mobile */
}

/* Header */
.wf638-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--wf638-gradient);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--wf638-border);
    box-shadow: var(--wf638-shadow);
}

.wf638-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.wf638-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--wf638-text);
}

.wf638-logo img {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
}

.wf638-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wf638-text);
}

.wf638-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wf638-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: var(--wf638-radius);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wf638-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.wf638-btn-primary {
    background: var(--wf638-success);
    color: white;
}

.wf638-btn-primary:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.wf638-btn-secondary {
    background: var(--wf638-primary);
    color: white;
    border: 1px solid var(--wf638-accent);
}

.wf638-btn-secondary:hover {
    background: var(--wf638-accent);
    color: var(--wf638-primary);
    transform: translateY(-2px);
}

.wf638-menu-toggle {
    background: none;
    border: none;
    color: var(--wf638-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--wf638-radius);
    transition: var(--wf638-transition);
}

.wf638-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile menu */
.wf638-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--wf638-secondary);
    z-index: 9999;
    transition: var(--wf638-transition);
    overflow-y: auto;
}

.wf638-mobile-menu.active {
    right: 0;
}

.wf638-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--wf638-transition);
}

.wf638-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wf638-menu-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--wf638-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wf638-menu-close {
    background: none;
    border: none;
    color: var(--wf638-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.wf638-menu-nav {
    padding: 1rem 0;
}

.wf638-menu-item {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--wf638-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--wf638-transition);
    border-left: 3px solid transparent;
}

.wf638-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--wf638-success);
}

/* Carousel */
.wf638-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--wf638-radius);
    margin: 1.5rem 0;
    box-shadow: var(--wf638-shadow);
}

.wf638-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.wf638-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.wf638-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wf638-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.wf638-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--wf638-transition);
}

.wf638-indicator.active {
    background: var(--wf638-success);
    transform: scale(1.2);
}

/* Game grid */
.wf638-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.wf638-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--wf638-transition);
}

.wf638-game-item:hover {
    transform: translateY(-4px);
}

.wf638-game-icon {
    width: 6rem;
    height: 6rem;
    border-radius: var(--wf638-radius);
    overflow: hidden;
    margin: 0 auto 0.5rem;
    box-shadow: var(--wf638-shadow);
}

.wf638-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wf638-game-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--wf638-text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Cards */
.wf638-card {
    background: var(--wf638-secondary);
    border-radius: var(--wf638-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--wf638-shadow);
    border: 1px solid var(--wf638-border);
}

.wf638-card-header {
    border-bottom: 1px solid var(--wf638-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* Promotional links */
.wf638-promo-link {
    color: var(--wf638-success);
    text-decoration: none;
    font-weight: 600;
    transition: var(--wf638-transition);
}

.wf638-promo-link:hover {
    color: var(--wf638-warning);
    text-decoration: underline;
}

.wf638-promo-btn {
    background: var(--wf638-gradient);
    color: white;
    padding: 1.2rem 2.4rem;
    border: none;
    border-radius: var(--wf638-radius);
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wf638-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    box-shadow: var(--wf638-shadow);
}

.wf638-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Footer */
.wf638-footer {
    background: var(--wf638-secondary);
    border-top: 1px solid var(--wf638-border);
    padding: 2rem 0 8rem; /* Extra padding for bottom nav */
    margin-top: 3rem;
}

.wf638-footer-content {
    text-align: center;
}

.wf638-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wf638-footer-link {
    color: var(--wf638-text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--wf638-transition);
}

.wf638-footer-link:hover {
    color: var(--wf638-success);
}

.wf638-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.wf638-partner {
    width: 3rem;
    height: 3rem;
    border-radius: var(--wf638-radius);
    overflow: hidden;
    background: white;
    padding: 0.3rem;
}

.wf638-partner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wf638-copyright {
    font-size: 1.2rem;
    color: var(--wf638-text-secondary);
    margin-top: 1rem;
}

/* Bottom navigation */
.wf638-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--wf638-primary);
    border-top: 1px solid var(--wf638-border);
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: var(--wf638-shadow);
}

.wf638-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.wf638-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--wf638-text-secondary);
    padding: 0.5rem;
    min-width: 6rem;
    min-height: 5rem;
    border-radius: var(--wf638-radius);
    transition: var(--wf638-transition);
    cursor: pointer;
}

.wf638-bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--wf638-text);
}

.wf638-bottom-nav-item.active {
    color: var(--wf638-success);
    background: rgba(39, 174, 96, 0.1);
}

.wf638-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
    transition: var(--wf638-transition);
}

.wf638-bottom-nav-item:hover .wf638-bottom-nav-icon {
    transform: scale(1.1);
}

.wf638-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Utility classes */
.wf638-text-center { text-align: center; }
.wf638-text-left { text-align: left; }
.wf638-text-right { text-align: right; }

.wf638-mb-1 { margin-bottom: 1rem; }
.wf638-mb-2 { margin-bottom: 2rem; }
.wf638-mb-3 { margin-bottom: 3rem; }

.wf638-mt-1 { margin-top: 1rem; }
.wf638-mt-2 { margin-top: 2rem; }
.wf638-mt-3 { margin-top: 3rem; }

.wf638-p-1 { padding: 1rem; }
.wf638-p-2 { padding: 2rem; }
.wf638-p-3 { padding: 3rem; }

/* Responsive design */
@media (max-width: 768px) {
    .wf638-main {
        padding-bottom: 8rem;
    }

    .wf638-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 0.8rem;
    }

    .wf638-game-icon {
        width: 5rem;
        height: 5rem;
    }

    .wf638-game-name {
        font-size: 1.1rem;
    }
}

@media (min-width: 769px) {
    .wf638-bottom-nav {
        display: none;
    }

    .wf638-main {
        padding-bottom: 2rem;
    }
}

/* Animations */
@keyframes wf638-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes wf638-slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.wf638-fade-in {
    animation: wf638-fadeIn 0.5s ease-out;
}

.wf638-slide-in-right {
    animation: wf638-slideInRight 0.3s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --wf638-text: #ffffff;
        --wf638-text-secondary: #ffffff;
        --wf638-border: #ffffff;
    }
}

/* Focus styles for accessibility */
.wf638-btn:focus,
.wf638-menu-toggle:focus,
.wf638-menu-item:focus,
.wf638-bottom-nav-item:focus {
    outline: 2px solid var(--wf638-success);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .wf638-header,
    .wf638-bottom-nav,
    .wf638-mobile-menu,
    .wf638-menu-overlay {
        display: none !important;
    }

    .wf638-main {
        padding-bottom: 0 !important;
    }
}