/* JiliBoss Universal CSS - Mobile-First Casino Gaming Website */

/* CSS Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* Base 10px for rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: #FFE4B5;
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
    min-height: 100vh;
    font-size: 1.4rem;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --primary-gold: #D2691E;
    --dark-bg: #1A1A1A;
    --light-cream: #FFE4B5;
    --warm-brown: #DEB887;
    --accent-yellow: #FFEF94;
    --gradient-bg: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
    --card-bg: rgba(255, 228, 181, 0.1);
    --border-color: rgba(210, 105, 30, 0.3);
    --text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--accent-yellow);
    font-weight: 700;
    text-shadow: var(--text-shadow);
    margin-bottom: 1rem;
}

h1 { font-size: 2.4rem; line-height: 1.2; }
h2 { font-size: 2rem; line-height: 1.3; }
h3 { font-size: 1.8rem; line-height: 1.4; }
h4 { font-size: 1.6rem; line-height: 1.4; }

p, li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-gold);
    z-index: 1000;
    padding: 1rem 2rem;
    max-width: 100vw;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-yellow);
    text-shadow: var(--text-shadow);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-auth {
    padding: 0.8rem 1.2rem;
    background: var(--primary-gold);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-auth:hover {
    background: #B8601A;
    transform: translateY(-1px);
}

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--accent-yellow);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--accent-yellow);
    transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.hamburger.active {
    background: transparent;
}

.hamburger.active::before {
    transform: rotate(45deg);
    top: 0;
}

.hamburger.active::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Mobile Navigation Menu */
.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(15px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
    border-bottom: 2px solid var(--primary-gold);
}

.mobile-nav.active {
    max-height: 400px;
}

.nav-links {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-link {
    color: var(--light-cream);
    text-decoration: none;
    padding: 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--accent-yellow);
}

/* Main Content */
.main-content {
    margin-top: 70px;
    padding: 2rem;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 80px;
}

/* Carousel */
.carousel-wrapper {
    position: relative;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.carousel-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 2rem;
    color: white;
}

/* Game Grid */
.game-section {
    margin: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-gold);
}

.game-icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.game-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-cream);
    text-align: center;
    line-height: 1.2;
}

/* Content Sections */
.content-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--box-shadow);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-icon {
    font-size: 2.4rem;
    color: var(--primary-gold);
}

/* Buttons and Links */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #B8601A 100%);
    color: white;
    text-decoration: none;
    padding: 1.2rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    min-height: 44px;
    text-shadow: var(--text-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: white;
}

.promotion-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted var(--primary-gold);
    transition: all 0.3s ease;
}

.promotion-link:hover {
    color: var(--accent-yellow);
    border-bottom-color: var(--accent-yellow);
}

/* FAQ Styles */
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: rgba(210, 105, 30, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--accent-yellow);
}

.faq-answer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-gold);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--warm-brown);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    border-top: 2px solid var(--primary-gold);
    padding: 3rem 2rem 10rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: var(--light-cream);
    text-decoration: none;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.footer-link:hover {
    color: var(--accent-yellow);
    border-color: var(--primary-gold);
}

.partners-section {
    margin: 2rem 0;
    text-align: center;
}

.partners-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--warm-brown);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.partner-logo {
    width: 100%;
    height: 40px;
    object-fit: contain;
    background: white;
    border-radius: 4px;
    padding: 0.5rem;
}

.copyright {
    text-align: center;
    color: var(--warm-brown);
    font-size: 1.2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(15px);
    border-top: 2px solid var(--primary-gold);
    z-index: 1000;
    padding: 1rem 0;
}

.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;
    text-decoration: none;
    color: var(--light-cream);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary-gold);
    background: rgba(210, 105, 30, 0.1);
}

.bottom-nav-icon {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 375px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .game-icon {
        width: 40px;
        height: 40px;
    }
    
    .game-name {
        font-size: 0.9rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 376px) and (max-width: 430px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gold { color: var(--primary-gold); }
.text-yellow { color: var(--accent-yellow); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 1rem; }

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --light-cream: #FFFFFF;
        --warm-brown: #CCCCCC;
        --border-color: rgba(255, 255, 255, 0.5);
    }
} 