/* Instagram Profile Styling */
#post-results {
    position: relative;
    height: 100%;
    max-height: calc(750px - 160px);
    overflow-y: auto;
    margin-bottom: 65px; /* Space for action buttons */
}

/* Profile Container Styling */
.profile-container {
    display: flex;
    align-items: center;
}

.profile-container .profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ff8a5b;
    flex-shrink: 0;
}

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

.profile-container .profile-details {
    margin-left: 15px;
    flex-grow: 1;
}

.profile-container h3.profile-name {
    color: #0071bc;
    font-size: 16px;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.profile-container .profile-stats {
    font-size: 13px;
    color: #555;
}

.profile-container .followers {
    font-weight: 500;
}

/* Post Container Styling */
.post-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 10px 0;
    margin-bottom: 70px; /* Make space for the action buttons */
    min-height: 200px;
    position: relative; /* Add position relative for the loader */
}

/* Action Buttons Styling */
#post-results .action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.action-buttons .btn {
    min-width: 120px;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-buttons .btn-primary {
    background-color: #0071bc;
    border-color: #0071bc;
    color: #fff;
}

.action-buttons .load-more-btn {
    background-color: #e63900;
    border-color: #e63900;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .profile-container.instagram {
        padding: 8px 10px;
    }
    
    .profile-container .profile-image {
        width: 50px;
        height: 50px;
    }
    
    .profile-container h3.profile-name {
        font-size: 16px;
    }
    
    .profile-container .profile-stats {
        font-size: 12px;
    }
    
    #post-results .action-buttons {
        flex-direction: column;
        padding: 10px;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
}

/* Post Item Styling Improvements */
.post-item {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-item.selected {
    border: 2px solid #e63900;
}

.post-item .post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-item.selected .overlay {
    opacity: 1;
}

.post-item .checkicon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 25px;
    height: 25px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid #e63900;
    z-index: 5;
}

.post-item:hover .checkicon {
    opacity: 0.5;
}

.post-item.selected .checkicon {
    opacity: 1;
} 