/**
 * Lakiwin Theme Stylesheet
 * Version: 1.0.0
 * All classes use ui0e- prefix for namespace isolation
 * Color Palette: #FFE135 (primary) | #FAFAD2 (light) | #F0E68C (accent) | #141414 (background)
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --ui0e-primary: #FFE135;
    --ui0e-light: #FAFAD2;
    --ui0e-accent: #F0E68C;
    --ui0e-background: #141414;
    --ui0e-text-light: #FAFAD2;
    --ui0e-text-dark: #141414;
    --ui0e-gradient-gold: linear-gradient(135deg, #FFE135 0%, #F0E68C 50%, #FAFAD2 100%);
    --ui0e-gradient-dark: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
    --ui0e-shadow: 0 4px 15px rgba(255, 225, 53, 0.2);
    --ui0e-shadow-lg: 0 8px 30px rgba(255, 225, 53, 0.3);
    --ui0e-border-radius: 12px;
    --ui0e-transition: all 0.3s ease;
    --vh: 1vh;
}

/* Base font size for rem units */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--ui0e-background);
    color: var(--ui0e-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--ui0e-primary);
    text-decoration: none;
    transition: var(--ui0e-transition);
}

a:hover {
    color: var(--ui0e-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Layout Components
   ============================================ */
.ui0e-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ui0e-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ui0e-grid {
    display: grid;
    gap: 1.2rem;
}

.ui0e-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ui0e-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ui0e-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   Header Navigation
   ============================================ */
.ui0e-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 225, 53, 0.15);
    transition: var(--ui0e-transition);
}

.ui0e-header-scrolled {
    background: rgba(20, 20, 20, 0.99);
    box-shadow: var(--ui0e-shadow);
}

.ui0e-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.ui0e-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ui0e-logo img {
    width: 28px;
    height: 28px;
}

.ui0e-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--ui0e-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ui0e-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ui0e-header-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ui0e-transition);
    border: none;
}

.ui0e-btn-register {
    background: var(--ui0e-gradient-gold);
    color: var(--ui0e-text-dark);
}

.ui0e-btn-register:hover {
    transform: scale(1.05);
    box-shadow: var(--ui0e-shadow);
}

.ui0e-btn-login {
    background: transparent;
    border: 1px solid var(--ui0e-primary);
    color: var(--ui0e-primary);
}

.ui0e-btn-login:hover {
    background: var(--ui0e-primary);
    color: var(--ui0e-text-dark);
}

.ui0e-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ui0e-primary);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Desktop Navigation */
.ui0e-nav-desktop {
    display: none;
}

@media (min-width: 769px) {
    .ui0e-menu-toggle {
        display: none;
    }

    .ui0e-nav-desktop {
        display: flex;
        gap: 1.5rem;
    }

    .ui0e-nav-desktop a {
        color: var(--ui0e-light);
        font-size: 1.3rem;
        font-weight: 500;
        padding: 0.5rem;
    }

    .ui0e-nav-desktop a:hover {
        color: var(--ui0e-primary);
    }
}

/* Mobile Menu */
.ui0e-menu-toggle {
    display: block;
}

.ui0e-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--ui0e-background);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    border-left: 1px solid rgba(255, 225, 53, 0.15);
}

.ui0e-menu-active {
    right: 0;
}

.ui0e-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 225, 53, 0.15);
}

.ui0e-mobile-menu-close {
    background: none;
    border: none;
    color: var(--ui0e-primary);
    font-size: 2rem;
    cursor: pointer;
}

.ui0e-mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ui0e-mobile-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--ui0e-light);
    border-radius: 8px;
    font-size: 1.4rem;
}

.ui0e-mobile-menu-nav a:hover {
    background: rgba(255, 225, 53, 0.1);
    color: var(--ui0e-primary);
}

.ui0e-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(--ui0e-transition);
}

.ui0e-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Main Content
   ============================================ */
.ui0e-main {
    flex: 1;
    padding-top: 70px;
}

@media (max-width: 768px) {
    .ui0e-main {
        padding-bottom: 80px;
    }
}

/* ============================================
   Slider / Carousel
   ============================================ */
.ui0e-slider {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.ui0e-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.ui0e-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.ui0e-slide-active {
    opacity: 1;
}

.ui0e-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ui0e-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.ui0e-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 225, 53, 0.4);
    cursor: pointer;
    transition: var(--ui0e-transition);
}

.ui0e-dot-active {
    background: var(--ui0e-primary);
    transform: scale(1.2);
}

/* ============================================
   Sections
   ============================================ */
.ui0e-section {
    padding: 2rem 1.5rem;
}

.ui0e-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--ui0e-primary);
    position: relative;
    padding-left: 1rem;
}

.ui0e-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--ui0e-gradient-gold);
    border-radius: 2px;
}

/* ============================================
   Game Grid
   ============================================ */
.ui0e-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.ui0e-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--ui0e-transition);
}

.ui0e-game-item:hover {
    transform: translateY(-3px);
}

.ui0e-game-item:hover .ui0e-game-icon {
    box-shadow: 0 0 20px rgba(255, 225, 53, 0.4);
}

.ui0e-game-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255, 225, 53, 0.2);
    transition: var(--ui0e-transition);
}

.ui0e-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ui0e-game-name {
    font-size: 1.1rem;
    color: var(--ui0e-light);
    text-align: center;
    line-height: 1.3;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   Cards
   ============================================ */
.ui0e-card {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
    border-radius: var(--ui0e-border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 225, 53, 0.1);
    transition: var(--ui0e-transition);
}

.ui0e-card:hover {
    border-color: rgba(255, 225, 53, 0.3);
    box-shadow: var(--ui0e-shadow);
}

.ui0e-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ui0e-primary);
    margin-bottom: 1rem;
}

.ui0e-card-text {
    color: var(--ui0e-light);
    line-height: 1.6;
    font-size: 1.3rem;
}

/* ============================================
   Buttons
   ============================================ */
.ui0e-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ui0e-transition);
    border: none;
    text-decoration: none;
}

.ui0e-btn-primary {
    background: var(--ui0e-gradient-gold);
    color: var(--ui0e-text-dark);
}

.ui0e-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--ui0e-shadow-lg);
    color: var(--ui0e-text-dark);
}

.ui0e-btn-outline {
    background: transparent;
    border: 2px solid var(--ui0e-primary);
    color: var(--ui0e-primary);
}

.ui0e-btn-outline:hover {
    background: var(--ui0e-primary);
    color: var(--ui0e-text-dark);
}

.ui0e-btn-block {
    width: 100%;
}

/* ============================================
   Footer
   ============================================ */
.ui0e-footer {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 1) 100%);
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 225, 53, 0.1);
}

.ui0e-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ui0e-footer-brand p {
    color: var(--ui0e-light);
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.8;
}

.ui0e-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.ui0e-footer-links a {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 225, 53, 0.1);
    border-radius: 8px;
    color: var(--ui0e-light);
    font-size: 1.2rem;
}

.ui0e-footer-links a:hover {
    background: var(--ui0e-primary);
    color: var(--ui0e-text-dark);
}

.ui0e-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 225, 53, 0.1);
}

.ui0e-footer-nav a {
    color: var(--ui0e-light);
    font-size: 1.2rem;
    opacity: 0.7;
}

.ui0e-footer-nav a:hover {
    color: var(--ui0e-primary);
    opacity: 1;
}

.ui0e-copyright {
    text-align: center;
    color: var(--ui0e-light);
    font-size: 1.1rem;
    opacity: 0.6;
}

/* ============================================
   Mobile Bottom Navigation
   ============================================ */
.ui0e-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(10, 10, 10, 1) 100%);
    border-top: 1px solid rgba(255, 225, 53, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .ui0e-bottom-nav {
        display: none;
    }
}

.ui0e-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: var(--ui0e-transition);
    border-radius: 12px;
    padding: 0.5rem;
}

.ui0e-bottom-nav-item:hover {
    background: rgba(255, 225, 53, 0.1);
}

.ui0e-bottom-nav-item.active {
    background: rgba(255, 225, 53, 0.15);
}

.ui0e-bottom-nav-item.active .ui0e-bottom-nav-icon {
    color: var(--ui0e-primary);
}

.ui0e-bottom-nav-item.active .ui0e-bottom-nav-label {
    color: var(--ui0e-primary);
}

.ui0e-bottom-nav-icon {
    font-size: 22px;
    color: var(--ui0e-light);
    margin-bottom: 0.3rem;
    transition: var(--ui0e-transition);
}

.ui0e-bottom-nav-label {
    font-size: 10px;
    color: var(--ui0e-light);
    opacity: 0.8;
    transition: var(--ui0e-transition);
}

/* ============================================
   Promotional Links
   ============================================ */
.ui0e-promo-link {
    color: var(--ui0e-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--ui0e-transition);
}

.ui0e-promo-link:hover {
    color: var(--ui0e-light);
    text-decoration: underline;
}

.ui0e-promo-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--ui0e-gradient-gold);
    color: var(--ui0e-text-dark);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ui0e-transition);
}

.ui0e-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--ui0e-shadow);
}

/* ============================================
   Utility Classes
   ============================================ */
.ui0e-text-center { text-align: center; }
.ui0e-text-left { text-align: left; }
.ui0e-text-right { text-align: right; }

.ui0e-mt-1 { margin-top: 1rem; }
.ui0e-mt-2 { margin-top: 2rem; }
.ui0e-mb-1 { margin-bottom: 1rem; }
.ui0e-mb-2 { margin-bottom: 2rem; }

.ui0e-py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.ui0e-py-2 { padding-top: 2rem; padding-bottom: 2rem; }

.ui0e-hidden { display: none !important; }
.ui0e-visible { display: block !important; }

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 360px) {
    .ui0e-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ui0e-game-icon {
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 431px) and (max-width: 768px) {
    .ui0e-container {
        max-width: 430px;
    }
}
