/* App Store Styles */
.app-store-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f8f9fa;
    color: #202124;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Header Styles */
.app-store-header {
    background: white;
    border-bottom: 1px solid #dadce0;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    height: 70px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.logo i {
    font-size: 28px;
    color: #4285f4;
    margin-right: 10px;
}

.logo h1 {
    font-size: 22px;
    font-weight: 600;
    color: #202124;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid #dadce0;
    border-radius: 24px;
    font-size: 16px;
    background-color: #f1f3f4;
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #5f6368;
    font-size: 16px;
}

/* Navigation */
.app-store-nav {
    background: white;
    border-bottom: 1px solid #dadce0;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: sticky;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
    height: 60px;
    display: flex;
    align-items: center;
}

.app-store-nav::-webkit-scrollbar {
    display: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    height: 100%;
    align-items: center;
}

.nav-links li {
    padding: 18px 24px;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #5f6368;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
    font-size: 16px;
    white-space: nowrap;
    display: block;
}

.nav-links a.active {
    color: #4285f4;
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #4285f4;
    border-radius: 2px;
}

.nav-links a:hover {
    color: #4285f4;
}

/* Main Content */
.app-store-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 24px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 8px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #202124;
}

.see-all {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.see-all:hover {
    text-decoration: underline;
}

/* Horizontal Scrolling App Containers */
.app-scroll-container {
    position: relative;
    margin-bottom: 32px;
}

.app-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 8px 8px 16px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-padding: 0 16px;
}

.app-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* Scroll buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid #dadce0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0.9;
    font-size: 14px;
}

.scroll-btn:hover {
    background: #4285f4;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 1;
}

.scroll-left {
    left: 8px;
}

.scroll-right {
    right: 8px;
}

/* App Cards */
.app-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 160px;
    flex-shrink: 0;
    transform: translateY(0);
}

.app-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.app-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.05);
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-developer {
    color: #5f6368;
    font-size: 11px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.stars {
    color: #fbbc05;
    font-size: 11px;
}

.rating-text {
    color: #5f6368;
    font-size: 11px;
}

.app-description {
    color: #5f6368;
    font-size: 11px;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 31px;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.app-price {
    font-weight: 600;
    color: #202124;
    font-size: 13px;
}

.install-button {
    background: #4285f4;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 11px;
}

.install-button:hover {
    background: #3367d6;
    transform: scale(1.05);
}

/* Game-specific styling */
.game-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    margin-left: 4px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .app-store-header {
        height: 65px;
    }
    
    .header-container {
        padding: 14px 16px;
    }
    
    .logo i {
        font-size: 24px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .search-bar input {
        padding: 10px 16px 10px 40px;
        font-size: 14px;
    }
    
    .app-store-nav {
        top: 65px;
        height: 55px;
    }
    
    .nav-links li {
        padding: 16px 20px;
    }
    
    .nav-links a {
        font-size: 15px;
    }
    
    .app-store-container {
        padding-top: 25px;
    }
    
    .app-card {
        padding: 10px;
        min-width: 150px;
    }
}

@media (max-width: 576px) {
    .app-store-header {
        height: 60px;
    }
    
    .header-container {
        padding: 12px 16px;
    }
    
    .logo {
        margin-right: 20px;
    }
    
    .logo i {
        font-size: 22px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .app-store-nav {
        top: 60px;
        height: 50px;
    }
    
    .nav-links li {
        padding: 14px 16px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .app-store-container {
        padding-top: 20px;
    }
    
    .app-card {
        min-width: 140px;
        padding: 8px;
    }
    
    .app-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .app-name {
        font-size: 12px;
    }
    
    .app-developer, .app-description, .rating-text {
        font-size: 10px;
    }
}