/* JILI PG - Main Stylesheet */
/* Mobile-first responsive design */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #0D1117;
    --secondary-color: #C9C9FF;
    --accent-color: #E8F5E8;
    --highlight-color: #48D1CC;
    --highlight-alt: #40E0D0;
    --text-color: #495057;
    --mobile-breakpoint: 768px;
    --max-width: 430px;
    --font-size-base: 62.5%;
    --line-height-base: 1.5rem;
    --transition-speed: 0.3s;
    --shadow-light: 0 2px 8px rgba(13, 17, 23, 0.1);
    --shadow-medium: 0 4px 16px rgba(13, 17, 23, 0.15);
    --shadow-heavy: 0 8px 32px rgba(13, 17, 23, 0.2);
}

/* Base reset and typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: var(--line-height-base);
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1f2e 100%);
    min-height: 100vh;
    padding-bottom: 6rem;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

/* Main container */
.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

/* Header Navigation */
.header-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(201, 201, 255, 0.1);
    box-shadow: var(--shadow-medium);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    height: 6rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-logo img {
    width: 2.8rem;
    height: 2.8rem;
}

.nav-auth {
    display: flex;
    gap: 0.8rem;
}

.auth-button {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 4.4rem;
    line-height: 1.2;
}

.auth-button.register {
    background: linear-gradient(135deg, var(--highlight-color), var(--highlight-alt));
    color: var(--primary-color);
}

.auth-button.login {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 2.4rem;
    height: 0.2rem;
    background: var(--secondary-color);
    margin: 0.3rem 0;
    transition: all var(--transition-speed);
}

.nav-toggle.nav-active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.nav-toggle.nav-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.nav-active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Mobile Navigation Menu */
.mobile-nav {
    position: fixed;
    top: 6rem;
    right: -100%;
    width: 80%;
    max-width: 30rem;
    height: calc(100vh - 6rem);
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    transition: right var(--transition-speed);
    overflow-y: auto;
    border-left: 1px solid rgba(201, 201, 255, 0.1);
}

.mobile-nav.nav-open {
    right: 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 2rem 0;
}

.mobile-nav-item {
    margin: 0;
}

.mobile-nav-link {
    display: block;
    padding: 1.5rem 2rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(201, 201, 255, 0.1);
    transition: all var(--transition-speed);
}

.mobile-nav-link:hover {
    background: rgba(201, 201, 255, 0.1);
    color: var(--highlight-color);
}

/* Main Content */
.main-content {
    margin-top: 6rem;
    padding: 2rem 0;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    margin: 2rem 0;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.carousel-container {
    position: relative;
    height: 20rem;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.carousel-indicator.active {
    background: var(--highlight-color);
    transform: scale(1.2);
}

/* Page Title */
.page-title {
    text-align: center;
    color: var(--secondary-color);
    font-size: 2.8rem;
    font-weight: 700;
    margin: 3rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Game Categories */
.game-category {
    margin: 4rem 0;
}

.category-title {
    color: var(--highlight-color);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 0.3rem;
    background: linear-gradient(90deg, var(--highlight-color), var(--highlight-alt));
    border-radius: 0.15rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.game-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.game-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--highlight-color);
    background: rgba(255, 255, 255, 0.15);
}

.game-item img {
    width: 100%;
    height: 6rem;
    object-fit: cover;
    border-radius: 0.8rem;
    margin-bottom: 0.8rem;
}

.game-item-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-color);
    line-height: 1.3;
}

/* Content Modules */
.content-module {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.2rem;
    padding: 2.5rem 2rem;
    margin: 3rem 0;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(201, 201, 255, 0.1);
}

.module-title {
    color: var(--highlight-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.module-content {
    color: var(--accent-color);
    font-size: 1.4rem;
    line-height: 1.6;
    text-align: justify;
}

/* Promotional Links */
.promo-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--highlight-color), var(--highlight-alt));
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
    margin: 0.5rem;
    text-align: center;
    min-height: 4.4rem;
    line-height: 1.2;
}

.promo-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--highlight-alt), var(--highlight-color));
}

/* Footer */
.site-footer {
    background: rgba(13, 17, 23, 0.95);
    border-top: 1px solid rgba(201, 201, 255, 0.1);
    padding: 3rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.footer-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color var(--transition-speed);
}

.footer-link:hover {
    color: var(--highlight-color);
}

.partners-section {
    margin: 3rem 0;
    text-align: center;
}

.partners-title {
    color: var(--highlight-color);
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.partner-logo {
    width: 100%;
    height: 4rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity var(--transition-speed);
}

.partner-logo:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(201, 201, 255, 0.1);
    z-index: 999;
    height: 6rem;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 1rem;
    transition: all var(--transition-speed);
    padding: 0.5rem;
    border-radius: 0.8rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    justify-content: center;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--highlight-color);
    background: rgba(72, 209, 204, 0.1);
}

.bottom-nav-item i {
    font-size: 2rem;
}

/* Responsive Design */
@media (min-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-auth {
        display: none;
    }
    
    .game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.d-none { display: none; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }

/* Loading Animation */
.loading-spinner {
    border: 0.3rem solid rgba(201, 201, 255, 0.3);
    border-radius: 50%;
    border-top: 0.3rem solid var(--highlight-color);
    width: 3rem;
    height: 3rem;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
} 