/**
 * JL1111 Layout Stylesheet
 * Version: 1.0.0
 * All classes use uif7- prefix for namespace isolation
 * Color Palette: #FFAA00 | #1B263B | #FF9800 | #E9ECEF | #FFD700
 */

/* CSS Variables */
:root {
    --uif7-primary: #FFAA00;
    --uif7-secondary: #FF9800;
    --uif7-accent: #FFD700;
    --uif7-bg-dark: #1B263B;
    --uif7-bg-light: #E9ECEF;
    --uif7-text-dark: #1B263B;
    --uif7-text-light: #E9ECEF;
    --uif7-gradient-gold: linear-gradient(135deg, #FFAA00, #FFD700);
    --uif7-gradient-dark: linear-gradient(180deg, #1B263B, #0d1421);
    --uif7-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --uif7-radius: 8px;
}

/* Base Styles */
html {
    font-size: 62.5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--uif7-bg-dark);
    color: var(--uif7-text-light);
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: var(--uif7-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--uif7-accent);
}

/* Container */
.uif7-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.uif7-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--uif7-bg-dark);
    padding: 1rem 1.5rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--uif7-primary);
    box-shadow: var(--uif7-shadow);
}

.uif7-header-scrolled {
    background: rgba(27, 38, 59, 0.95);
    backdrop-filter: blur(10px);
}

.uif7-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.uif7-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.uif7-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--uif7-primary);
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.uif7-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.uif7-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--uif7-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uif7-btn-primary {
    background: var(--uif7-gradient-gold);
    color: var(--uif7-bg-dark);
}

.uif7-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.6);
}

.uif7-btn-outline {
    background: transparent;
    color: var(--uif7-primary);
    border: 2px solid var(--uif7-primary);
}

.uif7-btn-outline:hover {
    background: var(--uif7-primary);
    color: var(--uif7-bg-dark);
}

/* Menu Toggle */
.uif7-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--uif7-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.uif7-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--uif7-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    border-left: 2px solid var(--uif7-primary);
    overflow-y: auto;
}

.uif7-menu-active {
    right: 0;
}

.uif7-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: all 0.3s ease;
}

.uif7-overlay-active {
    opacity: 1;
    visibility: visible;
}

.uif7-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 170, 0, 0.3);
}

.uif7-menu-close {
    background: transparent;
    border: none;
    color: var(--uif7-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.uif7-menu-nav {
    list-style: none;
}

.uif7-menu-nav li {
    margin-bottom: 1rem;
}

.uif7-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--uif7-text-light);
    font-size: 1.4rem;
    border-radius: var(--uif7-radius);
    transition: all 0.3s ease;
}

.uif7-menu-nav a:hover {
    background: rgba(255, 170, 0, 0.2);
    color: var(--uif7-primary);
    padding-left: 1.5rem;
}

/* Main Content */
main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

/* Carousel */
.uif7-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--uif7-radius);
    margin-bottom: 2rem;
}

.uif7-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.uif7-slide-active {
    opacity: 1;
}

.uif7-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Titles */
.uif7-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--uif7-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

/* Game Grid */
.uif7-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.uif7-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.uif7-game-item:hover {
    transform: scale(1.05);
}

.uif7-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--uif7-radius);
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.uif7-game-item:hover img {
    border-color: var(--uif7-primary);
}

.uif7-game-name {
    font-size: 1rem;
    color: var(--uif7-text-light);
    margin-top: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Section */
.uif7-category-section {
    margin-bottom: 2.5rem;
}

.uif7-category-title {
    font-size: 1.6rem;
    color: var(--uif7-accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--uif7-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.uif7-category-title i {
    font-size: 1.8rem;
}

/* Content Cards */
.uif7-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--uif7-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 170, 0, 0.2);
}

.uif7-card-title {
    font-size: 1.6rem;
    color: var(--uif7-primary);
    margin-bottom: 1rem;
}

.uif7-card-content {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--uif7-text-light);
}

.uif7-card-content p {
    margin-bottom: 1rem;
}

/* Feature List */
.uif7-feature-list {
    list-style: none;
}

.uif7-feature-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(255, 170, 0, 0.1);
}

.uif7-feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--uif7-primary);
}

/* Footer */
.uif7-footer {
    background: var(--uif7-gradient-dark);
    padding: 2rem 1.5rem;
    padding-bottom: 8rem;
    border-top: 2px solid var(--uif7-primary);
}

.uif7-footer-section {
    margin-bottom: 2rem;
}

.uif7-footer-title {
    font-size: 1.4rem;
    color: var(--uif7-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.uif7-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.uif7-footer-links a {
    font-size: 1.2rem;
    color: var(--uif7-text-light);
    padding: 0.4rem 0.8rem;
    background: rgba(255, 170, 0, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.uif7-footer-links a:hover {
    background: var(--uif7-primary);
    color: var(--uif7-bg-dark);
}

.uif7-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.uif7-partners img {
    width: 50px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.uif7-partners img:hover {
    filter: grayscale(0);
    opacity: 1;
}

.uif7-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(233, 236, 239, 0.6);
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 170, 0, 0.2);
}

/* Bottom Navigation */
.uif7-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, #1B263B, #0d1421);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 2px solid var(--uif7-primary);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
}

.uif7-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--uif7-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.uif7-bottom-nav-item:hover,
.uif7-nav-active {
    color: var(--uif7-primary);
    transform: scale(1.1);
}

.uif7-bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.uif7-bottom-nav-item span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Promo Link Styles */
.uif7-promo-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--uif7-gradient-gold);
    color: var(--uif7-bg-dark);
    font-weight: 700;
    border-radius: var(--uif7-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    text-align: center;
}

.uif7-promo-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.5);
    color: var(--uif7-bg-dark);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .uif7-menu-toggle {
        display: block;
    }

    .uif7-header-actions .uif7-btn {
        display: none;
    }

    main {
        padding-bottom: 80px;
    }

    .uif7-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .uif7-container {
        max-width: 1200px;
    }

    .uif7-bottom-nav {
        display: none;
    }

    .uif7-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .uif7-carousel {
        height: 350px;
    }
}

/* Utility Classes */
.uif7-text-center {
    text-align: center;
}

.uif7-mb-1 {
    margin-bottom: 1rem;
}

.uif7-mb-2 {
    margin-bottom: 2rem;
}

.uif7-mt-2 {
    margin-top: 2rem;
}

.uif7-hidden {
    display: none;
}
