/**
 * 2jl Casino Website Styles
 * Mobile-first responsive design with v49b- prefix
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* Base font size for rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.5;
    color: #ffffff;
    background-color: #0A0A0A;
    overflow-x: hidden;
}

/* CSS Variables */
:root {
    --v49b-primary: #B22222;
    --v49b-secondary: #FF69B4;
    --v49b-bg: #0A0A0A;
    --v49b-text: #ffffff;
    --v49b-text-light: #cccccc;
    --v49b-accent: #FFD700;
    --v49b-border: #333333;
    --v49b-shadow: rgba(178, 34, 34, 0.3);
    --v49b-gradient: linear-gradient(135deg, #B22222, #FF69B4);
    --v49b-transition: all 0.3s ease;
}

/* Container and Layout */
.v49b-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.v49b-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 6rem; /* Space for bottom nav */
}

.v49b-grid {
    display: grid;
    gap: 1rem;
}

/* Header Styles */
.v49b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--v49b-bg);
    border-bottom: 1px solid var(--v49b-border);
    z-index: 1000;
    transition: var(--v49b-transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.v49b-header-hidden {
    transform: translateY(-100%);
}

.v49b-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.v49b-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--v49b-text);
}

.v49b-logo img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.4rem;
}

.v49b-logo-text {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--v49b-primary);
}

.v49b-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v49b-header-btn {
    padding: 0.8rem 1.6rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: var(--v49b-transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.v49b-btn-primary {
    background: var(--v49b-gradient);
    color: var(--v49b-text);
}

.v49b-btn-secondary {
    background: transparent;
    color: var(--v49b-secondary);
    border: 1px solid var(--v49b-secondary);
}

.v49b-btn-primary:hover,
.v49b-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--v49b-shadow);
}

/* Menu Button */
.xe324-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.xe324-menu-button span {
    width: 100%;
    height: 2px;
    background: var(--v49b-text);
    margin: 2px 0;
    transition: var(--v49b-transition);
}

.v49b-menu-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.v49b-menu-active span:nth-child(2) {
    opacity: 0;
}

.v49b-menu-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.v49b-mobile-menu {
    position: fixed;
    top: 7rem;
    left: 0;
    right: 0;
    background: var(--v49b-bg);
    border-bottom: 1px solid var(--v49b-border);
    max-height: 0;
    overflow: hidden;
    transition: var(--v49b-transition);
    z-index: 999;
}

.v49b-menu-open {
    max-height: 50rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.v49b-menu-list {
    padding: 2rem 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.v49b-menu-item {
    margin-bottom: 1.5rem;
}

.v49b-menu-link {
    color: var(--v49b-text);
    text-decoration: none;
    font-size: 1.6rem;
    padding: 1rem 0;
    display: block;
    border-bottom: 1px solid var(--v49b-border);
    transition: var(--v49b-transition);
}

.v49b-menu-link:hover {
    color: var(--v49b-primary);
    padding-left: 1rem;
}

/* Main Content */
.v49b-main {
    flex: 1;
    padding-top: 8rem;
}

.v49b-section {
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.v49b-section-title {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--v49b-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.v49b-section-subtitle {
    font-size: 1.8rem;
    color: var(--v49b-secondary);
    margin-bottom: 2rem;
    text-align: center;
}

/* Carousel Styles */
.v49b-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0.8rem;
    margin-bottom: 2rem;
}

.v49b-carousel-slide {
    display: none;
    width: 100%;
    height: 20rem;
    background-size: cover;
    background-position: center;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: var(--v49b-transition);
}

.v49b-slide-active {
    display: block;
}

.v49b-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.v49b-carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--v49b-border);
    cursor: pointer;
    transition: var(--v49b-transition);
}

.v49b-indicator-active {
    background: var(--v49b-primary);
}

/* Game Grid Styles */
.v49b-game-category {
    margin-bottom: 3rem;
}

.v49b-category-title {
    font-size: 2rem;
    color: var(--v49b-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.v49b-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.v49b-game-card {
    background: var(--v49b-border);
    border-radius: 0.8rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--v49b-transition);
    border: 1px solid transparent;
}

.v49b-game-card:hover {
    background: var(--v49b-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--v49b-shadow);
}

.v49b-game-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.4rem;
    margin-bottom: 0.8rem;
}

.v49b-game-name {
    font-size: 1.1rem;
    color: var(--v49b-text);
    font-weight: 500;
    line-height: 1.2;
}

/* Content Modules */
.v49b-content-module {
    background: var(--v49b-border);
    border-radius: 0.8rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.v49b-module-title {
    font-size: 2rem;
    color: var(--v49b-primary);
    margin-bottom: 1.5rem;
}

.v49b-module-content {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--v49b-text-light);
}

/* Promotional Links */
.promo-link {
    color: var(--v49b-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: var(--v49b-transition);
}

.promo-link:hover {
    color: var(--v49b-primary);
    text-decoration: underline;
}

.v49b-promo-btn {
    background: var(--v49b-gradient);
    color: var(--v49b-text);
    border: none;
    padding: 1.2rem 2.4rem;
    border-radius: 0.4rem;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--v49b-transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin: 0.5rem;
}

.v49b-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--v49b-shadow);
}

/* Bottom Navigation */
.v49b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--v49b-bg);
    border-top: 1px solid var(--v49b-border);
    z-index: 1000;
    height: 6rem;
}

.v49b-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.v49b-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem;
    transition: var(--v49b-transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--v49b-text-light);
    min-width: 6rem;
}

.v49b-bottom-nav-item:hover,
.v49b-nav-active {
    color: var(--v49b-primary);
}

.v49b-nav-clicked {
    transform: scale(0.95);
}

.v49b-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.4rem;
}

.v49b-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.v49b-footer {
    background: var(--v49b-border);
    padding: 3rem 1rem 2rem;
    margin-top: 4rem;
}

.v49b-footer-content {
    max-width: 430px;
    margin: 0 auto;
    text-align: center;
}

.v49b-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.v49b-footer-link {
    color: var(--v49b-text-light);
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--v49b-transition);
}

.v49b-footer-link:hover {
    color: var(--v49b-primary);
}

.v49b-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.v49b-partner-logo {
    width: 4rem;
    height: 4rem;
    border-radius: 0.4rem;
    opacity: 0.7;
    transition: var(--v49b-transition);
}

.v49b-partner-logo:hover {
    opacity: 1;
}

.v49b-copyright {
    font-size: 1.2rem;
    color: var(--v49b-text-light);
    margin-top: 2rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .v49b-container {
        max-width: 430px;
    }
    
    .v49b-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .v49b-header-content {
        padding: 1.5rem;
    }
    
    .v49b-bottom-nav {
        display: none;
    }
    
    .v49b-wrapper {
        padding-bottom: 0;
    }
}

/* Utility Classes */
.v49b-text-center {
    text-align: center;
}

.v49b-text-primary {
    color: var(--v49b-primary);
}

.v49b-text-secondary {
    color: var(--v49b-secondary);
}

.v49b-mb-1 {
    margin-bottom: 1rem;
}

.v49b-mb-2 {
    margin-bottom: 2rem;
}

.v49b-mt-1 {
    margin-top: 1rem;
}

.v49b-mt-2 {
    margin-top: 2rem;
}

.v49b-hidden {
    display: none;
}

.v49b-app-ready {
    opacity: 1;
}

.v49b-menu-scroll-lock {
    overflow: hidden;
}

/* Animation Classes */
@keyframes v49b-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.v49b-pulse {
    animation: v49b-pulse 2s infinite;
}

/* Loading States */
.v49b-loading {
    opacity: 0.6;
    pointer-events: none;
}

.v49b-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 2px solid var(--v49b-primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
} 