/**
 * jljl777 Website - Main CSS 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: 'Arial', sans-serif;
    line-height: 1.5;
    color: #C9C9FF;
    background-color: #212F3D;
    font-size: 1.4rem;
    overflow-x: hidden;
    max-width: 430px;
    margin: 0 auto;
}

/* Color palette variables */
:root {
    --primary-light: #C9C9FF;
    --primary-orange: #FF8000;
    --primary-pink: #FF1493;
    --primary-dark: #212F3D;
    --primary-light-pink: #FFB3BA;
    --text-light: #C9C9FF;
    --text-dark: #212F3D;
    --bg-dark: #212F3D;
    --bg-light: #C9C9FF;
    --accent-1: #FF8000;
    --accent-2: #FF1493;
    --accent-3: #FFB3BA;
}

/* Typography */
h1 {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-pink);
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-light-pink);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: linear-gradient(135deg, var(--primary-dark), #1a252f);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--primary-orange);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.8rem;
}

.logo img {
    width: 32px;
    height: 32px;
    margin-right: 0.8rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.register-btn, .login-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
    color: white;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.register-btn:hover, .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 128, 0, 0.4);
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--primary-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark), #1a252f);
    z-index: 1001;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--primary-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
}

.mobile-menu-items {
    list-style: none;
}

.mobile-menu-items li {
    margin-bottom: 1.5rem;
}

.mobile-menu-items a {
    display: block;
    padding: 1.5rem;
    color: var(--primary-light);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-height: 44px;
    border: 2px solid transparent;
}

.mobile-menu-items a:hover {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
    color: white;
    transform: translateX(5px);
}

/* Main content */
.main-content {
    margin-top: 80px;
    padding: 2rem 1rem;
    padding-bottom: 100px;
}

/* Carousel styles */
.carousel {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 128, 0, 0.2), rgba(255, 20, 147, 0.2));
    transition: all 0.3s ease;
}

.carousel-slide:hover::before {
    background: linear-gradient(45deg, rgba(255, 128, 0, 0.4), rgba(255, 20, 147, 0.4));
}

/* Game grid styles */
.game-section {
    margin-bottom: 3rem;
}

.game-category-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-item {
    background: linear-gradient(135deg, #2a3441, #1e2831);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
    box-shadow: 0 5px 20px rgba(255, 128, 0, 0.3);
}

.game-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
    border-radius: 5px;
}

.game-item-name {
    font-size: 1rem;
    color: var(--primary-light);
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* Content sections */
.content-section {
    background: linear-gradient(135deg, #2a3441, #1e2831);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 2px solid var(--primary-orange);
}

.content-section h2 {
    border-bottom: 2px solid var(--primary-pink);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Promotional links */
.promo-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.4rem;
    margin: 0.5rem;
    transition: all 0.3s ease;
    min-height: 44px;
    text-align: center;
    border: 2px solid transparent;
}

.promo-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 128, 0, 0.4);
    border-color: var(--primary-light-pink);
}

/* Footer styles */
.footer {
    background: linear-gradient(135deg, #1a252f, var(--primary-dark));
    padding: 3rem 1rem 2rem;
    margin-top: 3rem;
    border-top: 3px solid var(--primary-orange);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--primary-light);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    background: rgba(255, 128, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    background: var(--primary-orange);
    color: white;
}

.partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.partner-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    color: var(--primary-light-pink);
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: linear-gradient(135deg, var(--primary-dark), #1a252f);
    padding: 1rem;
    z-index: 1000;
    border-top: 2px solid var(--primary-orange);
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--primary-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem;
    border-radius: 10px;
}

.bottom-nav-item:hover {
    color: var(--primary-orange);
    transform: translateY(-2px);
}

.bottom-nav-item i {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

/* Responsive adjustments */
@media (max-width: 320px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .register-btn, .login-btn {
        padding: 0.6rem 1rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 376px) and (max-width: 430px) {
    .game-grid {
        grid-template-columns: repeat(5, 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; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.rounded { border-radius: 10px; }
.shadow { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fadeIn { animation: fadeIn 0.6s ease-out; }
.animate-slideIn { animation: slideIn 0.4s ease-out; }
.animate-pulse { animation: pulse 2s infinite; } 