/**
 * 88Lucky Ph - Main Stylesheet
 * Version: 1.0.0
 * All classes use g785- prefix for namespace isolation
 * Color Palette: Cyan Gold Emerald Theme
 */

/* CSS Reset and Base Styles */
:root {
    --g785-primary: #00E5FF;
    --g785-secondary: #D4AF37;
    --g785-accent: #FFEF94;
    --g785-bg-dark: #1A1A2E;
    --g785-bg-darker: #0F0F1A;
    --g785-text-light: #E8F5E8;
    --g785-text-muted: #ADB5BD;
    --g785-success: #00C853;
    --g785-gradient-gold: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #D4AF37 100%);
    --g785-gradient-cyan: linear-gradient(135deg, #00E5FF 0%, #00BCD4 100%);
    --g785-shadow: 0 4px 20px rgba(0, 229, 255, 0.15);
    --g785-radius: 12px;
    --g785-radius-sm: 8px;
}

* {
    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(--g785-bg-dark);
    color: var(--g785-text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
.g785-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

.g785-wrapper {
    width: 100%;
    padding: 20px 0;
}

/* Header Styles */
.g785-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g785-bg-darker) 0%, rgba(15, 15, 26, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    transition: all 0.3s ease;
}

.g785-header-scrolled {
    background: rgba(15, 15, 26, 0.98);
    box-shadow: var(--g785-shadow);
}

.g785-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: 430px;
    margin: 0 auto;
}

.g785-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.g785-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.g785-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--g785-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g785-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.g785-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: var(--g785-radius-sm);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 44px;
}

.g785-btn-primary {
    background: var(--g785-gradient-cyan);
    color: var(--g785-bg-dark);
}

.g785-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

.g785-btn-secondary {
    background: var(--g785-gradient-gold);
    color: var(--g785-bg-dark);
}

.g785-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.g785-menu-btn {
    background: transparent;
    border: none;
    color: var(--g785-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
}

/* Mobile Menu */
.g785-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    z-index: 9998;
    transition: all 0.3s ease;
}

.g785-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g785-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g785-bg-darker);
    z-index: 9999;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 80px 20px 20px;
}

.g785-menu-active {
    right: 0;
}

.g785-nav-list {
    list-style: none;
}

.g785-nav-item {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}

.g785-nav-link {
    color: var(--g785-text-light);
    text-decoration: none;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease;
}

.g785-nav-link:hover {
    color: var(--g785-primary);
}

.g785-nav-link i {
    font-size: 2rem;
    color: var(--g785-secondary);
}

/* Carousel Styles */
.g785-carousel {
    position: relative;
    margin-top: 68px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.g785-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.g785-slide {
    min-width: 100%;
    position: relative;
    display: none;
}

.g785-slide-active {
    display: block;
}

.g785-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.g785-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.g785-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.g785-dot-active {
    background: var(--g785-secondary);
    width: 24px;
    border-radius: 4px;
}

/* Main Content */
.g785-main {
    padding-bottom: 80px;
}

.g785-section {
    padding: 24px 0;
}

.g785-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--g785-accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.g785-section-title i {
    color: var(--g785-secondary);
}

/* Game Grid */
.g785-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.g785-game-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.g785-game-card:hover {
    transform: scale(1.05);
}

.g785-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--g785-radius-sm);
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.g785-game-card:hover .g785-game-img {
    border-color: var(--g785-primary);
}

.g785-game-name {
    font-size: 1.2rem;
    color: var(--g785-text-muted);
    margin-top: 6px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Content Box */
.g785-content-box {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: var(--g785-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.g785-content-box h2 {
    color: var(--g785-primary);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.g785-content-box p {
    color: var(--g785-text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.g785-content-box a {
    color: var(--g785-secondary);
    text-decoration: none;
    font-weight: 600;
}

.g785-content-box a:hover {
    text-decoration: underline;
}

/* Feature List */
.g785-feature-list {
    list-style: none;
}

.g785-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.g785-feature-item:last-child {
    border-bottom: none;
}

.g785-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--g785-gradient-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.g785-feature-icon i {
    color: var(--g785-bg-dark);
    font-size: 1.8rem;
}

.g785-feature-text h4 {
    color: var(--g785-accent);
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.g785-feature-text p {
    color: var(--g785-text-muted);
    font-size: 1.3rem;
    line-height: 1.4;
}

/* Footer Styles */
.g785-footer {
    background: var(--g785-bg-darker);
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    padding: 24px 0;
}

.g785-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.g785-footer-link {
    color: var(--g785-text-muted);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.g785-footer-link:hover {
    color: var(--g785-primary);
}

.g785-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.g785-partner-img {
    width: 50px;
    height: 30px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.g785-partner-img:hover {
    opacity: 1;
}

.g785-copyright {
    text-align: center;
    color: var(--g785-text-muted);
    font-size: 1.2rem;
}

/* Bottom Navigation */
.g785-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(15, 15, 26, 0.98) 0%, var(--g785-bg-darker) 100%);
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 0 8px;
}

.g785-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--g785-text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 8px;
}

.g785-nav-btn:hover,
.g785-nav-btn-active {
    color: var(--g785-primary);
    transform: scale(1.1);
}

.g785-nav-btn i {
    font-size: 24px;
    margin-bottom: 4px;
}

.g785-nav-btn span {
    font-size: 11px;
    font-weight: 500;
}

/* Promo Link Styles */
.g785-promo-link {
    color: var(--g785-secondary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.g785-promo-link:hover {
    color: var(--g785-accent);
    text-decoration: underline;
}

.g785-promo-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--g785-gradient-gold);
    color: var(--g785-bg-dark);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 25px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.g785-promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* FAQ Accordion */
.g785-faq-item {
    background: rgba(0, 229, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: var(--g785-radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
}

.g785-faq-question {
    padding: 15px;
    font-weight: 600;
    color: var(--g785-accent);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g785-faq-answer {
    padding: 0 15px 15px;
    color: var(--g785-text-muted);
    line-height: 1.6;
}

/* Responsive */
@media (min-width: 769px) {
    .g785-bottom-nav {
        display: none;
    }

    .g785-container {
        max-width: 768px;
    }

    .g785-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .g785-main {
        padding-bottom: 20px;
    }
}

@media (max-width: 430px) {
    html {
        font-size: 55%;
    }

    .g785-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}
