/**
 * JL88 Gaming Platform - Theme Stylesheet
 * Version: 1.0.0
 * Prefix: g655-
 * All classes use g655- prefix for namespace isolation
 */

/* CSS Variables with unique prefix */
:root {
    --g655-primary: #CD853F;
    --g655-secondary: #ADB5BD;
    --g655-bg: #1B263B;
    --g655-bg-light: #2a3a52;
    --g655-text: #ADB5BD;
    --g655-text-light: #ffffff;
    --g655-accent: #CD853F;
    --g655-success: #28a745;
    --g655-gradient: linear-gradient(135deg, #CD853F 0%, #D4A574 100%);
    --g655-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --g655-radius: 8px;
    --g655-transition: all 0.3s ease;
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--g655-text);
    background-color: var(--g655-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

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

.g655-wrapper {
    padding: 1rem;
}

/* Header Styles */
.g655-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g655-bg) 0%, rgba(27, 38, 59, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(205, 133, 63, 0.3);
    padding: 0.8rem 1rem;
}

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

.g655-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.g655-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.g655-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g655-primary);
    letter-spacing: 0.5px;
}

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

.g655-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--g655-radius);
    cursor: pointer;
    transition: var(--g655-transition);
    border: none;
    min-height: 36px;
    min-width: 44px;
}

.g655-btn-primary {
    background: var(--g655-gradient);
    color: var(--g655-bg);
}

.g655-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--g655-shadow);
}

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

.g655-btn-outline:hover {
    background: var(--g655-primary);
    color: var(--g655-bg);
}

.g655-menu-toggle {
    background: none;
    border: none;
    color: var(--g655-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.g655-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;
}

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

.g655-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(205, 133, 63, 0.3);
}

.g655-menu-close {
    background: none;
    border: none;
    color: var(--g655-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
}

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

.g655-nav-item {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(173, 181, 189, 0.2);
}

.g655-nav-link {
    color: var(--g655-text);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--g655-transition);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g655-nav-link:hover {
    color: var(--g655-primary);
}

/* Main Content */
.g655-main {
    padding-top: 60px;
    padding-bottom: 1rem;
}

@media (max-width: 768px) {
    .g655-main {
        padding-bottom: 80px;
    }
}

/* Carousel Styles */
.g655-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--g655-radius);
    margin-bottom: 1.5rem;
}

.g655-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.g655-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.g655-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.g655-slide-active {
    display: block;
}

.g655-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.g655-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--g655-transition);
}

.g655-dot-active {
    background: var(--g655-primary);
    transform: scale(1.2);
}

/* Section Styles */
.g655-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--g655-bg-light);
    border-radius: var(--g655-radius);
}

.g655-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--g655-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.g655-section-text {
    color: var(--g655-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Game Grid */
.g655-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.g655-game-card {
    background: var(--g655-bg);
    border-radius: var(--g655-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--g655-transition);
    text-align: center;
    padding: 0.5rem;
}

.g655-game-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--g655-shadow);
}

.g655-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.3rem;
}

.g655-game-name {
    font-size: 1rem;
    color: var(--g655-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.2rem;
}

/* Category Header */
.g655-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: linear-gradient(90deg, var(--g655-primary) 0%, transparent 100%);
    border-radius: var(--g655-radius);
}

.g655-category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--g655-bg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
.g655-footer {
    background: var(--g655-bg-light);
    padding: 2rem 1rem 1rem;
    margin-top: 2rem;
}

.g655-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.g655-footer-brand p {
    color: var(--g655-text);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.g655-footer-link {
    color: var(--g655-primary);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--g655-primary);
    border-radius: 4px;
    transition: var(--g655-transition);
}

.g655-footer-link:hover {
    background: var(--g655-primary);
    color: var(--g655-bg);
}

.g655-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(205, 133, 63, 0.3);
}

.g655-footer-nav a {
    color: var(--g655-text);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--g655-transition);
}

.g655-footer-nav a:hover {
    color: var(--g655-primary);
}

.g655-copyright {
    text-align: center;
    color: var(--g655-text);
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(205, 133, 63, 0.3);
}

/* Bottom Navigation */
.g655-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(27, 38, 59, 0.98) 0%, var(--g655-bg) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(205, 133, 63, 0.4);
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
}

@media (min-width: 769px) {
    .g655-bottom-nav {
        display: none;
    }
}

.g655-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--g655-transition);
    border-radius: 8px;
    padding: 0.4rem;
}

.g655-bottom-nav-item:hover,
.g655-bottom-nav-item:active {
    background: rgba(205, 133, 63, 0.2);
}

.g655-bottom-nav-item i,
.g655-bottom-nav-item .material-icons {
    font-size: 22px;
    color: var(--g655-text);
    margin-bottom: 0.2rem;
    transition: var(--g655-transition);
}

.g655-bottom-nav-item span {
    font-size: 10px;
    color: var(--g655-text);
    text-align: center;
}

.g655-bottom-nav-item:hover i,
.g655-bottom-nav-item:hover span,
.g655-bottom-nav-item.g655-nav-active i,
.g655-bottom-nav-item.g655-nav-active span {
    color: var(--g655-primary);
}

.g655-nav-active {
    background: rgba(205, 133, 63, 0.15);
}

/* Touch Active State */
.g655-touch-active {
    opacity: 0.8;
    transform: scale(0.98);
}

/* H1 Style */
.g655-h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g655-primary);
    text-align: center;
    margin: 1.5rem 0;
    line-height: 1.3;
}

/* H2 Style */
.g655-h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g655-primary);
    margin: 1.5rem 0 1rem;
}

/* H3 Style */
.g655-h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--g655-text-light);
    margin: 1rem 0 0.8rem;
}

/* List Styles */
.g655-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.g655-list li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--g655-text);
}

.g655-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    background: var(--g655-primary);
    border-radius: 50%;
}

/* FAQ Styles */
.g655-faq-item {
    background: var(--g655-bg);
    border-radius: var(--g655-radius);
    margin-bottom: 0.8rem;
    padding: 1rem;
    border-left: 3px solid var(--g655-primary);
}

.g655-faq-question {
    font-weight: 600;
    color: var(--g655-primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.g655-faq-answer {
    color: var(--g655-text);
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Testimonial */
.g655-testimonial {
    background: var(--g655-bg);
    border-radius: var(--g655-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(205, 133, 63, 0.2);
}

.g655-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.g655-testimonial-author i {
    color: var(--g655-primary);
    font-size: 2rem;
}

.g655-testimonial-name {
    font-weight: 600;
    color: var(--g655-text-light);
}

.g655-testimonial-text {
    color: var(--g655-text);
    font-style: italic;
    font-size: 1.2rem;
}

/* Promo Box */
.g655-promo-box {
    background: var(--g655-gradient);
    border-radius: var(--g655-radius);
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.g655-promo-box h3 {
    color: var(--g655-bg);
    margin-bottom: 0.5rem;
}

.g655-promo-box p {
    color: var(--g655-bg);
    margin-bottom: 1rem;
}

/* Winner Showcase */
.g655-winner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--g655-bg);
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.g655-winner-game {
    font-size: 1.2rem;
    color: var(--g655-text);
}

.g655-winner-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--g655-primary);
}

/* Payment Methods */
.g655-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.g655-payment-item {
    background: var(--g655-bg);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 1.1rem;
    color: var(--g655-text);
    border: 1px solid rgba(205, 133, 63, 0.3);
}

/* Internal Link */
.g655-internal-link {
    color: var(--g655-primary);
    text-decoration: underline;
    transition: var(--g655-transition);
}

.g655-internal-link:hover {
    color: var(--g655-text-light);
}

/* Responsive Utilities */
@media (max-width: 430px) {
    .g655-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .g655-game-name {
        font-size: 0.9rem;
    }
}

/* Animation */
@keyframes g655-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.g655-animate {
    animation: g655-fade-in 0.5s ease forwards;
}
