/**
 * Ninong Gaming APK - Theme Stylesheet
 * Prefix: ge51-
 * Color Palette: #E0F2F1 | #D2691E | #20B2AA | #F0F0F0 | #2E4057
 */

/* CSS Variables */
:root {
    --ge51-primary: #20B2AA;
    --ge51-secondary: #D2691E;
    --ge51-bg-dark: #2E4057;
    --ge51-bg-light: #F0F0F0;
    --ge51-text-light: #E0F2F1;
    --ge51-text-dark: #2E4057;
    --ge51-accent: #D2691E;
    --ge51-success: #20B2AA;
    --ge51-gradient: linear-gradient(135deg, #2E4057 0%, #20B2AA 100%);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--ge51-bg-dark);
    color: var(--ge51-text-light);
    min-height: 100vh;
}

/* Container */
.ge51-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.ge51-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--ge51-bg-dark);
    border-bottom: 2px solid var(--ge51-primary);
    transition: all 0.3s ease;
}

.ge51-header.ge51-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ge51-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.ge51-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.ge51-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.ge51-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ge51-text-light);
}

.ge51-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.ge51-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ge51-btn-primary {
    background: var(--ge51-primary);
    color: var(--ge51-bg-dark);
}

.ge51-btn-primary:hover {
    background: #1a9a94;
    transform: translateY(-2px);
}

.ge51-btn-secondary {
    background: var(--ge51-secondary);
    color: var(--ge51-text-light);
}

.ge51-btn-secondary:hover {
    background: #b85a17;
    transform: translateY(-2px);
}

.ge51-menu-toggle {
    background: transparent;
    border: none;
    color: var(--ge51-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Menu */
.ge51-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--ge51-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    border-left: 2px solid var(--ge51-primary);
}

.web4e5-active {
    right: 0 !important;
}

.ge51-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ge51-primary);
}

.ge51-mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--ge51-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.ge51-mobile-menu-nav {
    list-style: none;
}

.ge51-mobile-menu-nav li {
    margin-bottom: 1.2rem;
}

.ge51-mobile-menu-nav a {
    display: block;
    color: var(--ge51-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.ge51-mobile-menu-nav a:hover {
    background: var(--ge51-primary);
    color: var(--ge51-bg-dark);
}

/* Menu Overlay */
.ge51-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;
}

.web4e5-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Carousel Styles */
.ge51-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.web4e5-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.web4e5-slide {
    min-width: 100%;
    cursor: pointer;
}

.web4e5-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.ge51-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.web4e5-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.web4e5-indicator.web4e5-active {
    background: var(--ge51-primary);
    transform: scale(1.2);
}

/* Main Content */
.ge51-main {
    padding-bottom: 80px;
}

.ge51-section {
    padding: 2rem 1rem;
}

.ge51-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ge51-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Game Grid */
.ge51-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.ge51-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ge51-game-item:hover {
    transform: scale(1.05);
}

.ge51-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid var(--ge51-primary);
}

.ge51-game-name {
    font-size: 1rem;
    color: var(--ge51-text-light);
    margin-top: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.ge51-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ge51-secondary);
    margin: 1.5rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--ge51-secondary);
}

/* Content Cards */
.ge51-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(32, 178, 170, 0.3);
}

.ge51-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ge51-primary);
    margin-bottom: 1rem;
}

.ge51-card-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--ge51-text-light);
}

/* Footer */
.ge51-footer {
    background: var(--ge51-bg-dark);
    border-top: 2px solid var(--ge51-primary);
    padding: 2rem 1rem 8rem;
}

.ge51-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.ge51-footer-links a {
    color: var(--ge51-text-light);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ge51-footer-links a:hover {
    background: var(--ge51-primary);
    color: var(--ge51-bg-dark);
}

.ge51-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.ge51-partners img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.ge51-partners img:hover {
    opacity: 1;
}

.ge51-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Bottom Navigation - Fixed Mobile Nav */
.ge51-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--ge51-bg-dark);
    border-top: 2px solid var(--ge51-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.ge51-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ge51-nav-item:hover {
    transform: scale(1.1);
}

.ge51-nav-item.active {
    color: var(--ge51-primary);
}

.ge51-nav-item i,
.ge51-nav-item .material-icons {
    font-size: 22px;
    color: var(--ge51-text-light);
    margin-bottom: 2px;
}

.ge51-nav-item.active i,
.ge51-nav-item.active .material-icons {
    color: var(--ge51-primary);
}

.ge51-nav-item span {
    font-size: 10px;
    color: var(--ge51-text-light);
}

.ge51-nav-item.active span {
    color: var(--ge51-primary);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .ge51-bottom-nav {
        display: none;
    }

    .ge51-main {
        padding-bottom: 2rem;
    }

    .ge51-footer {
        padding-bottom: 2rem;
    }
}

/* Responsive adjustments */
@media (max-width: 430px) {
    .ge51-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .ge51-game-name {
        font-size: 0.9rem;
    }
}

/* Utility Classes */
.ge51-text-center { text-align: center; }
.ge51-text-primary { color: var(--ge51-primary); }
.ge51-text-secondary { color: var(--ge51-secondary); }
.ge51-mt-1 { margin-top: 1rem; }
.ge51-mb-1 { margin-bottom: 1rem; }
.ge51-py-2 { padding-top: 2rem; padding-bottom: 2rem; }

/* Promo Link Styles */
.ge51-promo-link {
    color: var(--ge51-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.ge51-promo-link:hover {
    color: var(--ge51-secondary);
}

.ge51-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--ge51-primary), var(--ge51-secondary));
    color: var(--ge51-text-light);
    padding: 1rem 2rem;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ge51-promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.4);
}

/* List Styles */
.ge51-list {
    list-style: none;
    padding-left: 0;
}

.ge51-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
}

.ge51-list li:last-child {
    border-bottom: none;
}

/* FAQ Styles */
.ge51-faq-item {
    margin-bottom: 1rem;
}

.ge51-faq-question {
    font-weight: 600;
    color: var(--ge51-primary);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.ge51-faq-answer {
    color: var(--ge51-text-light);
    font-size: 1.3rem;
    line-height: 1.6;
    padding-left: 1rem;
}
