/**
 * Okgames App Apk - Main Stylesheet
 * Mobile-first design for Philippine gaming platform
 * Prefix: g64d-
 */

/* CSS Variables */
:root {
    --g64d-primary: #7B68EE;
    --g64d-secondary: #8470FF;
    --g64d-accent: #FFC0CB;
    --g64d-bg-dark: #2E4057;
    --g64d-bg-darker: #1a2a3a;
    --g64d-bg-card: #3a4f66;
    --g64d-text-light: #ffffff;
    --g64d-text-muted: #a0b0c0;
    --g64d-highlight: #BAE1FF;
    --g64d-success: #4ade80;
    --g64d-warning: #fbbf24;
    --g64d-gradient: linear-gradient(135deg, #7B68EE 0%, #8470FF 100%);
    --g64d-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --g64d-radius: 12px;
    --g64d-radius-lg: 20px;
    --g64d-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--g64d-bg-dark);
    color: var(--g64d-text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.g64d-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.g64d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g64d-bg-darker) 0%, var(--g64d-bg-dark) 100%);
    box-shadow: var(--g64d-shadow);
    padding: 12px 0;
}

.g64d-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    max-width: 430px;
    margin: 0 auto;
}

.g64d-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.g64d-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.g64d-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--g64d-text-light);
    background: var(--g64d-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g64d-header-actions {
    display: flex;
    gap: 10px;
}

.g64d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--g64d-radius);
    cursor: pointer;
    transition: var(--g64d-transition);
}

.g64d-btn-primary {
    background: var(--g64d-gradient);
    color: var(--g64d-text-light);
}

.g64d-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(123, 104, 238, 0.4);
}

.g64d-btn-secondary {
    background: transparent;
    color: var(--g64d-text-light);
    border: 2px solid var(--g64d-primary);
}

.g64d-btn-secondary:hover {
    background: var(--g64d-primary);
}

/* Mobile Menu Toggle */
.g64d-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--g64d-text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Menu */
.g64d-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--g64d-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.g64d-mobile-menu.pro4d9-active {
    right: 0;
}

.g64d-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(--g64d-transition);
}

.g64d-menu-overlay.pro4d9-active {
    opacity: 1;
    visibility: visible;
}

.g64d-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--g64d-bg-card);
}

.g64d-menu-close {
    background: transparent;
    border: none;
    color: var(--g64d-text-light);
    font-size: 28px;
    cursor: pointer;
}

.g64d-menu-nav {
    list-style: none;
}

.g64d-menu-nav li {
    margin-bottom: 8px;
}

.g64d-menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--g64d-text-light);
    text-decoration: none;
    border-radius: var(--g64d-radius);
    transition: var(--g64d-transition);
    font-size: 15px;
}

.g64d-menu-nav a:hover {
    background: var(--g64d-bg-card);
    color: var(--g64d-highlight);
}

.g64d-menu-nav i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* Main Content */
.g64d-main {
    padding-top: 80px;
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    .g64d-main {
        padding-bottom: 90px;
    }
}

/* Carousel/Slider */
.g64d-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--g64d-radius-lg);
    margin-bottom: 24px;
}

.g64d-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.g64d-slide.pro4d9-active {
    opacity: 1;
}

.g64d-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g64d-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.g64d-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--g64d-transition);
}

.g64d-dot.pro4d9-active {
    background: var(--g64d-primary);
    width: 24px;
    border-radius: 4px;
}

/* Section Title */
.g64d-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.g64d-section-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--g64d-text-light);
}

.g64d-section-title .g64d-icon {
    font-size: 24px;
    color: var(--g64d-primary);
}

.g64d-view-all {
    margin-left: auto;
    font-size: 13px;
    color: var(--g64d-highlight);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Game Grid */
.g64d-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.g64d-game-card {
    background: var(--g64d-bg-card);
    border-radius: var(--g64d-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--g64d-transition);
}

.g64d-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(123, 104, 238, 0.3);
}

.g64d-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.g64d-game-name {
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--g64d-text-light);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Tabs */
.g64d-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.g64d-category-tabs::-webkit-scrollbar {
    display: none;
}

.g64d-tab-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--g64d-text-muted);
    background: var(--g64d-bg-card);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--g64d-transition);
}

.g64d-tab-btn.g64d-active,
.g64d-tab-btn:hover {
    background: var(--g64d-gradient);
    color: var(--g64d-text-light);
}

/* Features Section */
.g64d-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.g64d-feature-card {
    background: linear-gradient(135deg, var(--g64d-bg-card) 0%, var(--g64d-bg-darker) 100%);
    border-radius: var(--g64d-radius);
    padding: 20px;
    text-align: center;
    transition: var(--g64d-transition);
}

.g64d-feature-card:hover {
    transform: scale(1.02);
}

.g64d-feature-icon {
    font-size: 36px;
    color: var(--g64d-primary);
    margin-bottom: 12px;
}

.g64d-feature-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--g64d-text-light);
    margin-bottom: 6px;
}

.g64d-feature-desc {
    font-size: 12px;
    color: var(--g64d-text-muted);
}

/* Promo Banner */
.g64d-promo-banner {
    background: var(--g64d-gradient);
    border-radius: var(--g64d-radius-lg);
    padding: 24px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.g64d-promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.g64d-promo-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--g64d-text-light);
    margin-bottom: 8px;
}

.g64d-promo-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

/* Footer */
.g64d-footer {
    background: var(--g64d-bg-darker);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.g64d-footer-section {
    margin-bottom: 30px;
}

.g64d-footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--g64d-text-light);
    margin-bottom: 16px;
}

.g64d-footer-links {
    list-style: none;
}

.g64d-footer-links li {
    margin-bottom: 10px;
}

.g64d-footer-links a {
    color: var(--g64d-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--g64d-transition);
}

.g64d-footer-links a:hover {
    color: var(--g64d-highlight);
}

.g64d-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.g64d-partner-logo {
    height: 30px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: var(--g64d-transition);
}

.g64d-partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.g64d-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--g64d-bg-card);
    font-size: 12px;
    color: var(--g64d-text-muted);
}

/* Bottom Navigation */
.g64d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--g64d-bg-dark) 0%, var(--g64d-bg-darker) 100%);
    border-top: 1px solid var(--g64d-bg-card);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.g64d-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(--g64d-text-muted);
    cursor: pointer;
    transition: var(--g64d-transition);
    padding: 8px;
    border-radius: 12px;
}

.g64d-nav-btn:hover,
.g64d-nav-btn.g64d-active {
    color: var(--g64d-primary);
    background: rgba(123, 104, 238, 0.1);
}

.g64d-nav-btn i {
    font-size: 24px;
    margin-bottom: 4px;
}

.g64d-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

@media (min-width: 769px) {
    .g64d-bottom-nav {
        display: none;
    }
}

/* Utility Classes */
.g64d-text-center { text-align: center; }
.g64d-text-left { text-align: left; }
.g64d-text-right { text-align: right; }
.g64d-mt-20 { margin-top: 20px; }
.g64d-mb-20 { margin-bottom: 20px; }
.g64d-py-20 { padding-top: 20px; padding-bottom: 20px; }

/* H1 Title */
.g64d-main-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
    color: var(--g64d-text-light);
    line-height: 1.3;
}

.g64d-main-title span {
    background: var(--g64d-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Adjustments */
@media (max-width: 380px) {
    .g64d-game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .g64d-header-actions {
        gap: 6px;
    }

    .g64d-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* Help Page Styles */
.g64d-help-section {
    background: var(--g64d-bg-card);
    border-radius: var(--g64d-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.g64d-help-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--g64d-highlight);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.g64d-help-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--g64d-text-muted);
}

.g64d-help-content p {
    margin-bottom: 12px;
}

.g64d-help-content ol,
.g64d-help-content ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.g64d-help-content li {
    margin-bottom: 8px;
}

/* FAQ Styles */
.g64d-faq-item {
    background: var(--g64d-bg-card);
    border-radius: var(--g64d-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.g64d-faq-question {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--g64d-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--g64d-transition);
}

.g64d-faq-question:hover {
    background: rgba(123, 104, 238, 0.1);
}

.g64d-faq-question i {
    color: var(--g64d-primary);
    font-size: 18px;
}

.g64d-faq-answer {
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--g64d-text-muted);
    line-height: 1.7;
}

/* Animations */
@keyframes g64d-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.g64d-animate {
    animation: g64d-fadeIn 0.5s ease forwards;
}

/* Body menu state */
body.pro4d9-menu-open {
    overflow: hidden;
}
