/* JLJL Boss Gaming Platform - Universal Styles */
/* Mobile-first responsive design with casino theme */

/* Root font size and CSS variables */
html {
    font-size: 62.5%; /* 10px base for rem calculations */
    scroll-behavior: smooth;
}

:root {
    /* Color palette - Casino theme */
    --primary-light: #FFB3BA;
    --secondary-light: #FFE4B5;
    --tertiary-light: #FAF0E6;
    --accent-brown: #BC8F8F;
    --primary-dark: #0D1117;
    
    /* Semantic colors */
    --bg-primary: var(--primary-dark);
    --bg-secondary: var(--accent-brown);
    --text-primary: var(--tertiary-light);
    --text-secondary: var(--secondary-light);
    --accent-primary: var(--primary-light);
    --accent-secondary: var(--secondary-light);
    
    /* Layout */
    --max-width: 43rem;
    --header-height: 6rem;
    --footer-nav-height: 6rem;
    --border-radius: 0.8rem;
    --shadow-soft: 0 0.4rem 1.2rem rgba(13, 17, 23, 0.3);
    --shadow-strong: 0 0.8rem 2.4rem rgba(13, 17, 23, 0.5);
}

/* 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(--text-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-bottom: var(--footer-nav-height);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1.6rem;
    line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.6rem; }
h6 { font-size: 1.4rem; }

p {
    margin-bottom: 1.6rem;
    color: var(--text-secondary);
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    height: var(--header-height);
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(1rem);
    border-bottom: 0.2rem solid var(--accent-brown);
    z-index: 1000;
    padding: 0 1.6rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.4rem;
}

.site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.promo-link, .game-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.4rem;
    padding: 1rem 1.6rem;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-soft);
}

.promo-link:hover, .game-item:hover {
    transform: translateY(-0.2rem);
    box-shadow: var(--shadow-strong);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.hamburger-line {
    width: 100%;
    height: 0.3rem;
    background: var(--accent-primary);
    margin: 0.2rem 0;
    transition: all 0.3s ease;
    border-radius: 0.2rem;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(1rem);
    border-top: 0.1rem solid var(--accent-brown);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem 1.6rem;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-item {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1.2rem 0;
    border-bottom: 0.1rem solid rgba(188, 143, 143, 0.2);
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.mobile-menu-item:hover {
    color: var(--accent-primary);
}

/* Main Content */
.main-content {
    margin-top: var(--header-height);
    padding: 2rem 1.6rem;
}

/* Carousel */
.carousel-container {
    position: relative;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.carousel {
    position: relative;
    height: 20rem;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.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: background 0.3s ease;
}

.carousel-indicator.active {
    background: var(--accent-primary);
}

/* Game Grid */
.game-section {
    margin: 3rem 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--accent-primary);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(188, 143, 143, 0.1);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 10rem;
}

.game-item:hover {
    background: rgba(188, 143, 143, 0.2);
    transform: translateY(-0.4rem);
}

.game-icon {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 0.6rem;
    margin-bottom: 0.8rem;
    object-fit: cover;
}

.game-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
}

/* Content Modules */
.content-module {
    background: rgba(188, 143, 143, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    border: 0.1rem solid rgba(188, 143, 143, 0.2);
}

.module-title {
    color: var(--accent-primary);
    margin-bottom: 1.6rem;
    font-size: 2rem;
}

.module-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.module-content ul {
    padding-left: 2rem;
    margin: 1rem 0;
}

.module-content li {
    margin-bottom: 0.8rem;
}

/* FAQ Styles */
.faq-item {
    background: rgba(188, 143, 143, 0.05);
    border-radius: var(--border-radius);
    margin-bottom: 1.6rem;
    border: 0.1rem solid rgba(188, 143, 143, 0.2);
}

.faq-question {
    font-weight: 600;
    color: var(--accent-primary);
    padding: 1.6rem;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.faq-answer {
    padding: 0 1.6rem 1.6rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
    margin: 2rem 0;
}

.feature-card {
    background: rgba(188, 143, 143, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 0.1rem solid rgba(188, 143, 143, 0.2);
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    padding: 3rem 1.6rem 2rem;
    margin-top: 4rem;
    border-top: 0.2rem solid var(--accent-brown);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 0.4rem;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.footer-link:hover {
    color: var(--accent-primary);
    background: rgba(188, 143, 143, 0.1);
}

.partners-section {
    margin: 2rem 0;
    text-align: center;
}

.partners-title {
    font-size: 1.4rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.partner-logo {
    width: 100%;
    height: 3rem;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
    border-radius: 0.4rem;
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding-top: 2rem;
    border-top: 0.1rem solid rgba(188, 143, 143, 0.2);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    height: var(--footer-nav-height);
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(1rem);
    border-top: 0.2rem solid var(--accent-brown);
    z-index: 1000;
}

.bottom-nav-content {
    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;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.8rem;
    border-radius: 0.6rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
}

.bottom-nav-item:hover {
    color: var(--accent-primary);
    background: rgba(188, 143, 143, 0.1);
}

.bottom-nav-icon {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.bottom-nav-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (min-width: 375px) {
    .game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .game-icon {
        width: 5.2rem;
        height: 5.2rem;
    }
}

@media (min-width: 430px) {
    body {
        max-width: var(--max-width);
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Utility classes */
.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; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.hidden { display: none; }
.visible { display: block; } 