/**
 * Jili58 - Main Stylesheet
 * Version: 1.0.0
 * Prefix: s295-
 * Color Palette: #2D2D2D | #6F4E37 | #D2691E | #A0522D | #FF91A4
 */

/* CSS Variables */
:root {
    --s295-bg-dark: #2D2D2D;
    --s295-bg-medium: #3A3A3A;
    --s295-primary: #6F4E37;
    --s295-accent: #D2691E;
    --s295-highlight: #A0522D;
    --s295-light: #FF91A4;
    --s295-text-light: #F5F5F5;
    --s295-text-muted: #B0B0B0;
    --s295-white: #FFFFFF;
    --s295-black: #1A1A1A;
    --s295-gradient: linear-gradient(135deg, #6F4E37 0%, #D2691E 100%);
    --s295-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --s295-radius: 12px;
    --s295-radius-sm: 8px;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--s295-bg-dark);
    color: var(--s295-text-light);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--s295-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--s295-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.s295-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.s295-wrapper {
    padding: 2rem 0;
}

/* Header */
.s295-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--s295-bg-dark) 0%, rgba(45, 45, 45, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(111, 78, 55, 0.3);
}

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

.s295-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.s295-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.s295-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--s295-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.s295-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.s295-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: var(--s295-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.s295-btn-primary {
    background: var(--s295-gradient);
    color: var(--s295-white);
    box-shadow: 0 2px 8px rgba(210, 105, 30, 0.4);
}

.s295-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.6);
    color: var(--s295-white);
}

.s295-btn-outline {
    background: transparent;
    color: var(--s295-light);
    border: 2px solid var(--s295-light);
}

.s295-btn-outline:hover {
    background: var(--s295-light);
    color: var(--s295-bg-dark);
}

/* Hamburger Menu */
.s295-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 20px;
    cursor: pointer;
    z-index: 10001;
}

.s295-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--s295-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.s295-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.s295-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.s295-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.s295-overlay-active {
    opacity: 1;
    visibility: visible;
}

.s295-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s295-bg-medium);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 6rem 2rem 2rem;
}

.s295-menu-active {
    right: 0;
}

.s295-nav-list {
    list-style: none;
}

.s295-nav-item {
    margin-bottom: 0.5rem;
}

.s295-nav-link {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--s295-text-light);
    font-size: 1.5rem;
    font-weight: 500;
    border-radius: var(--s295-radius-sm);
    transition: all 0.3s ease;
}

.s295-nav-link:hover {
    background: rgba(255, 145, 164, 0.1);
    color: var(--s295-light);
}

.s295-nav-active {
    background: var(--s295-gradient);
    color: var(--s295-white);
}

/* Main Content */
.s295-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Slider */
.s295-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0 0 var(--s295-radius) var(--s295-radius);
}

.s295-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.s295-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s295-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.s295-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.s295-dot-active {
    background: var(--s295-light);
    transform: scale(1.2);
}

/* Section Titles */
.s295-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--s295-white);
    position: relative;
    padding-left: 1.5rem;
}

.s295-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--s295-gradient);
    border-radius: 2px;
}

/* Game Grid */
.s295-game-section {
    padding: 2rem 0;
}

.s295-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s295-accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.s295-category-title i {
    font-size: 1.8rem;
}

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

.s295-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.s295-game-item:hover {
    transform: scale(1.05);
}

.s295-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--s295-radius-sm);
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: var(--s295-bg-medium);
    box-shadow: var(--s295-shadow);
}

.s295-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s295-game-name {
    font-size: 1.1rem;
    color: var(--s295-text-muted);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Sections */
.s295-content-section {
    padding: 2rem 1.5rem;
    background: var(--s295-bg-medium);
    border-radius: var(--s295-radius);
    margin-bottom: 1.5rem;
}

.s295-content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--s295-accent);
}

.s295-content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--s295-light);
}

.s295-content-section p {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--s295-text-light);
}

.s295-content-section ul {
    list-style: none;
    padding-left: 0;
}

.s295-content-section li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.4rem;
}

.s295-content-section li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--s295-light);
}

/* Promo Link Styles */
.s295-promo-text {
    color: var(--s295-light);
    font-weight: 600;
    cursor: pointer;
}

.s295-promo-text:hover {
    color: var(--s295-accent);
    text-decoration: underline;
}

/* Footer */
.s295-footer {
    background: var(--s295-black);
    padding: 2rem 0;
    border-top: 1px solid rgba(111, 78, 55, 0.3);
}

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

.s295-footer-link {
    color: var(--s295-text-muted);
    font-size: 1.3rem;
}

.s295-footer-link:hover {
    color: var(--s295-light);
}

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

.s295-partner-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

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

.s295-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--s295-text-muted);
}

/* Bottom Navigation */
.s295-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(45, 45, 45, 0.98) 0%, var(--s295-bg-dark) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(111, 78, 55, 0.3);
}

.s295-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--s295-text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
}

.s295-nav-btn:hover,
.s295-nav-btn-active {
    color: var(--s295-light);
    transform: scale(1.1);
}

.s295-nav-btn i {
    font-size: 24px;
    margin-bottom: 4px;
}

.s295-nav-btn span {
    font-size: 11px;
    font-weight: 500;
}

/* FAQ Styles */
.s295-faq-item {
    background: var(--s295-bg-medium);
    border-radius: var(--s295-radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.s295-faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--s295-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s295-faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--s295-text-muted);
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Feature Box */
.s295-feature-box {
    background: var(--s295-bg-medium);
    border-radius: var(--s295-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--s295-accent);
}

.s295-feature-box h4 {
    font-size: 1.5rem;
    color: var(--s295-light);
    margin-bottom: 0.5rem;
}

.s295-feature-box p {
    font-size: 1.3rem;
    color: var(--s295-text-muted);
}

/* RTP Table */
.s295-rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.3rem;
}

.s295-rtp-table th,
.s295-rtp-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(111, 78, 55, 0.3);
}

.s295-rtp-table th {
    background: var(--s295-primary);
    color: var(--s295-white);
}

.s295-rtp-table td {
    color: var(--s295-text-light);
}

/* Responsive - Hide bottom nav on desktop */
@media (min-width: 769px) {
    .s295-bottom-nav {
        display: none;
    }

    .s295-main {
        padding-bottom: 2rem;
    }
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .s295-container {
        max-width: 768px;
    }

    .s295-header-inner {
        max-width: 768px;
    }

    .s295-slider {
        height: 300px;
    }

    .s295-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Utility Classes */
.s295-text-center { text-align: center; }
.s295-text-left { text-align: left; }
.s295-mb-1 { margin-bottom: 1rem; }
.s295-mb-2 { margin-bottom: 2rem; }
.s295-mt-1 { margin-top: 1rem; }
.s295-mt-2 { margin-top: 2rem; }
.s295-hidden { display: none; }
.s295-visible { display: block; }
