/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Top Bar */
.top-bar {
    background: #1e293b;
    color: white;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left, .top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-link {
    color: #cbd5e1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.top-link:hover {
    color: white;
}

.top-stat {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.join-btn {
    background: #10b981;
    padding: 5px 10px;
    border-radius: 4px;
    color: white !important;
}

.badge {
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 5px;
}

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

.header .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo h1 {
    color: #0d9e00;
    font-size: 28px;
    font-weight: bold;
}

.search-container {
    flex: 1;
    max-width: 500px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #0d9e00;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #64748b;
}

.search-btn {
    position: absolute;
    right: 5px;
    background: #0d9e00;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.visitors-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.count {
    font-weight: bold;
    color: #0d9e00;
}

.theme-toggle, .mobile-menu-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #64748b;
    padding: 8px;
}

/* Quick Links Bar */
.quick-links-bar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
}

.quick-links-bar .container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    white-space: nowrap;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}

.quick-link:hover {
    background: #f1f5f9;
    color: #0d9e00;
}

.quick-link .count {
    background: #e2e8f0;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.quick-link.free .count {
    background: #dcfce7;
    color: #16a34a;
}

.quick-link.premium .count {
    background: #fef3c7;
    color: #d97706;
}

/* Main Content */
.main-content {
    padding: 30px 0;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* Sections */
.section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    color: #1e293b;
}

.section-header .badge {
    background: #10b981;
    margin-left: 10px;
}

.view-all {
    color: #0d9e00;
    text-decoration: none;
    font-weight: 500;
}

/* Featured Section */
.featured-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: #f1f5f9;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #0d9e00;
    color: white;
}

.filter-btn span {
    margin-left: 5px;
    opacity: 0.7;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

/* Featured Card */
.featured-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.card-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    background: #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.placeholder-icon {
    font-size: 32px;
    color: #64748b;
}

.verified-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #10b981;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
    line-height: 1.4;
}

.card-desc {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
}

.rating {
    color: #fbbf24 !important;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.price.free {
    background: #dcfce7;
    color: #16a34a;
}

.download-btn {
    background: #0d9e00;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #0a7c00;
}

/* Trending Sidebar */
.trending-sidebar h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #1e293b;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.trending-item:hover {
    background: #f1f5f9;
}

.rank {
    background: #e2e8f0;
    color: #64748b;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.rank.gold {
    background: #fbbf24;
    color: white;
}

.item-info .title {
    font-size: 13px;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.stats {
    font-size: 11px;
    color: #64748b;
    display: flex;
    gap: 10px;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    gap: 20px;
}

.app-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.app-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.app-thumb {
    position: relative;
}

.app-icon {
    width: 60px;
    height: 60px;
    background: #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #64748b;
}

.verified {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #10b981;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.app-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}

.app-desc {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
}

.app-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #64748b;
}

.app-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #64748b;
}

.app-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.category-card:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: #0d9e00;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.category-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: #1e293b;
}

.category-info span {
    color: #64748b;
    font-size: 14px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.widget-header {
    background: #f1f5f9;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.widget-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #1e293b;
}

.widget-content {
    padding: 20px;
}

.empty-state {
    text-align: center;
    color: #64748b;
}

.empty-state i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.empty-state p {
    font-weight: 500;
    margin-bottom: 5px;
}

.empty-state span {
    font-size: 13px;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #334155;
}

.stat {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat i {
    font-size: 24px;
    color: #0d9e00;
}

.stat .number {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.stat .label {
    color: #94a3b8;
    font-size: 14px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    color: #0d9e00;
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-links h4 {
    margin-bottom: 15px;
    color: white;
}

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

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0d9e00;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

.badges {
    display: flex;
    gap: 15px;
}

.badges .badge {
    background: #334155;
    color: #94a3b8;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .top-left, .top-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-container {
        width: 100%;
    }
    
    .layout {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .app-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 20px 15px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}