/* jl boss - Mobile-First CSS Styles */
/* Color Palette: #4A4A4A | #DEE2E6 | #95A5A6 | #1B263B */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px base for rem units */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1B263B;
    color: #DEE2E6;
    line-height: 1.5;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 8rem; /* Space for bottom nav */
}

/* Typography */
h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 1.6rem; color: #DEE2E6; }
h2 { font-size: 2.0rem; font-weight: 600; margin-bottom: 1.4rem; color: #DEE2E6; }
h3 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1.2rem; color: #DEE2E6; }
p { margin-bottom: 1.2rem; color: #95A5A6; }

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(26, 38, 59, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #4A4A4A;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-section img {
    width: 3.2rem;
    height: 3.2rem;
}

.logo-section a {
    color: #DEE2E6;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.6rem;
}

.auth-buttons {
    display: flex;
    gap: 0.8rem;
}

.btn-register, .btn-login {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 0.4rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-register {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
}

.btn-login {
    background: transparent;
    color: #DEE2E6;
    border: 1px solid #4A4A4A;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: #DEE2E6;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.4rem;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 38, 59, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid #4A4A4A;
    padding: 1rem;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu a {
    display: block;
    color: #DEE2E6;
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(74, 74, 74, 0.3);
    font-size: 1.4rem;
}

.mobile-menu a:hover {
    color: #FF6B6B;
}

/* Main Content */
.main-content {
    margin-top: 7rem;
    padding: 0 1.6rem;
}

/* Carousel */
.carousel-container {
    position: relative;
    margin-bottom: 2.4rem;
    border-radius: 0.8rem;
    overflow: hidden;
    background: #4A4A4A;
}

.carousel-slide {
    width: 100%;
    height: 20rem;
    position: relative;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 38, 59, 0.8));
    padding: 2rem 1.6rem 1.6rem;
    color: #DEE2E6;
}

/* Game Sections */
.game-section {
    margin-bottom: 3.2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.6rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #4A4A4A;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #DEE2E6;
    text-transform: capitalize;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.game-item {
    background: #4A4A4A;
    border-radius: 0.8rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 4.4rem;
}

.game-item:hover {
    background: #5A5A5A;
    transform: translateY(-2px);
}

.game-item img {
    width: 100%;
    height: 6rem;
    object-fit: cover;
    border-radius: 0.4rem;
    margin-bottom: 0.8rem;
}

.game-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #DEE2E6;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Content Modules */
.content-module {
    background: rgba(74, 74, 74, 0.3);
    border-radius: 0.8rem;
    padding: 2rem 1.6rem;
    margin-bottom: 2.4rem;
    border: 1px solid rgba(74, 74, 74, 0.5);
}

.module-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #DEE2E6;
    margin-bottom: 1.2rem;
}

.module-content {
    color: #95A5A6;
    line-height: 1.6;
}

/* Promotional Links */
.promo-link {
    color: #FF6B6B !important;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.promo-link:hover {
    color: #FF8E53 !important;
    text-decoration: underline;
}

.promo-button {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white !important;
    padding: 1.2rem 2.4rem;
    border-radius: 0.6rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-height: 4.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.promo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* RTP Analysis */
.rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-top: 1.6rem;
}

.rtp-item {
    background: rgba(149, 165, 166, 0.1);
    padding: 1.2rem;
    border-radius: 0.6rem;
    text-align: center;
}

.rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: #FF6B6B;
    display: block;
}

.rtp-label {
    font-size: 1.2rem;
    color: #95A5A6;
    margin-top: 0.4rem;
}

/* FAQ Styles */
.faq-item {
    background: rgba(74, 74, 74, 0.2);
    border-radius: 0.6rem;
    margin-bottom: 1.2rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.6rem;
    background: rgba(74, 74, 74, 0.3);
    color: #DEE2E6;
    font-weight: 600;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.4rem;
}

.faq-answer {
    padding: 1.6rem;
    color: #95A5A6;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #4A4A4A;
    padding: 2.4rem 1.6rem;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #95A5A6;
    text-decoration: none;
    font-size: 1.3rem;
}

.footer-links a:hover {
    color: #DEE2E6;
}

.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%) opacity(0.6);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: none;
}

.copyright {
    text-align: center;
    color: #95A5A6;
    font-size: 1.2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(149, 165, 166, 0.2);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(26, 38, 59, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
    border-top: 1px solid #4A4A4A;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #95A5A6;
    font-size: 1rem;
    padding: 0.4rem;
    border-radius: 0.4rem;
    min-height: 4.4rem;
    min-width: 4.4rem;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
}

.nav-item i {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Utility Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }

/* Error States */
.error {
    border-color: #FF6B6B !important;
    background-color: rgba(255, 107, 107, 0.1) !important;
}

/* Loading States */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 375px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .rtp-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-buttons {
        gap: 0.4rem;
    }
    
    .btn-register, .btn-login {
        padding: 0.4rem 0.8rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 431px) {
    body {
        max-width: 430px;
        border-left: 1px solid #4A4A4A;
        border-right: 1px solid #4A4A4A;
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Lazy Loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
} 