/**
 * 8jl.click - Design System
 * Class prefix: uic5
 * Color Palette: #1B263B | #20B2AA | #95A5A6 | #ECF0F1 | #F5F5F5
 */

/* CSS 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.6rem;
    line-height: 1.5;
    color: #ECF0F1;
    background-color: #1B263B;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.uic5-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Header Styles */
.uic5-header {
    background-color: #1B263B;
    border-bottom: 1px solid #20B2AA;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.uic5-header.uic5-sticky {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.uic5-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.uic5-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #20B2AA;
    font-size: 2.4rem;
    font-weight: 700;
    flex: 1;
}

.uic5-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.uic5-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.uic5-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.uic5-btn-primary {
    background-color: #20B2AA;
    color: #1B263B;
}

.uic5-btn-primary:hover {
    background-color: #1CA39B;
    transform: translateY(-1px);
}

.uic5-btn-secondary {
    background-color: transparent;
    color: #20B2AA;
    border: 2px solid #20B2AA;
}

.uic5-btn-secondary:hover {
    background-color: #20B2AA;
    color: #1B263B;
}

.uic5-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #20B2AA;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.uic5-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.uic5-overlay.uic5-active {
    opacity: 1;
    visibility: visible;
}

.uic5-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: #1B263B;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.uic5-mobile-menu.uic5-menu-open {
    right: 0;
}

.uic5-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid #20B2AA;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uic5-menu-close {
    background: none;
    border: none;
    color: #ECF0F1;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.uic5-menu-nav {
    padding: 1rem 0;
}

.uic5-menu-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: #ECF0F1;
    text-decoration: none;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.uic5-menu-nav a:hover,
.uic5-menu-nav a.active {
    background-color: rgba(32, 178, 170, 0.1);
    border-left-color: #20B2AA;
    color: #20B2AA;
}

/* Main Content */
main {
    margin-top: 56px;
    min-height: calc(100vh - 56px);
    padding-bottom: 80px;
}

/* Carousel */
.uic5-carousel {
    position: relative;
    height: 200px;
    background-color: #1A1F2E;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.uic5-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.uic5-slide.uic5-active {
    opacity: 1;
}

.uic5-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uic5-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem;
    color: #ECF0F1;
}

.uic5-carousel-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.uic5-carousel-text {
    font-size: 1.4rem;
    opacity: 0.9;
}

.uic5-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.uic5-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.uic5-indicator.uic5-active {
    background-color: #20B2AA;
    width: 24px;
    border-radius: 4px;
}

/* Game Categories */
.uic5-categories {
    margin-bottom: 2rem;
}

.uic5-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.uic5-category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #20B2AA;
}

.uic5-category-filter {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.uic5-category-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 20px;
    background-color: rgba(32, 178, 170, 0.1);
    color: #ECF0F1;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.uic5-category-btn:hover {
    background-color: rgba(32, 178, 170, 0.2);
}

.uic5-category-btn.uic5-active {
    background-color: #20B2AA;
    color: #1B263B;
}

/* Game Grid */
.uic5-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.uic5-game-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #1A1F2E;
    position: relative;
}

.uic5-game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(32, 178, 170, 0.3);
}

.uic5-game-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uic5-game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 1rem 0.5rem 0.5rem;
    color: #ECF0F1;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

/* Search */
.uic5-search-container {
    position: relative;
    margin-bottom: 2rem;
}

.uic5-search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #20B2AA;
    border-radius: 30px;
    background-color: #1A1F2E;
    color: #ECF0F1;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.uic5-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.2);
}

.uic5-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1A1F2E;
    border: 1px solid #20B2AA;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.uic5-search-results.uic5-active {
    opacity: 1;
    visibility: visible;
}

.uic5-search-item {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ECF0F1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.uic5-search-item:hover {
    background-color: rgba(32, 178, 170, 0.1);
}

/* Promotions Section */
.uic5-promotions {
    padding: 2rem 0;
    background-color: #1A1F2E;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.uic5-promotions-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.uic5-promotions-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #20B2AA;
    margin-bottom: 0.5rem;
}

.uic5-promotions-grid {
    display: grid;
    gap: 1rem;
}

.uic5-promotion-card {
    background-color: #243447;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.uic5-promotion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(32, 178, 170, 0.3);
}

.uic5-promotion-icon {
    font-size: 3rem;
    color: #20B2AA;
    margin-bottom: 1rem;
}

.uic5-promotion-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ECF0F1;
    margin-bottom: 0.5rem;
}

.uic5-promotion-desc {
    font-size: 1.4rem;
    color: #95A5A6;
    line-height: 1.4;
}

/* Features Section */
.uic5-features {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.uic5-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.uic5-feature-item {
    background-color: #1A1F2E;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.uic5-feature-item:hover {
    background-color: #243447;
}

.uic5-feature-icon {
    font-size: 2.5rem;
    color: #20B2AA;
    margin-bottom: 1rem;
}

.uic5-feature-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #ECF0F1;
    margin-bottom: 0.5rem;
}

.uic5-feature-text {
    font-size: 1.4rem;
    color: #95A5A6;
    line-height: 1.4;
}

/* Footer */
.uic5-footer {
    background-color: #0F1419;
    border-top: 1px solid #20B2AA;
    padding: 2rem 0;
    margin-top: 4rem;
}

.uic5-footer-content {
    text-align: center;
}

.uic5-footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #20B2AA;
    margin-bottom: 1rem;
}

.uic5-footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.uic5-footer-links a {
    color: #95A5A6;
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.uic5-footer-links a:hover {
    color: #20B2AA;
}

.uic5-footer-text {
    color: #6C7A89;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.uic5-partners {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.uic5-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.uic5-partner-logo:hover {
    opacity: 1;
}

/* Bottom Navigation */
.uic5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1B263B;
    border-top: 1px solid #20B2AA;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.uic5-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: #95A5A6;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0.5rem;
}

.uic5-nav-item:hover,
.uic5-nav-item.active {
    color: #20B2AA;
    background-color: rgba(32, 178, 170, 0.1);
    border-radius: 12px;
}

.uic5-nav-icon {
    font-size: 24px;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uic5-nav-text {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

/* Scroll to Top Button */
.uic5-scroll-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: #20B2AA;
    color: #1B263B;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uic5-scroll-top.uic5-visible {
    opacity: 1;
    visibility: visible;
}

.uic5-scroll-top:hover {
    background-color: #1CA39B;
    transform: translateY(-2px);
}

/* Utility Classes */
.uic5-text-center { text-align: center; }
.uic5-mb-1 { margin-bottom: 1rem; }
.uic5-mb-2 { margin-bottom: 2rem; }
.uic5-mt-1 { margin-top: 1rem; }
.uic5-mt-2 { margin-top: 2rem; }
.uic5-hidden { display: none; }
.uic5-flex { display: flex; }
.uic5-flex-col { flex-direction: column; }
.uic5-align-center { align-items: center; }
.uic5-justify-center { justify-content: center; }

/* Responsive Design */
@media (min-width: 769px) {
    .uic5-mobile-menu,
    .uic5-overlay,
    .uic5-menu-toggle {
        display: none;
    }

    .uic5-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 0;
    }

    .uic5-container {
        max-width: 1200px;
        padding: 0 2rem;
    }

    .uic5-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .uic5-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .uic5-game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .uic5-carousel {
        height: 150px;
    }

    .uic5-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
@keyframes uic5-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.uic5-fade-in {
    animation: uic5-fadeIn 0.5s ease forwards;
}

/* Loading State */
.uic5-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #20B2AA;
    border-radius: 50%;
    border-top-color: transparent;
    animation: uic5-spin 1s linear infinite;
}

@keyframes uic5-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Lazy Loading */
.uic5-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.uic5-lazy.loaded {
    opacity: 1;
}