* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    transition: background-color 0.2s;
}

.menu-btn:hover {
    background-color: #f0f0f0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
}

.logo i {
    font-size: 24px;
    color: #34a853;
}

.logo span {
    font-size: 20px;
    font-weight: 400;
}

.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}

.search-form {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #34a853;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    background: none;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    transition: background-color 0.2s;
}

.icon-btn:hover {
    background-color: #f0f0f0;
}

/* Navigation */
.nav-tabs {
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 32px;
}

.nav-tab {
    background: none;
    border: none;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-tab.active {
    color: #34a853;
    border-bottom-color: #34a853;
}

.nav-tab:hover {
    color: #333;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 32px;
}

/* Featured Section */
.featured-section {
    margin-bottom: 48px;
}

.featured-app {
    background: linear-gradient(135deg, #34a853 0%, #1976d2 100%);
    border-radius: 16px;
    padding: 48px;
    color: white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.featured-content {
    display: flex;
    align-items: center;
    gap: 48px;
}

.featured-info {
    flex: 1;
}

.featured-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.featured-name {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
}

.featured-developer {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.featured-rating {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.rating-value {
    font-size: 18px;
    font-weight: 600;
}

.stars {
    display: flex;
    gap: 4px;
    color: #ffd700;
}

.downloads {
    font-size: 18px;
}

.featured-actions {
    display: flex;
    gap: 16px;
}

.install-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.install-btn.primary {
    background: white;
    color: #34a853;
}

.install-btn.primary:hover {
    background: #f0f0f0;
}

.install-btn.outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.install-btn.outline:hover {
    background: white;
    color: #34a853;
}

.featured-image {
    width: 320px;
    height: 256px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Popular Section */
.popular-section {
    margin-bottom: 48px;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.app-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

.app-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.app-card-content {
    display: flex;
    gap: 16px;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info {
    flex: 1;
}

.app-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.app-developer {
    color: #666;
    margin-bottom: 12px;
}

.app-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.app-rating .rating-value {
    font-weight: 500;
    color: #333;
}

.app-rating .stars {
    color: #ffd700;
}

.app-rating .downloads {
    color: #666;
    font-size: 14px;
}

.app-actions {
    display: flex;
    gap: 8px;
}

.install-btn.small {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 8px;
    background: #34a853;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    flex: 1;
}

.install-btn.small:hover {
    background: #2e7d32;
}

.wishlist-btn {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.wishlist-btn:hover {
    border-color: #34a853;
    color: #34a853;
}

/* Categories Section */
.categories-section {
    margin-bottom: 48px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    cursor: pointer;
}

.category-card:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 12px;
}

.category-name {
    font-weight: 500;
    font-size: 14px;
    text-align: center;
}

/* Recommended Section */
.recommended-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.see-more-btn {
    background: none;
    border: none;
    color: #34a853;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.see-more-btn:hover {
    background: #f0f8f0;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.recommended-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.recommended-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.recommended-card .app-icon {
    width: 100%;
    height: 128px;
    margin-bottom: 12px;
}

.recommended-card .app-name {
    font-size: 16px;
    margin-bottom: 4px;
}

.recommended-card .app-developer {
    font-size: 14px;
    margin-bottom: 8px;
}

.recommended-card .app-rating {
    margin-bottom: 12px;
}

.recommended-card .stars {
    font-size: 12px;
}

/* Top Charts Section */
.top-charts-section {
    margin-bottom: 48px;
}

.top-charts-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.tab {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
}

.tab.active {
    color: #34a853;
    border-bottom-color: #34a853;
}

.tab:hover {
    color: #333;
}

.top-charts-content {
    padding: 24px;
}

.top-chart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.top-chart-item:last-child {
    border-bottom: none;
}

.chart-rank {
    font-size: 24px;
    font-weight: 700;
    color: #666;
    width: 32px;
    text-align: center;
}

.chart-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.chart-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chart-app-info {
    flex: 1;
}

.chart-app-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.chart-app-developer {
    color: #666;
    font-size: 14px;
    margin-bottom: 4px;
}

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

.chart-app-rating .stars {
    font-size: 12px;
}

.chart-install-btn {
    padding: 8px 16px;
    background: #34a853;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.chart-install-btn:hover {
    background: #2e7d32;
}

/* New Releases Section */
.new-releases-section {
    margin-bottom: 48px;
}

.new-releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.new-release-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.new-release-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.new-release-card .app-icon {
    width: 100%;
    height: 80px;
    margin-bottom: 12px;
}

.new-release-card .app-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.new-release-card .app-developer {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.new-release-card .app-rating {
    margin-bottom: 12px;
}

.new-release-card .stars {
    font-size: 12px;
}

.new-release-card .install-btn {
    width: 100%;
    padding: 8px 12px;
    background: #34a853;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.new-release-card .install-btn:hover {
    background: #2e7d32;
}

/* Footer */
.footer {
    background: #f8f9fa;
    margin-top: 48px;
    padding: 48px 0;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-column h3 {
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: #34a853;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: #666;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #34a853;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }
    
    .search-container {
        margin: 0 16px;
    }
    
    .main-content {
        padding: 24px 16px;
    }
    
    .featured-app {
        padding: 24px;
    }
    
    .featured-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .featured-title {
        font-size: 36px;
    }
    
    .featured-name {
        font-size: 28px;
    }
    
    .featured-image {
        width: 100%;
        max-width: 320px;
    }
    
    .popular-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .recommended-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .new-releases-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        overflow-x: auto;
        padding: 0 16px;
    }
    
    .nav-tab {
        white-space: nowrap;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .featured-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        text-align: center;
    }
}