/**
 * Jiliki Main Stylesheet
 * All classes use g946- prefix for namespace isolation
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --g946-primary: #0000CD;
    --g946-secondary: #DA70D6;
    --g946-accent: #AFEEEE;
    --g946-bg-dark: #141414;
    --g946-bg-light: #F0F8FF;
    --g946-text-light: #F0F8FF;
    --g946-text-dark: #141414;
    --g946-gradient: linear-gradient(135deg, #0000CD 0%, #DA70D6 100%);
    --g946-shadow: 0 4px 15px rgba(0, 0, 205, 0.3);
    --g946-radius: 12px;
    --g946-transition: all 0.3s ease;
}

/* Reset and 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;
    background-color: var(--g946-bg-dark);
    color: var(--g946-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    overflow-x: hidden;
}

/* Container */
.g946-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.g946-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 205, 0.3);
    transition: var(--g946-transition);
}

.g946-header-scrolled {
    background: rgba(20, 20, 20, 0.99);
    box-shadow: var(--g946-shadow);
}

.g946-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.g946-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.g946-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--g946-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g946-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.g946-btn {
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--g946-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.g946-btn-primary {
    background: var(--g946-gradient);
    color: var(--g946-text-light);
    box-shadow: var(--g946-shadow);
}

.g946-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 205, 0.4);
}

.g946-btn-secondary {
    background: transparent;
    color: var(--g946-accent);
    border: 2px solid var(--g946-accent);
}

.g946-btn-secondary:hover {
    background: var(--g946-accent);
    color: var(--g946-bg-dark);
}

.g946-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.g946-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--g946-text-light);
    border-radius: 2px;
    transition: var(--g946-transition);
}

/* Mobile Menu */
.g946-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g946-bg-dark);
    z-index: 9999;
    padding: 80px 2rem 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid rgba(0, 0, 205, 0.3);
}

.g946-menu-active {
    right: 0;
}

.g946-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: var(--g946-transition);
}

.g946-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g946-nav-list {
    list-style: none;
}

.g946-nav-item {
    margin-bottom: 1rem;
}

.g946-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    color: var(--g946-text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--g946-transition);
    font-size: 1.4rem;
}

.g946-nav-link:hover {
    background: rgba(0, 0, 205, 0.2);
    color: var(--g946-accent);
}

.g946-nav-link i {
    width: 20px;
    text-align: center;
}

/* Main Content */
main {
    padding-top: 70px;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.g946-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--g946-radius);
    margin-bottom: 2rem;
}

.g946-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.g946-slide-active {
    opacity: 1;
}

.g946-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g946-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.g946-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--g946-transition);
}

.g946-dot-active {
    background: var(--g946-primary);
    transform: scale(1.2);
}

/* Section Titles */
.g946-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--g946-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g946-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g946-accent);
    margin-bottom: 1rem;
}

/* Game Grid */
.g946-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.g946-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: var(--g946-transition);
    padding: 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.g946-game-card:hover {
    transform: translateY(-3px);
    background: rgba(0, 0, 205, 0.2);
}

.g946-game-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.g946-game-name {
    font-size: 1.1rem;
    color: var(--g946-text-light);
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Header */
.g946-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--g946-primary);
}

.g946-category-icon {
    width: 28px;
    height: 28px;
    color: var(--g946-secondary);
}

.g946-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g946-accent);
}

/* Content Sections */
.g946-section {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(145deg, rgba(0, 0, 205, 0.1) 0%, rgba(218, 112, 214, 0.05) 100%);
    border-radius: var(--g946-radius);
    border: 1px solid rgba(0, 0, 205, 0.2);
}

.g946-text {
    color: var(--g946-text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.g946-text strong {
    color: var(--g946-accent);
}

.g946-list {
    list-style: none;
    padding-left: 0;
}

.g946-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.g946-list li:last-child {
    border-bottom: none;
}

.g946-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--g946-primary);
}

/* Promo Link Styles */
.g946-promo-link {
    color: var(--g946-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--g946-transition);
    cursor: pointer;
}

.g946-promo-link:hover {
    color: var(--g946-accent);
    text-decoration: underline;
}

/* Footer */
.g946-footer {
    background: linear-gradient(180deg, var(--g946-bg-dark) 0%, #0a0a0a 100%);
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 205, 0.3);
}

.g946-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.g946-footer-link {
    color: var(--g946-text-light);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--g946-transition);
}

.g946-footer-link:hover {
    background: rgba(0, 0, 205, 0.2);
    color: var(--g946-accent);
}

.g946-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.g946-partner-logo {
    height: 24px;
    opacity: 0.7;
    transition: var(--g946-transition);
    filter: grayscale(30%);
}

.g946-partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.g946-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
}

/* Bottom Navigation */
.g946-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, #0a0a0a 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 205, 0.4);
    box-shadow: 0 -4px 15px rgba(0, 0, 205, 0.2);
}

@media (min-width: 769px) {
    .g946-bottom-nav {
        display: none;
    }
}

.g946-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--g946-text-light);
    cursor: pointer;
    transition: var(--g946-transition);
    text-decoration: none;
}

.g946-nav-btn:hover {
    color: var(--g946-accent);
    transform: scale(1.1);
}

.g946-nav-btn.active {
    color: var(--g946-primary);
}

.g946-nav-btn i {
    font-size: 22px;
    margin-bottom: 3px;
}

.g946-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* H1 Title */
.g946-h1 {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: var(--g946-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

/* Responsive */
@media (max-width: 380px) {
    .g946-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .g946-game-icon {
        width: 50px;
        height: 50px;
    }

    .g946-game-name {
        font-size: 1rem;
    }
}

/* Touch Feedback */
.g946-touch-active {
    opacity: 0.8;
    transform: scale(0.98);
}

/* FAQ Section */
.g946-faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-left: 3px solid var(--g946-primary);
}

.g946-faq-question {
    font-weight: 600;
    color: var(--g946-accent);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.g946-faq-answer {
    color: var(--g946-text-light);
    line-height: 1.6;
}

/* Feature Cards */
.g946-feature-card {
    background: linear-gradient(145deg, rgba(0, 0, 205, 0.15) 0%, rgba(218, 112, 214, 0.08) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 205, 0.3);
}

.g946-feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    color: var(--g946-secondary);
}

.g946-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--g946-accent);
    margin-bottom: 0.5rem;
}

.g946-feature-text {
    color: var(--g946-text-light);
    line-height: 1.5;
}

/* RTP Section */
.g946-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.g946-rtp-item {
    background: rgba(0, 0, 205, 0.1);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.g946-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g946-secondary);
}

.g946-rtp-label {
    font-size: 1.1rem;
    color: var(--g946-text-light);
    opacity: 0.8;
}
