/**
 * BossJL Universal CSS
 * Mobile-first casino gaming website
 * Color palette: #F0E68C | #FF5722 | #262626 | #9370DB | #EEE8AA
 */

/* CSS Reset and Base Setup */
* {
    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: #F0E68C;
    background: linear-gradient(135deg, #262626 0%, #1a1a1a 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #F0E68C;
}

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;
}

h5 {
    font-size: 1.4rem;
}

h6 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
    color: #EEE8AA;
}

a {
    color: #9370DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF5722;
}

/* Layout Containers */
.container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.section {
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #F0E68C;
    font-size: 2rem;
    font-weight: 700;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(38, 38, 38, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid #9370DB;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
}

.site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #F0E68C;
    text-decoration: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    background: linear-gradient(135deg, #FF5722, #e64a19);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #e64a19, #d84315);
    transform: translateY(-1px);
}

.nav-toggle {
    background: none;
    border: none;
    color: #F0E68C;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-menu-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(38, 38, 38, 0.98);
    backdrop-filter: blur(15px);
    border-top: 1px solid #9370DB;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-menu-mobile.active {
    max-height: 400px;
}

.nav-menu-mobile ul {
    list-style: none;
    padding: 1rem 0;
}

.nav-menu-mobile li {
    padding: 0;
}

.nav-menu-mobile a {
    display: block;
    padding: 1rem 2rem;
    color: #EEE8AA;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(147, 112, 219, 0.1);
    transition: all 0.3s ease;
}

.nav-menu-mobile a:hover {
    background: rgba(147, 112, 219, 0.1);
    color: #F0E68C;
    padding-left: 2.5rem;
}

/* Main Content */
.main-content {
    margin-top: 7rem;
    margin-bottom: 8rem;
    padding: 1rem 0;
}

/* Carousel */
.carousel-container {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    height: 20rem;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-indicator.active {
    background: #FF5722;
}

/* Game Sections */
.games-section {
    margin-bottom: 3rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-item {
    background: rgba(147, 112, 219, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(147, 112, 219, 0.2);
}

.game-item:hover {
    background: rgba(147, 112, 219, 0.2);
    transform: translateY(-2px);
    border-color: #9370DB;
}

.game-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 0.8rem;
    margin-bottom: 0.8rem;
    object-fit: cover;
}

.game-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #EEE8AA;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Modules */
.content-module {
    background: rgba(147, 112, 219, 0.05);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(147, 112, 219, 0.1);
}

.content-module h3 {
    color: #F0E68C;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.content-module p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Promotional Links and Buttons */
.promo-link,
.promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, #FF5722, #e64a19);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    margin: 0.5rem 0.5rem 0.5rem 0;
}

.promo-link:hover,
.promo-btn:hover {
    background: linear-gradient(135deg, #e64a19, #d84315);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.promo-text-link {
    color: #FF5722 !important;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.promo-text-link:hover {
    color: #e64a19 !important;
}

/* RTP Analysis */
.rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.rtp-item {
    background: rgba(255, 87, 34, 0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 87, 34, 0.2);
}

.rtp-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: #FF5722;
    display: block;
}

.rtp-label {
    font-size: 1.2rem;
    color: #EEE8AA;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: rgba(38, 38, 38, 0.95);
    padding: 3rem 0 2rem;
    border-top: 2px solid #9370DB;
}

.footer-content {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-link {
    background: rgba(147, 112, 219, 0.1);
    color: #EEE8AA;
    padding: 1rem;
    border-radius: 0.8rem;
    text-align: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(147, 112, 219, 0.2);
}

.footer-link:hover {
    background: rgba(147, 112, 219, 0.2);
    color: #F0E68C;
    border-color: #9370DB;
}

.partners-section {
    margin: 2rem 0;
}

.partners-title {
    text-align: center;
    color: #F0E68C;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.partner-logo {
    width: 100%;
    height: 4rem;
    object-fit: contain;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
}

.copyright {
    text-align: center;
    color: #EEE8AA;
    font-size: 1.2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(147, 112, 219, 0.2);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(38, 38, 38, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid #9370DB;
    z-index: 1000;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 0;
    max-width: 430px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #EEE8AA;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.8rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    justify-content: center;
}

.nav-item:hover {
    color: #FF5722;
    background: rgba(255, 87, 34, 0.1);
}

.nav-item i {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (min-width: 375px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .game-icon {
        width: 4.5rem;
        height: 4.5rem;
    }
}

@media (min-width: 414px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.2rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-bold {
    font-weight: 700;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* FAQ Styles */
.faq-item {
    background: rgba(147, 112, 219, 0.05);
    border-radius: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(147, 112, 219, 0.1);
    overflow: hidden;
}

.faq-question {
    background: rgba(147, 112, 219, 0.1);
    padding: 1.5rem;
    color: #F0E68C;
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(147, 112, 219, 0.15);
}

.faq-answer {
    padding: 1.5rem;
    color: #EEE8AA;
    line-height: 1.6;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(255, 87, 34, 0.3);
    border-radius: 50%;
    border-top-color: #FF5722;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    .game-icon,
    .partner-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
} 