/* تصميم شبكة البطاقات مثل Uptodown */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.app-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.app-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.app-image {
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.app-card:hover .app-image img {
    transform: scale(1.05);
}

.app-image-placeholder {
    width: 80px;
    height: 80px;
    background: #e9ecef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.app-image-placeholder .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.app-content {
    padding: 1.25rem;
}

.app-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
    line-height: 1.4;
}

.app-description {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #a0aec0;
}

.app-version, .app-size {
    background: #f7fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #edf2f7;
}

/* هيدر الموقع الرئيسي */
.main-site-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.75rem;
    font-weight: bold;
    color: #2b6cb0;
    text-decoration: none;
}

.header-search form {
    display: flex;
    gap: 0.5rem;
}

.header-search input {
    padding: 0.5rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    width: 300px;
}

.header-search button {
    background: #2b6cb0;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.categories-nav {
    border-top: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.categories-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

.categories-nav a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.categories-nav a:hover {
    color: #2b6cb0;
}

.categories-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #2b6cb0;
}

/* AdSense Styles */
.adsense-header {
    margin: 1.5rem 0;
    text-align: center;
}

.adsense-slot {
    background: #f8f9fa;
    padding: 1rem;
    text-align: center;
    margin: 1rem 0;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .header-top {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-search input {
        width: 100%;
    }
    
    .categories-nav ul {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
}