/**
 * JL Boss Games - Main Stylesheet
 * Mobile-first responsive design for casino gaming website
 */

/* 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: #98FB98;
    background: linear-gradient(135deg, #2E4057 0%, #1a2533 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --primary-dark: #2E4057;
    --primary-light: #98FB98;
    --accent-green: #00FF7F;
    --accent-cyan: #00E5FF;
    --accent-blue: #00B8D4;
    --white: #ffffff;
    --text-light: #f0f0f0;
    --border-color: rgba(152, 251, 152, 0.2);
    --shadow: rgba(0, 0, 0, 0.3);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.4rem;
    color: var(--accent-green);
    text-shadow: 0 2px 4px var(--shadow);
}

h2 {
    font-size: 2rem;
    color: var(--accent-cyan);
}

h3 {
    font-size: 1.8rem;
    color: var(--primary-light);
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

a {
    color: var(--accent-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-cyan);
}

/* Layout Containers */
.container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3rem 0;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(46, 64, 87, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(46, 64, 87, 0.98);
    box-shadow: 0 2px 20px var(--shadow);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    width: 24px;
    height: 24px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle {
    background: none;
    border: none;
    color: var(--primary-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.nav-toggle:hover {
    color: var(--accent-green);
}

.nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(46, 64, 87, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-menu a {
    display: block;
    padding: 1rem;
    color: var(--primary-light);
    font-size: 1.6rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(152, 251, 152, 0.1);
    color: var(--accent-green);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.4rem;
    text-align: center;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 127, 0.3);
    min-height: 44px;
    min-width: 44px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 127, 0.4);
    color: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--accent-green);
    color: var(--primary-dark);
}

.btn-small {
    padding: 0.8rem 1.6rem;
    font-size: 1.2rem;
}

/* Promotional Links */
.promo-link {
    color: var(--accent-green);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-link:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}

/* Main Content */
.main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Carousel Styles */
.carousel {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px var(--shadow);
}

.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-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-green);
    transform: scale(1.2);
}

/* Game Grid */
.game-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: capitalize;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(152, 251, 152, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.game-item:hover {
    transform: translateY(-5px);
    background: rgba(152, 251, 152, 0.2);
    box-shadow: 0 8px 25px var(--shadow);
}

.game-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.game-name {
    font-size: 1rem;
    color: var(--primary-light);
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
}

/* Content Modules */
.content-module {
    background: rgba(152, 251, 152, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(5px);
}

.module-title {
    font-size: 1.8rem;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
    text-align: center;
}

.module-content {
    line-height: 1.6;
    color: var(--text-light);
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    color: var(--accent-green);
    font-size: 1.6rem;
}

/* Footer Styles */
.footer {
    background: rgba(46, 64, 87, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 8rem;
    margin-top: 5rem;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--primary-light);
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: rgba(152, 251, 152, 0.1);
    color: var(--accent-green);
}

.partners {
    margin: 3rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.partner-logo {
    width: 100%;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.copyright {
    color: var(--primary-light);
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(46, 64, 87, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 1000;
}

.bottom-nav-container {
    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;
    padding: 0.5rem;
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    font-size: 1rem;
}

.bottom-nav-item:hover {
    color: var(--accent-green);
    transform: translateY(-2px);
}

.bottom-nav-icon {
    font-size: 2rem;
}

.bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (min-width: 480px) {
    .container {
        max-width: 480px;
    }
    
    .game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .carousel {
        height: 250px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 430px; /* Keep mobile-first approach */
    }
    
    .nav {
        padding: 1.5rem;
    }
    
    .main {
        margin-top: 80px;
    }
    
    .footer {
        padding-bottom: 3rem;
    }
    
    .bottom-nav {
        display: none; /* Hide on larger screens */
    }
}

/* 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; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-light: #ffffff;
        --accent-green: #00ff00;
        --accent-cyan: #00ffff;
    }
} 