/**
 * JLBOSS Games - Main CSS Stylesheet
 * Mobile-first responsive design with casino theme
 */

/* Root Variables */
:root {
    --primary-bg: #2D2D2D;
    --secondary-bg: #696969;
    --text-light: #FAFAD2;
    --accent-gold: #FFD700;
    --accent-red: #FF4444;
    --accent-green: #00CC66;
    --gradient-primary: linear-gradient(135deg, #2D2D2D 0%, #696969 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --border-radius: 0.8rem;
    --box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* 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: var(--text-light);
    background: var(--primary-bg);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

/* Layout Components */
.container {
    max-width: 43rem;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 2rem 0;
}

.card {
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(250, 250, 210, 0.1);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-bg);
    border-bottom: 2px solid var(--accent-gold);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

.header.scrolled {
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.logo-img {
    width: 3.2rem;
    height: 3.2rem;
    margin-right: 0.8rem;
    border-radius: 50%;
}

.auth-buttons {
    display: flex;
    gap: 0.8rem;
}

.auth-btn {
    background: var(--gradient-gold);
    color: var(--primary-bg);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    min-width: 4.4rem;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.4rem 0.8rem rgba(255, 215, 0, 0.3);
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.4rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 7rem;
    right: -30rem;
    width: 28rem;
    height: calc(100vh - 7rem);
    background: var(--primary-bg);
    z-index: 1002;
    transition: var(--transition);
    border-left: 2px solid var(--accent-gold);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 2rem 0;
}

.mobile-menu li {
    margin: 0;
}

.mobile-menu a {
    display: block;
    padding: 1.2rem 2rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(250, 250, 210, 0.1);
    transition: var(--transition);
}

.mobile-menu a:hover {
    background: var(--secondary-bg);
    color: var(--accent-gold);
}

/* Main Content */
.main-content {
    margin-top: 7rem;
    min-height: calc(100vh - 7rem);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.carousel-slide {
    display: none;
    position: relative;
}

.carousel-slide:first-child {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    cursor: pointer;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.carousel-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(250, 250, 210, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--accent-gold);
}

/* Game Grid */
.games-section {
    margin: 2rem 0;
}

.games-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-item {
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(250, 250, 210, 0.1);
    min-height: 4.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.6rem 1.2rem rgba(255, 215, 0, 0.2);
    border-color: var(--accent-gold);
}

.game-icon {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.4rem;
    margin-bottom: 0.5rem;
}

.game-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-gold);
    color: var(--primary-bg);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-height: 4.4rem;
    line-height: 1.2;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.4rem 0.8rem rgba(255, 215, 0, 0.3);
    color: var(--primary-bg);
    text-decoration: none;
}

.btn-secondary {
    background: var(--gradient-primary);
    color: var(--text-light);
    border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--primary-bg);
}

.promo-link {
    color: var(--accent-gold);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: underline;
}

.promo-link:hover {
    color: var(--text-light);
    text-shadow: 0 0 0.5rem var(--accent-gold);
}

/* Content Modules */
.module {
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(250, 250, 210, 0.1);
}

.module-title {
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.module-content {
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-item {
    background: rgba(250, 250, 210, 0.1);
    padding: 1rem;
    border-radius: 0.4rem;
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: var(--primary-bg);
    border-top: 2px solid var(--accent-gold);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    justify-items: center;
}

.partner-logo {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
}

.copyright {
    font-size: 1.2rem;
    color: var(--secondary-bg);
    margin-top: 2rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-bg);
    border-top: 2px solid var(--accent-gold);
    z-index: 999;
    padding: 1rem 0;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
    padding: 0.5rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    justify-content: center;
}

.bottom-nav-item:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.bottom-nav-icon {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.bottom-nav-label {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (min-width: 48rem) {
    .container {
        max-width: 48rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .carousel-slide img {
        height: 25rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (min-width: 64rem) {
    .container {
        max-width: 64rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .carousel-slide img {
        height: 30rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* 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; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }
.visible { display: block; }

/* Tooltip */
.tooltip {
    position: absolute;
    background: var(--primary-bg);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    font-size: 1.2rem;
    white-space: nowrap;
    z-index: 1000;
    border: 1px solid var(--accent-gold);
}

/* Loading Spinner */
.spinner {
    width: 4rem;
    height: 4rem;
    border: 0.4rem solid rgba(250, 250, 210, 0.3);
    border-top: 0.4rem solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 