/* Main CSS file for 2jl website - Mobile-first responsive design */

/* 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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: #333333;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    min-height: 100vh;
    font-size: 1.4rem;
    overflow-x: hidden;
}

/* Color variables */
:root {
    --primary-dark: #333333;
    --primary-purple: #9932CC;
    --secondary-purple: #8470FF;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --bg-card: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.2);
    --gradient-primary: linear-gradient(135deg, #9932CC 0%, #8470FF 100%);
    --gradient-secondary: linear-gradient(45deg, #8470FF 0%, #9932CC 100%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.8rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Container and layout */
.container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.section {
    padding: 2rem 0;
    margin-bottom: 1rem;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo-section {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    width: 32px;
    height: 32px;
    margin-right: 0.8rem;
    border-radius: 4px;
}

.site-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-purple);
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 0.8rem;
}

.btn-auth {
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.btn-register {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.btn-login {
    background: transparent;
    color: var(--secondary-purple);
    border: 1px solid var(--secondary-purple);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153, 50, 204, 0.3);
}

/* Menu toggle button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: transparent;
    border: none;
    min-height: 44px;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation menu */
.nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: rgba(25, 25, 25, 0.98);
    backdrop-filter: blur(10px);
    transition: left 0.3s ease;
    z-index: 999;
    padding: 2rem 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.nav-menu.active {
    left: 0;
}

.nav-menu ul {
    list-style: none;
    padding: 0 1.5rem;
}

.nav-menu li {
    margin-bottom: 1rem;
}

.nav-menu a {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-menu a:hover {
    background: var(--bg-card);
    border-color: var(--border-light);
}

/* Main content padding */
.main-content {
    margin-top: 80px;
    padding-bottom: 100px; /* Space for bottom navigation */
}

/* Carousel styles */
.carousel {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.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;
}

/* Game grid styles */
.games-section {
    margin-bottom: 3rem;
}

.games-category {
    margin-bottom: 3rem;
}

.category-title {
    color: var(--primary-purple);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    min-height: 44px;
    padding: 0.5rem;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid transparent;
}

.game-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-purple);
    box-shadow: 0 4px 15px rgba(153, 50, 204, 0.2);
}

.game-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    object-fit: cover;
    cursor: pointer;
}

.game-name {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    line-height: 1.2;
}

/* Content modules */
.content-module {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}

.module-title {
    color: var(--primary-purple);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.module-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Promotional links and buttons */
.promo-link, .promo-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    margin: 0.5rem 0.5rem 0.5rem 0;
    min-height: 44px;
    font-size: 1.4rem;
}

.promo-link:hover, .promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 50, 204, 0.4);
}

.promo-text-link {
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.promo-text-link:hover {
    color: var(--secondary-purple);
}

/* Footer styles */
.footer {
    background: rgba(15, 15, 15, 0.95);
    color: var(--text-muted);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.footer-link:hover {
    color: var(--primary-purple);
    background: var(--bg-card);
}

.partners {
    margin: 2rem 0;
}

.partners-title {
    color: var(--text-light);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.partner-logo {
    width: 100%;
    height: 40px;
    object-fit: contain;
    filter: grayscale(50%) opacity(0.7);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: none;
}

.copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    z-index: 1000;
    padding: 1rem 0;
}

.bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    padding: 0.5rem;
}

.bottom-nav-item i {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.bottom-nav-item span {
    font-size: 1rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.bottom-nav-item:hover i,
.bottom-nav-item:hover span {
    color: var(--primary-purple);
}

.bottom-nav-item.active i,
.bottom-nav-item.active span {
    color: var(--primary-purple);
}

/* RTP analysis styles */
.rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.rtp-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.rtp-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.rtp-label {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Responsive adjustments */
@media (min-width: 375px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .game-icon {
        width: 55px;
        height: 55px;
    }
}

@media (min-width: 430px) {
    .container {
        padding: 0 2rem;
    }
    
    .header-content {
        padding: 0 2rem;
    }
    
    .footer-content {
        padding: 0 2rem;
    }
}

/* 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; }

.fw-bold { font-weight: 700; }
.fw-medium { font-weight: 500; }

/* Loading and animation states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Print styles */
@media print {
    .header, .bottom-nav, .carousel { display: none; }
    .main-content { margin-top: 0; padding-bottom: 0; }
    body { background: white; color: black; }
} 