/* 888jili-login.css - Gaming website styles */
/* Class prefix: uib1- */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color palette: #34495E | #C9C9FF */
    --uib1-primary: #34495E;
    --uib1-secondary: #C9C9FF;
    --uib1-bg-dark: #2c3e50;
    --uib1-bg-light: #f8f9fa;
    --uib1-text-light: #ffffff;
    --uib1-text-dark: #2c3e50;
    --uib1-text-muted: #7f8c8d;
    --uib1-border: #e9ecef;
    --uib1-shadow: rgba(52, 73, 94, 0.1);
    --uib1-gradient: linear-gradient(135deg, #34495E 0%, #C9C9FF 100%);

    /* Typography */
    --uib1-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --uib1-font-size-xs: 1rem; /* 10px */
    --uib1-font-size-sm: 1.2rem; /* 12px */
    --uib1-font-size-base: 1.4rem; /* 14px */
    --uib1-font-size-lg: 1.6rem; /* 16px */
    --uib1-font-size-xl: 1.8rem; /* 18px */
    --uib1-font-size-2xl: 2.2rem; /* 22px */
    --uib1-font-size-3xl: 2.8rem; /* 28px */

    /* Spacing */
    --uib1-spacing-xs: 0.5rem;
    --uib1-spacing-sm: 1rem;
    --uib1-spacing-md: 1.5rem;
    --uib1-spacing-lg: 2rem;
    --uib1-spacing-xl: 3rem;
    --uib1-spacing-2xl: 4rem;

    /* Border radius */
    --uib1-radius-sm: 0.4rem;
    --uib1-radius-md: 0.8rem;
    --uib1-radius-lg: 1.2rem;
    --uib1-radius-xl: 1.6rem;

    /* Transitions */
    --uib1-transition: all 0.3s ease;
    --uib1-transition-fast: all 0.15s ease;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--uib1-font-primary);
    font-size: var(--uib1-font-size-base);
    line-height: 1.6;
    color: var(--uib1-text-dark);
    background-color: var(--uib1-bg-light);
    overflow-x: hidden;
}

/* Mobile-first responsive design */
@media (max-width: 430px) {
    body {
        padding-bottom: 8rem; /* Space for bottom nav */
    }
}

/* Typography */
.uib1-h1 {
    font-size: var(--uib1-font-size-3xl);
    font-weight: 700;
    color: var(--uib1-primary);
    margin-bottom: var(--uib1-spacing-lg);
    line-height: 1.2;
}

.uib1-h2 {
    font-size: var(--uib1-font-size-2xl);
    font-weight: 600;
    color: var(--uib1-primary);
    margin-bottom: var(--uib1-spacing-md);
    line-height: 1.3;
}

.uib1-h3 {
    font-size: var(--uib1-font-size-xl);
    font-weight: 600;
    color: var(--uib1-primary);
    margin-bottom: var(--uib1-spacing-sm);
    line-height: 1.4;
}

.uib1-text {
    font-size: var(--uib1-font-size-base);
    color: var(--uib1-text-dark);
    margin-bottom: var(--uib1-spacing-sm);
}

.uib1-text-sm {
    font-size: var(--uib1-font-size-sm);
    color: var(--uib1-text-muted);
}

/* Layout components */
.uib1-container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 var(--uib1-spacing-md);
}

.uib1-section {
    padding: var(--uib1-spacing-2xl) 0;
}

.uib1-grid {
    display: grid;
    gap: var(--uib1-spacing-md);
}

.uib1-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.uib1-flex-col {
    display: flex;
    flex-direction: column;
}

/* Header */
.uib1-header {
    background: var(--uib1-gradient);
    color: var(--uib1-text-light);
    padding: var(--uib1-spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--uib1-shadow);
}

.uib1-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--uib1-spacing-md);
}

.uib1-logo {
    font-size: var(--uib1-font-size-2xl);
    font-weight: 700;
    color: var(--uib1-text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--uib1-spacing-xs);
}

.uib1-nav {
    display: flex;
    align-items: center;
    gap: var(--uib1-spacing-lg);
}

.uib1-nav-item {
    color: var(--uib1-text-light);
    text-decoration: none;
    font-weight: 500;
    padding: var(--uib1-spacing-xs) var(--uib1-spacing-sm);
    border-radius: var(--uib1-radius-md);
    transition: var(--uib1-transition);
    min-height: 4.4rem; /* Touch-friendly */
    display: flex;
    align-items: center;
}

.uib1-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Buttons */
.uib1-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--uib1-spacing-sm) var(--uib1-spacing-md);
    border: none;
    border-radius: var(--uib1-radius-md);
    font-size: var(--uib1-font-size-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--uib1-transition);
    min-height: 4.4rem; /* Touch-friendly */
    min-width: 8rem;
}

.uib1-btn-primary {
    background: var(--uib1-primary);
    color: var(--uib1-text-light);
    box-shadow: 0 2px 8px var(--uib1-shadow);
}

.uib1-btn-primary:hover {
    background: var(--uib1-bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--uib1-shadow);
}

.uib1-btn-secondary {
    background: var(--uib1-secondary);
    color: var(--uib1-text-dark);
    box-shadow: 0 2px 8px var(--uib1-shadow);
}

.uib1-btn-secondary:hover {
    background: #b8b8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--uib1-shadow);
}

/* Mobile menu */
.uib1-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--uib1-text-light);
    font-size: var(--uib1-font-size-2xl);
    cursor: pointer;
    padding: var(--uib1-spacing-xs);
    min-height: 4.4rem;
    min-width: 4.4rem;
}

.uib1-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 30rem;
    height: 100vh;
    background: var(--uib1-primary);
    z-index: 9999;
    transition: var(--uib1-transition);
    padding: var(--uib1-spacing-xl) var(--uib1-spacing-md);
    overflow-y: auto;
}

.uib1-mobile-menu.active {
    right: 0;
}

.uib1-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--uib1-transition);
}

.uib1-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

/* Carousel */
.uib1-carousel {
    position: relative;
    width: 100%;
    height: 25rem;
    overflow: hidden;
    border-radius: var(--uib1-radius-lg);
    margin-bottom: var(--uib1-spacing-xl);
    box-shadow: 0 4px 20px var(--uib1-shadow);
}

.uib1-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.uib1-carousel-slide.active {
    opacity: 1;
}

.uib1-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uib1-carousel-indicators {
    position: absolute;
    bottom: var(--uib1-spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--uib1-spacing-xs);
}

.uib1-carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--uib1-transition-fast);
}

.uib1-carousel-indicator.active {
    background: var(--uib1-text-light);
    transform: scale(1.2);
}

/* Game cards */
.uib1-game-card {
    background: var(--uib1-text-light);
    border-radius: var(--uib1-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--uib1-shadow);
    transition: var(--uib1-transition);
    cursor: pointer;
    position: relative;
}

.uib1-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--uib1-shadow);
}

.uib1-game-image {
    width: 100%;
    height: 15rem;
    object-fit: cover;
    transition: var(--uib1-transition);
}

.uib1-game-card:hover .uib1-game-image {
    transform: scale(1.05);
}

.uib1-game-info {
    padding: var(--uib1-spacing-sm);
    text-align: center;
}

.uib1-game-title {
    font-size: var(--uib1-font-size-sm);
    font-weight: 600;
    color: var(--uib1-text-dark);
    margin-bottom: var(--uib1-spacing-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Game grid */
.uib1-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: var(--uib1-spacing-md);
    margin-bottom: var(--uib1-spacing-xl);
}

/* Section headers */
.uib1-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--uib1-spacing-lg);
    flex-wrap: wrap;
    gap: var(--uib1-spacing-sm);
}

.uib1-section-title {
    font-size: var(--uib1-font-size-2xl);
    font-weight: 700;
    color: var(--uib1-primary);
    display: flex;
    align-items: center;
    gap: var(--uib1-spacing-sm);
}

.uib1-section-icon {
    color: var(--uib1-secondary);
    font-size: var(--uib1-font-size-xl);
}

/* Bottom navigation */
.uib1-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--uib1-primary);
    padding: var(--uib1-spacing-sm) 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px var(--uib1-shadow);
    display: none;
}

.uib1-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 43rem;
    margin: 0 auto;
}

.uib1-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    padding: var(--uib1-spacing-xs);
    border-radius: var(--uib1-radius-md);
    transition: var(--uib1-transition);
    min-width: 6rem;
    min-height: 6rem;
    font-size: var(--uib1-font-size-xs);
    text-align: center;
}

.uib1-bottom-nav-item:hover,
.uib1-bottom-nav-item.active {
    color: var(--uib1-text-light);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.uib1-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: var(--uib1-spacing-xs);
    transition: var(--uib1-transition);
}

.uib1-bottom-nav-item:hover .uib1-bottom-nav-icon {
    transform: scale(1.1);
}

/* Footer */
.uib1-footer {
    background: var(--uib1-primary);
    color: var(--uib1-text-light);
    padding: var(--uib1-spacing-2xl) 0 var(--uib1-spacing-md);
    margin-top: var(--uib1-spacing-2xl);
}

.uib1-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: var(--uib1-spacing-xl);
    margin-bottom: var(--uib1-spacing-lg);
}

.uib1-footer-section h3 {
    font-size: var(--uib1-font-size-lg);
    margin-bottom: var(--uib1-spacing-md);
    color: var(--uib1-secondary);
}

.uib1-footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    padding: var(--uib1-spacing-xs) 0;
    transition: var(--uib1-transition);
}

.uib1-footer-link:hover {
    color: var(--uib1-text-light);
    padding-left: var(--uib1-spacing-xs);
}

.uib1-partners {
    display: flex;
    flex-wrap: wrap;
    gap: var(--uib1-spacing-md);
    align-items: center;
    justify-content: center;
    padding: var(--uib1-spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: var(--uib1-spacing-lg) 0;
}

.uib1-partner-logo {
    height: 4rem;
    width: auto;
    opacity: 0.7;
    transition: var(--uib1-transition);
    filter: brightness(0) invert(1);
}

.uib1-partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.uib1-footer-bottom {
    text-align: center;
    padding-top: var(--uib1-spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--uib1-font-size-sm);
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    /* Show mobile navigation */
    .uib1-bottom-nav {
        display: block;
    }

    /* Hide desktop navigation */
    .uib1-nav {
        display: none;
    }

    /* Show mobile menu toggle */
    .uib1-mobile-toggle {
        display: block;
    }

    /* Adjust header */
    .uib1-header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Adjust carousel */
    .uib1-carousel {
        height: 18rem;
        margin-bottom: var(--uib1-spacing-lg);
    }

    /* Adjust game grid */
    .uib1-game-grid {
        grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
        gap: var(--uib1-spacing-sm);
    }

    /* Smaller game images */
    .uib1-game-image {
        height: 12rem;
    }

    /* Smaller section titles */
    .uib1-section-title {
        font-size: var(--uib1-font-size-xl);
    }

    /* Smaller headings */
    .uib1-h1 {
        font-size: var(--uib1-font-size-2xl);
    }

    .uib1-h2 {
        font-size: var(--uib1-font-size-xl);
    }

    .uib1-h3 {
        font-size: var(--uib1-font-size-lg);
    }

    /* Adjust container padding */
    .uib1-container {
        padding: 0 var(--uib1-spacing-sm);
    }

    /* Smaller buttons */
    .uib1-btn {
        padding: var(--uib1-spacing-xs) var(--uib1-spacing-sm);
        font-size: var(--uib1-font-size-sm);
        min-height: 4rem;
    }

    /* Smaller footer */
    .uib1-footer-content {
        grid-template-columns: 1fr;
        gap: var(--uib1-spacing-lg);
    }

    /* Smaller partners */
    .uib1-partner-logo {
        height: 3rem;
    }
}

@media (max-width: 430px) {
    /* Extra small mobile adjustments */
    .uib1-carousel {
        height: 15rem;
    }

    .uib1-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .uib1-game-image {
        height: 10rem;
    }

    .uib1-bottom-nav-item {
        min-width: 5rem;
        min-height: 5rem;
        font-size: 0.9rem;
    }

    .uib1-bottom-nav-icon {
        font-size: 2rem;
    }
}

/* Animation utilities */
.uib1-fade-in {
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.6s ease;
}

.uib1-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading states */
.uib1-loading {
    position: relative;
    overflow: hidden;
}

.uib1-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Utility classes */
.uib1-text-center {
    text-align: center;
}

.uib1-text-left {
    text-align: left;
}

.uib1-text-right {
    text-align: right;
}

.uib1-mt-sm { margin-top: var(--uib1-spacing-sm); }
.uib1-mt-md { margin-top: var(--uib1-spacing-md); }
.uib1-mt-lg { margin-top: var(--uib1-spacing-lg); }
.uib1-mb-sm { margin-bottom: var(--uib1-spacing-sm); }
.uib1-mb-md { margin-bottom: var(--uib1-spacing-md); }
.uib1-mb-lg { margin-bottom: var(--uib1-spacing-lg); }

.uib1-hidden {
    display: none !important;
}

.uib1-visible-mobile {
    display: none;
}

@media (max-width: 768px) {
    .uib1-visible-mobile {
        display: block;
    }

    .uib1-hidden-mobile {
        display: none !important;
    }
}