/**
 * JL Boss App - Main CSS Stylesheet
 * Mobile-first responsive design with optimized color scheme
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #AFEEEE;
    background-color: #3A3A3A;
    overflow-x: hidden;
}

/* Prevent scrolling when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Container */
.container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #AFEEEE;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.4rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.8rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    color: #BBBBBB;
}

a {
    color: #48D1CC;
    text-decoration: none;
}

a:hover {
    color: #AFEEEE;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #3A3A3A;
    border-bottom: 1px solid #00695C;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    width: 2.4rem;
    height: 2.4rem;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 600;
    color: #AFEEEE;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.menu-toggle {
    background: none;
    border: none;
    color: #AFEEEE;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    color: #48D1CC;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.auth-btn {
    background: linear-gradient(135deg, #48D1CC, #00695C);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 4.4rem;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #00695C, #48D1CC);
    transform: translateY(-1px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 28rem;
    height: 100vh;
    background-color: #3A3A3A;
    z-index: 1100;
    transition: left 0.3s ease;
    overflow-y: auto;
    border-right: 1px solid #00695C;
}

.mobile-menu.active {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #00695C;
}

.menu-nav {
    padding: 1rem 0;
}

.menu-nav ul {
    list-style: none;
}

.menu-nav li {
    margin-bottom: 0.5rem;
}

.menu-nav a {
    display: block;
    padding: 1.2rem 1.5rem;
    color: #BBBBBB;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
}

.menu-nav a:hover {
    background-color: #00695C;
    color: #AFEEEE;
}

/* Main Content */
.main-content {
    margin-top: 7rem;
    padding-bottom: 8rem;
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    height: 20rem;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.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.5rem;
}

.carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: #48D1CC;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #48D1CC, #00695C);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-height: 4.4rem;
    text-decoration: none;
}

.btn:hover {
    background: linear-gradient(135deg, #00695C, #48D1CC);
    transform: translateY(-1px);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #BBBBBB, #3A3A3A);
    color: #AFEEEE;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #3A3A3A, #BBBBBB);
    color: #AFEEEE;
}

/* Promo Links */
.promo-link {
    color: #48D1CC;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.promo-link:hover {
    color: #AFEEEE;
}

/* Section Styles */
.section {
    margin-bottom: 3rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #AFEEEE;
}

.section-content {
    text-align: center;
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-category {
    margin-bottom: 3rem;
}

.game-category-title {
    font-size: 1.8rem;
    color: #AFEEEE;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.game-item {
    background: linear-gradient(135deg, #00695C, #3A3A3A);
    border-radius: 0.8rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #00695C;
}

.game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 209, 204, 0.3);
    border-color: #48D1CC;
}

.game-image {
    width: 100%;
    height: 6rem;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.8rem;
}

.game-name {
    font-size: 1.2rem;
    color: #AFEEEE;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Modules */
.content-module {
    background: linear-gradient(135deg, #00695C, #3A3A3A);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #00695C;
}

.content-module h3 {
    color: #AFEEEE;
    margin-bottom: 1.5rem;
}

.content-module p {
    color: #BBBBBB;
    margin-bottom: 1rem;
}

.content-module .promo-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #48D1CC, #00695C);
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
}

/* FAQ Section */
.faq-item {
    background: linear-gradient(135deg, #00695C, #3A3A3A);
    margin-bottom: 1rem;
    border-radius: 0.8rem;
    border: 1px solid #00695C;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    color: #AFEEEE;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #BBBBBB;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Footer */
.footer {
    background-color: #3A3A3A;
    border-top: 1px solid #00695C;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.footer-links a {
    color: #48D1CC;
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(72, 209, 204, 0.1), rgba(0, 105, 92, 0.1));
}

.footer-links a:hover {
    background: linear-gradient(135deg, #48D1CC, #00695C);
    color: white;
}

.partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.partners img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partners img:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    color: #BBBBBB;
    font-size: 1.2rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #3A3A3A;
    border-top: 1px solid #00695C;
    z-index: 1000;
    padding: 0.5rem 0;
}

.bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: #BBBBBB;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    min-width: 4.4rem;
    min-height: 4.4rem;
    justify-content: center;
}

.bottom-nav-item:hover {
    color: #48D1CC;
}

.bottom-nav-item i {
    font-size: 2rem;
}

/* 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; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Tooltip */
.tooltip {
    position: absolute;
    background-color: #3A3A3A;
    color: #AFEEEE;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    z-index: 1200;
    border: 1px solid #00695C;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .game-item {
        padding: 0.8rem;
    }
    
    .game-image {
        height: 5rem;
    }
    
    .game-name {
        font-size: 1.1rem;
    }
    
    .content-module {
        padding: 1.5rem;
    }
}

@media (max-width: 360px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .auth-btn {
        padding: 0.6rem 1rem;
        font-size: 1.1rem;
    }
}

/* Loading States */
.loading {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.3rem solid #BBBBBB;
    border-radius: 50%;
    border-top-color: #48D1CC;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error States */
.error {
    background-color: #ff4444;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.success {
    background-color: #00695C;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Focus States for Accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #48D1CC;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    body {
        background-color: #000;
        color: #fff;
    }
    
    .header {
        background-color: #000;
        border-bottom-color: #fff;
    }
    
    .mobile-menu {
        background-color: #000;
        border-right-color: #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .carousel-slide {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .bottom-nav,
    .mobile-menu,
    .menu-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding-bottom: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}