/* OKJL Website CSS - Mobile First Design */
/* All classes use vc44- prefix for namespace isolation */

/* CSS Variables */
:root {
    --vc44-primary: #E0F2F1;
    --vc44-secondary: #0F0F23;
    --vc44-accent: #4CAF50;
    --vc44-warning: #FF9800;
    --vc44-danger: #F44336;
    --vc44-text-primary: #E0F2F1;
    --vc44-text-secondary: #B0BEC5;
    --vc44-bg-primary: #0F0F23;
    --vc44-bg-secondary: #1A1A2E;
    --vc44-bg-card: #16213E;
    --vc44-border: #37474F;
    --vc44-shadow: rgba(0, 0, 0, 0.3);
    --vc44-gradient: linear-gradient(135deg, #E0F2F1 0%, #B2DFDB 100%);
    --vc44-radius: 8px;
    --vc44-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--vc44-text-primary);
    background-color: var(--vc44-bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container and Layout */
.vc44-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.vc44-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.vc44-main {
    flex: 1;
    padding-bottom: 8rem; /* Space for bottom nav */
}

/* Header Styles */
.vc44-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--vc44-bg-secondary);
    border-bottom: 1px solid var(--vc44-border);
    z-index: 1000;
    transition: var(--vc44-transition);
}

.vc44-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.vc44-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--vc44-text-primary);
}

.vc44-logo img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    object-fit: cover;
}

.vc44-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vc44-primary);
}

.vc44-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.vc44-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: var(--vc44-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vc44-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 8rem;
}

.vc44-btn-primary {
    background: var(--vc44-accent);
    color: white;
}

.vc44-btn-primary:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--vc44-shadow);
}

.vc44-btn-secondary {
    background: transparent;
    color: var(--vc44-primary);
    border: 2px solid var(--vc44-primary);
}

.vc44-btn-secondary:hover {
    background: var(--vc44-primary);
    color: var(--vc44-bg-primary);
    transform: translateY(-1px);
}

/* Mobile Menu */
.vc44-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: none;
    color: var(--vc44-text-primary);
    cursor: pointer;
    border-radius: var(--vc44-radius);
    transition: var(--vc44-transition);
}

.vc44-menu-toggle:hover {
    background: var(--vc44-bg-card);
}

.vc44-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--vc44-bg-secondary);
    z-index: 9999;
    transition: var(--vc44-transition);
    overflow-y: auto;
}

.vc44-mobile-menu.vc44-menu-open {
    left: 0;
}

.vc44-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--vc44-transition);
}

.vc44-menu-overlay.vc44-overlay-active {
    opacity: 1;
    visibility: visible;
}

.vc44-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--vc44-border);
}

.vc44-menu-close {
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: none;
    color: var(--vc44-text-primary);
    cursor: pointer;
    border-radius: var(--vc44-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vc44-menu-nav {
    padding: 1rem 0;
}

.vc44-menu-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--vc44-text-primary);
    text-decoration: none;
    transition: var(--vc44-transition);
    font-size: 1.4rem;
}

.vc44-menu-nav a:hover {
    background: var(--vc44-bg-card);
    color: var(--vc44-primary);
}

.vc44-menu-nav i {
    width: 2rem;
    text-align: center;
    font-size: 1.6rem;
}

/* Carousel */
.vc44-carousel {
    position: relative;
    width: 100%;
    height: 20rem;
    overflow: hidden;
    border-radius: var(--vc44-radius);
    margin: 6rem 0 2rem;
}

.vc44-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.vc44-slide.vc44-active {
    opacity: 1;
}

.vc44-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vc44-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
}

.vc44-slide-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.vc44-slide-desc {
    font-size: 1.2rem;
    opacity: 0.9;
}

.vc44-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.vc44-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--vc44-transition);
}

.vc44-dot.vc44-active {
    background: var(--vc44-primary);
    width: 2rem;
    border-radius: 0.4rem;
}

/* Game Grid */
.vc44-games-section {
    padding: 2rem 0;
}

.vc44-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.vc44-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--vc44-primary);
    margin-bottom: 0.5rem;
}

.vc44-section-subtitle {
    font-size: 1.4rem;
    color: var(--vc44-text-secondary);
}

.vc44-game-category {
    margin-bottom: 3rem;
}

.vc44-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--vc44-primary);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--vc44-accent);
}

.vc44-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.vc44-game-item {
    background: var(--vc44-bg-card);
    border-radius: var(--vc44-radius);
    overflow: hidden;
    transition: var(--vc44-transition);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--vc44-border);
}

.vc44-game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--vc44-shadow);
    border-color: var(--vc44-accent);
}

.vc44-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.vc44-game-name {
    font-size: 1rem;
    color: var(--vc44-text-primary);
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Sections */
.vc44-content-section {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.vc44-card {
    background: var(--vc44-bg-card);
    border-radius: var(--vc44-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--vc44-border);
}

.vc44-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--vc44-primary);
    margin-bottom: 1rem;
}

.vc44-card-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--vc44-text-primary);
    margin-bottom: 1rem;
}

.vc44-list {
    list-style: none;
    padding: 0;
}

.vc44-list-item {
    padding: 0.5rem 0;
    font-size: 1.4rem;
    color: var(--vc44-text-primary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.vc44-list-item i {
    color: var(--vc44-accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Bottom Navigation */
.vc44-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--vc44-bg-secondary);
    border-top: 1px solid var(--vc44-border);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    max-width: 430px;
    margin: 0 auto;
}

.vc44-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 6rem;
    background: transparent;
    border: none;
    color: var(--vc44-text-secondary);
    cursor: pointer;
    transition: var(--vc44-transition);
    text-decoration: none;
    border-radius: var(--vc44-radius);
    padding: 0.5rem;
}

.vc44-bottom-nav-item:hover,
.vc44-bottom-nav-item.active {
    color: var(--vc44-primary);
    background: var(--vc44-bg-card);
}

.vc44-bottom-nav-item i {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.vc44-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.vc44-footer {
    background: var(--vc44-bg-secondary);
    padding: 3rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid var(--vc44-border);
}

.vc44-footer-content {
    text-align: center;
}

.vc44-footer-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--vc44-primary);
    margin-bottom: 1.5rem;
}

.vc44-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.vc44-partner-item {
    width: 4rem;
    height: 4rem;
    background: var(--vc44-bg-card);
    border-radius: var(--vc44-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid var(--vc44-border);
}

.vc44-partner-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vc44-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.vc44-footer-links a {
    color: var(--vc44-text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--vc44-transition);
}

.vc44-footer-links a:hover {
    color: var(--vc44-primary);
}

.vc44-copyright {
    font-size: 1.2rem;
    color: var(--vc44-text-secondary);
    margin-top: 1rem;
}

/* Utility Classes */
.vc44-text-center {
    text-align: center;
}

.vc44-mb-1 {
    margin-bottom: 1rem;
}

.vc44-mb-2 {
    margin-bottom: 2rem;
}

.vc44-mt-1 {
    margin-top: 1rem;
}

.vc44-mt-2 {
    margin-top: 2rem;
}

/* Loading Spinner */
.vc44-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.vc44-spinner {
    width: 4rem;
    height: 4rem;
    border: 3px solid var(--vc44-border);
    border-top: 3px solid var(--vc44-primary);
    border-radius: 50%;
    animation: vc44-spin 1s linear infinite;
}

@keyframes vc44-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (min-width: 769px) {
    .vc44-bottom-nav {
        display: none;
    }

    .vc44-main {
        padding-bottom: 0;
    }

    .vc44-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .vc44-header-buttons {
        gap: 1rem;
    }

    .vc44-btn {
        min-width: 10rem;
        padding: 1rem 2rem;
    }
}

/* Touch Device Optimizations */
.vc44-touch-device .vc44-btn,
.vc44-touch-device .vc44-bottom-nav-item {
    min-height: 4.4rem; /* Larger touch targets */
}

/* Print Styles */
@media print {
    .vc44-header,
    .vc44-bottom-nav,
    .vc44-carousel {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}