/**
 * Jili77 Games - Main Stylesheet
 * Class Prefix: v55d-
 * Color Palette: #CD853F | #8B4513 | #BBBBBB | #0F0F23
 */

/* CSS Variables */
:root {
    --v55d-primary: #CD853F;
    --v55d-secondary: #8B4513;
    --v55d-accent: #DAA520;
    --v55d-text-light: #BBBBBB;
    --v55d-text-white: #FFFFFF;
    --v55d-bg-dark: #0F0F23;
    --v55d-bg-darker: #080816;
    --v55d-bg-card: #1A1A2E;
    --v55d-border: #2A2A3E;
    --v55d-success: #28A745;
    --v55d-warning: #FFC107;
    --v55d-gradient: linear-gradient(135deg, #CD853F 0%, #8B4513 100%);
}

/* Base Reset */
* {
    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;
    background-color: var(--v55d-bg-dark);
    color: var(--v55d-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.v55d-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header Styles */
.v55d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--v55d-bg-darker) 0%, var(--v55d-bg-dark) 100%);
    border-bottom: 1px solid var(--v55d-border);
    padding: 0.8rem 0;
}

.v55d-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    max-width: 430px;
    margin: 0 auto;
}

.v55d-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.v55d-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.v55d-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--v55d-primary);
    letter-spacing: 0.5px;
}

.v55d-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.v55d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
}

.v55d-btn-primary {
    background: var(--v55d-gradient);
    color: var(--v55d-text-white);
}

.v55d-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(205, 133, 63, 0.4);
}

.v55d-btn-outline {
    background: transparent;
    border: 1px solid var(--v55d-primary);
    color: var(--v55d-primary);
}

.v55d-btn-outline:hover {
    background: var(--v55d-primary);
    color: var(--v55d-bg-dark);
}

.v55d-menu-toggle {
    background: transparent;
    border: none;
    color: var(--v55d-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.v55d-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v55d-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 0 2rem;
    overflow-y: auto;
}

.v55d-menu-active {
    right: 0;
}

.v55d-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.v55d-overlay-active {
    opacity: 1;
    visibility: visible;
}

.v55d-nav-list {
    list-style: none;
}

.v55d-nav-item {
    border-bottom: 1px solid var(--v55d-border);
}

.v55d-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 2rem;
    color: var(--v55d-text-light);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.v55d-nav-link:hover {
    background: rgba(205, 133, 63, 0.1);
    color: var(--v55d-primary);
}

.v55d-nav-link i {
    font-size: 1.6rem;
    width: 24px;
    text-align: center;
}

/* Main Content */
.v55d-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .v55d-main {
        padding-bottom: 2rem;
    }
}

/* Hero Carousel */
.v55d-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.v55d-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.v55d-slide-active {
    opacity: 1;
}

.v55d-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v55d-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 15, 35, 0.9));
    padding: 2rem 1.2rem 1rem;
}

.v55d-slide-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v55d-text-white);
    margin-bottom: 0.4rem;
}

.v55d-slide-desc {
    font-size: 1.1rem;
    color: var(--v55d-text-light);
}

.v55d-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.v55d-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.v55d-dot-active {
    background: var(--v55d-primary);
}

/* Section Styles */
.v55d-section {
    padding: 2rem 0;
}

.v55d-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v55d-text-white);
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--v55d-primary);
    display: inline-block;
}

.v55d-section-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--v55d-primary);
    margin: 1.5rem 0 1rem;
}

/* Game Grid */
.v55d-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.v55d-game-card {
    background: var(--v55d-bg-card);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--v55d-border);
}

.v55d-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--v55d-primary);
    box-shadow: 0 4px 12px rgba(205, 133, 63, 0.3);
}

.v55d-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.v55d-game-name {
    padding: 0.6rem;
    font-size: 1rem;
    color: var(--v55d-text-light);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.3);
}

/* Category Section */
.v55d-category {
    margin-bottom: 2rem;
}

.v55d-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.v55d-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--v55d-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.v55d-category-title i {
    font-size: 1.6rem;
}

/* Content Card */
.v55d-content-card {
    background: var(--v55d-bg-card);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--v55d-border);
}

.v55d-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--v55d-text-white);
    margin-bottom: 1rem;
}

.v55d-card-text {
    font-size: 1.2rem;
    color: var(--v55d-text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.v55d-card-text:last-child {
    margin-bottom: 0;
}

/* Promo Link Styles */
.v55d-promo-link {
    color: var(--v55d-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.v55d-promo-link:hover {
    color: var(--v55d-accent);
    text-decoration: underline;
}

.v55d-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--v55d-gradient);
    color: var(--v55d-text-white);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.v55d-promo-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.4);
}

/* Feature List */
.v55d-feature-list {
    list-style: none;
}

.v55d-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--v55d-border);
}

.v55d-feature-item:last-child {
    border-bottom: none;
}

.v55d-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(205, 133, 63, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v55d-primary);
    font-size: 1.6rem;
    flex-shrink: 0;
}

.v55d-feature-content h4 {
    font-size: 1.3rem;
    color: var(--v55d-text-white);
    margin-bottom: 0.4rem;
}

.v55d-feature-content p {
    font-size: 1.1rem;
    color: var(--v55d-text-light);
}

/* Stats Grid */
.v55d-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.v55d-stat-card {
    background: var(--v55d-bg-card);
    border-radius: 8px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--v55d-border);
}

.v55d-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v55d-primary);
    margin-bottom: 0.4rem;
}

.v55d-stat-label {
    font-size: 1.1rem;
    color: var(--v55d-text-light);
}

/* Footer */
.v55d-footer {
    background: var(--v55d-bg-darker);
    padding: 2rem 0;
    border-top: 1px solid var(--v55d-border);
}

.v55d-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.v55d-footer-link {
    color: var(--v55d-text-light);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.v55d-footer-link:hover {
    color: var(--v55d-primary);
}

.v55d-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.v55d-partner-img {
    height: 24px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.v55d-partner-img:hover {
    opacity: 1;
}

.v55d-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--v55d-text-light);
    opacity: 0.7;
}

/* Mobile Bottom Navigation */
.v55d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--v55d-bg-dark) 0%, var(--v55d-bg-darker) 100%);
    border-top: 1px solid var(--v55d-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .v55d-bottom-nav {
        display: none;
    }
}

.v55d-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--v55d-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.4rem;
}

.v55d-nav-btn:hover,
.v55d-nav-btn-active {
    color: var(--v55d-primary);
    transform: scale(1.1);
}

.v55d-nav-btn i {
    font-size: 22px;
    margin-bottom: 0.2rem;
}

.v55d-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Utility Classes */
.v55d-text-center { text-align: center; }
.v55d-text-primary { color: var(--v55d-primary); }
.v55d-text-white { color: var(--v55d-text-white); }
.v55d-mb-1 { margin-bottom: 1rem; }
.v55d-mb-2 { margin-bottom: 2rem; }
.v55d-mt-1 { margin-top: 1rem; }
.v55d-mt-2 { margin-top: 2rem; }

/* RTP Table */
.v55d-rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.1rem;
}

.v55d-rtp-table th,
.v55d-rtp-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--v55d-border);
}

.v55d-rtp-table th {
    color: var(--v55d-primary);
    font-weight: 600;
}

.v55d-rtp-table td {
    color: var(--v55d-text-light);
}

.v55d-rtp-high {
    color: var(--v55d-success);
    font-weight: 600;
}

/* FAQ Accordion */
.v55d-faq-item {
    background: var(--v55d-bg-card);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border: 1px solid var(--v55d-border);
    overflow: hidden;
}

.v55d-faq-question {
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--v55d-text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v55d-faq-question i {
    color: var(--v55d-primary);
}

.v55d-faq-answer {
    padding: 0 1.2rem 1.2rem;
    font-size: 1.1rem;
    color: var(--v55d-text-light);
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 360px) {
    .v55d-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .v55d-stats-grid {
        grid-template-columns: 1fr;
    }
}
