/* JiliBoss Universal CSS - Mobile-First Design */
/* Root font size: 62.5% for easy rem calculations */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

/* CSS Custom Properties - Color Palette */
:root {
    --primary-dark: #2D2D2D;
    --secondary-light: #C0C0C0;
    --accent-green: #006400;
    --accent-medium: #2E8B57;
    --accent-bright: #228B22;
    --white: #FFFFFF;
    --black: #000000;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, var(--accent-green), var(--accent-bright));
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--secondary-light);
    background-color: var(--primary-dark);
    max-width: 43rem;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }

p {
    margin-bottom: 1rem;
    color: var(--secondary-light);
}

/* Links */
a {
    color: var(--accent-bright);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-medium);
}

/* Header - Fixed Navigation */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 43rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(45, 45, 45, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--accent-green);
    z-index: 1000;
    padding: 1rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.4rem;
}

.site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-bright);
    text-transform: uppercase;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-register, .btn-login {
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 4.4rem;
}

.btn-register {
    background: var(--gradient);
    color: var(--white);
}

.btn-login {
    background: transparent;
    color: var(--accent-bright);
    border: 1px solid var(--accent-bright);
}

.btn-register:hover, .btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    width: 2.4rem;
    height: 2.4rem;
    cursor: pointer;
    justify-content: space-around;
}

.nav-toggle span {
    display: block;
    height: 0.2rem;
    background: var(--accent-bright);
    border-radius: 0.1rem;
    transition: 0.3s;
}

/* Mobile Navigation Menu */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu {
    position: fixed;
    top: 7rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 38rem;
    background: var(--primary-dark);
    border: 1px solid var(--accent-green);
    border-radius: 0.8rem;
    padding: 2rem;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-2rem);
    transition: all 0.3s ease;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 1.5rem;
}

.nav-menu a {
    display: block;
    padding: 1rem;
    color: var(--secondary-light);
    font-size: 1.6rem;
    border-radius: 0.4rem;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: var(--accent-green);
    color: var(--white);
}

/* Main Content */
.main-content {
    margin-top: 8rem;
    padding: 0 1.5rem;
}

/* Carousel */
.carousel-container {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
}

.carousel {
    position: relative;
    height: 20rem;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    cursor: pointer;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Styling */
.section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(45, 45, 45, 0.8);
    border-radius: 0.8rem;
    border: 1px solid var(--accent-green);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--accent-bright);
    font-size: 2rem;
}

.section-title i {
    font-size: 2.4rem;
    color: var(--accent-medium);
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    background: rgba(0, 100, 0, 0.1);
    border-radius: 0.6rem;
    border: 1px solid var(--accent-green);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 8rem;
}

.game-item:hover {
    transform: translateY(-2px);
    background: rgba(0, 100, 0, 0.2);
    box-shadow: 0 4px 8px var(--shadow);
}

.game-item img {
    width: 4rem;
    height: 4rem;
    border-radius: 0.4rem;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.game-item span {
    font-size: 1rem;
    text-align: center;
    color: var(--secondary-light);
    font-weight: 500;
    line-height: 1.2;
}

/* Promotional Links */
.promo-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.4rem;
    text-align: center;
    min-height: 4.4rem;
    min-width: 4.4rem;
}

.promo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 100, 0, 0.4);
}

.promo-text {
    color: var(--accent-bright);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-text:hover {
    color: var(--accent-medium);
    text-decoration: underline;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 100, 0, 0.1);
    border-radius: 0.6rem;
    border: 1px solid var(--accent-green);
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent-bright);
    display: block;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--secondary-light);
    margin-top: 0.5rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 100, 0, 0.05);
    border-radius: 0.6rem;
    border-left: 3px solid var(--accent-bright);
}

.feature-list i {
    color: var(--accent-medium);
    font-size: 1.8rem;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    padding: 3rem 1.5rem 12rem;
    border-top: 2px solid var(--accent-green);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-section h3 {
    color: var(--accent-bright);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.footer-links a {
    display: block;
    padding: 0.8rem;
    color: var(--secondary-light);
    border-radius: 0.4rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: var(--accent-green);
    color: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.partner-logo {
    width: 100%;
    height: 4rem;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--accent-green);
    color: var(--secondary-light);
    font-size: 1.2rem;
}

/* Bottom Navigation - Fixed */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 43rem;
    background: var(--primary-dark);
    border-top: 2px solid var(--accent-green);
    padding: 1rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 4.4rem;
    min-height: 4.4rem;
}

.bottom-nav-item:hover {
    background: rgba(0, 100, 0, 0.2);
}

.bottom-nav-item i {
    font-size: 2.4rem;
    color: var(--accent-medium);
}

.bottom-nav-item span {
    font-size: 1rem;
    color: var(--secondary-light);
    font-weight: 500;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 10rem;
    right: 2rem;
    width: 5rem;
    height: 5rem;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 2rem;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 100, 0, 0.4);
}

/* Responsive Design */
@media (min-width: 380px) {
    .game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--secondary-light);
    border-radius: 50%;
    border-top-color: var(--accent-bright);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-bold { font-weight: 700; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }
.visible { display: block; }

/* Accessibility */
.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;
}

/* Focus states for accessibility */
.promo-link:focus,
.game-item:focus,
.bottom-nav-item:focus {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
} 