/* 365 jili Website CSS Design */
/* All classes use g058- prefix to avoid conflicts */

/* CSS Variables for consistent theming */
:root {
    --g058-primary: #000080;
    --g058-secondary: #DEB887;
    --g058-dark: #3A3A3A;
    --g058-light: #D3D3D3;
    --g058-accent: #95A5A6;
    --g058-silver: #C0C0C0;
    --g058-white: #ffffff;
    --g058-black: #000000;
    
    /* Typography */
    --g058-font-base: 62.5%;
    --g058-line-height: 1.5rem;
    --g058-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --g058-space-xs: 0.5rem;
    --g058-space-sm: 1rem;
    --g058-space-md: 1.5rem;
    --g058-space-lg: 2rem;
    --g058-space-xl: 3rem;
    
    /* Breakpoints */
    --g058-bp-mobile: 430px;
    --g058-bp-tablet: 768px;
    --g058-bp-desktop: 1024px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--g058-font-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--g058-font-family);
    line-height: var(--g058-line-height);
    color: var(--g058-light);
    background-color: var(--g058-dark);
    font-size: 1.6rem;
    overflow-x: hidden;
}

/* Layout Components */
.g058-container {
    max-width: var(--g058-bp-mobile);
    margin: 0 auto;
    padding: 0 var(--g058-space-sm);
}

.g058-wrapper {
    position: relative;
    min-height: 100vh;
    padding-bottom: 64px; /* Space for bottom nav */
}

.g058-grid {
    display: grid;
    gap: var(--g058-space-sm);
}

.g058-flex {
    display: flex;
}

.g058-flex-col {
    flex-direction: column;
}

.g058-items-center {
    align-items: center;
}

.g058-justify-center {
    justify-content: center;
}

.g058-justify-between {
    justify-content: space-between;
}

.g058-text-center {
    text-align: center;
}

.g058-hidden {
    display: none;
}

.g058-show {
    display: block;
}

.g058-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header Styles */
.g058-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--g058-primary), var(--g058-dark));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.g058-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--g058-space-sm);
    min-height: 60px;
}

.g058-logo {
    display: flex;
    align-items: center;
    gap: var(--g058-space-xs);
    color: var(--g058-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.8rem;
}

.g058-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.g058-nav-buttons {
    display: flex;
    gap: var(--g058-space-xs);
}

.g058-menu-button {
    background: none;
    border: none;
    color: var(--g058-white);
    font-size: 2rem;
    cursor: pointer;
    padding: var(--g058-space-xs);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.g058-menu-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.g058-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--g058-primary), var(--g058-dark));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.g058-mobile-menu.g058-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.g058-mobile-menu.g058-show {
    transform: translateY(0);
    opacity: 1;
}

.g058-mobile-menu-list {
    list-style: none;
    padding: var(--g058-space-sm);
}

.g058-mobile-menu-item {
    margin-bottom: var(--g058-space-xs);
}

.g058-mobile-menu-link {
    display: block;
    color: var(--g058-white);
    text-decoration: none;
    padding: var(--g058-space-sm);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.g058-mobile-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Button Styles */
.g058-btn {
    display: inline-block;
    padding: var(--g058-space-xs) var(--g058-space-sm);
    border: none;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.g058-btn-primary {
    background: linear-gradient(135deg, var(--g058-primary), var(--g058-secondary));
    color: var(--g058-white);
}

.g058-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 128, 0.3);
}

.g058-btn-secondary {
    background: linear-gradient(135deg, var(--g058-secondary), var(--g058-accent));
    color: var(--g058-dark);
}

.g058-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(222, 184, 135, 0.3);
}

.g058-btn-outline {
    background: transparent;
    border: 2px solid var(--g058-primary);
    color: var(--g058-primary);
}

.g058-btn-outline:hover {
    background-color: var(--g058-primary);
    color: var(--g058-white);
}

/* Main Content */
.g058-main {
    margin-top: 60px;
    padding: var(--g058-space-sm);
}

.g058-section {
    margin-bottom: var(--g058-space-xl);
}

.g058-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--g058-secondary);
    margin-bottom: var(--g058-space-md);
    text-align: center;
}

.g058-section-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--g058-light);
    margin-bottom: var(--g058-space-sm);
}

/* Carousel Styles */
.g058-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: var(--g058-space-lg);
}

.g058-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.g058-carousel-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.g058-carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.g058-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: var(--g058-space-md);
    color: var(--g058-white);
}

.g058-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--g058-space-xs);
    margin-top: var(--g058-space-sm);
}

.g058-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--g058-accent);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.g058-carousel-indicator.g058-active {
    background-color: var(--g058-secondary);
}

/* Game Grid Styles */
.g058-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--g058-space-sm);
    margin-bottom: var(--g058-space-lg);
}

.g058-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--g058-space-xs);
    background: linear-gradient(135deg, var(--g058-primary), var(--g058-dark));
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 80px;
}

.g058-game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 128, 0.3);
}

.g058-game-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin-bottom: var(--g058-space-xs);
}

.g058-game-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--g058-white);
    line-height: 1.2;
}

/* Content Modules */
.g058-module {
    background: linear-gradient(135deg, var(--g058-primary), var(--g058-dark));
    border-radius: 12px;
    padding: var(--g058-space-md);
    margin-bottom: var(--g058-space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.g058-module-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g058-secondary);
    margin-bottom: var(--g058-space-sm);
}

.g058-module-content {
    color: var(--g058-light);
    line-height: 1.6;
}

.g058-module-content p {
    margin-bottom: var(--g058-space-sm);
}

.g058-module-content ul {
    padding-left: var(--g058-space-md);
    margin-bottom: var(--g058-space-sm);
}

.g058-module-content li {
    margin-bottom: var(--g058-space-xs);
}

/* Link Styles */
.g058-link {
    color: var(--g058-secondary);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.g058-link:hover {
    color: var(--g058-white);
}

.web205-promo-link {
    color: var(--g058-secondary);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.web205-promo-link:hover {
    color: var(--g058-white);
    text-shadow: 0 0 10px var(--g058-secondary);
}

/* Footer Styles */
.g058-footer {
    background: linear-gradient(135deg, var(--g058-dark), var(--g058-black));
    padding: var(--g058-space-lg) var(--g058-space-sm);
    margin-top: auto;
}

.g058-footer-content {
    text-align: center;
}

.g058-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--g058-space-sm);
    margin-bottom: var(--g058-space-lg);
}

.g058-footer-link {
    color: var(--g058-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.g058-footer-link:hover {
    color: var(--g058-secondary);
}

.g058-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--g058-space-sm);
    margin-bottom: var(--g058-space-lg);
}

.g058-partner-logo {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.g058-partner-logo:hover {
    opacity: 1;
}

.g058-copyright {
    color: var(--g058-accent);
    font-size: 1.2rem;
    margin-top: var(--g058-space-sm);
}

/* Bottom Navigation */
.g058-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--g058-primary), var(--g058-dark));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    height: 64px;
}

.g058-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    max-width: var(--g058-bp-mobile);
    margin: 0 auto;
}

.web205-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--g058-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: var(--g058-space-xs);
    border-radius: 4px;
    min-width: 44px;
    min-height: 44px;
}

.web205-bottom-nav-item:hover,
.web205-bottom-nav-item.g058-active {
    color: var(--g058-secondary);
    background-color: rgba(255, 255, 255, 0.1);
}

.g058-bottom-nav-icon {
    font-size: 2rem;
    margin-bottom: 2px;
}

.g058-bottom-nav-text {
    font-size: 1rem;
    line-height: 1;
}

/* Responsive Design */
@media (min-width: 768px) {
    .g058-container {
        max-width: 768px;
    }
    
    .g058-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .g058-carousel-slide img {
        height: 300px;
    }
    
    .g058-bottom-nav {
        display: none;
    }
    
    .g058-wrapper {
        padding-bottom: 0;
    }
}

@media (min-width: 1024px) {
    .g058-container {
        max-width: 1024px;
    }
    
    .g058-game-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* Animation Classes */
.g058-fade-in {
    animation: g058fadeIn 0.5s ease-in-out;
}

.g058-slide-up {
    animation: g058slideUp 0.5s ease-in-out;
}

@keyframes g058fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes g058slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading States */
.web205-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.web205-loading {
    opacity: 0.7;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
.g058-btn:focus,
.g058-link:focus,
.web205-promo-link:focus {
    outline: 2px solid var(--g058-secondary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .g058-header,
    .g058-bottom-nav,
    .g058-carousel {
        display: none;
    }
    
    .g058-main {
        margin-top: 0;
    }
    
    body {
        background: white;
        color: black;
    }
} 