/**
 * 7Game APK - Main Stylesheet
 * All classes use prefix: w9814-
 * Color palette: #00E5FF | #E8F5E8 | #1A1A1A | #80CBC4 | #F5DEB3
 */

/* CSS Variables */
:root {
    --w9814-primary: #00E5FF;
    --w9814-secondary: #80CBC4;
    --w9814-accent: #F5DEB3;
    --w9814-bg: #1A1A1A;
    --w9814-bg-light: #2A2A2A;
    --w9814-text: #E8F5E8;
    --w9814-text-muted: #9E9E9E;
    --w9814-border: #333333;
    --w9814-gradient: linear-gradient(135deg, #00E5FF 0%, #80CBC4 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background-color: var(--w9814-bg);
    color: var(--w9814-text);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 430px;
    margin: 0 auto;
}

a {
    color: var(--w9814-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--w9814-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles */
.w9814-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(26,26,26,0.98) 0%, rgba(26,26,26,0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--w9814-border);
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.w9814-header-scrolled {
    box-shadow: 0 4px 20px rgba(0,229,255,0.15);
}

.w9814-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.w9814-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.w9814-logo img {
    width: 32px;
    height: 32px;
}

.w9814-logo-text {
    font-size: 18px;
    font-weight: 700;
    background: var(--w9814-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.w9814-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.w9814-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.w9814-btn-primary {
    background: var(--w9814-gradient);
    color: var(--w9814-bg);
}

.w9814-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,229,255,0.4);
}

.w9814-btn-outline {
    background: transparent;
    color: var(--w9814-primary);
    border: 1px solid var(--w9814-primary);
}

.w9814-btn-outline:hover {
    background: rgba(0,229,255,0.1);
}

.w9814-menu-btn {
    background: none;
    border: none;
    color: var(--w9814-text);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Menu */
.w9814-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w9814-bg);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid var(--w9814-border);
}

.pro4ed-menu-active {
    right: 0;
}

.w9814-menu-header {
    padding: 20px;
    border-bottom: 1px solid var(--w9814-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w9814-menu-close {
    background: none;
    border: none;
    color: var(--w9814-text);
    font-size: 24px;
    cursor: pointer;
}

.w9814-menu-nav {
    padding: 20px 0;
}

.w9814-menu-item {
    display: block;
    padding: 14px 20px;
    color: var(--w9814-text);
    font-size: 15px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.w9814-menu-item:hover {
    background: rgba(0,229,255,0.1);
    border-left-color: var(--w9814-primary);
    color: var(--w9814-primary);
}

.w9814-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pro4ed-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.w9814-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Slider Section */
.w9814-slider {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.w9814-slides {
    position: relative;
    height: 200px;
}

.w9814-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.w9814-slide-active {
    opacity: 1;
}

.w9814-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w9814-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.w9814-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.w9814-dot-active {
    background: var(--w9814-primary);
    transform: scale(1.3);
}

/* Section Styles */
.w9814-section {
    padding: 20px 16px;
}

.w9814-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.w9814-section-title i {
    color: var(--w9814-primary);
}

.w9814-title-line {
    flex: 1;
    height: 2px;
    background: var(--w9814-gradient);
    border-radius: 2px;
}

/* Category Tabs */
.w9814-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 16px;
    scrollbar-width: none;
}

.w9814-category-tabs::-webkit-scrollbar {
    display: none;
}

.w9814-category-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: var(--w9814-bg-light);
    color: var(--w9814-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--w9814-border);
}

.w9814-tab-active,
.w9814-category-tab:hover {
    background: var(--w9814-gradient);
    color: var(--w9814-bg);
    border-color: transparent;
}

/* Game Grid */
.w9814-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.w9814-game-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--w9814-bg-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.w9814-game-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,229,255,0.2);
}

.w9814-game-img {
    aspect-ratio: 1;
    overflow: hidden;
}

.w9814-game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.w9814-game-item:hover .w9814-game-img img {
    transform: scale(1.1);
}

.w9814-game-name {
    padding: 8px;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(180deg, transparent, rgba(26,26,26,0.9));
}

/* Promo Banner */
.w9814-promo-banner {
    background: var(--w9814-gradient);
    border-radius: 12px;
    padding: 20px;
    margin: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.w9814-promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: w9814-pulse 3s infinite;
}

@keyframes w9814-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.w9814-promo-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--w9814-bg);
    margin-bottom: 8px;
    position: relative;
}

.w9814-promo-text {
    font-size: 14px;
    color: var(--w9814-bg);
    opacity: 0.9;
    margin-bottom: 15px;
    position: relative;
}

.w9814-promo-btn {
    display: inline-block;
    padding: 10px 30px;
    background: var(--w9814-bg);
    color: var(--w9814-primary);
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.w9814-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Features Section */
.w9814-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}

.w9814-feature-card {
    background: var(--w9814-bg-light);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--w9814-border);
    transition: all 0.3s ease;
}

.w9814-feature-card:hover {
    border-color: var(--w9814-primary);
    box-shadow: 0 4px 15px rgba(0,229,255,0.15);
}

.w9814-feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: var(--w9814-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--w9814-bg);
}

.w9814-feature-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--w9814-primary);
}

.w9814-feature-desc {
    font-size: 12px;
    color: var(--w9814-text-muted);
    line-height: 1.4;
}

/* Bottom Navigation */
.w9814-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(26,26,26,0.98) 0%, rgba(26,26,26,1) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--w9814-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.w9814-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 8px;
    background: none;
    border: none;
    color: var(--w9814-text-muted);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.w9814-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--w9814-gradient);
    transition: width 0.3s ease;
}

.w9814-nav-btn:hover,
.w9814-nav-btn.w9814-nav-active {
    color: var(--w9814-primary);
}

.w9814-nav-btn:hover::before,
.w9814-nav-btn.w9814-nav-active::before {
    width: 30px;
}

.w9814-nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.w9814-nav-btn:hover .w9814-nav-icon {
    transform: scale(1.15);
}

/* Footer */
.w9814-footer {
    background: var(--w9814-bg-light);
    padding: 30px 16px;
    border-top: 1px solid var(--w9814-border);
}

.w9814-footer-section {
    margin-bottom: 24px;
}

.w9814-footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--w9814-primary);
    margin-bottom: 12px;
}

.w9814-partner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.w9814-partner-logo {
    background: var(--w9814-bg);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w9814-partner-logo img {
    width: 100%;
    height: auto;
    max-height: 30px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.w9814-partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.w9814-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.w9814-footer-link {
    font-size: 13px;
    color: var(--w9814-text-muted);
    transition: color 0.3s ease;
}

.w9814-footer-link:hover {
    color: var(--w9814-primary);
}

.w9814-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--w9814-border);
    font-size: 12px;
    color: var(--w9814-text-muted);
}

/* Responsive */
@media (min-width: 769px) {
    body {
        max-width: 100%;
    }

    .w9814-bottom-nav {
        display: none;
    }

    .w9814-menu-btn {
        display: none;
    }

    .w9814-header-inner {
        max-width: 1200px;
    }

    .w9814-main {
        padding-bottom: 30px;
    }

    .w9814-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .w9814-features {
        grid-template-columns: repeat(4, 1fr);
    }

    .w9814-promo-banner {
        margin: 20px auto;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .w9814-main {
        padding-bottom: 80px;
    }
}

/* Utilities */
.w9814-text-center { text-align: center; }
.w9814-text-primary { color: var(--w9814-primary); }
.w9814-mb-16 { margin-bottom: 16px; }
.w9814-mt-16 { margin-top: 16px; }
.w9814-hidden { display: none; }

/* Animation */
@keyframes w9814-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.w9814-animate {
    animation: w9814-fadeIn 0.5s ease forwards;
}

/* Ripple Effect */
.w9814-btn-ripple {
    position: relative;
    overflow: hidden;
}

.w9814-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%) scale(0);
    animation: w9814-ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes w9814-ripple {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}
